Files:
unzip CalcTree.zip
You can experiment with the example by copying it to your own directory and using the ant commands.
Instead of using ant you can also run manually as follows:
mkdir AST
java -jar tools/jastadd2.jar --package=AST --jjtree --grammar=CalcParser *.ast *.jadd
java -classpath tools/javacc.jar jjtree -OUTPUT_DIRECTORY=AST -STATIC=false -VISITOR=true -NODE_PACKAGE="AST" CalcParser.jjt
java -classpath tools/javacc.jar javacc -OUTPUT_DIRECTORY=AST -STATIC=false AST/CalcParser.jj
javac -classpath tools/junit.jar:. *.java AST/*.java
java DumpCalcExpression DumpTests/allsyntax.calc java ComputationByAOP ComputationTests/interactiveExample.calc java ComputationByVisitor ComputationTests/interactiveExample.calc
java -cp tools/junit.jar:. TestAll