getting_started_34.qbk 434 B

1234567
  1. [#getting_started_34]
  2. using paren_exp3 = middle_of<lparen_token, plus_exp2, rparen_token>;
  3. using primary_exp2 = one_of<int_token, paren_exp2>;
  4. using unary_exp2 = foldr_start_with_parser< minus_token, primary_exp2, boost::mpl::lambda<boost::mpl::negate<boost::mpl::_1>>::type >;
  5. using mult_exp5 = foldl_start_with_parser< sequence<one_of<times_token, divides_token>, unary_exp2>, unary_exp2, boost::mpl::quote2<binary_op> >;