(self, ins)
Parse LINE syntax.
Parse LINE syntax.
Parse LINE syntax .
def _parse_line(self, ins):
        """Parse LINE syntax."""
        if ins.skip_blank() in (b'(', tk.STEP):
            yield ins.skip_blank_read_if((tk.STEP,))
            for c in self._parse_pair(ins):
                yield c
        else:
            for _ in range(3):
                yield None
        ins.require_read((tk.O_MINUS,))
        yield ins.skip_blank_read_if((tk.STEP,))
        for c in self._parse_pair(ins):
            yield c
        if ins.skip_blank_read_if((b',',)):
            expr = self.parse_expression(ins, allow_empty=True)
            yield expr
            if ins.skip_blank_read_if((b',',)):
                if ins.skip_blank_read_if((b'B',)):
                    shape = b'BF' if ins.skip_blank_read_if((b'F',)) else b'B'
                else:
                    shape = None
                yield shape
                if ins.skip_blank_read_if((b',',)):
                    yield self.parse_expression(ins)
                else:
                    # mustn't end on a comma
                    # mode == '' if nothing after previous comma
                    error.throw_if(not shape, error.STX)
                    yield None
            elif not expr:
                raise error.BASICError(error.MISSING_OPERAND)
            else:
                yield None
                yield None
        else:
            yield None
            yield None
            yield None
        ins.require_end()
def _parse_line ( self , ins ) : if ins . skip_blank ( ) in ( b'(' , tk . STEP ) : yield ins . skip_blank_read_if ( ( tk . STEP , ) ) for c in self . _parse_pair ( ins ) : yield c else : for _ in range ( 3 ) : yield None ins . require_read ( ( tk . O_MINUS , ) ) yield ins . skip_blank_read_if ( ( tk . STEP , ) ) for c in self . _parse_pair ( ins ) : yield c if ins . skip_blank_read_if ( ( b',' , ) ) : expr = self . parse_expression ( ins , allow_empty = True ) yield expr if ins . skip_blank_read_if ( ( b',' , ) ) : if ins . skip_blank_read_if ( ( b'B' , ) ) : shape = b'BF' if ins . skip_blank_read_if ( ( b'F' , ) ) else b'B' else : shape = None yield shape if ins . skip_blank_read_if ( ( b',' , ) ) : yield self . parse_expression ( ins ) else : # mustn't end on a comma # mode == '' if nothing after previous comma error . throw_if ( not shape , error . STX ) yield None elif not expr : raise error . BASICError ( error . MISSING_OPERAND ) else : yield None yield None else : yield None yield None yield None ins . require_end ( )