You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
273 B
11 lines
273 B
execfile('monty.sol')
|
|
t = tokenizer.new(io.open('/tmp/monty', io.MODE_READ))
|
|
ttg = ttreegen.new(t)
|
|
p = parser.new(ttg)
|
|
c = converter.new(p)
|
|
stmt = c:run()
|
|
print('Resulting statement:')
|
|
ast.print(stmt)
|
|
print('---Running results begin here---')
|
|
stmt()
|
|
io.stdin:read(io.LINE)
|