summaryrefslogtreecommitdiff
path: root/examples/test.py
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-02-19 02:25:28 -0800
committerMatthew Sotoudeh <matthew@masot.net>2024-02-19 02:25:28 -0800
commitffc6388571004b17e3a3dee2511ec99076ee803a (patch)
treeba14dfc0fc0b1beae949e12b8853fa690d588d2a /examples/test.py
initial dump
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