Sign in
gem5
/
arm
/
gem5
/
m5_2.0_beta2
/
.
/
ext
/
ply
/
test
/
lex_dup1.py
blob: 88bbe00e92ecbac53aaaae2b6883e6666e2980e7 [
file
] [
log
] [
blame
]
# lex_token.py
#
# Duplicated rule specifiers
import
lex
tokens
=
[
"PLUS"
,
"MINUS"
,
"NUMBER"
,
]
t_PLUS
=
r
'\+'
t_MINUS
=
r
'-'
t_NUMBER
=
r
'\d+'
t_NUMBER
=
r
'\d+'
def
t_error
(
t
):
pass
import
sys
sys
.
tracebacklimit
=
0
lex
.
lex
()