1# lex_
error2.py
2#
3# t_error defined, but not function
45import sys
6if ".." not in sys.path: sys.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"
21222324lex.lex()
2526