Add support for evaluating BOOL and introduce basic logical operators as functions
This commit is contained in:
@@ -4,6 +4,8 @@ from smnp.program.interpreter import Interpreter
|
||||
|
||||
|
||||
def loadStandardLibrary():
|
||||
source = resource_string('smnp.library.code', 'main.mus').decode("utf-8")
|
||||
return Interpreter.interpretString(source)
|
||||
mainSource = resource_string('smnp.library.code', 'main.mus').decode("utf-8")
|
||||
boolSource = resource_string('smnp.library.code', 'bool.mus').decode("utf-8")
|
||||
env = Interpreter.interpretString(mainSource)
|
||||
return Interpreter.interpretString(boolSource, baseEnvironment=env)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user