1# lex_token1.py 2# 3# Tests for absence of tokens variable 4 5import sys 6if ".." not in sys.path: sys.path.insert(0,"..") 7 8import ply.lex as lex 9 10t_PLUS = r'\+' 11t_MINUS = r'-' 12t_NUMBER = r'\d+' 13 14def t_error(t): 15 pass 16 17lex.lex() 18 19 20