Expand description
Evaluator for the Calculator DSL
This module executes the AST against a mutable environment.
Functions§
- eval_
expr - Recursively evaluate an expression inside
env. - run_
program - Execute a list of assignments. The environment is mutated in‑place and also returned for convenience.
Type Aliases§
- Env
- Environment mapping variable names to integer values.