Skip to main content

eval

Function eval 

Source
pub fn eval(
    expr: &Expr,
    invocation: &mut Invocation<'_>,
    memory: &mut Memory,
    program: &Program,
) -> Result<Value, Error>
Expand description

Evaluate an expression for one invocation.

§Errors

Returns Error::Interp on operand type errors, malformed atomic or call expressions, unimplemented variants, or float operands.