wrapper<L, R> method
Defines a new wrapper using left
and right
parsers, that are typically
used for parenthesis. Evaluates the callback
with the parsed left
delimiter, the value
and right
delimiter.
Implementation
void wrapper<L, R>(
Parser<L> left,
Parser<R> right,
T Function(L left, T value, R right) callback,
) => _wrapper.add((left, _loopback, right).toSequenceParser().map3(callback));