/* * Created on Feb 21, 2005 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ /** * @author brooks * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class Interpreter { public MainMemory memory; public SymbolTable symtable; /** * */ public Interpreter() { super(); memory = new MainMemory(); symtable = new SymbolTable(10); } public static void main(String args[]) { InputString is = new InputString(); Interpreter interp = new Interpreter(); is.interpreter = interp; while(true) { is.readInput(); while (is.hasMoreTokens()) { is.parseStatement(); } interp.symtable.printSelf(); interp.memory.printSelf(); } } }