Decaf is a simple object oriented language similar to C/C++/Java. The features of this language has been simplified to be implemented easier. Yet, it's still powerful enough to be used to write some interesting programs.
Description |
---|
Scanner | |
---|---|
Parser | |
Codegen |
First, you must install Jflex
jflex src/Scanner.flex
or you can use jar file in the project
java -jar src/jflex-1.8.2.jar src/Scanner.flex
cd src/
java -jar java-cup-11b.jar parser.cup
javac -cp "java-cup-11b.jar:java-cup-11b-runtime.jar:jflex-full-1.7.0.jar Main.java"