@@ -2,7 +2,7 @@ Nonterminals
2
2
grammar expr_list
3
3
expr paren_expr block_expr fn_expr bracket_expr call_expr bracket_at_expr max_expr
4
4
base_expr matched_expr matched_op_expr unmatched_expr op_expr
5
- add_op mult_op unary_op two_op pipeline_op bin_concat_op
5
+ add_op mult_op unary_op two_op right_op bin_concat_op
6
6
match_op send_op default_op when_op pipe_op in_op inc_op range_op
7
7
andand_op oror_op and_op or_op comp_expr_op colon_colon_op three_op at_op
8
8
open_paren close_paren empty_paren
@@ -30,7 +30,7 @@ Terminals
30
30
'true' 'false' 'nil'
31
31
'=' '+' '-' '*' '/' '++' '--' '**' '//'
32
32
'(' ')' '[' ']' '{' '}' '<<' '>>' '::'
33
- eol ',' '&' '|' '.' '^' '@' '<-' '<>' '->' '|>' '/>' ' =~'
33
+ eol ',' '&' '|' '.' '^' '@' '<-' '<>' '->' '|>' '=~'
34
34
'&&' '||' '!' '...' '..'
35
35
'<<<' '>>>' '&&&' '|||' '^^^' '~~~'
36
36
.
@@ -53,13 +53,13 @@ Left 140 or_op.
53
53
Left 150 and_op .
54
54
Left 160 comp_expr_op .
55
55
Left 170 in_op .
56
- Left 180 range_op .
57
- Left 190 three_op .
58
- Left 200 add_op .
59
- Left 210 mult_op .
60
- Right 220 bin_concat_op .
61
- Right 230 two_op .
62
- Right 290 pipeline_op .
56
+ Right 180 right_op .
57
+ Left 190 range_op .
58
+ Left 200 three_op .
59
+ Left 210 add_op .
60
+ Left 220 mult_op .
61
+ Right 230 bin_concat_op .
62
+ Right 240 two_op .
63
63
Nonassoc 300 unary_op .
64
64
Left 310 dot_call_op .
65
65
Left 310 dot_op .
@@ -102,7 +102,7 @@ op_expr -> match_op expr : { '$1', '$2' }.
102
102
op_expr -> add_op expr : { '$1' , '$2' }.
103
103
op_expr -> mult_op expr : { '$1' , '$2' }.
104
104
op_expr -> two_op expr : { '$1' , '$2' }.
105
- op_expr -> pipeline_op expr : { '$1' , '$2' }.
105
+ op_expr -> right_op expr : { '$1' , '$2' }.
106
106
op_expr -> andand_op expr : { '$1' , '$2' }.
107
107
op_expr -> three_op expr : { '$1' , '$2' }.
108
108
op_expr -> oror_op expr : { '$1' , '$2' }.
@@ -123,7 +123,7 @@ matched_op_expr -> match_op matched_expr : { '$1', '$2' }.
123
123
matched_op_expr -> add_op matched_expr : { '$1' , '$2' }.
124
124
matched_op_expr -> mult_op matched_expr : { '$1' , '$2' }.
125
125
matched_op_expr -> two_op matched_expr : { '$1' , '$2' }.
126
- matched_op_expr -> pipeline_op matched_expr : { '$1' , '$2' }.
126
+ matched_op_expr -> right_op matched_expr : { '$1' , '$2' }.
127
127
matched_op_expr -> andand_op matched_expr : { '$1' , '$2' }.
128
128
matched_op_expr -> three_op matched_expr : { '$1' , '$2' }.
129
129
matched_op_expr -> oror_op matched_expr : { '$1' , '$2' }.
@@ -271,12 +271,10 @@ two_op -> '--' eol : '$1'.
271
271
two_op -> '**' : '$1' .
272
272
two_op -> '**' eol : '$1' .
273
273
274
- pipeline_op -> '=~' : '$1' .
275
- pipeline_op -> '=~' eol : '$1' .
276
- pipeline_op -> '|>' : '$1' .
277
- pipeline_op -> '|>' eol : '$1' .
278
- pipeline_op -> '/>' : '$1' .
279
- pipeline_op -> '/>' eol : '$1' .
274
+ right_op -> '=~' : '$1' .
275
+ right_op -> '=~' eol : '$1' .
276
+ right_op -> '|>' : '$1' .
277
+ right_op -> '|>' eol : '$1' .
280
278
281
279
three_op -> '&&&' : '$1' .
282
280
three_op -> '&&&' eol : '$1' .
0 commit comments