|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinterp.Interpreter
public class Interpreter
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 |
|---|
public Interpreter(ClassTreeNode root,
boolean debug)
root - root of the class hierarchy treedebug - boolean indicating whether debugging is enabled| Method Detail |
|---|
public void interpret()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||