This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 10/5/2026.

Compiler.stages

~import std/compiler.stages

Koru Standard Library: the `stages` part of compiler.kz.

compiler.stages.kz · 2 tors

Koru Standard Library: the `stages` part of compiler.kz. Joined via `~part stages` in compiler.kz; merged into the compiler module at load. The pre-emission AST stage procs: the per-call template pass and the `.pre` transform stage that must run before it. They live apart from the pass-runner body because they are a named family — graft-aware ordering is their whole contract. Template processor: walks AST, renders any proc whose variant chain starts with `template|...` through Liquid, then strips the `template` tag so downstream emission sees a plain host-language proc. See memory project_proc_variant_pipeline / docs/EFFECT_BRANCHES for the `host[:processor]` story this implements.

process-template-procs

koru_std/compiler.stages.kz:14