This overload adds a side effect to a Matcher without changing it's result.
Use action if there is nothing to wrap and you need a non-consuming parser instead.
A matcher.
A function to produce a side effect (logging, etc).
A Result object after running the base parser.
Data object (tokens and options).
Parser position in the tokens array (before the first parser matched).
Add a side effect to a parser without changing it's result.
A parser.
This overload adds a side effect to a Matcher without changing it's result.
Use action if there is nothing to wrap and you need a non-consuming parser instead.