gem5/ext/ply/test/lex_module.py
2009-08-16 13:39:58 -07:00

10 lines
185 B
Python

# 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")