geas icon indicating copy to clipboard operation
geas copied to clipboard

Formatting tool

Open fjl opened this issue 2 months ago • 0 comments

Geas should have a formatting tool like gofmt. There are two parts to implementing this:

  • Tracking comments in the AST: the parser has to be changed to attach comments to statement nodes. We need this to ensure the AST is a complete representation of the source code.
  • AST writer: a function that writes out an AST using the canonical formatting

The formatting tool is also a precursor to stack analysis (#3).

fjl avatar Nov 09 '25 11:11 fjl