Example #1
0
    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
Example #2
0
    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()
Example #3
0
 def execute(self, program: Program):
     program.TF = dict()