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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user