Skip to main content

parse_bool_expr

Function parse_bool_expr 

Source
pub fn parse_bool_expr(
    tokens: &[Token],
    fallback_span: Span,
) -> Result<BoolExpr>
Expand description

Parse a slice of schema tokens into a validated BoolExpr tree.

The token slice should contain only the expression tokens (i.e. without the surrounding @check() scaffolding).

fallback_span is used for error reporting when the slice is empty.