1# lex_
error1.py
2#
3# Missing t_error() rule
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+'
19202122lex.lex()
2324