What does bitwise_or
mean in PEG grammar? More accurately, there are lots of bitwise_or
in contexts where it's not even parsing for | yet there are occurrences. Does bitwise_or
serve any other purpose in PEG other than being the | in Python?
Example extracted from Python PEG:-
comparison[expr_ty]:
| a=bitwise_or b=compare_op_bitwise_or_pair+ {
_PyAST_Compare(
a,
CHECK(asdl_int_seq*, _PyPegen_get_cmpops(p, b)),
CHECK(asdl_expr_seq*, _PyPegen_get_exprs(p, b)),
EXTRA) }
| bitwise_or
Note the word bitwise_or
here. The question is about that not the vertical bar in PEG.