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 delimited_seq_parser

boost::parser::delimited_seq_parser

Synopsis

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

template<typename Parser, typename DelimiterParser> 
struct delimited_seq_parser :
  public boost::parser::repeat_parser< Parser, DelimiterParser >
{

  // public member functions
  delimited_seq_parser(Parser, DelimiterParser);
};

Description

Repeats the application of another parser p of type Parser, [1, Inf) times, applying a parser d of type DelimiterParser in between each pair of applications of p. The parse succeeds iff p succeeds at least once, and d succeeds each time it is applied. The attribute produced is a sequence of the type of attribute produced by Parser.

delimited_seq_parser public member functions

  1. delimited_seq_parser(Parser parser, DelimiterParser delimiter_parser);

PrevUpHomeNext