1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-05 01:53:01 +00:00

Add var and def. Make them behave the same

but have different implementations in top
level scope in order to enable incremental compilation and repl.
This commit is contained in:
Calvin Rose
2017-06-25 16:36:20 -04:00
parent c3d65cb91d
commit 29a39c47b0
8 changed files with 371 additions and 105 deletions

View File

@@ -481,6 +481,7 @@ void gst_init(Gst *vm) {
/* Set up global env */
vm->modules = gst_table(vm, 10);
vm->registry = gst_table(vm, 10);
vm->env = gst_table(vm, 10);
}
/* Clear all memory associated with the VM */