gem5/ext/ply/test/lex_module.py

11 lines
185 B
Python
Raw Normal View History

2009-08-16 22:39:58 +02:00
# 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")