summaryrefslogtreecommitdiffstats
path: root/chall/ply-2.2/test/lex_empty.py
diff options
context:
space:
mode:
Diffstat (limited to 'chall/ply-2.2/test/lex_empty.py')
-rw-r--r--chall/ply-2.2/test/lex_empty.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/chall/ply-2.2/test/lex_empty.py b/chall/ply-2.2/test/lex_empty.py
new file mode 100644
index 0000000..96625f7
--- /dev/null
+++ b/chall/ply-2.2/test/lex_empty.py
@@ -0,0 +1,20 @@
+# lex_token.py
+#
+# No rules defined
+
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
+
+tokens = [
+ "PLUS",
+ "MINUS",
+ "NUMBER",
+ ]
+
+sys.tracebacklimit = 0
+
+lex.lex()
+
+