diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-26 15:14:45 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-26 15:14:45 +0330 |
commit | c85ce38fbb02342d8ef00030d203ab6bcc690f73 (patch) | |
tree | 00974fe5bd6611eafa1b44bd226e7b3b75e99c0d /src/compiler/ast-tree.h | |
parent | 03796c59c8e0d7140c85eeb23dc3341837fe54b4 (diff) |
add @isComptime to determine if code is running in comptime or not
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index aaf614e..39df36d 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -5,9 +5,11 @@ typedef enum AstTreeToken { AST_TREE_TOKEN_FUNCTION, + AST_TREE_TOKEN_BUILTIN_CAST, AST_TREE_TOKEN_BUILTIN_TYPE_OF, AST_TREE_TOKEN_BUILTIN_IMPORT, + AST_TREE_TOKEN_BUILTIN_IS_COMPTIME, AST_TREE_TOKEN_KEYWORD_PUTC, AST_TREE_TOKEN_KEYWORD_RETURN, @@ -382,6 +384,7 @@ bool setTypesBuiltinTypeOf(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); bool setTypesBuiltinImport(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); +bool setTypesBuiltinIsComptime(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesTypeArray(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesArrayAccess(AstTree *tree, AstTreeSetTypesHelper helper); |