return hex(reg.value)
-def convert_to_pure_python(pcode):
+def convert_to_pure_python(pcode, helper=False):
- gsc = GardenSnakeCompiler(form=None, incl_carry=False)
+ gsc = GardenSnakeCompiler(form=None, incl_carry=False, helper=helper)
tree = gsc.compile(pcode, mode="exec", filename="string")
tree = ast.fix_missing_locations(tree)
return astor.to_source(tree)
-def convert_to_python(pcode, form, incl_carry):
+def convert_to_python(pcode, form, incl_carry, helper=False):
print("form", form)
- gsc = GardenSnakeCompiler(form=form, incl_carry=incl_carry)
+ gsc = GardenSnakeCompiler(form=form, incl_carry=incl_carry, helper=helper)
tree = gsc.compile(pcode, mode="exec", filename="string")
tree = ast.fix_missing_locations(tree)