about summary refs log tree commit diff
path: root/include/cccl.h
diff options
context:
space:
mode:
authorNakidai <plaza521@inbox.ru>2024-07-05 07:16:05 +0300
committerNakidai <plaza521@inbox.ru>2024-07-05 07:19:48 +0300
commitaea40f3877e36e95f2a70e3eeb0569fd156e3841 (patch)
treee6bd202ac4e5499db3b9983fc46e3b880a20f5ff /include/cccl.h
parenta9c159f5f7bf3479c3236735960597b4bc36a204 (diff)
download3cl-aea40f3877e36e95f2a70e3eeb0569fd156e3841.tar.gz
3cl-aea40f3877e36e95f2a70e3eeb0569fd156e3841.zip
Add almost all
Only continue operation and "blocks" of code are left. Now I'm gonna
sleep

And yes, I understand that code need to be refactored, and if I will not
get bored with writing this thing I will rewrite it in a better way, cuz
now code is awful
Diffstat (limited to 'include/cccl.h')
-rw-r--r--include/cccl.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/cccl.h b/include/cccl.h
index 6652453..9e41730 100644
--- a/include/cccl.h
+++ b/include/cccl.h
@@ -5,8 +5,6 @@
 
 #include <stdbool.h>
 
-#include "cvector.h"
-
 
 typedef struct cccl_varpair
 {
@@ -28,15 +26,16 @@ typedef struct cccl_pointer
 
 typedef struct cccl
 {
-    cccl_varpair   *variables;  /* Array with variables      */
-    cccl_procpair  *procedures; /* Array with procedures     */
-    i16            *stack;      /* User stack                */
-    s8             *br_stack;   /* Stack for brackets        */
-    i32            *ep_stack;   /* Call stack                */
-    i32             ep;         /* Pointer to current symbol */
-    s8             *code;       /* Code being executed       */
-    s8             *filename;   /* File being executed       */
-    i32             size;       /* File size                 */
+    cccl_varpair    *variables;  /* Array with variables      */
+    cccl_procpair   *procedures; /* Array with procedures     */
+    i16             *stack;      /* User stack                */
+    s8              *br_stack;   /* Stack for brackets        */
+    cccl_varpair   **lv_stack;   /* Local variable stack      */
+    cccl_pointer    *ep_stack;   /* Call stack                */
+    i32              ep;         /* Pointer to current symbol */
+    s8              *code;       /* Code being executed       */
+    s8              *filename;   /* File being executed       */
+    i32              size;       /* File size                 */
 } cccl;
 
 void cccl_init(s8 *filename);