public PrgState execute(PrgState state) { if (exp.eval(state.getSymTable(), state.getHeap()) != 0) { state.getExeStack().Push(this); state.getExeStack().Push(stmt); } return state; }
public PrgState execute(PrgState state) { if (exp.eval(state.getSymTable(), state.getHeap()) != 0) { state.getExeStack().Push(this); state.getExeStack().Push(stmt); } return(state); }
public PrgState execute(PrgState state) { int result = exp.eval(state.getSymTable(), state.getHeap()); if (result != 0) state.getExeStack().Push(thenStmt); else state.getExeStack().Push(elseStmt); return state; }
public PrgState execute(PrgState state) { int result = exp.eval(state.getSymTable(), state.getHeap()); if (result != 0) { state.getExeStack().Push(thenStmt); } else { state.getExeStack().Push(elseStmt); } return(state); }
public PrgState execute(PrgState state) { state.getExeStack().Push(second); state.getExeStack().Push(first); return(state); }
public PrgState execute(PrgState state) { state.getExeStack().Push(second); state.getExeStack().Push(first); return state; }
public PrgState execute(PrgState state) { state.getExeStack().Push(new IfStmt(exp, thenStmt, new SkipStmt())); return(state); }
public PrgState execute(PrgState state) { state.getExeStack().Push(new IfStmt(exp, thenStmt, new SkipStmt())); return state; }