MCPcopy Create free account
hub / github.com/chc4/lineiform / parse_expr

Function parse_expr

src/parser.rs:295–300  ·  view source on GitHub ↗

We tie them all together again, making a top-level expression parser!

(i: &'a str)

Source from the content-addressed store, hash-verified

293/// We tie them all together again, making a top-level expression parser!
294
295pub 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}

Callers 1

compile_exprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected