2 ms·
> The Tree-sitter parser for Bash itself somehow requires Typescript, though the parser is in C. You can use tree-sitter to produce nothing more than C parser
by jussij 6y ago
> The Tree-sitter parser for Bash itself somehow requires Typescript, though the parser is in C.
You can use tree-sitter to produce nothing more than C parser file that only depends on a very small tree-sitter C library.
So you can use tree-sitter to produce a parser that does not require Typescript.
However, there is whole other side to tree-sitter which is about filtering/manipulating/searching the AST results produced by that C parser and this layer has binding to many languages.
I suspect this Bash LSP project is using the tree-sitter Typescript bindings for their AST processing.