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