Here's what it looks like to call it from Rust: https://github.com/tree-sitter/tree-sitter/tree/master/lib/b...
Seems like this would make it much easier to bootstrap a performant language-server. Very cool; maybe that will be my next project.
Seems like this would make it much easier to bootstrap a performant language-server. Very cool; maybe that will be my next project.
So if you're writing a tool for a single language (like a language server), it should be as easy as adding tree-sitter and tree-sitter-blah to your cargo manifest.
[1] https://news.ycombinator.com/item?id=26227476 [2] https://tree-sitter.github.io/tree-sitter/using-parsers#patt...
This sounds very interesting. Will the query DSL (spec) be available to the public?