aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-23 01:25:15 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-23 01:25:15 +0330
commit948ab739464733f4e7690488db8a3491f0e3b5e2 (patch)
tree33b29534401a2de9da02bd4909e1a01031a99a41 /src/compiler/ast-tree.h
parent0b85ea4a7b64ed583aaf0e323252c5f792c042a2 (diff)
added native values instead of ast ones
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index 6bd9973..7bf9811 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -73,6 +73,8 @@ typedef enum AstTreeToken {
AST_TREE_TOKEN_VALUE_FLOAT,
AST_TREE_TOKEN_VALUE_BOOL,
AST_TREE_TOKEN_VALUE_OBJECT,
+ AST_TREE_TOKEN_RAW_VALUE,
+ AST_TREE_TOKEN_RAW_VALUE_NOT_OWNED,
AST_TREE_TOKEN_SHAPE_SHIFTER_ELEMENT,
@@ -305,6 +307,9 @@ typedef struct AstTreeLoopControl {
u32 count;
} AstTreeLoopControl;
+typedef struct AstTreeRawValue {
+} AstTreeRawValue;
+
#ifdef PRINT_COMPILE_TREE
void astTreePrint(const AstTree *tree, int indent);
void astTreeVariablePrint(const AstTreeVariable *variable, int indent);
@@ -400,6 +405,7 @@ bool typeIsEqual(AstTree *type0, AstTree *type1);
bool typeIsEqualBack(const AstTree *type0, const AstTree *type1);
AstTree *getValue(AstTree *tree, bool copy);
bool isIntType(AstTree *type);
+bool isFloatType(AstTree *type);
bool isEqual(AstTree *left, AstTree *right);
bool isEqualVariable(AstTreeVariable *left, AstTreeVariable *right);