CS 1410-20 Homework 11

Due: Friday, November 19th, 2010 9:40am

Interpreter in Java

Implement the interpreter of HW 8 again, but in Java.

Your implementation should include an IExpr interface with an interp method (short for interpWidthDefns), where the interp method takes a list of definitions and returns an IResult. Initially, IResult should include only a representation for number results, but in part 3, booleans become a possibility for IResult.

Implement at least as much of the language as included through part 3 of HW 8 (which was formerly optional), but part 4 is still optional. You do not need to implement the same intermediate steps; you should start small and build up to the complete implementation, but choose your own path. Beyond having an IExpr interface with an interp method, the final details are up to you.


Last update: Wednesday, November 17th, 2010
mflatt@cs.utah.edu