Assignment 6
The files for this assignment can be found in h6.tar. Download this file and extract the
files. (They will be extracted to a directory called h6)
Assignment
Write an interpreter in Java for the subset of Scheme used in
assignment 4. (In other words, redo the first interpreter from that
assignment in Java.)
This assignment has many classes that you will use, but you should
only change the file Eval_Exp.java. Javadoc documentation for
all of the classes can be found here.
There are five packages in this project:
- scheme.parser - Files in there were autogenerated by some
tool. You don't need to look at them.
- scheme.util - A couple of classes to implement lists.
- scheme.absyn - Abstract syntax. Useful to look at the javadoc but
should not be touched.
- scheme - The top level. It has one file REPL, which simulates a repl.
- scheme.interp - This is the meat of the interpreter. Some of the
methods in Eval_Exp.java are not done. You need to finish them.
Submission
Turn in the file Eval_Exp.java on the electronic
submission page.