Add scope modes instead of a flag.

This commit is contained in:
2018-06-17 01:25:41 -07:00
parent 763cfdd7a3
commit 88ec979ba5
3 changed files with 27 additions and 12 deletions

View File

@@ -394,7 +394,7 @@ libab_result libab_run(libab* ab, const char* string, libab_ref* value) {
if (result == LIBAB_SUCCESS) {
libab_ref_free(value);
result = libab_interpreter_run(&ab->intr, root, value);
result = libab_interpreter_run(&ab->intr, root, SCOPE_NORMAL, value);
libab_tree_free_recursive(root);
}