8.hpp 616 B

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