aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/ast-tree.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 17:47:28 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-20 17:47:28 +0330
commit69310fa04d9370841c7b4f30c7278fb138b7b2e2 (patch)
tree34c153ca254ff9a3687d461a13d84aa35e358235 /src/compiler/ast-tree.h
parent624a73ae10eb3aaa535eb41c023c59919df28c99 (diff)
added named paramters
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r--src/compiler/ast-tree.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h
index 19ff9e9..8fdeb53 100644
--- a/src/compiler/ast-tree.h
+++ b/src/compiler/ast-tree.h
@@ -122,9 +122,15 @@ typedef struct AstTreeTypeFunction {
AstTree *returnType;
} AstTreeTypeFunction;
+typedef struct AstTreeFunctionCallParam {
+ char *nameBegin;
+ char *nameEnd;
+ AstTree *value;
+} AstTreeFunctionCallParam;
+
typedef struct AstTreeFunctionCall {
AstTree *function;
- AstTree **parameters;
+ AstTreeFunctionCallParam *parameters;
size_t parameters_size;
} AstTreeFunctionCall;