diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-03-11 16:33:24 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-03-11 16:33:24 -0700 |
commit | a9292a98cc6c65e2a4ad6da20937ef7568a4143d (patch) | |
tree | f921866c475208359285ff3f606c0fafa1812a32 /parse.py | |
parent | 35fa21e59ad44de3ac5d075a3c1ae60d462a1a13 (diff) |
earlpy
Diffstat (limited to 'parse.py')
-rw-r--r-- | parse.py | 6 |
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()) |