(self, ins)
Parse access mode for OPEN.
Parse access mode for OPEN.
Parse access mode for OPEN .
def _parse_read_write(self, ins):
        """Parse access mode for OPEN."""
        d = ins.skip_blank_read_if((tk.READ, tk.WRITE))
        if d == tk.WRITE:
            return b'W'
        elif d == tk.READ:
            return b'RW' if ins.skip_blank_read_if((tk.WRITE,)) else b'R'
        raise error.BASICError(error.STX)
def _parse_read_write ( self , ins ) : d = ins . skip_blank_read_if ( ( tk . READ , tk . WRITE ) ) if d == tk . WRITE : return b'W' elif d == tk . READ : return b'RW' if ins . skip_blank_read_if ( ( tk . WRITE , ) ) else b'R' raise error . BASICError ( error . STX )