Add static variable resolution with scope tracking

- Add distance-based get_at on EnvironmentStack
- Add distance-based assign_at on EnvironmentStack
- Introduce ErrorSink to accumulate diagnostics across passes
- Implement Resolver with a ScopeStack and per-node distance map
- Extend interpreter to store locals distances for runtime lookup
- Add tests for resolution behavior and error accumulation
  Add static variable resolution with scope tracking
This commit is contained in:
Giulio Agostini
2026-06-30 15:05:34 +02:00
parent d40fe2a550
commit 9f15a00b98
8 changed files with 666 additions and 116 deletions
+1
View File
@@ -1,2 +1,3 @@
pub mod scope_stack;
pub mod variable_resolution;
pub mod visit_ast;