diff --git a/pyrop/pyrop.py b/pyrop/pyrop.py new file mode 100644 index 0000000..63a8b1f --- /dev/null +++ b/pyrop/pyrop.py @@ -0,0 +1,17 @@ +import sys +from ast import * +from builder_base import * +from base_modules import * + +cmdargs = sys.argv +if len(cmdargs) != 3: + print("Usage: pyRop.py input_file output_file") + +builder = BasicBuilder.create('Test', IncludeModule, AreaModule, LabelModule, PopModule) +builder.build(cmdargs[1]) + +os.makedirs(os.path.dirname(os.path.abspath(cmdargs[2])), exist_ok=True) +output_file = open(cmdargs[2], 'wb') +output_file.write(bytes(builder.chain)) +output_file.close() +