Callback invoked to replace source with target during optimization.
source
target
typedef ReplaceParser<R> = void Function(Parser<R> source, Parser<R> target);