Sign in
gem5
/
amd
/
gem5
/
78fb2c1a5d5e422bf14f134d677a83e3022238f1
/
.
/
ext
/
ply
/
test
/
lex_module.py
blob: 8bdd3ed47c663b70bdebfed4d17b40255cf41e4d [
file
] [
log
] [
blame
]
# lex_module.py
#
import
sys
if
".."
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
".."
)
import
ply
.
lex
as
lex
import
lex_module_import
lex
.
lex
(
module
=
lex_module_import
)
lex
.
runmain
(
data
=
"3+4"
)