Open jtojnar opened 2 years ago
This is very cool. How does the tree-sitter-c
package handle #include
facilities and the like? The preprocessor is a harsh mistress.
Not sure, I never managed to get it working because tree sitter itself was segfaulting for me half the time so I switched to Coccinelle.
Just a basic C parsing support (no tags) based on https://github.com/tree-sitter/haskell-tree-sitter/pull/294.
You can try it by checking out the haskell-tree-sitter branch from https://github.com/tree-sitter/haskell-tree-sitter/pull/294, setting the path in
cabal.project.local
in the semantic root (e.g.packages: ../haskell-tree-sitter/tree-sitter-c
) and then runRUNFILES_DIR=path/to/haskell-tree-sitter cabal run semantic-ast -- --rootdir=. --language=C
(I have no idea to make Bazel use local Haskell packages).