Jackiebibili / compiler_design_tl13_lang

22S compiler design class project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiler Design Project

How to Compile the Source Code

  • Run the Makefile in the root directory and ./compiler executable will be built.

How to Compile the Sample Program

  • Run run.sh or ./compiler < input.txt > out.c 2> err.log. This will generate a C program named out.c and show any compilation errors in err.log.
  • Run gcc -o program out.c to compiler the generated program.
  • Test the generated program by running ./program.

About

22S compiler design class project


Languages

Language:C 61.7%Language:Yacc 31.3%Language:Lex 5.0%Language:Makefile 1.5%Language:Shell 0.6%