/Compiler_C

Written a C compiler to run c code using flex and bison tool, add also a semantic analyzer, Quadraple language generation and symbol table.

Primary LanguageC

Compiler_C

Written a C compiler to run c code using flex and bison tool, add also a semantic analyzer, Quadraple language generation and symbol table.

Project Components

• Lexer

• Parser

• Symbol Table

• Quadruple “assembly” language generation

• Semantic analysis

To run the project

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

Outputs of Compiler

  • symbol_file

  • assembly_file

  • semantic_file