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