5_2.hpp 563 B

123456789101112131415161718192021222324
  1. #ifndef BOOST_METAPARSE_GETTING_STARTED_5_2_HPP
  2. #define BOOST_METAPARSE_GETTING_STARTED_5_2_HPP
  3. // Automatically generated header file
  4. // Definitions before section 5.1
  5. #include "5_1.hpp"
  6. // Definitions of section 5.1
  7. #include <boost/metaparse/any.hpp>
  8. using exp_parser7 =
  9. build_parser<
  10. sequence<
  11. int_token, /* The first <number> */
  12. repeated<sequence<plus_token, int_token>> /* The "+ <number>" elements */
  13. >
  14. >;
  15. // query:
  16. // exp_parser7::apply<BOOST_METAPARSE_STRING("1 + 2 + 3 + 4")>::type
  17. #endif