]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [#getting_started_34] |
2 | ||
3 | using paren_exp3 = middle_of<lparen_token, plus_exp2, rparen_token>; | |
4 | using primary_exp2 = one_of<int_token, paren_exp2>; | |
5 | using unary_exp2 = foldr_start_with_parser< minus_token, primary_exp2, boost::mpl::lambda<boost::mpl::negate<boost::mpl::_1>>::type >; | |
6 | using mult_exp5 = foldl_start_with_parser< sequence<one_of<times_token, divides_token>, unary_exp2>, unary_exp2, boost::mpl::quote2<binary_op> >; | |
7 |