(self, ins)
Parse LOCK or UNLOCK syntax.
Parse LOCK or UNLOCK syntax.
Parse LOCK or UNLOCK syntax .
def _parse_lock_unlock(self, ins):
        """Parse LOCK or UNLOCK syntax."""
        ins.skip_blank_read_if((b'#',))
        yield self.parse_expression(ins)
        if not ins.skip_blank_read_if((b',',)):
            ins.require_end()
            yield None
            yield None
        else:
            expr = self.parse_expression(ins, allow_empty=True)
            yield expr
            if ins.skip_blank_read_if((tk.TO,)):
                yield self.parse_expression(ins)
            elif expr is not None:
                yield None
            else:
                raise error.BASICError(error.MISSING_OPERAND)
def _parse_lock_unlock ( self , ins ) : ins . skip_blank_read_if ( ( b'#' , ) ) yield self . parse_expression ( ins ) if not ins . skip_blank_read_if ( ( b',' , ) ) : ins . require_end ( ) yield None yield None else : expr = self . parse_expression ( ins , allow_empty = True ) yield expr if ins . skip_blank_read_if ( ( tk . TO , ) ) : yield self . parse_expression ( ins ) elif expr is not None : yield None else : raise error . BASICError ( error . MISSING_OPERAND )