tree-sitter: parser generator tool and an incremental parsing library

Laurent Tréguier laurent.treguier.sink at gmail.com
Wed Feb 24 13:56:39 UTC 2021


On Monday, 22 February 2021 at 15:56:39 UTC, James Blachly wrote:
> https://tree-sitter.github.io/tree-sitter/
> https://github.com/tree-sitter/tree-sitter
> https://news.ycombinator.com/item?id=26225298 (currently #1 on 
> HN)
>
> Will be keeping an eye on this. If it gains traction*, it would 
> be nice (and possibly important) to have a Dlang parser. 
> Haven't looked in depth at the grammar yet -- appears to be 
> context free grammar.
>
> *Supposedly Neovim will be using this going forward

I tried making a tree-sitter grammar for D a long while ago, it 
needed some custom C code for stuff like WYSIWYG strings and some 
other things I think. Another issue was that D's official grammar 
not quite always reflecting the compiler's actual behavior.


More information about the Digitalmars-d mailing list