From cb26dd0fc9c1e33be1c32eb85b04434526004e6a Mon Sep 17 00:00:00 2001 From: A404M Date: Sat, 8 Feb 2025 10:58:07 +0330 Subject: add bool --- src/compiler/ast-tree.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/ast-tree.h') 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 { -- cgit v1.2.3