A compiler for the toy language FunkBaz
created with the help of SableCC an open source compiler generator in Java.
It is the result of a school project made for the Introduction to Compilers class at UQAM winter 2017.
FunkBaz is a typed language that supports the use of anonymous functions and closures.
-
First download the sablecc jar executable from the sablecc website.
-
Generate the syntax directory from sablecc productions file:
$ java -jar /path/to/sablecc-3.7/lib/sablecc.jar -d src/ productions.sablecc
- Run the java binary with your new language source code file as parameter
Link to slide show presentation of the project