From eeb78f5bdf10232171091e7fcb07860d40aa9ed6 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Wed, 25 Sep 2019 01:29:23 -0400 Subject: [PATCH] Add tojson utility --- CppHeaderParser/tojson.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CppHeaderParser/tojson.py diff --git a/CppHeaderParser/tojson.py b/CppHeaderParser/tojson.py new file mode 100644 index 0000000..e9ea24a --- /dev/null +++ b/CppHeaderParser/tojson.py @@ -0,0 +1,10 @@ +# Utility module + +import sys +import json + +from .CppHeaderParser import CppHeader + +if __name__ == "__main__": + for arg in sys.argv[1:]: + print(CppHeader(arg).toJSON())