from emis_funky_funktions import * from genir import json_to_ir from types_ import BUILTINS_CONTEXT from silly_thing import repl, repl_expr import json, sys def main(): match sys.argv: case [_, file]: # TODO handle this expr, ty, substs = unwrap_r(json_to_ir(json.loads(open(sys.argv[1]).read()), BUILTINS_CONTEXT)) repl_expr(expr) case _: repl() if __name__ == '__main__': main()