www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [SAOC 2023] dfmt rewrite - Weekly update #8

reply Prajwal S N <snp dlang.org> writes:
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.
Nov 10 2023
parent M.M. <matus email.cz> writes:
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.
Nov 10 2023