khaledsabry97 / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C 89.6%Language:Yacc 8.2%Language:C++ 1.5%Language:Lex 0.6%Language:Makefile 0.2%