def t_REAL(self, t):
r'(([0-9]+|([0-9]+)?\.[0-9]+|[0-9]+\.)[eE][+-]?[0-9]+)|(([0-9]+)?\.[0-9]+|[0-9]+\.)'
t.value = Number(t.value)
# tad nasty, see mkfloat.py to see how this is derived from python spec
return t
评论列表
文章目录