Create standard library proof of concept

This commit is contained in:
Bartłomiej Pluta
2019-07-10 13:23:40 +02:00
parent 83ea3aaf0f
commit 739610c663
6 changed files with 24 additions and 11 deletions

9
smnp/library/loader.py Normal file
View 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)