Sign in
gem5
/
arm
/
gem5
/
refs/tags/m5_2.0_beta3
/
.
/
ext
/
ply
/
test
/
lex_token1.py
blob: e8eca2b63901d731883c8bb9f5945c45fbfb454d [
file
] [
log
] [
blame
]
# lex_token.py
#
# Tests for absence of tokens variable
import
lex
t_PLUS
=
r
'\+'
t_MINUS
=
r
'-'
t_NUMBER
=
r
'\d+'
def
t_error
(
t
):
pass
import
sys
sys
.
tracebacklimit
=
0
lex
.
lex
()