From 69310fa04d9370841c7b4f30c7278fb138b7b2e2 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 20 Mar 2025 17:47:28 +0330 Subject: added named paramters --- src/compiler/ast-tree.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/compiler/ast-tree.h') 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; -- cgit v1.2.3