Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template perm_parser

boost::parser::perm_parser

Synopsis

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

template<typename ParserTuple, typename DelimiterParser> 
struct perm_parser {

  // public member functions
  ();
  (, );
  template<typename Iter, typename Sentinel, typename Context, 
           typename SkipParser> 
     (, , , , 
              , ) ;
  template<typename Iter, typename Sentinel, typename Context, 
           typename SkipParser, typename Attribute> 
     (, , , , 
              , , ) ;
  template<typename Iter, typename Sentinel, typename Context, 
           typename SkipParser,  Ts,  Is> 
     (, , , , 
                   , , , 
                   ) ;

  // public data members
   parsers_;
   delimiter_parser_;
};

Description

Applies each parsers in ParserTuple, an any order, stopping after all of them have matched the input. The parse succeeds iff all the parsers match, regardless of the order in which they do. The attribute produced is a parser::tuple containing the attributes of the subparsers, in their order of the parsers' appearance in ParserTuple, not the order of the parsers' matches. It is an error to specialize perm_parser with a ParserTuple template parameter that includes an eps_parser.

perm_parser public member functions

  1. ( parsers);
  2. ( parsers,  delimiter_parser);
  3. template<typename Iter, typename Sentinel, typename Context, 
             typename SkipParser> 
       ( first_,  last,  context, 
                 skip,  flags,  success) ;
  4. template<typename Iter, typename Sentinel, typename Context, 
             typename SkipParser, typename Attribute> 
       ( first_,  last,  context, 
                 skip,  flags,  success, 
                 retval) ;
  5. template<typename Iter, typename Sentinel, typename Context, 
             typename SkipParser,  Ts,  Is> 
       ( first,  last,  context, 
                      skip,  flags,  success, 
                      retval, 
                     ) ;

PrevUpHomeNext