(self, ins, allow_empty=False, err=error.STX)
Parse jump target; returns int, None or '.
Parse jump target; returns int, None or '.
Parse jump target ; returns int None or .
def _parse_jumpnum_or_dot(self, ins, allow_empty=False, err=error.STX):
        """Parse jump target; returns int, None or '.'"""
        c = ins.skip_blank_read()
        if c == tk.T_UINT:
            token = ins.read(2)
            assert len(token) == 2, 'bytecode truncated in line number pointer'
            return struct.unpack('<H', token)[0]
        elif c == b'.':
            return b'.'
        else:
            if allow_empty:
                ins.seek(-len(c), 1)
                return None
            raise error.BASICError(err)
def _parse_jumpnum_or_dot ( self , ins , allow_empty = False , err = error . STX ) : c = ins . skip_blank_read ( ) if c == tk . T_UINT : token = ins . read ( 2 ) assert len ( token ) == 2 , 'bytecode truncated in line number pointer' return struct . unpack ( '<H' , token ) [ 0 ] elif c == b'.' : return b'.' else : if allow_empty : ins . seek ( - len ( c ) , 1 ) return None raise error . BASICError ( err )