1# lex_
token.py
2#
3# t_error defined, but not function
45import sys
6sys.path.insert(0,"..")
78import ply.lex as lex
910tokens = [
11 "PLUS",
12 "MINUS",
13 "NUMBER",
14 ]
1516t_PLUS = r'\+'
17t_MINUS = r'-'
18t_NUMBER = r'\d+'
1920t_error = "foo"
2122sys.tracebacklimit = 02324lex.lex()
2526