|
@@ -138,9 +138,10 @@ var __SyntaxDefinition = [...] string {
|
|
|
"union_item_def_const = @const union_const_def+,! ",
|
|
|
"union_const_def = docs name",
|
|
|
"union_item_use_type = type",
|
|
|
- "decl_op = docs public @operator op_kind name! sig! body!",
|
|
|
+ "decl_op = docs public @operator infix variadic name! sig! body!",
|
|
|
"public? = @public",
|
|
|
- "op_kind? = @infix | @variadic",
|
|
|
+ "infix? = @infix",
|
|
|
+ "variadic? = @variadic",
|
|
|
"sig = type_params inputs! implicit output!",
|
|
|
"inputs = record_def",
|
|
|
"implicit? = inputs",
|
|
@@ -172,9 +173,9 @@ var __SyntaxDefinition = [...] string {
|
|
|
"pipe_cast = . cast",
|
|
|
"pipe_get = . name",
|
|
|
"pipe_interior = . ( ref_base! )!",
|
|
|
- "term = infix | lambda | if | when | block | ref_term " +
|
|
|
+ "term = infix_term | lambda | if | when | block | ref_term " +
|
|
|
"| char | int | float | string ",
|
|
|
- "infix = ( infix_left operator! infix_right! )!",
|
|
|
+ "infix_term = ( infix_left operator! infix_right! )!",
|
|
|
"infix_left = expr",
|
|
|
"operator = ref",
|
|
|
"infix_right = expr",
|