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())