(
            self, queues, console, cursor, files, sound,
            values, memory, program, parser, basic_events
        )
Initialise interpreter.
Initialise interpreter.
Initialise interpreter .
def __init__(
            self, queues, console, cursor, files, sound,
            values, memory, program, parser, basic_events
        ):
        """Initialise interpreter."""
        self._queues = queues
        self._basic_events = basic_events
        self._values = values
        self._memory = memory
        self._scalars = memory.scalars
        self._console = console
        self._cursor = cursor
        self._files = files
        self._sound = sound
        # program buffer
        self._program = program
        self._program_code = program.bytecode
        # direct line buffer
        self.direct_line = codestream.TokenisedStream()
        self.current_statement = 0
        # statement syntax parser
        self.parser = parser
        # line number tracing
        self.tron = False
        # pointer position: False for direct line, True for program
        self.run_mode = False
        # clear stacks
        self.clear_stacks_and_pointers()
        self._init_error_trapping()
        self.error_num = 0
        self.error_pos = 0
        self.set_pointer(False, 0)
        # interpreter is waiting for INPUT or LINE INPUT
        self.input_mode = False
        # interpreter is executing a command (needs console)
        self.set_parse_mode(False)
        # additional operations on program step (debugging)
        self.step = lambda token: None
def __init__ ( self , queues , console , cursor , files , sound , values , memory , program , parser , basic_events ) : self . _queues = queues self . _basic_events = basic_events self . _values = values self . _memory = memory self . _scalars = memory . scalars self . _console = console self . _cursor = cursor self . _files = files self . _sound = sound # program buffer self . _program = program self . _program_code = program . bytecode # direct line buffer self . direct_line = codestream . TokenisedStream ( ) self . current_statement = 0 # statement syntax parser self . parser = parser # line number tracing self . tron = False # pointer position: False for direct line, True for program self . run_mode = False # clear stacks self . clear_stacks_and_pointers ( ) self . _init_error_trapping ( ) self . error_num = 0 self . error_pos = 0 self . set_pointer ( False , 0 ) # interpreter is waiting for INPUT or LINE INPUT self . input_mode = False # interpreter is executing a command (needs console) self . set_parse_mode ( False ) # additional operations on program step (debugging) self . step = lambda token : None