summaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-07 20:47:10 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-07 20:47:10 +0330
commitc2939352858f8471fb69ae629948a259552231bc (patch)
tree6f5ebe0fccb5c407ceac8aecc21f589c4b992110 /src/compiler/ast-tree.h
parentec346278c8f5155d7c044a26415cd4489d71a0af (diff)
add comptime global
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index d4bf807..3692ead 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -109,8 +109,14 @@ typedef struct AstTreeVariables {
size_t size;
} AstTreeVariables;
+typedef struct AstTrees {
+ AstTree **data;
+ size_t size;
+} AstTrees;
+
typedef struct AstTreeRoot {
AstTreeVariables variables;
+ AstTrees trees;
} AstTreeRoot;
typedef struct AstTreeScope {
@@ -277,7 +283,7 @@ bool isFunction(AstTree *value);
bool isConst(AstTree *tree);
bool isConstByValue(AstTree *tree);
AstTree *makeTypeOf(AstTree *value);
-bool typeIsEqual(AstTree *type0,AstTree *type1);
+bool typeIsEqual(AstTree *type0, AstTree *type1);
bool typeIsEqualBack(const AstTree *type0, const AstTree *type1);
AstTree *getValue(AstTree *tree);