Avoid creating number type reference in interpreter.

This commit is contained in:
2018-05-06 19:01:47 -07:00
parent 1e215ecfa5
commit 3b0908125d
3 changed files with 16 additions and 28 deletions

View File

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