Sign in
gem5
/
arm
/
gem5
/
refs/tags/m5_2.0_beta3
/
.
/
ext
/
ply
/
test
/
lex_error1.py
blob: ed798034650884a5b081c424094ea3b5eba5af4c [
file
] [
log
] [
blame
]
# lex_token.py
#
# Missing t_error() rule
import
lex
tokens
=
[
"PLUS"
,
"MINUS"
,
"NUMBER"
,
]
t_PLUS
=
r
'\+'
t_MINUS
=
r
'-'
t_NUMBER
=
r
'\d+'
import
sys
sys
.
tracebacklimit
=
0
lex
.
lex
()