1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-29 14:47:42 +00:00

More work on compiler. Start defining more dynamic

module system than originally planned.
This commit is contained in:
Calvin Rose
2017-05-06 12:41:24 -04:00
parent d47ee18b1a
commit 6adc2a5268
3 changed files with 30 additions and 7 deletions

View File

@@ -42,6 +42,7 @@ int debug_compile_and_run(Gst *vm, GstValue ast, GstValue last) {
gst_compiler_usemodule(&c, "std.parse");
gst_compiler_usemodule(&c, "std.compile");
gst_compiler_global(&c, "_", last);
gst_compiler_globals(&c, gst_wrap_table(vm->registry));
func = gst_wrap_function(gst_compiler_compile(&c, ast));
/* Check for compilation errors */
if (c.error) {