FuelLabs/sway

Pretty print the AST from sway-core

Open

#2,487 opened on Aug 9, 2022

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Rust (61,702 stars) (5,421 forks)batch import
compiler: uienhancementgood first issueloggingteam:compiler

Description

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.

Contributor guide

Pretty print the AST from sway-core · FuelLabs/sway#2487 | Good First Issue