public class SL_ProgramNode extends ParseNode {
  // children: function, function, function ... function block

  public int getType() { return G_PROGRAM; }
  public ParseNode interpret(SymbolTable st) throws InterpretException {
    try {
      for (int c=0; c<numChildren(); c++) 
	getChild(c).interpret(st);
    }
    catch (BreakException b) {
      throw new InterpretException("Encountered 'break' outside of while block");
    }
    catch (ReturnException r) {
      throw new InterpretException("Encountered 'return' at global scope.");
    }
    return new SL_NopNode();
  }
}
