Example #1
0
 public PrgState(ImyStack <Istmt> stk, ImyDict <string, int> sym, ImyList <int> output, ImyDict <int, Tuple <string, StreamReader> > file)
 {
     this.stk    = stk;
     this.sym    = sym;
     this.output = output;
     this.file   = file;
 }
Example #2
0
        public void execute(PrgState state)
        {
            ImyList <int>         output   = state.getOutput();
            ImyDict <String, int> symTable = state.getSymTable();

            output.add(e.eval(symTable));
        }