11_3_1.hpp 902 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef BOOST_METAPARSE_GETTING_STARTED_11_3_1_HPP
  2. #define BOOST_METAPARSE_GETTING_STARTED_11_3_1_HPP
  3. // Automatically generated header file
  4. // Definitions before section 11.3
  5. #include "11_3.hpp"
  6. // Definitions of section 11.3
  7. // query:
  8. // exp_parser20::apply<BOOST_METAPARSE_STRING("(1+2")>::type
  9. // query:
  10. // exp_parser20::apply<BOOST_METAPARSE_STRING("0+(1+2")>::type
  11. #include <boost/metaparse/fail_at_first_char_expected.hpp>
  12. #include <boost/metaparse/first_of.hpp>
  13. struct plus_exp4 :
  14. first_of<
  15. foldl_start_with_parser<
  16. sequence<one_of<plus_token, minus_token>, mult_exp6>,
  17. mult_exp6,
  18. boost::mpl::quote2<binary_op>
  19. >,
  20. fail_at_first_char_expected<
  21. sequence<one_of<plus_token, minus_token>, mult_exp6>
  22. >
  23. > {};
  24. using exp_parser21 = build_parser<plus_exp4>;
  25. // query:
  26. // exp_parser21::apply<BOOST_METAPARSE_STRING("0+(1+2")>::type
  27. #endif