Just like go has gofmt, and other languages have the equivalent, we want an option in the aeon compiler that automatically formats sugar files.
To implement:
[ ] The sugar parser/AST should be more of a concrete syntax tree (consider blank lines and comments)
[ ] A pretty printer should take the sugar AST and return a properly formatted file (ideally parameterized by whether we want terminal colors for highlighting errors on the terminal, and by the line length.
Just like go has gofmt, and other languages have the equivalent, we want an option in the aeon compiler that automatically formats sugar files.
To implement:
A pretty good resource for this is Phillip Wadler's Prettier Pretty Printer and its several implementations on Github.