Compiler for a subset of the C language.
This project is not fully complete. Code generation is not correctly implemented and semantic errors are not detected.
- Lexical analisys
$ ./uccompiler -l
or
$ ./uccompiler -1
- Abstract Syntax Tree
$ ./uccompiler -t
- Syntax Analisys
$ ./uccompiler -2
- Semantic Analisys
In this step the project will create the necessary Symbol Tables and annotate the AST. The project will only complete this step if there are no syntax errors in the code.
$ ./uccompiler -s
- Default
If no flags are used, the project will create the symbol tables and generate the code.