def execute(self, program: Program): if program.TF is None: exit_app( exitCodes.INVALID_FRAME, 'PUSHFRAME\nInvalid access to undefined temporary frame.', True) program.LF_Stack.append(program.TF) program.TF = None
def execute(self, program: Program): if len(program.LF_Stack) == 0: exit_app(exitCodes.INVALID_FRAME, 'POPFRAME\nNo available local frame.', True) program.TF = program.LF_Stack.pop()
def execute(self, program: Program): program.TF = dict()