Ignore ignores the result of an inner parser, effectively hiding the result. Useful if consumed
input should not be processed further, and simplifies types in combined parsers.
Lazy is a helper for a typical situation where you have an Alternative or a Sequence and
don’t want to construct an expensive parser every time just in order for it to be dropped
without having parsed anything. For example:
Maybe is a combinator returning Option for a parser returning T, meaning it does not stop
parsing if an optional input was not encountered. It is very similar to a Repeat parser with
RepeatSpec::Max(1).
Sequence concatenates parsers and only succeeds if all of them do. T is always a tuple in order
for Sequence to implement the Parser trait. The result is a tuple of all the parser results.
Applies one parser, discards the result, and returns the second parser’s results if the first
one succeeded. To skip the input consumed by several parsers, use a Sequence combinators as
A.