From a2a6bb49368e922af28b9a54669b9f7fe5b2e6a0 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 30 May 2025 15:26:15 +0330 Subject: better unary operator --- src/compiler/ast-tree.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/compiler/ast-tree.h') 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); -- cgit v1.2.3