1 #ifndef BOOST_METAPARSE_GETTING_STARTED_7_HPP
2 #define BOOST_METAPARSE_GETTING_STARTED_7_HPP
4 // Automatically generated header file
6 // Definitions before section 6.2
9 // Definitions of section 6.2
10 #include <boost/mpl/minus.hpp>
12 template <class L, char Op, class R> struct eval_binary_op;
14 template <class L, class R> struct eval_binary_op<L, '+', R> : boost::mpl::plus<L, R>::type {};
16 template <class L, class R> struct eval_binary_op<L, '-', R> : boost::mpl::minus<L, R>::type {};
19 // eval_binary_op<boost::mpl::int_<11>, '+', boost::mpl::int_<2>>::type
22 // eval_binary_op<boost::mpl::int_<13>, '-', boost::mpl::int_<2>>::type
24 template <class S, class Item>
28 boost::mpl::at_c<Item, 0>::type::value,
29 typename boost::mpl::at_c<Item, 1>::type
34 // binary_op<boost::mpl::int_<11>, boost::mpl::vector<boost::mpl::char_<'+'>, boost::mpl::int_<2>>>::type
38 foldl_start_with_parser<
39 sequence<one_of<plus_token, minus_token>, int_token>,
41 boost::mpl::quote2<binary_op>
46 // exp_parser13::apply<BOOST_METAPARSE_STRING("1 + 2 - 3")>::type