- Nathan Sandum
- Jiawen Wang
- Grégoire Moreau
programs
: Test programs are organized by compilation phase and by expected result. Valid programs should outputOK
and status code0
, while invalid programs should outputError: <description>
and status code1
.Scan+parse
: Runs both the scanner and parser phases
src
: Source code for the assignmentbuild.sh
: Builds your compiler usingMake
or similar. You should replace the commands here if necessary to build your compilerrun.sh
: Runs the compiler using two arguments (mode - $1 and input file - $2).test.sh
: Automatically run the compiler against test programs in the programs directory and checks the outputexecute.sh
Generates code and compiles it
prettytest.sh
: Automatically run the compiler and pretty printer to ensure pretty printer output is validreftest.sh
: Automaticallyssh
into theteaching.cs.mcgill.ca
server to test against the reference compiler at~cs520/golitec
codegen.c
should be compiled with -lm, since we make use ofmath.h