1# lex_token.py 2# 3# Tests for tokens of wrong type 4 5import lex 6 7tokens = "PLUS MINUS NUMBER" 8 9t_PLUS = r'\+' 10t_MINUS = r'-' 11t_NUMBER = r'\d+' 12 13def t_error(t): 14 pass 15 16import sys 17sys.tracebacklimit = 0 18 19lex.lex() 20 21 22