...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::parser::seq_parser
// In header: <boost/parser/parser_fwd.hpp> template<typename ParserTuple, typename BacktrackingTuple, typename CombiningGroups> struct seq_parser { };
Applies each parser in ParserTuple
, in order. The parse succeeds iff all of the sub-parsers succeed. The attribute produced is a std::tuple
over the types of attribute produced by the parsers in ParserTuple
. The BacktrackingTuple template parameter is a parser::tuple
of std::bool_constant
values. The i
th such value indicates whether backtracking is allowed if the i
th parser fails.