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 skip_directive

boost::parser::skip_directive

Synopsis

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

template<typename SkipParser = unspecified> 
struct skip_directive {

  // public member functions
  template<typename Parser> 
    constexpr auto operator[](parser_interface< Parser >) const noexcept;
  template<typename SkipParser2> 
    constexpr auto operator()(parser_interface< SkipParser2 >) const noexcept;

  // public data members
  SkipParser skip_parser_;
};

Description

Represents a skip parser as a directive. When used without a skip parser, e.g. skip[parser_in_which_to_do_skipping], the skipper for the entire parse is used. When given another parser, e.g. skip(skip_parser)[parser_in_which_to_do_skipping], that other parser is used as the skipper within the directive.

skip_directive public member functions

  1. template<typename Parser> 
      constexpr auto operator[](parser_interface< Parser > rhs) const noexcept;
  2. template<typename SkipParser2> 
      constexpr auto 
      operator()(parser_interface< SkipParser2 > skip_parser) const noexcept;

    Returns a skip_directive with skip_parser as its skipper.


PrevUpHomeNext