lodeguns / Java-COOL-Compiler-

Java Lexer, Parser, Seman and CGEN for the COOL language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java compiler for the COOL OO programming language.

Java Lexer (JFlex) , Parser (Java CUP) , Semantic analyzer for the programming language COOL

This repository contains only the relevant lines of code necessary for a COOL Java compiler. Please refer to the online material of the Prof. Alex Aiken and his course for a complete documentation and the related Java implementations.

lexer

Here a possible COOL lexer definition.

parser

Here a possible COOL parser definition in Java CUP with some important iussues for the look-ahead.

semant

Here a possible COOL semant definition.

About

Java Lexer, Parser, Seman and CGEN for the COOL language.


Languages

Language:Java 96.1%Language:Lex 3.0%Language:Cool 0.9%