import java.io.*; class Brenda { public static void main(String[] args) { try { JSLexer lexer = new JSLexer((args != null) ? new DataInputStream(new FileInputStream(args[0])) : new DataInputStream(System.in)); JSParser parser = new JSParser(lexer); ControlNodeGroup tree = new ControlNodeGroup(); parser.statements(0, tree); System.out.println(ControlNode.printAll()); Environment theEnv = new Environment(); ControlNode c = tree.getHead(); while (c != null) c = c.eval(theEnv); System.out.println("After eval :\n" + theEnv.print()); } catch(Exception e) { System.err.println("exception: "+e); } } }