Assignment 4

The files for this assignment can be found in h4.tar. Download this file and extract the files. (They will be extracted to a directory called h4)

Commands to extract, compile, and run are the same as for the previous assignment.

Assignment

The relevent files for the assignment are:

This program will evaluate simple scheme expressions. As in the previous assignment, your code will start with the output of the parser. See absyn.ml for the type information of these expressions.

The interface file, interpret.mli, gives the types of the procedures used in interpret.ml. Examine this file, but do not modify it.

For this assignment, you should do the following.

You may use the solution to the previous assignment to start this assignment.

Submission

Turn in the files interpret.ml and sinterpret on the electronic submission page.