-
Notifications
You must be signed in to change notification settings - Fork 143
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
What languages are supported? #420
Comments
Thanks for the question. The setup for stack graphs is indeed similar to tree sitter. While tree-sitter is not specific to a language, a grammar is needed to support any particular language. Similarly, stack-graphs and tree-sitter-stack-graphs are not specific to any language, but a set of rules is needed to be able to generate stack graphs for any particular language. For tree-sitter-stack-graphs, these rules are written in TSG (e.g., for TypeScript) and we have done that for four languages so far. To support other languages, someone has to write such a TSG file for that particular language. (Since tree-sitter-stack-graphs is using tree-sitter, this assumes a tree-sitter grammar already exists.) |
Hi Thank you! |
Hello, |
@hendrikvanantwerpen is the TSG for Typescript written by hand, or can it be generated from the typescript grammar (and if so, how)? |
It was written by hand (heroically) by @hendrikvanantwerpen |
Hi,
Just need some clarification. The
tree-sitter-stack-graphs
crate appears to only support four languages. Thestack-graphs
crate claims to work for any arbitrary programming language. I'm wondering, if I want to use this with more languages, what do I need to do? Which crate should I use? If I use thetree-sitter
crate, do I need to supply a grammar for that language? What about thestack-graphs
crate?Thank you!
The text was updated successfully, but these errors were encountered: