You can currently use a parser to match the entire input, or some prefix of the input. You cannot find just the first occurrance of a match, or all matches, of a parser p to the input, if those matches are not all right at the beginning.
We could have search() to find a single match, search_all() to find all of them (find_match()/find_matches() is probably better). We could also have split() to generate a range of subranges delimited by matches of p. search_all()/find_matches() and split() would produce views of course.
We could also have some kind of transforming parse, that produces a view of attributes.
You can currently use a parser to match the entire input, or some prefix of the input. You cannot find just the first occurrance of a match, or all matches, of a parser
p
to the input, if those matches are not all right at the beginning.We could have
search()
to find a single match,search_all()
to find all of them (find_match()
/find_matches()
is probably better). We could also havesplit()
to generate a range of subranges delimited by matches ofp
.search_all()
/find_matches()
andsplit()
would produce views of course.We could also have some kind of transforming parse, that produces a view of attributes.