JSON-Lang/main.py

16 lines
289 B
Python
Raw Normal View History

2023-03-08 13:35:21 +00:00
from emis_funky_funktions import *
from genir import json_to_ir
2023-03-08 16:50:03 +00:00
from silly_thing import repl, repl_expr
2023-03-08 13:35:21 +00:00
import json, sys
2023-03-08 16:50:03 +00:00
def main():
match sys.argv:
case [_, file]:
repl_expr(json_to_ir(json.loads(open(sys.argv[1]).read())))
case _:
repl()
if __name__ == '__main__':
main()