cli: parse control flow with shared continuations

This commit is contained in:
dev committed 2026-10-11 22:18:21 +03:00
1 parent 9534359595
commit b2c551047c
5 files changed
+1442 -345

No files matched your search

+24
View File
@@ -832,3 +832,27 @@ production defect. Documentation scope corrections are recorded in the audit. Th
claimed. Block/if parsing still aborts at 1,024 before/after; other callbacks
and liveness/read/assignment scans, Q-060 full GC validation and Phase 6 exit
review remain open. No normative, feature, bundle or accepted-depth change.
### Shared control parser depth increment
The [shared control parser](../design/source-expression-depth-audit.md#shared-control-parser-continuations)
uses one expression/control driver for block/statement, if/else-if, match/arms,
select, loops, scopes, shield and lock. Grammar, AST/spans, error/repair advice,
statement/tail boundaries and scoped state retain their former behavior; OOM
propagates without diagnostics or public partial AST. Unused entry wrappers and
multi-frame machinery are removed. No semantic/feature/bundle/depth-limit change.
Build/format, frozen public check/lower parity (1,423/506), grammar (312),
formatter (6,078), independent-error (234), repair-advice (299) and 127 new
focused CLI calls pass. Final expanded/follow-up units and all 1,793 ordinary
conformance cases with exact unique coverage pass. Arena backing measurements
are informational, include tokens/AST/work/slack, and do not assert efficiency
or a memory bound; the audit records the large mixed stress peak and separate
hosted RSS measurement. Read-only Claude core/follow-up/final reviews found no
production defect within their scoped inspections; they ran no tests. Parser-only coverage is distinguished from bounded lower/runtime
coverage and from the unrun whole accumulating expression-depth suite.
Full block/if checking at 1,024 now reaches a confirmed lowerer stack failure.
Q-062 logs the independently reproduced existing parenthesized-statement
boundary discrepancy. Q-061 lowering/control/liveness, Q-060 full per-step GC
validation and Phase 6 exit gates remain open.