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