From e46e08fceff29622399855043554635d6e33c3c4 Mon Sep 17 00:00:00 2001 From: thing 1 Date: Fri, 10 Jan 2025 17:38:56 +0000 Subject: init commit --- eval.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 eval.h (limited to 'eval.h') diff --git a/eval.h b/eval.h new file mode 100644 index 0000000..fa6523a --- /dev/null +++ b/eval.h @@ -0,0 +1,18 @@ +typedef struct luckyvar luckyvar; + +typedef struct luckyvar { + luckyval *val; + char *name; +} luckyvar; + + +int argcount(luckyval *tree); +bool checkargcount(luckytree *tree, int i); +void argcounterror(luckytree *tree, int expected); +luckyval *eval(luckytree *tree); + +extern luckyvar *variables[10000]; +extern int varcount; + +extern luckytree *functions[10000]; +extern int funccount; -- cgit v1.2.3