(self, ins)
Parse SCREEN syntax.
Parse SCREEN syntax.
Parse SCREEN syntax .
def _parse_screen(self, ins):
        """Parse SCREEN syntax."""
        # erase can only be set on pcjr/tandy 5-argument syntax
        # all but last arguments are optional and may be followed by a comma
        argcount = 0
        while True:
            last = self.parse_expression(ins, allow_empty=True)
            yield last
            argcount += 1
            if not ins.skip_blank_read_if((b',',)):
                break
        if last is None:
            if self._syntax == 'tandy' and argcount == 1:
                raise error.BASICError(error.IFC)
            raise error.BASICError(error.MISSING_OPERAND)
        for _ in range(argcount, 5):
            yield None
        ins.require_end()
def _parse_screen ( self , ins ) : # erase can only be set on pcjr/tandy 5-argument syntax # all but last arguments are optional and may be followed by a comma argcount = 0 while True : last = self . parse_expression ( ins , allow_empty = True ) yield last argcount += 1 if not ins . skip_blank_read_if ( ( b',' , ) ) : break if last is None : if self . _syntax == 'tandy' and argcount == 1 : raise error . BASICError ( error . IFC ) raise error . BASICError ( error . MISSING_OPERAND ) for _ in range ( argcount , 5 ) : yield None ins . require_end ( )