diff options
author | c | 2023-11-26 08:03:32 -0500 |
---|---|---|
committer | c | 2023-11-26 08:03:32 -0500 |
commit | b66334d81324a76a76da6578c5b095f3f02696e5 (patch) | |
tree | 61190647b80bccd387bbe75ab84349aa47ffd345 | |
parent | 097a03435f322962d785d5ecd6883901882fd6c2 (diff) |
Added functions with multiple arguments.
-rw-r--r-- | src/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c index af6887e..a6ed3f4 100644 --- a/src/parser.c +++ b/src/parser.c @@ -125,7 +125,8 @@ tree_t* parser_parse_carg(parser_t* parser) { carg = tree_init(TREE_TYPE_CARG); carg->data.carg.val = parser_parse_expr(parser); - carg->data.carg.nxt = NULL; + + carg->data.carg.nxt = (parser_nxt_token_match(parser, TOKEN_LIST_DELIM) && parser_nxt_token(parser) ? parser_parse_carg(parser) : NULL); return carg; } |