We tie them all together again, making a top-level expression parser!
(i: &'a str)
| 293 | /// We tie them all together again, making a top-level expression parser! |
| 294 | |
| 295 | pub fn parse_expr<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { |
| 296 | preceded( |
| 297 | multispace0, |
| 298 | alt((parse_constant, parse_application, parse_if, parse_quote)), |
| 299 | )(i) |
| 300 | } |