Use reference counted table in libab.

This commit is contained in:
2018-04-24 11:32:57 -07:00
parent cea057aaa6
commit a86938b574
8 changed files with 63 additions and 52 deletions

View File

@@ -6,14 +6,14 @@
#include "tree.h"
struct libab_interpreter_s {
libab_table* base_table;
libab_ref base_table;
libab_number_impl* impl;
};
typedef struct libab_interpreter_s libab_interpreter;
void libab_interpreter_init(libab_interpreter* intr,
libab_table* table, libab_number_impl* impl);
libab_ref* table, libab_number_impl* impl);
libab_result libab_interpreter_run(libab_interpreter* intr,
libab_tree* tree, libab_ref* into);
void libab_interpreter_free(libab_interpreter* intr);