aboutsummaryrefslogtreecommitdiff
path: root/third_party/ply/test/lex_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/ply/test/lex_module.py')
-rw-r--r--third_party/ply/test/lex_module.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/ply/test/lex_module.py b/third_party/ply/test/lex_module.py
new file mode 100644
index 00000000..8bdd3ed4
--- /dev/null
+++ b/third_party/ply/test/lex_module.py
@@ -0,0 +1,10 @@
+# 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")