Sreelaxme / Compilerdesign

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME : SREELAKSHMI ROLL_NUMBER : 112001042 COURSE_CODE : CS3140

-To run - cd compilercpy - make test —> gives c code in the terminal (Give the testcase in test tile and run make test) - make output —> prints the c code in bin/output.c

- make testc runs the c code and prints the output in the terminal
  • Uncomment line 98 to 101 in compiler.y, ex($3) in line 94 and 103 to obtain the program output without converting into c code
    • (make output) then the output.c will be contatining the program output and symbol table .

About


Languages

Language:C 81.2%Language:Yacc 14.1%Language:Lex 3.2%Language:Makefile 1.5%