blob: ed798034650884a5b081c424094ea3b5eba5af4c [file] [log] [blame]
# lex_token.py
#
# Missing t_error() rule
import lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
t_PLUS = r'\+'
t_MINUS = r'-'
t_NUMBER = r'\d+'
import sys
sys.tracebacklimit = 0
lex.lex()