bug: AST to_string()
pretty-printing does not indent properly
#73
Labels
area/parser
Relating to the parser
severity/minor
The bug may cause some undesired behavior but the compiler still functions (e.g. display bugs)
type/bug
Something isn't working (use type: ice for panics)
Before we begin...
What happened?
Blocks like
if
within the AST pretty-print to string do not get indented or given newlines like they do in the TAST.What version of Zirco are you running?
zrc version 0.1.0 (4b07b66, not tainted) built for x86_64-unknown-linux-gnu on 2023-10-18T08:46:15-07:00 (debug mode)
rustc 1.70.0 (90c541806 2023-05-31) (stable-x86_64-unknown-linux-gnu on linux-x86_64)
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
How can this bug be reproduced?
After #60, run
zrc --emit ast
on the following:What behavior did you expect?
What actually happened?
Other Context
It may be helpful to indent all lines except the first by a certain indentation level in all blocks?
The text was updated successfully, but these errors were encountered: