(self, ins)
Parse COLOR syntax.
Parse COLOR syntax.
Parse COLOR syntax .
def _parse_color(self, ins):
        """Parse COLOR syntax."""
        last = self.parse_expression(ins, allow_empty=True)
        yield last
        if ins.skip_blank_read_if((b',',)):
            # unlike LOCATE, ending in any number of commas is a Missing Operand
            while True:
                last = self.parse_expression(ins, allow_empty=True)
                yield last
                if not ins.skip_blank_read_if((b',',)):
                    break
            if last is None:
                raise error.BASICError(error.MISSING_OPERAND)
        elif last is None:
            raise error.BASICError(error.IFC)
def _parse_color ( self , ins ) : last = self . parse_expression ( ins , allow_empty = True ) yield last if ins . skip_blank_read_if ( ( b',' , ) ) : # unlike LOCATE, ending in any number of commas is a Missing Operand while True : last = self . parse_expression ( ins , allow_empty = True ) yield last if not ins . skip_blank_read_if ( ( b',' , ) ) : break if last is None : raise error . BASICError ( error . MISSING_OPERAND ) elif last is None : raise error . BASICError ( error . IFC )