diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-29 22:03:17 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-29 22:03:17 +0330 |
commit | 3a4fa4b89280046885dc044ce4f9761f5eeaa9e1 (patch) | |
tree | 4fe36236a33349c034e44f455c1dca90703c5842 /src/compiler/ast-tree.h | |
parent | e6e44774556bf6172c1577268cf9f013a4157ae2 (diff) |
add a lot of builtins
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index b454217..e410bc7 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -12,6 +12,18 @@ typedef enum AstTreeToken { AST_TREE_TOKEN_BUILTIN_IS_COMPTIME, AST_TREE_TOKEN_BUILTIN_STACK_ALLOC, AST_TREE_TOKEN_BUILTIN_HEAP_ALLOC, + AST_TREE_TOKEN_BUILTIN_NEG, + AST_TREE_TOKEN_BUILTIN_ADD, + AST_TREE_TOKEN_BUILTIN_SUB, + AST_TREE_TOKEN_BUILTIN_MUL, + AST_TREE_TOKEN_BUILTIN_DIV, + AST_TREE_TOKEN_BUILTIN_MOD, + AST_TREE_TOKEN_BUILTIN_EQUAL, + AST_TREE_TOKEN_BUILTIN_NOT_EQUAL, + AST_TREE_TOKEN_BUILTIN_GREATER, + AST_TREE_TOKEN_BUILTIN_SMALLER, + AST_TREE_TOKEN_BUILTIN_GREATER_OR_EQUAL, + AST_TREE_TOKEN_BUILTIN_SMALLER_OR_EQUAL, AST_TREE_TOKEN_KEYWORD_PUTC, AST_TREE_TOKEN_KEYWORD_RETURN, @@ -411,6 +423,10 @@ bool setTypesBuiltinStackAlloc(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); bool setTypesBuiltinHeapAlloc(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); +bool setTypesBuiltinUnary(AstTree *tree, AstTreeSetTypesHelper helper, + AstTreeFunctionCall *functionCall); +bool setTypesBuiltinBinary(AstTree *tree, AstTreeSetTypesHelper helper, + AstTreeFunctionCall *functionCall); bool setTypesTypeArray(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesArrayAccess(AstTree *tree, AstTreeSetTypesHelper helper); |