summaryrefslogtreecommitdiff
path: root/parse.py
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-03-11 16:33:24 -0700
committerMatthew Sotoudeh <matthew@masot.net>2024-03-11 16:33:24 -0700
commita9292a98cc6c65e2a4ad6da20937ef7568a4143d (patch)
treef921866c475208359285ff3f606c0fafa1812a32 /parse.py
parent35fa21e59ad44de3ac5d075a3c1ae60d462a1a13 (diff)
earlpy
Diffstat (limited to 'parse.py')
-rw-r--r--parse.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.py b/parse.py
new file mode 100644
index 0000000..190c312
--- /dev/null
+++ b/parse.py
@@ -0,0 +1,6 @@
+import earlpy
+import sys
+
+p = earlpy.Parser(sys.argv[1])
+if len(sys.argv) == 3:
+ print(p.parse_file(sys.argv[2]).pprint())
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback