cli: parse nested expression contexts iteratively

This commit is contained in:
dev committed 2026-10-10 22:13:08 +03:00
1 parent 371329f3f0
commit bda43d2ecb
5 files changed
+1107 -221

No files matched your search

+23
View File
@@ -613,3 +613,26 @@ No normative/bundle/feature/code/acceptance-limit or runtime/ownership rule
changes. Parenthesized and mixed-call parsing failures, remaining expression/
statement walks, Q-060 validation and Phase 6 exit gates remain open. This
increment has no external review yet.
## Source shared expression parsing (2026-10-10)
The [Q-061 parser increment](../design/source-expression-depth-audit.md#shared-expression-parser-continuations)
shares explicit precedence/cast/unary/postfix/primary continuations with groups,
call arguments, arrays, indices and struct fields. Grammar, spans, token/error
order and call/advice scopes are preserved. Reused work storage and stable
driver frames support native callback re-entry without retaining AST pointers
into scratch; host OOM remains separate from source diagnostics. No normative/
bundle/feature/code/acceptance-limit or ownership/runtime rule changes.
Independent shallow comparisons (4,160), 32,768 mixed levels with exact spans
and leaf E7001 advice, poisoned scratch/re-entry and recovering/persistent OOM
tests pass. Build/units/format checks, all 1,793 ordinary conformance cases with exact
coverage and 737/312/234 depth/grammar/independent-error CLI checks pass. The
formatter passes 6,078 checks; frozen old/new public checks/lowerings remain
exact (1,423/506). Grouped source checks reach 65,536; mixed-call formatting reaches
65,536. Block/if regression probes preserve accepted baseline output, including
256 levels; explicit-return forms improve from baseline aborts to formatting
at 256. These are bounded probes, not a whole-parser depth guarantee. Full
mixed-call checking now confirms a lowerer `call` abort at 1,024; control/block
parsing, remaining expression/statement/liveness walks, Q-060 validation and
Phase 6 exit gates remain open. No external review covers this increment yet.