November 10, 2023

Hi all,

As the second milestone comes to an end, I am very happy to share that dfmt+DMD is now many steps closer to being a complete feature-rich formatter!

  • The AST walk works without any hitches, and the original source code is largely reproduced without problems. I've been testing it and ironing out the bugs to ensure no code disappears during formatting.
  • Four of the original transformations provided by dfmt (dfmt_space_before_function_parameters, dfmt_space_after_cast, dfmt_align_switch_statements, dfmt_space_before_aa_colon), have now been implemented in the new formatter

It is incredibly satisfying to watch it work :) Across the next milestone, I'll be working on adding the remaining transformations, and ensuring the existing tests pass.

November 10, 2023

On Friday, 10 November 2023 at 11:51:46 UTC, Prajwal S N wrote:

>

Hi all,

As the second milestone comes to an end, I am very happy to share that dfmt+DMD is now many steps closer to being a complete feature-rich formatter!

  • The AST walk works without any hitches, and the original source code is largely reproduced without problems. I've been testing it and ironing out the bugs to ensure no code disappears during formatting.
  • Four of the original transformations provided by dfmt (dfmt_space_before_function_parameters, dfmt_space_after_cast, dfmt_align_switch_statements, dfmt_space_before_aa_colon), have now been implemented in the new formatter

It is incredibly satisfying to watch it work :) Across the next milestone, I'll be working on adding the remaining transformations, and ensuring the existing tests pass.

Great to see you make progress on this! Good luck with the rest of the project.