pub fn evaluate( statement: Statement, env: &mut Environment, ) -> Result<f64, String>
Evaluates a statement and returns its result.
statement
env
The result of the evaluation, or an error if evaluation fails.