def t_INT(t): r"""(?<![\.eE]|\d)(?:0(?:\w))(?:(?:[ \t]*[0-9a-zA-Z])+)(?![ \t]*\.|\d|\w)""" t.value = liblex.hINT(t.value) return t
def t_INT2(t): r"""(?<![\.eE]|\d)(?:(?:[ \t]*[0-9])+)(?![ \t]*\.|\d|\w)""" t.value = liblex.hINT(t.value) t.type = "INT" return t