Function chumsky::pratt::right

source ·
pub fn right(binding_power: u16) -> Associativity
Available on crate feature pratt only.
Expand description

Specifies a right Associativity with the given binding power.

Right-associative operators are evaluated from the right-most terms, moving leftward. For example, the expression a ^ b ^ c ^ d will be evaluated as a ^ (b ^ (c ^ d)) because exponents are conventionally right-associative.