template<typename Left, typename Right>
class fcppt::parse::sequence< Left, Right >
Tries two parsers in succession. Produces a tuple of both results if both parsers do not fail.
Let l
and r
be parsers and seq = sequence{l,r}
. First, the skipper is run. Then, seq
tries the parser l
. If it succeeds, then the skipper is run again. After that, seq
also tries r
. If r
also succeeds, then the tuple of both results is returned. Otherwise, the first error is returned.
See fcppt::parse::sequence_result for this parser's result type.