Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template repeat_parser

boost::parser::repeat_parser

Synopsis

// In header: <boost/parser/parser_fwd.hpp>

template<typename Parser, typename DelimiterParser = unspecified, 
         typename MinType = int64_t, typename MaxType = int64_t> 
struct repeat_parser {
};

Description

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.


PrevUpHomeNext