evaluate_expressions

Function evaluate_expressions 

Source
pub fn evaluate_expressions(expr1: &Expression, expr2: &Expression) -> bool
Expand description

Evaluate two parsed expressions – the first stage of the parser.

Given two expressions of type Expression, evaluate_expressions will return on the basis of the comparison between the two expressions.

This is an implementation of a recursive descent parser

§Panics

Panics if the expression is invalid.