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 (5,421 forks)batch import
compiler: uienhancementgood first issueloggingteam:compiler

Repository metrics

Stars
 (61,702 stars)
PR merge metrics
 (Avg merge 22h 6m) (16 merged PRs in 30d)

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