pub fn binary_op<I, O, E, P, Q>(
precedence: Q,
assoc: Assoc,
parser: P,
) -> impl FnMut(I) -> IResult<I, Binary<O, Q>, E>Expand description
Runs the inner parser and transforms the result into a binary operator with the given precedence and associativity.
Intended for use with precedence.
ยงArguments
precedenceThe precedence of the operator.assocThe associativity of the operator.parserThe parser to apply.