I tried tree-sitter today and it's exceptionally good.
The tooling is wonderful: the basic tutorial shows you how to define a grammar, a test suite, and provides a convenient CLI for generating efficient C parsers!
Tried fuzz-testing difftastic this morning (using cargo fuzz), and didn't find any crashes. I guess that's a good thing? I was slightly disappointed.
Judging by the output, I think the tree-sitter parsers were exercised much more heavily than the tree diffing logic.
Wilfred Hughes
Shared words: sitter, parsers, tried, tree, good
Score: 173.4
tree-sitter is wonderful, but it struggles if you try to parse its own output files.
In fairness, parsing a multi-megabyte C file is hard. The C# parser has a parser.c file totalling 18MiB!
$ tree-sitter parse -- '/home/wilfred/.emacs.d/**/*.el' --quiet --stat
Total parses: 2272; successful parses: 2271; failed parses: 1; success percentage: 99.96%
It's super easy to test a tree-sitter parser against a large corpus, and to iron out the details!
Wilfred Hughes
Shared words: sitter, parsers, tree, test
Score: 118.3