summaryrefslogtreecommitdiff
path: root/src/eval.h
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-16 19:24:20 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-16 19:24:20 -0800
commitdeeb6aa4aa60e22190087a9615447e742c84a19c (patch)
tree11d8ae0e6c684ed5a14657a0fb048a28d45be945 /src/eval.h
parent7410d984ae270528ea4f3f16d3473acf807ef92c (diff)
added scoping and a lot of memory leaks
Diffstat (limited to 'src/eval.h')
-rw-r--r--src/eval.h9
1 files changed, 4 insertions, 5 deletions
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