CSC 330 Interpreter Examples
CSC 330
Interpreter Examples
-
pascal.cup
-- the CUP parser specification for Pascal, augmented with interpreter support
-
PascalInterpreter.java
-- the parse tree interpreter, after which your solution to Assignment 4 can be
patterned
-
PascalInterpreterTest.java
-- a testing program that builds the lexer, parser, interpreter, runs, and
dumps
-
NOTE: If you want to compile the Pascal example from
source, you need to copy the following versions of symNames.java and Types.java
as well as the pascal.cup. These files are different than the EJay versions in
the a4-support.jar file. Compiling with these sources will override the
versions in the support jar file.
-
simple-test.p
-- a very simple test program, for starters
-
simple-test.p.out
-- result of running PascalInterpreterTest on simple-test.p
-
javadoc
-- Javadoc-style documentation
-
listings
-- formated code listings, as presented in lectures
-
.make.csh
-- UNIX shell script to compile and run the Pascal interpreter example
index
|
lectures
|
handouts
|
assignments
|
examples
|
doc
|
solutions
|
bin