Boost C++ Libraries Home Libraries People FAQ More

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