1# lex_token.py 2# 3# Missing t_error() rule 4 5import lex 6 7tokens = [ 8 "PLUS", 9 "MINUS", 10 "NUMBER", 11 ] 12 13t_PLUS = r'\+' 14t_MINUS = r'-' 15t_NUMBER = r'\d+' 16 17import sys 18sys.tracebacklimit = 0 19 20lex.lex() 21 22 23