✗
Failing This test is currently failing.
Failed: backend-exec
Error Details
output_emitted.zig:86:9: error: local variable '__koru_sp_n' shadows local variable from outer scope
Failure Output
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission)
Error: output_emitted.zig:86:9: error: local variable '__koru_sp_n' shadows local variable from outer scope
var __koru_sp_n: usize = 0;
^~~~~~~~~~~
output_emitted.zig:78:9: note: previous declaration here
var __koru_sp_n: usize = 0;
^~~~~~~~~~~ Code
// PINS: a split nested under another split's piece arm — the deserializer's
// natural shape (split the dump into records, split each record into fields).
// Both invocations are the same proc tor; the inner body is inlined into the
// outer's piece arm, and the labels the emitter mints for the two proc bodies
// must be distinct in that nesting. 690_190's flat one-separator format is the
// detour every hand-rolled parser takes around this shape.
import std/io
import std/string
std/string:split(s: "a b;c d", sep: ";")
! piece line |> std/string:split(s: line, sep: " ")
! piece tok |> std/io:print.ln("tok {{ tok:s }}")
| done _ |> _
| done _ |> _
Expected output
tok a
tok b
tok c
tok d
Flows
flow ~split click a branch to expand · @labels scroll to their anchor
split (s: "a b;c d", sep: ";")
Test Configuration
MUST_RUN