public void execute(PrgState state) { ImyStack <Istmt> stk = state.getExeStack(); stk.push(second); stk.push(first); }
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; }
public void execute(PrgState state) { ImyStack <Istmt> stk = state.getExeStack(); ImyDict <string, int> symTable = state.getSymTable(); try { if (e.eval(symTable) != 0) { stk.push(thenS); } else { stk.push(elseS); } } catch (ExpException) { throw new StmtException("Id in \"" + this.ToString() + "\" statement has no value asociated with it"); } }