Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template prefix_parse

boost::parser::prefix_parse

Synopsis

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


template<parsable_iter I, std::sentinel_for< I > S, typename Parser, 
         typename GlobalState, 
         error_handler< I, S, GlobalState > ErrorHandler, typename SkipParser, 
         typename Attr> 
  bool prefix_parse(I & first, S last, 
                    parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
                    parser_interface< SkipParser > const & skip, Attr & attr, 
                    trace trace_mode = trace::off);

Description

Parses [first, last) using parser, skipping all input recognized by skip between the application of any two parsers, and returns whether the parse was 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.


PrevUpHomeNext