Create standard library proof of concept
This commit is contained in:
9
smnp/library/loader.py
Normal file
9
smnp/library/loader.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from pkg_resources import resource_string
|
||||
|
||||
from smnp.program.interpreter import Interpreter
|
||||
|
||||
|
||||
def loadStandardLibrary():
|
||||
source = resource_string('smnp.library.code', 'main.mus').decode("utf-8")
|
||||
return Interpreter.interpretString(source)
|
||||
|
||||
Reference in New Issue
Block a user