mirror of
https://github.com/irmen/prog8.git
synced 2024-11-04 04:05:00 +00:00
14 lines
235 B
Python
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()
|