Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template delimited_seq_parser

boost::parser::delimited_seq_parser

Synopsis

// In header: <boost/parser/parser_fwd.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