• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_METAPARSE_GETTING_STARTED_6_2_HPP
2 #define BOOST_METAPARSE_GETTING_STARTED_6_2_HPP
3 
4 // Automatically generated header file
5 
6 // Definitions before section 6.1
7 #include "6_1.hpp"
8 
9 // Definitions of section 6.1
10 using minus_token = token<lit_c<'-'>>;
11 
12 #include <boost/metaparse/one_of.hpp>
13 
14 using exp_parser12 =
15  build_parser<
16    foldl_start_with_parser<
17      sequence<one_of<plus_token, minus_token>, int_token>,
18      int_token,
19      boost::mpl::quote2<sum_items>
20    >
21  >;
22 
23 // query:
24 //    exp_parser12::apply<BOOST_METAPARSE_STRING("1 + 2 - 3")>::type
25 
26 #endif
27 
28