(self, ins)
Parse CLEAR syntax.
Parse CLEAR syntax.
Parse CLEAR syntax .
def _parse_clear(self, ins):
        """Parse CLEAR syntax."""
        # integer expression allowed but ignored
        yield self.parse_expression(ins, allow_empty=True)
        if ins.skip_blank_read_if((b',',)):
            exp1 = self.parse_expression(ins, allow_empty=True)
            yield exp1
            if not ins.skip_blank_read_if((b',',)):
                if not exp1:
                    raise error.BASICError(error.STX)
            else:
                # set aside stack space for GW-BASIC. The default is the previous stack space size.
                exp2 = self.parse_expression(ins, allow_empty=True)
                yield exp2
                if self._syntax in ('pcjr', 'tandy') and ins.skip_blank_read_if((b',',)):
                    # Tandy/PCjr: select video memory size
                    yield self.parse_expression(ins)
                elif not exp2:
                    raise error.BASICError(error.STX)
        ins.require_end()
def _parse_clear ( self , ins ) : # integer expression allowed but ignored yield self . parse_expression ( ins , allow_empty = True ) if ins . skip_blank_read_if ( ( b',' , ) ) : exp1 = self . parse_expression ( ins , allow_empty = True ) yield exp1 if not ins . skip_blank_read_if ( ( b',' , ) ) : if not exp1 : raise error . BASICError ( error . STX ) else : # set aside stack space for GW-BASIC. The default is the previous stack space size. exp2 = self . parse_expression ( ins , allow_empty = True ) yield exp2 if self . _syntax in ( 'pcjr' , 'tandy' ) and ins . skip_blank_read_if ( ( b',' , ) ) : # Tandy/PCjr: select video memory size yield self . parse_expression ( ins ) elif not exp2 : raise error . BASICError ( error . STX ) ins . require_end ( )