Project 0 - Interpreter
This project is optional and will NOT
be graded. Project 0 is intended to serve as a quick review of
Java, a gentle introduction to the first few concepts in the textbook,
and a handy testcase for students to try out the electronic submission
and automated grading environments.
Due date: Please turn in (if you wish to turn it in) at the beginning
of your first PSO session, in week 2 of the course.
Directions:
Read Chapter 1 of Appel.
Download Java code for "straight-line" language abstract syntax trees,
here.
Download skeleton code for "straight-line" language interpreter,
here.
In working directory, compile the abstract syntax tree classes.
(javac StraightLine.java.)
In Main.java, implement the rest of the interpreter code where indicated
by comments, as explained in textbook and in lecture.
Compile and run interpreter. (javac Main.java; java Main.)
Debug until done.
Back