summaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-18 14:46:02 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-18 14:46:02 +0330
commit1644f22d76b24ead55fdf7ad48ec7b32323b427b (patch)
tree7d0fae21da2e0a1c7b3088740dcb106d1ab7b1c7 /src/compiler/ast-tree.h
parentbf024f847ff540ced7acf89a59b135f039bb33c1 (diff)
fix variable definition in loops
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index a5af775..43971ab 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -111,6 +111,7 @@ typedef struct AstTreeVariable {
char *name_end;
AstTree *type;
AstTree *value;
+ AstTree *initValue;
bool isConst;
} AstTreeVariable;