sway
sway copied to clipboard
Pretty print the AST from sway-core
It would be nice if we could implement a pretty printer for the AST produced from sway-core.
Currently, it's pretty hard to read when using a println! on the return AST in rust. Alex mentioned he had used the ptree crate before. Perhaps it might be worth also looking at leveraging this crate for pretty printing.