1 #ifndef BOOST_METAPARSE_GETTING_STARTED_8_1_HPP 2 #define BOOST_METAPARSE_GETTING_STARTED_8_1_HPP 3 4 // Automatically generated header file 5 6 // Definitions before section 8 7 #include "8.hpp" 8 9 // Definitions of section 8 10 #include <boost/mpl/divides.hpp> 11 12 template <class L, class R> struct eval_binary_op<L, '/', R> : boost::mpl::divides<L, R>::type {}; 13 14 using divides_token = token<lit_c<'/'>>; 15 16 using mult_exp2 = 17 foldl_start_with_parser< 18 sequence<one_of<times_token, divides_token>, int_token>, 19 int_token, 20 boost::mpl::quote2<binary_op> 21 >; 22 23 using exp_parser16 = 24 build_parser< 25 foldl_start_with_parser< 26 sequence<one_of<plus_token, minus_token>, mult_exp2>, 27 mult_exp2, 28 boost::mpl::quote2<binary_op> 29 > 30 >; 31 32 // query: 33 // exp_parser16::apply<BOOST_METAPARSE_STRING("8 / 4")>::type 34 35 #endif 36 37