This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.
AST Dump
~import std/ast_dumpAST Dumper - Observable debugging for compiler pipeline
ast_dump.kz · 1 tors
AST Dumper - Observable debugging for compiler pipeline
Provides void event for dumping AST state at any pipeline stage
Usage with taps:
* std/compiler:elaborate -> ctx
|> dump-ast(ctx, "post-elaborate")
* std/compiler:optimize -> ctx
|> dump-ast(ctx, "post-optimization") // See IR nodes!
dump-ast
koru_std/ast_dump.kz:14// Void event: Dump AST to stderr with stage label
~pub tor dump-ast { ctx: CompilerContext, stage: string }