Create standard library proof of concept
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import sys
|
||||
|
||||
from smnp.error.base import SmnpException
|
||||
from smnp.library.loader import loadStandardLibrary
|
||||
from smnp.program.interpreter import Interpreter
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
|
||||
Interpreter.interpretFile(sys.argv[1], printAst=True)
|
||||
stdLibraryEnv = loadStandardLibrary()
|
||||
Interpreter.interpretFile(sys.argv[1], printAst=True, baseEnvironment=stdLibraryEnv)
|
||||
|
||||
except SmnpException as e:
|
||||
print(e.message())
|
||||
|
||||
Reference in New Issue
Block a user