right<O> method
Adds a right-associative operator parser
. Evaluates the callback
with
the parsed left
term, operator
, and right
term.
Implementation
void right<O>(
Parser<O> parser, T Function(T left, O operator, T right) callback) =>
_right.add(parser
.map((operator) => ExpressionResultInfix<T, O>(operator, callback)));