interp
Class Interpreter

java.lang.Object
  extended by interp.Interpreter

public class Interpreter
extends java.lang.Object

The Interpreter class interprets Bantam Java programs. It takes the AST representation of the program (which was previously checked for correctness and annotated with type information) and runs the program. The interpreter package was originally written by Josh Davis with some modifications by Marc Corliss. This class is incomplete and will need to be implemented by the student.


Constructor Summary
Interpreter(ClassTreeNode root, boolean debug)
          Interpreter constructor
 
Method Summary
 void interpret()
          Interpret the program See the lab manual for the details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter

public Interpreter(ClassTreeNode root,
                   boolean debug)
Interpreter constructor

Parameters:
root - root of the class hierarchy tree
debug - boolean indicating whether debugging is enabled
Method Detail

interpret

public void interpret()
Interpret the program See the lab manual for the details.