findPath method
Returns the shortest path from source that satisfies the given
predicate, if any.
Implementation
ParserPath? findPath(
Parser source,
bool Function(ParserPath path) predicate,
) {
assert(parsers.contains(source), 'source is not part of the analyzer');
return breadthFirstSearch(source, predicate);
}