Files
smnp-py/smnp/main.py
Bartłomiej Pluta b91cc46d44 Move 'mic' module
2019-07-09 22:04:07 +02:00

17 lines
324 B
Python

import sys
from smnp.error.base import SmnpException
from smnp.program.interpreter import Interpreter
def main():
try:
Interpreter.interpretFile(sys.argv[1], printAst=True)
except SmnpException as e:
print(e.message())
except KeyboardInterrupt:
print("Program interrupted")