1# lex_
re1.py
2#
3# Bad regular expression in a string
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+'
1920def t_error(t):
21 pass
22232425lex.lex()
2627