diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-30 15:26:15 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-30 15:26:15 +0330 |
commit | a2a6bb49368e922af28b9a54669b9f7fe5b2e6a0 (patch) | |
tree | 9cb347b996d5473a60ed961b62104789a72aa88a /src/compiler/ast-tree.h | |
parent | ca529dddbedc0264b8952ee410e8b1e5f6c5a195 (diff) |
better unary operator
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index a2ca29b..8d63667 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -249,11 +249,6 @@ typedef struct AstTreeObject { typedef AstTree AstTreeSingleChild; -typedef struct AstTreeUnary { - AstTree *operand; - AstTreeVariable *function; -} AstTreeUnary; - typedef struct AstTreePureInfix { AstTree *left; AstTree *right; @@ -474,10 +469,8 @@ bool setTypesFunctionCall(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesVariable(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunctionCall *functionCall); bool setTypesOperatorAssign(AstTree *tree, AstTreeSetTypesHelper helper); -bool setTypesOperatorInfix(AstTree *tree, AstTreeSetTypesHelper helper, +bool setTypesOperatorGeneral(AstTree *tree, AstTreeSetTypesHelper helper, const char *str, size_t str_size); -bool setTypesOperatorUnary(AstTree *tree, AstTreeSetTypesHelper helper, - const char *funcStr, size_t funcStr_size); bool setTypesOperatorPointer(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesOperatorAddress(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesOperatorDereference(AstTree *tree, AstTreeSetTypesHelper helper); |