Issue #2499: par_fold over a @frame rule that takes a type parameter

Open and answer this issue on GitHub.

ready, json · opened 2026-11-21 · updated 2026-11-22 · 0 comments

Part of #1019

What it is

par_fold over a generic @frame rule: a grammar rule that takes a type parameter (ADR-grammar-2 D1, built in 06e4e6356) can be the framed rule of a parallel fold (ADR-grammar-2 D7, now in ADR-grammar-typed-read-v1 and ADR-grammar-parallel-v1). This is the part of step 8 of #1019 left open: the @stream entries of that step are built (cc9bc440f, dce60d9a3, under #1440).

To build

  1. par_fold over a @frame rule that takes a type parameter, emitted once per type argument like other generic rules. Test: a .nika in tests/compiler/tests/ folding lines framed by @frame(boundary: "\n") through a rule instantiated at one type, its .stdout showing the folded result.

Done when

A grammar with a generic @frame rule folded by par_fold builds and prints the right fold in the test above; that commit says Fixes #N.

Split from #1019 by Claude Code

Back to Open Issues