(self, in_range, err=error.STX)
return c
Skip whitespace, read and raise error if not in range.
Skip whitespace, read and raise error if not in range.
Skip whitespace read and raise error if not in range .
def require_read(self, in_range, err=error.STX):
        """Skip whitespace, read and raise error if not in range."""
        d = self.read(1)
        while d and d in self.blanks:
            d = self.read(1)
        c = d + self.read(len(in_range[0])-1)
        if not c or c not in in_range:
            self.seek(-len(c), 1)
            raise error.BASICError(err)
        return c
def require_read ( self , in_range , err = error . STX ) : d = self . read ( 1 ) while d and d in self . blanks : d = self . read ( 1 ) c = d + self . read ( len ( in_range [ 0 ] ) - 1 ) if not c or c not in in_range : self . seek ( - len ( c ) , 1 ) raise error . BASICError ( err ) return c