(self, err=error.STX)
Skip whitespace, peek and raise error if not at end of statement.
Skip whitespace, peek and raise error if not at end of statement.
Skip whitespace peek and raise error if not at end of statement .
def require_end(self, err=error.STX):
        """Skip whitespace, peek and raise error if not at end of statement."""
        d = self.read(1)
        while d and d in self.blanks:
            d = self.read(1)
        self.seek(-len(d), 1)
        if d not in tk.END_STATEMENT:
            raise error.BASICError(err)
def require_end ( self , err = error . STX ) : d = self . read ( 1 ) while d and d in self . blanks : d = self . read ( 1 ) self . seek ( - len ( d ) , 1 ) if d not in tk . END_STATEMENT : raise error . BASICError ( err )