The scanenr is under Milestone1/Scanner
directory. Some tests files can be found inside Milestone1/Test
.
A report can be found under Milestone1/Report
.
- cd into
Milestone1/Scanner
- run
make
- compile the scanner by above instructions.
- run:
./scanner <path to the input file>
.
The parser is located in Milestone2/Parser
direcotry.
- cd into
Milestone2/Parser
- run
make clean
- run
make
- compile the parser using the above instructions.
- run:
./parser <path to the input file>
.
- cd into
Milestone3/FrontEnd
- run
make clean
- run
make
- compile the front end using the above instructions.
- run:
./main <path to the input file>
.
- cd into
CodeGen/Compiler
- run
make clean
- run
make
- compile the code generator using the above instructions.
- run:
./main <path to the input file> > [file to be redircted into]
.
In CodeGen/TEST/generated
In CodeGen/TEST/output