Skip to content

Improve AST usability with stable symbols and automatic binding analysis - #256

Merged
levno-710 merged 6 commits into
masterfrom
refactor/ast-bindings
Nov 2, 2026
Merged

levno-710 merged 6 commits into
masterfrom
refactor/ast-bindings

Conversation

@levno-710

Copy link
Copy Markdown
Member

This is a major AST usability improvement: transformations can construct and move nodes using stable local symbols, without manually maintaining scopes, numeric IDs, or reference counts.

  • Replace scope-based local bindings with LocalSymbol identities and explicit global variable nodes.
  • Derive scopes, references, captures, and visibility from the AST, with validation for invalid bindings.
  • Migrate the parser, unparser, transformation steps, and compilation backends to the new API.
  • Preserve binding identities when building native CFF wrappers and flattening VM interpreters.
  • Add AST API documentation and regression coverage.
  • Remove .github/README.md so GitHub displays the main README.

Breaking change: Custom transformations must use symbol-based constructors; legacy scope-plus-ID signatures and prometheus.scope have been removed.

@levno-710
levno-710 merged commit 8a09945 into master Nov 2, 2026
1 check passed
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