cli: parse nested source types with explicit continuations

This commit is contained in:
dev committed 2026-10-10 12:41:41 +03:00
1 parent 35635603f9
commit cef944d30e
4 files changed
+244 -38

No files matched your search

+6
View File
@@ -446,3 +446,9 @@ Both new copy cases also pass with collection before every instruction; their sh
The [Q-059 property increment](../design/air-type-depth-audit.md#cache-free-nominal-property-queries) repairs all nine reproduced recursive uncached nominal queries. Public queries explicitly receive a compiler allocator and propagate OutOfMemory; temporary preparation uses the existing fixed points, while cached/terminal reads allocate nothing. Ownership, concurrency, verifier acceptance, runtime accounting and diagnostic facts remain unchanged. Deep queries, 18,432 independent-oracle comparisons, allocation cleanup and public generic-argument acceptance/rejection tests pass.
Units/format checks, test-extended and the 1,791-case property-engine conformance snapshot pass. All 370 AIR and 1,421 source CLI checks, plus 506 accepted lowerings, retain exact old/new outputs. Final full conformance after the public helper correction passes all 1,791 cases with exact corpus coverage. The earlier full ReleaseSafe per-step suite also remains in progress. No normative/bundle/feature/code change or depth limit is introduced; Q-059's closing audit, Q-060's closing validation and Phase 6/contract gates remain open. No fresh Claude review was available.
## Source type-syntax parser (2026-10-10)
The [Q-059 source parser increment](../design/air-type-depth-audit.md#source-type-syntax-parser) replaces recursive type/argument parsing with explicit array and argument-list frames, preserving static function arguments, sibling order, split angle positions, syntax failures and slice repair candidates. Unit tests inspect deep mixed types and static arguments and fail parser metadata allocations. The old 16,384-array source crashes in parsing; the new parser allows formatting, while full checking confirms the next failure in `usesGenerics`. A deep invalid slice annotation now returns its original E7001 candidate instead of crashing. The existing generic guard is not imposed on monomorphic syntax.
Units/format checks and all 1,791 conformance cases pass with exact corpus coverage. Hosted grammar/advice suites pass 288/299 checks; formatter integration passes 6,072 checks over 1,467 public files. All 1,421 source checks and 506 accepted lowerings preserve exact old/new outputs, as do 156 targeted syntax/argument/error probes; deep formatting is idempotent. No normative/bundle/feature/code change or new acceptance limit is introduced. Q-059's source AST/closing audit, Q-060's closing validation and Phase 6/contract gates remain open. No fresh Claude review was available.