(t)
return t
r'0x[0-9A-Fa-f]+
r'0x[0-9A-Fa-f]+
r 0x [ 0 - 9A - Fa - f ] +
def t_HEXCONSTANT(t):
    r'0x[0-9A-Fa-f]+'
    t.value = int(t.value, 16)
    t.type = 'INTCONSTANT'
    return t
def t_HEXCONSTANT ( t ) : t . value = int ( t . value , 16 ) t . type = 'INTCONSTANT' return t