lex_dup1.py revision 2632:1bb2f91485ea
1# lex_token.py
2#
3# Duplicated rule specifiers
4
5import lex
6
7tokens = [
8    "PLUS",
9    "MINUS",
10    "NUMBER",
11    ]
12
13t_PLUS = r'\+'
14t_MINUS = r'-'
15t_NUMBER = r'\d+'
16
17t_NUMBER = r'\d+'
18
19def t_error(t):
20    pass
21
22import sys
23sys.tracebacklimit = 0
24
25lex.lex()
26
27
28