As part of a compilation course, I was required to build a compiler for a programming language defined by rules given to me.
The project was built in three stages:
- Syntax error detection by building an AST (Tree Syntax Abstract).
- Performing semantic tests and displaying errors accordingly.
- Translation of the code entered into 3AC (3-address-code).
using: LEX, YACC, C. Operating system: Linux