(self, line)
Store a program line or schedule a command line for execution.
Store a program line or schedule a command line for execution.
Store a program line or schedule a command line for execution .
def _store_line(self, line):
        """Store a program line or schedule a command line for execution."""
        if not line:
            return True
        self.interpreter.direct_line = self.tokeniser.tokenise_line(line)
        c = self.interpreter.direct_line.peek()
        if c == b'\0':
            # clear all program stacks
            self.interpreter.clear_stacks_and_pointers()
            # clear variables first,
            # to avoid inconsistent state in string space if out of memory
            self._clear_all()
            # check for lines starting with numbers (6553 6) and empty lines
            self.program.check_number_start(self.interpreter.direct_line)
            self.program.store_line(self.interpreter.direct_line)
            return True
        elif c != b'':
            # it is a command, go and execute
            self.interpreter.set_parse_mode(True)
            return False
def _store_line ( self , line ) : if not line : return True self . interpreter . direct_line = self . tokeniser . tokenise_line ( line ) c = self . interpreter . direct_line . peek ( ) if c == b'\0' : # clear all program stacks self . interpreter . clear_stacks_and_pointers ( ) # clear variables first, # to avoid inconsistent state in string space if out of memory self . _clear_all ( ) # check for lines starting with numbers (6553 6) and empty lines self . program . check_number_start ( self . interpreter . direct_line ) self . program . store_line ( self . interpreter . direct_line ) return True elif c != b'' : # it is a command, go and execute self . interpreter . set_parse_mode ( True ) return False