Integrated code formatter

H. S. Teoh hsteoh at
Tue Jan 18 05:47:29 UTC 2022

On Mon, Jan 17, 2022 at 07:30:53PM -0800, Walter Bright via Digitalmars-d wrote:
> On 1/17/2022 6:06 PM, deadalnix wrote:
> > Modern formatter, such as clang-format, use a parser, but the parser
> > generates an IR that as nothing to do with the traditional AST you'd
> > get out of a regular parser.
> What comes to mind is what to do with the comments.

They should be explicitly represented. Ignored by the part that deals
with language grammar, but remain in place to be accounted for during


Verbing weirds language. -- Calvin (& Hobbes)

More information about the Digitalmars-d mailing list