this version still with bugs in intermediate code generate (TreeTranslate.java). Those will probably not be solved by me, as I believe that this project has already fulfilled my personal objectives.
- Lexical Analysis w/ JFLEX
- Syntactic Analysis w/ CUP
- using Visitor Pattern:
- Pretty Printer
- Type Checker
- Intermediate Code Generator (Translate into TREEs) - Not bug-free
This compiler was made using JFLEX for Lexical Analysis and CUP for Syntactic Analysis. Type Checker, Pretty Print and Intermediate Code Generator (Using TREE as intermediate language, as proposed by Appel and Palsberg in Modern Compiler Implementation in Java.
I am gratefull to Giovanny Lucero (UFS), compiler's class was extremely interesting and fun.