示例#1
0
文件: Store.java 项目: Newky/3rdYear
 /**
  * Execute the instruction (operational semantics)
  *
  * @param c Instructions to execute after this one
  * @param state Current state (updated in-place)
  * @param stack Current evaluation stack (updated in-place)
  * @return Remaining instructions to execute
  */
 public Code reduce(Code c, Stack stack, State state) {
   state.store(x, stack.popInt());
   return c;
 }