Skip to content

Parser

parser_set_language() parser_set_timeout() parser_set_included_ranges()
Parser adjustments
parser_parse() parser_reparse()
Parse or reparse text
parser()
Create a new parser
is_parser()
Is x a parser?
text_parse()
Parse a snippet of text

Tree

tree_included_ranges() tree_text() tree_language()
Tree accessors
tree_root_node()
Retrieve the root node of the tree
tree_root_node_with_offset()
Retrieve an offset root node
tree_walk()
Generate a TreeCursor iterator
is_tree()
Is x a tree?

Node

node_child_by_field_id() node_child_by_field_name()
Get a node's child by field id or name
node_child_count() node_named_child_count()
Get a node's child count
node_child() node_named_child()
Get a node's child by index
node_children() node_named_children()
Get a node's children
node_descendant_for_byte_range() node_named_descendant_for_byte_range() node_descendant_for_point_range() node_named_descendant_for_point_range()
Node descendants
node_first_child_for_byte() node_first_named_child_for_byte()
Get the first child that extends beyond the given byte offset
node_grammar_type() node_grammar_symbol()
Node grammar types and symbols
node_start_byte() node_end_byte() node_start_point() node_end_point() node_range()
Node byte and point accessors
node_is_named() node_is_missing() node_is_extra() node_is_error() node_has_error()
Node metadata
node_parse_state() node_next_parse_state()
Node parse states
node_next_sibling() node_next_named_sibling() node_previous_sibling() node_previous_named_sibling()
Node sibling accessors
node_descendant_count()
Node descendant count
node_field_name_for_child()
Get a child's field name by index
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
is_node()
Is x a node?

Query

Language

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
is_language()
Is x a language?

Point

Range

Tree cursor

TreeCursor
Tree cursors