Skip to main content

Module environment

Module environment 

Source
Expand description

Variable scoping and environment management.

The Environment maintains a stack of scopes, where each scope is a HashMap mapping variable names to their [Variable] (value + mutability). New scopes are pushed on function calls and block entries, and popped on exit.

Structsยง

Environment
Scoped variable environment using a stack of hash maps.