You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extends astdump.rss from a function-only core to full declaration-level coverage:
- struct/class/resource: opaque, generic params + bounds (managed/struct/resource/
protocol), derives(...), handle/weak fields, field defaults, drop bodies.
- sum: variants with fields.
- const, type-alias (with generics), module, use (glob + `as` alias).
- functions now emit generic params too.
Driver dispatch mirrors the reference parse_program order. protocols/impls/
native-modules are skipped (they dump in a separate program section, not source
order, so streaming can't place them — SH-025).
Corpus reach: 58 -> 121 / 563 byte-exact, still 0 run-failures. Floor ratcheted to
121. Six curated samples/ast/* (functions, control, logic, structs, sums, decls)
byte-exact and gating non-ignored. All 9 non-ignored selfhost tests green.
Risks closed: curated fast gate (ast_parity_samples) mitigates corpus-gate runtime;
the module story is decided (commit to concatenation) in selfhost/AST_FORMAT.md.
Residual grammar tracked as SH-025 in the ledger; plan + format docs updated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments