From deeb6aa4aa60e22190087a9615447e742c84a19c Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Thu, 16 Feb 2023 19:24:20 -0800 Subject: added scoping and a lot of memory leaks --- src/eval.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/eval.h') diff --git a/src/eval.h b/src/eval.h index b91c621..fe1450b 100644 --- a/src/eval.h +++ b/src/eval.h @@ -1,9 +1,8 @@ #include "parse.h" #ifndef EVAL #define EVAL -void init_eval(void); -void throw(char* error, int symbolLocale); -void exec_all(sym_t** symbols, int count); -sym_t* eval(sym_t* symbol); -sym_t* try_eval_internal(sym_t* symbol); +void throw_e(char* error, int symbolLocale); +sym_t* eval(sym_t* symbol, hashtable_t* parentScope); +void exec_all(sym_t** symbols, int count, hashtable_t* symbolScope); +sym_t* try_eval_internal(sym_t* symbol, hashtable_t* symbolScope); #endif -- cgit v1.3.1