Skip to main content

Module treesitter

Module treesitter 

Source
Expand description

Tree-sitter integration.

Uses individual tree-sitter language crates to parse source files into ASTs. Supports language detection by file extension and AST traversal.

Enums§

SupportedLanguage
Supported languages and their Tree-sitter grammars.

Functions§

create_parser
Create a parser configured for the given language.
parse_source
Parse source code with the given language and return the tree.