Complier of Object-Oriented Language Decaf
- 1 minutes read - 69 words• Built a preprocessor to handle comments and macros and a scanner to identify tokens with lex and regular expression
• Used shift/reduce parsing method to generate abstract syntax trees based on the tokens matched
• Implemented scope checking by building symbol tables and type checking by applying inference rules
• Currently working on IR generation, IR optimization, code generation and optimization process of the compiler