Expand description
Utilities for reading and parsing files with the diffsitter parser
Structs§
- Grammar
Config - Configuration options pertaining to loading grammars and parsing files.
- SUPPORTED_
LANGUAGES - All of the languages diffsitter was compiled with support for.
Enums§
- Loading
Error - Possible errors that can arise when loading grammars
Functions§
- construct_
ts_ lang_ from_ shared_ lib - Create a tree sitter Language from a shared library object.
- generate_
language - Generate a tree-sitter language from a language string.
- lang_
name_ from_ file_ ext - Load a language name from a file extension.
- language_
from_ ext Deprecated - Create an instance of a language from a file extension
- parse_
file - Parse a file to an AST
- resolve_
language_ str - Get the language string that corresponds to an extension.
- tree_
sitter_ ⚠bash - tree_
sitter_ ⚠c - tree_
sitter_ ⚠c_ sharp - tree_
sitter_ constructor_ symbol_ name - Generate the method name to load a parser given the name of the language.
- tree_
sitter_ ⚠cpp - tree_
sitter_ ⚠css - tree_
sitter_ ⚠go - tree_
sitter_ ⚠hcl - tree_
sitter_ ⚠java - tree_
sitter_ ⚠json - tree_
sitter_ ⚠markdown - tree_
sitter_ ⚠ocaml - tree_
sitter_ ⚠php - tree_
sitter_ ⚠python - tree_
sitter_ ⚠ruby - tree_
sitter_ ⚠rust - tree_
sitter_ ⚠tsx - tree_
sitter_ ⚠typescript - ts_
language_ abi_ checked - A convenience function to check of a tree-sitter language has a compatible ABI version for
diffsitter
.