diff options
| author | Nakidai <nakidai@disroot.org> | 2025-03-25 02:01:10 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-03-25 02:01:10 +0300 |
| commit | 98a243bf9ab1a3e8bd2de56d7b16302f303f323a (patch) | |
| tree | 86f9fd5125b0677b9964f9f66d540358285be374 /cccl.c | |
| parent | e8703c985af8cbe2de5eb235c7ec295ce1811c7f (diff) | |
| download | 3cl-98a243bf9ab1a3e8bd2de56d7b16302f303f323a.tar.gz 3cl-98a243bf9ab1a3e8bd2de56d7b16302f303f323a.zip | |
Add almost done executor
Diffstat (limited to 'cccl.c')
| -rw-r--r-- | cccl.c | 4 |
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); } |