@@ -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 right_op bin_concat_op
5
+ add_op mult_op unary_op two_op regex_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
@@ -54,13 +54,14 @@ Left 140 or_op.
54
54
Left 150 and_op .
55
55
Left 160 comp_expr_op .
56
56
Left 170 in_op .
57
- Right 180 right_op .
58
- Left 190 range_op .
59
- Left 200 three_op .
60
- Left 210 add_op .
61
- Left 220 mult_op .
62
- Right 230 bin_concat_op .
63
- Right 240 two_op .
57
+ Right 180 regex_op .
58
+ Right 190 right_op .
59
+ Left 200 range_op .
60
+ Left 210 three_op .
61
+ Left 220 add_op .
62
+ Left 230 mult_op .
63
+ Right 240 bin_concat_op .
64
+ Right 250 two_op .
64
65
Nonassoc 300 unary_op .
65
66
Left 310 dot_call_op .
66
67
Left 310 dot_op .
@@ -103,6 +104,7 @@ op_expr -> match_op expr : { '$1', '$2' }.
103
104
op_expr -> add_op expr : { '$1' , '$2' }.
104
105
op_expr -> mult_op expr : { '$1' , '$2' }.
105
106
op_expr -> two_op expr : { '$1' , '$2' }.
107
+ op_expr -> regex_op expr : { '$1' , '$2' }.
106
108
op_expr -> right_op expr : { '$1' , '$2' }.
107
109
op_expr -> andand_op expr : { '$1' , '$2' }.
108
110
op_expr -> three_op expr : { '$1' , '$2' }.
@@ -124,6 +126,7 @@ matched_op_expr -> match_op matched_expr : { '$1', '$2' }.
124
126
matched_op_expr -> add_op matched_expr : { '$1' , '$2' }.
125
127
matched_op_expr -> mult_op matched_expr : { '$1' , '$2' }.
126
128
matched_op_expr -> two_op matched_expr : { '$1' , '$2' }.
129
+ matched_op_expr -> regex_op matched_expr : { '$1' , '$2' }.
127
130
matched_op_expr -> right_op matched_expr : { '$1' , '$2' }.
128
131
matched_op_expr -> andand_op matched_expr : { '$1' , '$2' }.
129
132
matched_op_expr -> three_op matched_expr : { '$1' , '$2' }.
@@ -272,8 +275,9 @@ two_op -> '--' eol : '$1'.
272
275
two_op -> '**' : '$1' .
273
276
two_op -> '**' eol : '$1' .
274
277
275
- right_op -> '=~' : '$1' .
276
- right_op -> '=~' eol : '$1' .
278
+ regex_op -> '=~' : '$1' .
279
+ regex_op -> '=~' eol : '$1' .
280
+
277
281
right_op -> '|>' : '$1' .
278
282
right_op -> '|>' eol : '$1' .
279
283
0 commit comments