1 #ifndef BOOST_METAPARSE_GETTING_STARTED_6_HPP 2 #define BOOST_METAPARSE_GETTING_STARTED_6_HPP 3 4 // Automatically generated header file 5 6 // Definitions before section 5.2.4 7 #include "5_2_4.hpp" 8 9 // Definitions of section 5.2.4 10 #include <boost/metaparse/foldl_start_with_parser.hpp> 11 12 using exp_parser11 = 13 build_parser< 14 foldl_start_with_parser< 15 sequence<plus_token, int_token>, /* apply this parser repeatedly */ 16 int_token, /* use this parser to get the initial value */ 17 boost::mpl::quote2<sum_items> /* use this function to add a new value to the summary */ 18 > 19 >; 20 21 // query: 22 // exp_parser11::apply<BOOST_METAPARSE_STRING("1 + 2 + 3 + 4")>::type 23 24 #endif 25 26