prog8/tinyvm/main.py
Irmen de Jong ed8267b1ec tinyvm
2018-02-25 16:43:00 +01:00

14 lines
235 B
Python

import sys
from .parse import Parser
from .core import Program
from .vm import VM
source = open(sys.argv[1]).read()
parser = Parser(source)
program = parser.parse()
timerprogram = Program([])
vm = VM(program, timerprogram)
vm.run()