The Sol Programming Language!
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

  1. execfile('monty.sol')
  2. t = tokenizer.new(io.open('/tmp/monty', io.MODE_READ))
  3. ttg = ttreegen.new(t)
  4. p = parser.new(ttg)
  5. c = converter.new(p)
  6. stmt = c:run()
  7. print('Resulting statement:')
  8. ast.print(stmt)
  9. print('---Running results begin here---')
  10. stmt()
  11. io.stdin:read(io.LINE)