This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.
Emitter
~import std/emitterEmitter Wrapper - Koru Events for Emitter Zig Library
emitter.kz · 1 tors
Emitter Wrapper - Koru Events for Emitter Zig Library
Makes the Zig emitter available as Koru events at backend runtime.
Usage:
import std/emitter
emit.program(ast: my_ast, allocator: allocator)
| emitted code |> use(code.zig_code)
| failed e |> handle(e.message)
emit.program
koru_std/emitter.kz:16// Emit a complete program from AST
~pub tor emit.program {
source_ast: *const ast.Program,
allocator: std.mem.Allocator
}
| emitted string
| failed string