Added new style named arguments.

This commit is contained in:
Christoffer Lerno
2024-08-27 22:31:22 +02:00
parent e795745e43
commit ed5d338a39
42 changed files with 405 additions and 304 deletions

View File

@@ -443,11 +443,19 @@ param_path
| param_path param_path_element
;
arg_name
: IDENT
| CT_TYPE_IDENT
| HASH_IDENT
| CT_IDENT
;
arg
: param_path '=' expr
| param_path
| type
| param_path '=' type
| param_path
| arg_name ':' expr
| arg_name ':' type
| type
| expr
| CT_VASPLAT '[' range_expr ']'
| ELLIPSIS expr