sway icon indicating copy to clipboard operation
sway copied to clipboard

Pretty print the AST from sway-core

Open JoshuaBatty opened this issue 3 years ago • 0 comments

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.

JoshuaBatty avatar Aug 09 '22 01:08 JoshuaBatty