tests for parser and virtualmachine now work! Running test.moo is now able to successfully call built-in functions --HG-- branch : mung
11 lines
226 B
Python
11 lines
226 B
Python
# Dead Simple Database
|
|
|
|
class DSDB_Database(Database):
|
|
def __init__(self, dbname):
|
|
self.dbname = dbname
|
|
self.fn = "%s.dsdb" % (dbname,)
|
|
self.load_from_file()
|
|
|
|
def load_from_file(self):
|
|
fd = open(self.fn, 'rb')
|
|
fd
|