A toy compiler that compiles Small-C source code into MIPS code, refactored from my previous course project.
To build the compiler, put dependent library jar files in lib/ and run:
make -C src/
ant
To compile a source file in the directory in/, run the following command:
export CLASSPATH='bin:lib/JFlex.jar:lib/java_cup_11a.jar'
java com.gmail.devinz1993.smallc.Compiler [FILE_NAME]
You can also run my batch test using the following command:
./run.sh