Created as a Coursework for Formal Languages course at the University of Warwick
- Simple functional language
- Can do addition and multiplication
- Can create functions
- Has a main function
See the example in input.txt
Create the java parser files using the javacc
command.
javacc Grammar.jj
This should create a number of java files. Compile them all with:
javac *.java
You can then use the created Grammar command to parse and execute the file.
java Grammar < input.txt > output.txt 2> err.txt