@pyelias/

CodeJam

Python

No description

fork
loading
Files
  • main.py
  • code.oven
  • examples.oven
  • ovenast.py
  • ovenbaseobjects.py
  • ovenbuiltins.py
  • ovenenv.py
  • ovenexec.py
  • ovenobjects.py
  • ovenparser.py
  • oventokenizer.py
  • util.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from ovenexec import run_code
from ovenenv import Env
from oventokenizer import tokenize as tok

# put code in code.oven

with open("code.oven") as f:
  code = f.read()

#print(tok(code).tokens)

env = Env()
run_code(env, code)