@@ -2,7 +2,7 @@ Nonterminals
22 grammar expr_list
33 expr paren_expr block_expr fn_expr bracket_expr call_expr bracket_at_expr max_expr
44 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
66 match_op send_op default_op when_op pipe_op in_op inc_op range_op
77 andand_op oror_op and_op or_op comp_expr_op colon_colon_op three_op at_op
88 open_paren close_paren empty_paren
@@ -30,7 +30,7 @@ Terminals
3030 'true' 'false' 'nil'
3131 '=' '+' '-' '*' '/' '++' '--' '**' '//'
3232 '(' ')' '[' ']' '{' '}' '<<' '>>' '::'
33- eol ',' '&' '|' '.' '^' '@' '<-' '<>' '->' '|>' '/>' ' =~'
33+ eol ',' '&' '|' '.' '^' '@' '<-' '<>' '->' '|>' '=~'
3434 '&&' '||' '!' '...' '..'
3535 '<<<' '>>>' '&&&' '|||' '^^^' '~~~'
3636 .
@@ -53,13 +53,13 @@ Left 140 or_op.
5353Left 150 and_op .
5454Left 160 comp_expr_op .
5555Left 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 .
6363Nonassoc 300 unary_op .
6464Left 310 dot_call_op .
6565Left 310 dot_op .
@@ -102,7 +102,7 @@ op_expr -> match_op expr : { '$1', '$2' }.
102102op_expr -> add_op expr : { '$1' , '$2' }.
103103op_expr -> mult_op expr : { '$1' , '$2' }.
104104op_expr -> two_op expr : { '$1' , '$2' }.
105- op_expr -> pipeline_op expr : { '$1' , '$2' }.
105+ op_expr -> right_op expr : { '$1' , '$2' }.
106106op_expr -> andand_op expr : { '$1' , '$2' }.
107107op_expr -> three_op expr : { '$1' , '$2' }.
108108op_expr -> oror_op expr : { '$1' , '$2' }.
@@ -123,7 +123,7 @@ matched_op_expr -> match_op matched_expr : { '$1', '$2' }.
123123matched_op_expr -> add_op matched_expr : { '$1' , '$2' }.
124124matched_op_expr -> mult_op matched_expr : { '$1' , '$2' }.
125125matched_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' }.
127127matched_op_expr -> andand_op matched_expr : { '$1' , '$2' }.
128128matched_op_expr -> three_op matched_expr : { '$1' , '$2' }.
129129matched_op_expr -> oror_op matched_expr : { '$1' , '$2' }.
@@ -271,12 +271,10 @@ two_op -> '--' eol : '$1'.
271271two_op -> '**' : '$1' .
272272two_op -> '**' eol : '$1' .
273273
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' .
280278
281279three_op -> '&&&' : '$1' .
282280three_op -> '&&&' eol : '$1' .
0 commit comments