From 98a243bf9ab1a3e8bd2de56d7b16302f303f323a Mon Sep 17 00:00:00 2001 From: Nakidai Date: Tue, 25 Mar 2025 02:01:10 +0300 Subject: Add almost done executor --- cccl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cccl.c') 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); } -- cgit 1.4.1