To organize your assignments and project for class, please follow the skeleton provided in this repository
We provide 3 scripts for convenience and two directories for organization:
programs: Test programs are organized by compilation phase and by expected result. Valid programs should outputOKand status code0, while invalid programs should outputError: <description>and status code1.Scan+parse: Runs both the scanner and parser phasesTypecheck: Runs until the end of the typechecker phaseCodegen: Runs until your compiler outputs the target code
src: Source code for your assignmentbuild.sh: Builds your compiler usingMakeor similar. You should replace the commands here if necessary to build your compilerrun.sh: Runs your compiler using two arguments (mode - $1 and input file - $2). You should replace the commands here if necessary to invoke your compilertest.sh: Automatically runs your compiler against test programs in the programs directory and checks the output
Comments found in both files provide more details as to the requirements. Since a large portion of grading is performed automatically, please ensure to follow the input/output specifications exactly. You must be able to run the provided scripts on the SOCS Trottier machines.