#
if ($1 == "") then
    set f = test-files/simple-test.p
else
    set f = $1
endif

jflex pascal.jflex
java java_cup.Main -expect 1 -parser PascalParser < pascal.cup
javac -classpath "$CLASSPATH":a4-support.jar PascalInterpreterTest.java \
        symNames.java sym.java Types.java
java -classpath "$CLASSPATH":a4-support.jar PascalInterpreterTest $f
