Bindings to 'Tree-Sitter'
Is x a language?
Is x a node?
Is x a parser?
Is x a query?
Is x a tree?
Language field count
Language field identifiers
Language field names
Language name
Language state advancement
Language state count
Language symbol count
Language symbols
Language symbol names
Node descendant count
Get a node's underlying language
Get a node's parent
"Raw" S-expression
Pretty print a node's s-expression
Node symbol
Get a node's underlying text
Node type
Generate a TreeCursor iterator
Get a node's child by field id or name
Get a node's child count
Get a node's child by index
Get a node's children
Node descendants
Get a child's field name by index
Get the first child that extends beyond the given byte offset
Node grammar types and symbols
Node byte and point accessors
Node metadata
Node parse states
Node sibling accessors
Parser adjustments
Parse or reparse text
Create a new parser
Points
Query accessors
Query matches and captures
Queries
Ranges
Parse a snippet of text
Retrieve an offset root node
Retrieve the root node of the tree
Generate a TreeCursor iterator
Tree accessors
Tree cursors
treesitter: Bindings to 'Tree-Sitter'
Helper page for consistent documentation
Helper page for consistent documentation
Helper page for consistent documentation
Helper page for consistent documentation
Provides bindings to 'Tree-sitter', an incremental parsing system for programming tools. 'Tree-sitter' builds concrete syntax trees for source files of any language, and can efficiently update those syntax trees as the source file is edited. It also includes a robust error recovery system that provides useful parse results even in the presence of syntax errors.
Useful links