View Code? Open in Web Editor
NEW
22S compiler design class project
Makefile 1.47%
C 61.68%
Yacc 31.29%
Shell 0.57%
Lex 4.98%
compiler_design_tl13_lang's Introduction
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
.
compiler_design_tl13_lang's People
Watchers