@@ -233,6 +233,9 @@ proto token scope_declarator is endsym<nofun> {*}
233
233
token category :package_declarator { <sym > }
234
234
proto token package_declarator is endsym <keyspace > {* }
235
235
236
+ token category :combinator_declarator { <sym > }
237
+ proto token combinator_declarator is endsym <keyspace > {* }
238
+
236
239
token category :multi_declarator { <sym > }
237
240
proto token multi_declarator is endsym <keyspace > {* }
238
241
@@ -1572,12 +1575,6 @@ grammar P6 is STD {
1572
1575
}
1573
1576
rule statement_control :default { <sym > <block > }
1574
1577
1575
- rule term :winner { <sym > <xblock > }
1576
- rule term :combine { <sym > <xblock > }
1577
- rule statement_control :more { <sym > <xblock > }
1578
- rule statement_control :done { <sym > <xblock > }
1579
- rule statement_control :wait { <sym > <xblock > }
1580
-
1581
1578
token statement_prefix :BEGIN { :my % * MYSTERY ; <sym > <blast > <.explain_mystery > }
1582
1579
token statement_prefix :CHECK { <sym > <blast > }
1583
1580
token statement_prefix :FINAL { <sym > <blast > }
@@ -1864,9 +1861,17 @@ grammar P6 is STD {
1864
1861
| <routine_declarator >
1865
1862
| <regex_declarator >
1866
1863
| <type_declarator >
1864
+ | <combinator_declarator >
1867
1865
]
1868
1866
}
1869
1867
1868
+ rule combinator_declarator :winner { <sym > <xblock > }
1869
+ rule combinator_declarator :combine { <sym > <xblock > }
1870
+ rule combinator_declarator :more { <sym > <xblock > }
1871
+ rule combinator_declarator :done { <sym > <xblock > }
1872
+ rule combinator_declarator :catch { <sym > <xblock > }
1873
+ rule combinator_declarator :wait { <sym > <xblock > }
1874
+
1870
1875
rule multi_declarator :multi {
1871
1876
:my $ * MULTINESS = 'multi' ;
1872
1877
<sym > [ <declarator > || <routine_def (' multi' )> || <.panic : 'Malformed multi' > ]
0 commit comments