Function calc_parser::parse_and_evaluate
source · pub fn parse_and_evaluate<E, I>(
token_stream: &mut I
) -> Result<E::Item, ParseOrEvalError<E::Error>>where
I: Iterator<Item = Token<E::Item>>,
E: Evaluator,
Expand description
Parses and evaluates the expression defined by token_stream
using the evaluator E
.