示例#1
0
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
示例#2
0
def t_INT2(t):
    r"""(?<![\.eE]|\d)(?:(?:[ \t]*[0-9])+)(?![ \t]*\.|\d|\w)"""

    t.value = liblex.hINT(t.value)
    t.type = "INT"
    return t