(self, ins)
Parse WIDTH syntax.
Parse WIDTH syntax.
Parse WIDTH syntax .
def _parse_width(self, ins):
        """Parse WIDTH syntax."""
        d = ins.skip_blank_read_if((b'#', tk.LPRINT))
        if d:
            if d == b'#':
                yield self.parse_expression(ins)
                ins.require_read((b',',))
            else:
                yield tk.LPRINT
            yield self.parse_expression(ins)
        else:
            yield None
            if ins.peek() in set(iterchar(DIGITS)) | set(tk.NUMBER):
                expr = self.expression_parser.read_number_literal(ins)
            else:
                expr = self.parse_expression(ins)
            yield expr
            if isinstance(expr, values.String):
                ins.require_read((b',',))
                yield self.parse_expression(ins)
            elif not ins.skip_blank_read_if((b',',)):
                yield None
                ins.require_end(error.IFC)
            else:
                # parse dummy number rows setting
                yield self.parse_expression(ins, allow_empty=True)
                # trailing comma is accepted
                ins.skip_blank_read_if((b',',))
        ins.require_end()
def _parse_width ( self , ins ) : d = ins . skip_blank_read_if ( ( b'#' , tk . LPRINT ) ) if d : if d == b'#' : yield self . parse_expression ( ins ) ins . require_read ( ( b',' , ) ) else : yield tk . LPRINT yield self . parse_expression ( ins ) else : yield None if ins . peek ( ) in set ( iterchar ( DIGITS ) ) | set ( tk . NUMBER ) : expr = self . expression_parser . read_number_literal ( ins ) else : expr = self . parse_expression ( ins ) yield expr if isinstance ( expr , values . String ) : ins . require_read ( ( b',' , ) ) yield self . parse_expression ( ins ) elif not ins . skip_blank_read_if ( ( b',' , ) ) : yield None ins . require_end ( error . IFC ) else : # parse dummy number rows setting yield self . parse_expression ( ins , allow_empty = True ) # trailing comma is accepted ins . skip_blank_read_if ( ( b',' , ) ) ins . require_end ( )