Module eval

Source
Expand description

Contains the functions used to evaluate an AST.

Enums§

CalcValue
Values that can be returned when a statement is evaluated.

Functions§

eval_atom
Evaluate an atom in ctx. If atom is a number, return that number. If atom is a symbol, return the value bound to the symbol. If the symbol is not bound in ctx, return CalcError::NameNotFound.
eval_expr
Evaluate an expression in ctx.
eval_stmt
Evaluate a statement in ctx.