...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::repeat_parser
// In header: <boost/parser/parser_fwd.hpp> template<typename Parser, typename DelimiterParser = unspecified, typename MinType = int64_t, typename MaxType = int64_t> struct repeat_parser { };
Repeats the application of another parser p
of type Parser
, optionally applying another parser d
of type DelimiterParser
in between each pair of applications of p
. The parse succeeds if p
succeeds at least the minumum number of times, and d
succeeds each time it is applied. The attribute produced is a sequence of the type of attribute produced by Parser
.