diff --git a/src/main.c b/src/main.c index ed56d19..a923dc8 100644 --- a/src/main.c +++ b/src/main.c @@ -89,6 +89,7 @@ static char *readFile(const char* path) { static void runFile(const char* fileName) { char* script = readFile(fileName); CState *state = cosmoV_newState(); + cosmoB_loadlibrary(state); interpret(state, script); diff --git a/test.cosmo b/test.cosmo new file mode 100644 index 0000000..fd9f663 --- /dev/null +++ b/test.cosmo @@ -0,0 +1,7 @@ +var test = {} + +if !test.hello then + test.hello = "hello world!" +end + +print(test.hello .. "!!!!") \ No newline at end of file