tree-sitter-c
tree-sitter-c copied to clipboard
Include a list of repositories/projects tree-sitter-c was tested with
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.
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.
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