D lexer, parser, and ImportC parser are now standalone

max haughton maxhaton at gmail.com
Mon Apr 10 18:42:17 UTC 2023


On Monday, 10 April 2023 at 12:30:53 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> On 11/04/2023 12:17 AM, Andrej Mitrovic wrote:
>> It would be nice to have a very minimal sample dub project 
>> that uses these Module / Parser classes.
>
> There is: 
> https://github.com/dlang/dmd/tree/master/compiler/test/dub_package
>
> But yeah, there needs to be working examples for a formatter + 
> auto completion engine. That is both tested and with good 
> documentation; those two are probably the most common use cases 
> for such a tool.

Formatting off an AST directly is quite hard to get perfect.


More information about the Digitalmars-d mailing list