(input: &str)
| 205 | } |
| 206 | |
| 207 | pub fn parse_paren_expression(input: &str) -> IResult<&str, Expression> { |
| 208 | map( |
| 209 | tuple((char('('), ws(parse_expression), char(')'))), |
| 210 | |(_, expression, _)| expression, |
| 211 | )(input) |
| 212 | } |
| 213 | |
| 214 | pub fn parse_expression(input: &str) -> IResult<&str, Expression> { |
| 215 | parse_binary_expression_or_highier(input, Precedence::Lowest) |