This is an automated archive made by the Lemmit Bot.

The original was posted on /r/programminglanguages by /u/javascript on 2024-08-10 02:56:00+00:00.


I’m contributing to an open source language design and implementation. It’s all written in C++. I’m considering now what it will take to implement a code formatter for this language. Ideally it will share a lot of concepts/choices set out in clang-format (which exists for C++). I’ve looked at a few guides so far but I figured it was worth posting here to see if anyone had advice. In your opinion, what is the best approach to building a code formatter? Thanks! - /u/javascript