Initially was working on vargs but we need a new algorithm to match lambda call arguments

This commit is contained in:
Krzosa Karol
2022-06-20 16:23:35 +02:00
parent 9700742515
commit 9f7d51ff02
3 changed files with 11 additions and 3 deletions

View File

@@ -347,6 +347,7 @@ ast_expr_binary(Ast_Expr *left, Ast_Expr *right, Token *op){
function Ast_Call *
ast_call(Token *pos, Ast_Expr *name, Array<Ast_Call_Item *> exprs){
// name here specifies also typespec for compound expressions !
AST_NEW(Call, CALL, pos, AST_EXPR);
result->name = name;
result->exprs = exprs.tight_copy(pctx->perm);