@Override
public OperationResult execute(ParserState state) {
CallStackFrame frame = state.getCallStack();
if (frame == null)
throw new RuntimeException("Return without call");
frame = frame.restoreVariables(state);
state.setCallStack(frame.getNextFrame());
state.setNextInstruction(frame.getReturnAddress());
return OperationResult.CONTINUE;
}
}