Bindings to the 'Tree-Sitter' Parsing Library


[Up] [Top]

Documentation for package ‘bonsaisitter’ version 0.1.2

Help Pages

as.data.frame.tree_sitter_node Convert a node's descendants to a data frame
audit_translation Audit a code translation for drifted numeric constants
is_language Is 'x' a language?
is_node Is 'x' a node?
is_parser Is 'x' a parser?
is_point Points
is_query Is 'x' a query?
is_range Ranges
is_tree Is 'x' a tree?
is_tree_cursor Is 'x' a tree cursor?
language_field_count Language fields
language_field_id_for_name Language fields
language_field_name_for_id Language fields
language_name The name of a language
language_next_state Language parse states
language_state_count Language parse states
language_symbol_count Language symbols
language_symbol_for_name Language symbols
language_symbol_name Language symbols
literals_and_calls Extract numeric literals and call names from source code
node_child Access a child by index (1-indexed)
node_children All children of a node
node_child_by_field_id A child by field id
node_child_by_field_name A child by field name
node_child_count Child counts
node_descendant_count The number of descendants of a node
node_descendant_for_byte_range Locate nodes by byte or point
node_descendant_for_point_range Locate nodes by byte or point
node_end_byte A node's start / end byte
node_end_point A node's start / end point
node_field_name_for_child Field name for a child (1-indexed)
node_field_name_for_named_child Field name for a child (1-indexed)
node_first_child_for_byte Locate nodes by byte or point
node_first_named_child_for_byte Locate nodes by byte or point
node_grammar_symbol Node symbols and parse states
node_grammar_type The grammar type of a node
node_has_error Node error and state predicates
node_is_error Node error and state predicates
node_is_extra Node error and state predicates
node_is_missing Node error and state predicates
node_is_named Is a node named?
node_language The language of a node
node_named_child Access a child by index (1-indexed)
node_named_children All children of a node
node_named_child_count Child counts
node_named_descendant_for_byte_range Locate nodes by byte or point
node_named_descendant_for_point_range Locate nodes by byte or point
node_next_named_sibling Sibling and parent navigation
node_next_parse_state Node symbols and parse states
node_next_sibling Sibling and parent navigation
node_parent Sibling and parent navigation
node_parse_state Node symbols and parse states
node_previous_named_sibling Sibling and parent navigation
node_previous_sibling Sibling and parent navigation
node_range A node's range
node_raw_s_expression The raw s-expression of a node
node_show_s_expression Show a node's s-expression
node_start_byte A node's start / end byte
node_start_point A node's start / end point
node_symbol Node symbols and parse states
node_text The text underlying a node
node_type The type of a node
node_walk Walk a tree or node with a cursor
parser Create a parser
parser_parse Parse or reparse text
parser_reparse Parse or reparse text
parser_set_included_ranges Adjust a parser
parser_set_language Adjust a parser
parser_set_timeout Adjust a parser
point Points
point_column Points
point_row Points
query Compile a tree-sitter query
query_captures Run a query and collect its captures
query_capture_count Query counts
query_end_byte_for_pattern Query byte ranges per pattern (1-indexed pattern)
query_matches Run a query and collect its matches
query_pattern_count Query counts
query_start_byte_for_pattern Query byte ranges per pattern (1-indexed pattern)
query_string_count Query counts
range Ranges
range_end_byte Ranges
range_end_point Ranges
range_start_byte Ranges
range_start_point Ranges
text_parse Parse text in one step
tree_included_ranges The tree's included ranges
tree_language Tree accessors
tree_root_node Retrieve the root node of a tree
tree_root_node_with_offset An offset root node
tree_text Tree accessors
tree_walk Walk a tree or node with a cursor