summaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 10:58:07 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-08 10:58:07 +0330
commitcb26dd0fc9c1e33be1c32eb85b04434526004e6a (patch)
tree8a467633398b2384216c5ac652a2ff86a2b5d3f3 /src/compiler/ast-tree.h
parentf362a9a64004ba61e326e223d0d28997762afe71 (diff)
add bool
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index 64068d3..9dd2a6a 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -14,11 +14,13 @@ typedef enum AstTreeToken {
AST_TREE_TOKEN_TYPE_FUNCTION,
AST_TREE_TOKEN_TYPE_VOID,
AST_TREE_TOKEN_TYPE_U64,
+ AST_TREE_TOKEN_TYPE_BOOL,
AST_TREE_TOKEN_FUNCTION_CALL,
AST_TREE_TOKEN_VARIABLE,
AST_TREE_TOKEN_VARIABLE_DEFINE,
AST_TREE_TOKEN_VALUE_U64,
+ AST_TREE_TOKEN_VALUE_BOOL,
AST_TREE_TOKEN_OPERATOR_ASSIGN,
AST_TREE_TOKEN_OPERATOR_SUM,
@@ -82,6 +84,8 @@ typedef struct AstTreeFunctionCall {
typedef uint64_t AstTreeU64;
+typedef bool AstTreeBool;
+
typedef AstTree AstTreeSingleChild;
typedef struct AstTreeInfix {