before_4_1.qbk 677 B

1234567891011121314151617181920212223242526
  1. [#before_4_1]
  2. ['Definitions before section 4.1.]
  3. #include <boost/metaparse/string.hpp>
  4. #include <boost/metaparse/int_.hpp>
  5. #include <boost/metaparse/build_parser.hpp>
  6. using namespace boost::metaparse;
  7. using exp_parser1 = build_parser<int_>;
  8. #include <boost/metaparse/entire_input.hpp>
  9. using exp_parser2 = build_parser<entire_input<int_>>;
  10. #include <boost/metaparse/token.hpp>
  11. using exp_parser3 = build_parser<entire_input<token<int_>>>;
  12. #include <boost/metaparse/lit_c.hpp>
  13. #include <boost/metaparse/sequence.hpp>
  14. using exp_parser4 = build_parser<sequence<token<int_>, token<lit_c<'+'>>, token<int_>>>;
  15. #include <metashell/formatter.hpp>