Expand description
Contains the functions used to evaluate an AST.
Enums§
- Calc
Value - Values that can be returned when a statement is evaluated.
Functions§
- eval_
atom - Evaluate an atom in
ctx
. Ifatom
is a number, return that number. Ifatom
is a symbol, return the value bound to the symbol. If the symbol is not bound inctx
, return CalcError::NameNotFound. - eval_
expr - Evaluate an expression in
ctx
. - eval_
stmt - Evaluate a statement in
ctx
.