def t_HEXA(t):
    """([0-9][0-9a-fA-F]*[hH])|(\\$[0-9a-fA-F]+)|(0x[0-9a-fA-F]+)"""
    if t.value[0] == '$':
        t.value = t.value[1:]
    elif t.value[:2] == '0x':
        t.value = t.value[2:]
    else:
        t.value = t.value[:-1]
    t.value = int(t.value, 16)
    t.type = 'NUMBER'
    return t
