parse_expression

Function parse_expression 

Source
pub fn parse_expression(
    tokens: &mut Peekable<Iter<'_, Token>>,
) -> Result<Option<Expression>, ParseError>
Expand description

Parse an expression – the second stage of the parser.

An expression is parsed which is a series of comparisons separated by and or or operators, and each comparisons are parsed.

§Panics

§Errors

Returns an error if the expression is invalid.