From aea40f3877e36e95f2a70e3eeb0569fd156e3841 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 5 Jul 2024 07:16:05 +0300 Subject: 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 --- include/cccl.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'include/cccl.h') 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 -#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); -- cgit 1.4.1