(self, ins)
Parse and execute a single statement.
Parse and execute a single statement.
Parse and execute a single statement .
def parse_statement(self, ins):
        """Parse and execute a single statement."""
        # read keyword token or one byte
        ins.skip_blank()
        c = ins.read_keyword_token()
        if c in self._simple:
            parse_args = self._simple[c]
        elif c in self._complex:
            stat_dict = self._complex[c]
            ins.skip_blank()
            selector = ins.read_keyword_token()
            ins.seek(-len(selector), 1)
            if selector not in stat_dict.keys():
                selector = None
            else:
                c += selector
            parse_args = stat_dict[selector]
        else:
            ins.seek(-len(c), 1)
            if c in set(iterchar(LETTERS)):
                # implicit LET
                c = tk.LET
                parse_args = self._simple[tk.LET]
            else:
                ins.require_end()
                return
        self._callbacks[c](parse_args(ins))
def parse_statement ( self , ins ) : # read keyword token or one byte ins . skip_blank ( ) c = ins . read_keyword_token ( ) if c in self . _simple : parse_args = self . _simple [ c ] elif c in self . _complex : stat_dict = self . _complex [ c ] ins . skip_blank ( ) selector = ins . read_keyword_token ( ) ins . seek ( - len ( selector ) , 1 ) if selector not in stat_dict . keys ( ) : selector = None else : c += selector parse_args = stat_dict [ selector ] else : ins . seek ( - len ( c ) , 1 ) if c in set ( iterchar ( LETTERS ) ) : # implicit LET c = tk . LET parse_args = self . _simple [ tk . LET ] else : ins . require_end ( ) return self . _callbacks [ c ] ( parse_args ( ins ) )