summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code/execution/exec.c
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2024-07-02 11:51:10 +0100
committerthing1 <thing1@seacrossedlovers.xyz>2024-07-02 11:51:10 +0100
commit478eed4ef9ece1b86b2fed7bfe57d62180b12c92 (patch)
treeb541dda71f7f3deb5d94ece604b86fa18a1527e9 /comp/lucas-standen-NEA/code/execution/exec.c
parentd933ce70bd2c497e4af26483abafebfce436986e (diff)
started type system
Diffstat (limited to 'comp/lucas-standen-NEA/code/execution/exec.c')
-rw-r--r--comp/lucas-standen-NEA/code/execution/exec.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/comp/lucas-standen-NEA/code/execution/exec.c b/comp/lucas-standen-NEA/code/execution/exec.c
index fb85d3f..adb6f25 100644
--- a/comp/lucas-standen-NEA/code/execution/exec.c
+++ b/comp/lucas-standen-NEA/code/execution/exec.c
@@ -8,15 +8,9 @@
#include "../tokenizer/tokenizer.h"
int main(){
- char *sample = "(write (* 2 5))";
+ char *sample = "(exit (+ 1 1))";
ast_node *root = tokenize(sample);
doCall(root);
- sample = "(write \n)";
- root = tokenize(sample);
- doCall(root);
- sample = "(exit 0)";
- root = tokenize(sample);
- doCall(root);
CheckedFreeALL();