mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added new style named arguments.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user