Refactor Binder to use new scope structure

This commit refactors the Binder implementation to better align with the
updated scope structure.
Key changes include:

- Introducing `ExprContext` to distinguish between statement and
  expression contexts.
- Modifying `define_variable` to handle both global and local scope
  definitions more robustly.
- Updating `resolve_variable` to correctly handle upvalue captures,
  especially for global addresses.
- Adjusting `bind` and related functions to use the new `ExprContext`.
- Updating the refactoring log to reflect completed phases.
This commit is contained in:
Michael Schimmel
2026-03-10 17:20:47 +01:00
parent 3b063dc2c9
commit a78e72d074
2 changed files with 803 additions and 759 deletions
+787 -750
View File
File diff suppressed because it is too large Load Diff