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 an older version of Boost and was released in 2025. The current version is 1.90.0.
boost::parser::parse
// In header: <boost/parser/parser.hpp> template<parsable_range R, typename Parser, typename GlobalState, typename ErrorHandler, typename SkipParser, typename Attr> bool parse(R const & r, parser_interface< Parser, GlobalState, ErrorHandler > const & parser, parser_interface< SkipParser > const & skip, Attr & attr, trace trace_mode = trace::off);
Parses r using parser, skipping all input recognized by skip between the application of any two parsers, and returns whether the parse was successful. The entire input range r must be consumed for the parse to be considered successful. On success, attr will be assigned the value of the attribute produced by parser. If trace_mode == trace::on, a verbose trace of the parse will be streamed to std::cout.
Template Parameters: |
|