Given: rule cmp_expression { | <str_const> <cmp_op> <identifier> | <num_const> <cmp_op> <identifier> | ... }
What is a good, concise way to express that all the alternatives are commutative? I imagine that generally this is a useless question, which is avoided by: rule cmp_expression { <value_expression> <cmp_op> <value_expression> } but here many tokens under value_expression exist but are not well defined, nor known by me. rir