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
332 B

  1. execfile('solid.sol')
  2. io.stdout:write('Enter filename to run: ')
  3. __fname = io.stdin:read(io.LINE):sub(0, -1)
  4. __result = try(execfile, __fname)
  5. if __result[0] then
  6. print('Subprogram exited successfully')
  7. else
  8. print('Subprogram terminated with an error: ', __result[1])
  9. __debst = new_debug_state(__result)
  10. postmortem(__debst)
  11. end