示例#1
0
  /** Constructs a new empty program with the given GUI. */
  public VMProgram(VMProgramGUI gui) {
    super(gui != null);
    this.gui = gui;
    listeners = new Vector();
    staticRange = new Hashtable();
    functions = new Hashtable();

    if (hasGUI) {
      gui.addProgramListener(this);
      gui.addErrorListener(this);
    }

    reset();
  }