Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Expr, ExprError>
Expand description

Parses a condition expression, or reports why it is not well-formed.

The MAX_EXPRESSION_LEN-character cap is enforced first, so an over-long input is rejected before any lexing. On success the returned Expr is guaranteed to evaluate totally against any JSON value.

ยงErrors

Returns an ExprError whose message names the problem (and, where known, the character position) when the input exceeds the length cap or does not match the grammar.