treesitter0.3.1 package

Bindings to 'Tree-Sitter'

is_language

Is x a language?

is_node

Is x a node?

is_parser

Is x a parser?

is_query

Is x a query?

is_tree

Is x a tree?

language_field_count

Language field count

language_field_id_for_name

Language field identifiers

language_field_name_for_id

Language field names

language_name

Language name

language_next_state

Language state advancement

language_state_count

Language state count

language_symbol_count

Language symbol count

language_symbol_for_name

Language symbols

language_symbol_name

Language symbol names

node_descendant_count

Node descendant count

node_language

Get a node's underlying language

node_parent

Get a node's parent

node_raw_s_expression

"Raw" S-expression

node_show_s_expression

Pretty print a node's s-expression

node_symbol

Node symbol

node_text

Get a node's underlying text

node_type

Node type

node_walk

Generate a TreeCursor iterator

node-child-by-field

Get a node's child by field id or name

node-child-count

Get a node's child count

node-child

Get a node's child by index

node-children

Get a node's children

node-descendant

Node descendants

node-field-name-for-child

Get a child's field name by index

node-first-child-byte

Get the first child that extends beyond the given byte offset

node-grammar

Node grammar types and symbols

node-location

Node byte and point accessors

node-metadata

Node metadata

node-parse-state

Node parse states

node-sibling

Node sibling accessors

parser-adjustments

Parser adjustments

parser-parse

Parse or reparse text

parser

Create a new parser

points

Points

query-accessors

Query accessors

query-matches-and-captures

Query matches and captures

query

Queries

ranges

Ranges

text_parse

Parse a snippet of text

tree_root_node_with_offset

Retrieve an offset root node

tree_root_node

Retrieve the root node of the tree

tree_walk

Generate a TreeCursor iterator

tree-accessors

Tree accessors

TreeCursor

Tree cursors

treesitter-package

treesitter: Bindings to 'Tree-Sitter'

x_tree_sitter_node

Helper page for consistent documentation

x_tree_sitter_parser

Helper page for consistent documentation

x_tree_sitter_query

Helper page for consistent documentation

x_tree_sitter_tree

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.

  • Maintainer: Davis Vaughan
  • License: MIT + file LICENSE
  • Last published: 2026-01-13