tree-sitter-c icon indicating copy to clipboard operation
tree-sitter-c copied to clipboard

Include a list of repositories/projects tree-sitter-c was tested with

Open icsaszar opened this issue 4 years ago • 2 comments

It would be useful to have a list of repos and their parsing status, similar to the "Java grammar finish line" here https://github.com/tree-sitter/tree-sitter-java/issues/27.

I've tried following repositories using the "(ERROR) @error" query and all of them contain parsing errors:

craftinginterpreters grep jemalloc ncurses neovim nginx oniguruma redis the_silver_searcher transmission wren wrk zstd

I'll try to clean up my testing code and post it here soon.

icsaszar avatar Jul 16 '20 08:07 icsaszar

I finally got around to it, here's repo with the code I used for testing these repositories https://github.com/icsaszar/tree-sitter-c-parsing.

icsaszar avatar Aug 01 '20 09:08 icsaszar

all of them contain parsing errors

excluding parse-errors is not enough to find all bugs

we should compare the parse-tree to some reference, for example clang

clang -fsyntax-only -Xclang -ast-dump=json -Xclang -ast-dump-filter=some_function some_source.cc

obviously the parse-tree has a different format, but it should be possible to write an adapter

milahu avatar Mar 06 '23 17:03 milahu