Written a C compiler to run c code using flex and bison tool, add also a semantic analyzer, Quadraple language generation and symbol table.
• Lexer
• Parser
• Symbol Table
• Quadruple “assembly” language generation
• Semantic analysis
Test 1
- To print all the “Quadruples language”
- run it by writing in terminal make test1
Test 2
- To invoke all the “Compiler” functionality
- run it by writing in terminal make test2
Test 3
- To invoke all the “Semantic Analysis”
- run it by writing in terminal make test3
-
symbol_file
-
assembly_file
-
semantic_file