Skip to content

Add global imperative variables with heap-aware debugger scopes - #4

Merged
ejgallego merged 6 commits into
mainfrom
codex/global-imperative-vars
Feb 24, 2026
Merged

Add global imperative variables with heap-aware debugger scopes#4
ejgallego merged 6 commits into
mainfrom
codex/global-imperative-vars

Conversation

@ejgallego

Copy link
Copy Markdown
Owner

Summary:

  • extend ImpLab language with top-level global declarations and get/set operations
  • model runtime heap as a persistent map in Context, with runtime errors for undeclared globals
  • expose locals + heap scopes through debugger core, DAP, and widget views
  • update examples and documentation to teach the new global heap model
  • add regression coverage for heap persistence across calls and heap visibility in callee frames

Validation:

  • lake build
  • lake exe dap-tests
  • cd client && npm run compile

Notes:

  • heap scope variables use dedicated references in core (locals odd refs, heap even refs).

@ejgallego
ejgallego force-pushed the codex/global-imperative-vars branch from f77b0ac to 24a53b9 Compare February 24, 2026 23:00
@ejgallego
ejgallego merged commit 86d7ae9 into main Feb 24, 2026
2 checks passed
@ejgallego
ejgallego deleted the codex/global-imperative-vars branch February 24, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant