summary refs log tree commit diff
path: root/cccl.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-03-25 02:01:10 +0300
committerNakidai <nakidai@disroot.org>2025-03-25 02:01:10 +0300
commit98a243bf9ab1a3e8bd2de56d7b16302f303f323a (patch)
tree86f9fd5125b0677b9964f9f66d540358285be374 /cccl.c
parente8703c985af8cbe2de5eb235c7ec295ce1811c7f (diff)
download3cl-98a243bf9ab1a3e8bd2de56d7b16302f303f323a.tar.gz
3cl-98a243bf9ab1a3e8bd2de56d7b16302f303f323a.zip
Add almost done executor
Diffstat (limited to 'cccl.c')
-rw-r--r--cccl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cccl.c b/cccl.c
index eedea7c..64da3b1 100644
--- a/cccl.c
+++ b/cccl.c
@@ -11,5 +11,9 @@ void cccl(struct cccl_File file)
     size_t tokens_amount = cccl_tokenize(file.buffer, file.size, tokens, TOKENS_LIMIT);
     if (verbose)
         fprintf(stderr, "Read: %lu\n", tokens_amount);
+
     struct cccl_Node *parsed = cccl_parse(tokens, tokens_amount, 0, 0);
+
+    struct cccl_Variables scope;
+    cccl_execute(parsed, &scope);
 }