Create simple calc as test draft
This commit is contained in:
10
smnp/main.py
10
smnp/main.py
@@ -1,14 +1,12 @@
|
||||
import sys
|
||||
|
||||
from smnp.calc import draft
|
||||
from smnp.error.base import SmnpException
|
||||
from smnp.library.loader import loadStandardLibrary
|
||||
from smnp.program.interpreter import Interpreter
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
stdLibraryEnv = loadStandardLibrary()
|
||||
Interpreter.interpretFile(sys.argv[1], printTokens=False, printAst=True, execute=False, baseEnvironment=stdLibraryEnv)
|
||||
#stdLibraryEnv = loadStandardLibrary()
|
||||
#Interpreter.interpretFile(sys.argv[1], printTokens=False, printAst=True, execute=False, baseEnvironment=stdLibraryEnv)
|
||||
draft()
|
||||
|
||||
except SmnpException as e:
|
||||
print(e.message())
|
||||
|
||||
Reference in New Issue
Block a user