1 #ifndef BOOST_METAPARSE_GETTING_STARTED_5_2_HPP 2 #define BOOST_METAPARSE_GETTING_STARTED_5_2_HPP 3 4 // Automatically generated header file 5 6 // Definitions before section 5.1 7 #include "5_1.hpp" 8 9 // Definitions of section 5.1 10 #include <boost/metaparse/any.hpp> 11 12 using exp_parser7 = 13 build_parser< 14 sequence< 15 int_token, /* The first <number> */ 16 repeated<sequence<plus_token, int_token>> /* The "+ <number>" elements */ 17 > 18 >; 19 20 // query: 21 // exp_parser7::apply<BOOST_METAPARSE_STRING("1 + 2 + 3 + 4")>::type 22 23 #endif 24 25