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