Skip to main content

eval

Function eval 

Source
pub fn eval(m: &mut Machine, expr: Word) -> Result<ArithValue, ()>
Expand description

Evaluate expr (a heap word) to an arithmetic value. On Err(()), m.error is already populated with v1-identical message text. The unit error type is intentional: the rich error lives in m.error (the M3 ABI contract), so callers only need to know success vs failure.