1 #ifndef BOOST_METAPARSE_GETTING_STARTED_8_HPP 2 #define BOOST_METAPARSE_GETTING_STARTED_8_HPP 3 4 // Automatically generated header file 5 6 // Definitions before section 7.2 7 #include "7_2.hpp" 8 9 // Definitions of section 7.2 10 using mult_exp1 = foldl_start_with_parser<sequence<times_token, int_token>, int_token, boost::mpl::quote2<binary_op>>; 11 12 using exp_parser15 = 13 build_parser< 14 foldl_start_with_parser< 15 sequence<one_of<plus_token, minus_token>, mult_exp1>, 16 mult_exp1, 17 boost::mpl::quote2<binary_op> 18 > 19 >; 20 21 // query: 22 // exp_parser15::apply<BOOST_METAPARSE_STRING("1 + 2 * 3")>::type 23 24 #endif 25 26