Stream: compiler development

Topic: Pretty print for AST


view this post on Zulip Kiryl Dziamura (May 31 2024 at 08:23):

Is there a minimalistic formatter for AST that, for example, converts structs of arrays into smth readable (like Defs, where tags is the source of truth, so the formatter skips redundant value_defs)?

view this post on Zulip Brendan Hansknecht (May 31 2024 at 16:59):

We have a number of environment variables that dump it at certain passes I. A quite readable format

view this post on Zulip Brendan Hansknecht (May 31 2024 at 17:00):

Listed at the bottom of this file: https://github.com/roc-lang/roc/blob/main/.cargo/config.toml


Last updated: Jul 06 2025 at 12:14 UTC