Update to ply 2.3
[gem5.git] / ext / ply / test / lex_token1.py
1 # lex_token.py
2 #
3 # Tests for absence of tokens variable
4
5 import sys
6 sys.path.insert(0,"..")
7
8 import ply.lex as lex
9
10 t_PLUS = r'\+'
11 t_MINUS = r'-'
12 t_NUMBER = r'\d+'
13
14 def t_error(t):
15 pass
16
17 sys.tracebacklimit = 0
18
19 lex.lex()
20
21