○
Planned This feature is planned but not yet implemented.
Parked: runtime/interpreter bug family deferred (2026-05-15). Interpreter FieldValue propagation — v.num reads 0 instead of int_val. Unpark with rest of std.runtime / std.interpreter work.
Code
// Test: Interpreter numeric FieldValue in expressions
// Ensures FieldValue.int_val is propagated to expr bindings (no string reparse)
~import std/runtime
~import std/interpreter
~import std/io
const std = @import("std");
// Event producing an integer field
~pub tor produce-int {} -> i32
~proc produce-int|zig {
return 12;
}
// Register scope
~std/runtime:register(scope: "test") {
produce-int
}
const TEST_SOURCE =
\\~produce_int()
\\| value v |> if(v.num > 10)
\\ | then |> gt {}
\\ | else |> lte {}
;
~std/runtime:get_scope(name: "test")
| scope s |> std/interpreter:run(source: TEST_SOURCE, s.dispatcher)
| result r |> std/io:print.ln("SUCCESS branch={{ r.value.branch:s }}")
| exhausted e |> std/io:print.ln("EXHAUSTED: {{ e.last_event:s }}")
| parse-error e |> std/io:print.ln("PARSE ERROR: {{ e.message:s }}")
| validation-error e |> std/io:print.ln("VALIDATION ERROR: {{ e:s }}")
| dispatch-error e |> std/io:print.ln("DISPATCH ERROR: {{ e.message:s }}")
| not-found |> std/io:print.ln("SCOPE NOT FOUND")
Expected output
SUCCESS branch=gt
Flows
flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "test", source: produce-int)
flow ~get_scope click a branch to expand · @labels scroll to their anchor
get_scope (name: "test")
Test Configuration
MUST_RUN