Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
icsaszar opened this issue Jul 16, 2020 · 2 comments
Open

Comments

@icsaszar
Copy link

It would be useful to have a list of repos and their parsing status, similar to the "Java grammar finish line" here tree-sitter/tree-sitter-java#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
Copy link
Author

icsaszar commented Aug 1, 2020

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.

@milahu
Copy link

milahu commented Mar 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants