summaryrefslogtreecommitdiff
path: root/examples/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test.py')
-rw-r--r--examples/test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/test.py b/examples/test.py
new file mode 100644
index 0000000..bf8c6d2
--- /dev/null
+++ b/examples/test.py
@@ -0,0 +1,4 @@
+import earlpy
+p = earlpy.Parser("grammars/expression")
+node = p.parse_string("1 + 1 + 2 + 3")
+print(node.pprint())
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback