Package: bonsaisitter 0.1.2

Troy Hernandez

bonsaisitter: Bindings to the 'Tree-Sitter' Parsing Library

A runtime for the 'Tree-sitter' parsing library <https://tree-sitter.github.io/tree-sitter/> that mirrors the API of the 'treesitter' package, so it can serve as a drop-in replacement. Parses source code into concrete syntax trees and updates them incrementally as the source changes. Grammars are supplied by separate packages such as 'treesitter.r', so the runtime itself depends on nothing beyond base R.

Authors:Troy Hernandez [aut, cre], cornball.ai [cph], Max Brunsfeld [ctb, cph], International Business Machines Corporation [cph], Unicode, Inc. [cph], Mathias Panzenböck [ctb]

bonsaisitter_0.1.2.tar.gz
bonsaisitter_0.1.2.zip(r-4.7-x86_64)bonsaisitter_0.1.2.zip(r-4.7-arm64)bonsaisitter_0.1.2.zip(r-4.6-x86_64)bonsaisitter_0.1.2.zip(r-4.6-arm64)
bonsaisitter_0.1.2.tar.gz(r-4.7-arm64)bonsaisitter_0.1.2.tar.gz(r-4.7-x86_64)bonsaisitter_0.1.2.tar.gz(r-4.6-arm64)bonsaisitter_0.1.2.tar.gz(r-4.6-x86_64)
bonsaisitter_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
bonsaisitter/json (API)

# Install 'bonsaisitter' in R:
install.packages('bonsaisitter', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cornball-ai/bonsaisitter/issues

On CRAN:

Conda:

1.70 score 91 exports 0 dependencies

Last updated from:216f68e04b. Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK107
linux-devel-x86_64OK126
source / vignettesOK156
linux-release-arm64OK99
linux-release-x86_64OK118
windows-devel-arm64OK374
windows-devel-x86_64OK123
windows-release-arm64OK216
windows-release-x86_64OK86
wasm-releaseOK95

Exports:audit_translationis_languageis_nodeis_parseris_pointis_queryis_rangeis_treeis_tree_cursorlanguage_field_countlanguage_field_id_for_namelanguage_field_name_for_idlanguage_namelanguage_next_statelanguage_state_countlanguage_symbol_countlanguage_symbol_for_namelanguage_symbol_nameliterals_and_callsnode_childnode_child_by_field_idnode_child_by_field_namenode_child_countnode_childrennode_descendant_countnode_descendant_for_byte_rangenode_descendant_for_point_rangenode_end_bytenode_end_pointnode_field_name_for_childnode_field_name_for_named_childnode_first_child_for_bytenode_first_named_child_for_bytenode_grammar_symbolnode_grammar_typenode_has_errornode_is_errornode_is_extranode_is_missingnode_is_namednode_languagenode_named_childnode_named_child_countnode_named_childrennode_named_descendant_for_byte_rangenode_named_descendant_for_point_rangenode_next_named_siblingnode_next_parse_statenode_next_siblingnode_parentnode_parse_statenode_previous_named_siblingnode_previous_siblingnode_rangenode_raw_s_expressionnode_show_s_expressionnode_start_bytenode_start_pointnode_symbolnode_textnode_typenode_walkparserparser_parseparser_reparseparser_set_included_rangesparser_set_languageparser_set_timeoutpointpoint_columnpoint_rowqueryquery_capture_countquery_capturesquery_end_byte_for_patternquery_matchesquery_pattern_countquery_start_byte_for_patternquery_string_countrangerange_end_byterange_end_pointrange_start_byterange_start_pointtext_parsetree_included_rangestree_languagetree_root_nodetree_root_node_with_offsettree_texttree_walk

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Convert a node's descendants to a data frameas.data.frame.tree_sitter_node
Audit a code translation for drifted numeric constantsaudit_translation
Is 'x' a language?is_language
Is 'x' a node?is_node
Is 'x' a parser?is_parser
Is 'x' a query?is_query
Is 'x' a tree?is_tree
Is 'x' a tree cursor?is_tree_cursor
The name of a languagelanguage_name
Language fieldslanguage_field_count language_field_id_for_name language_field_name_for_id
Language parse stateslanguage_next_state language_state_count
Language symbolslanguage_symbol_count language_symbol_for_name language_symbol_name
Extract numeric literals and call names from source codeliterals_and_calls
A child by field idnode_child_by_field_id
A child by field namenode_child_by_field_name
The number of descendants of a nodenode_descendant_count
The grammar type of a nodenode_grammar_type
Is a node named?node_is_named
The language of a nodenode_language
A node's rangenode_range
The raw s-expression of a nodenode_raw_s_expression
Show a node's s-expressionnode_show_s_expression
The text underlying a nodenode_text
The type of a nodenode_type
A node's start / end bytenode_end_byte node_start_byte
Access a child by index (1-indexed)node_child node_named_child
Child countsnode_child_count node_named_child_count
All children of a nodenode_children node_named_children
Field name for a child (1-indexed)node_field_name_for_child node_field_name_for_named_child
Locate nodes by byte or pointnode_descendant_for_byte_range node_descendant_for_point_range node_first_child_for_byte node_first_named_child_for_byte node_named_descendant_for_byte_range node_named_descendant_for_point_range
Sibling and parent navigationnode_next_named_sibling node_next_sibling node_parent node_previous_named_sibling node_previous_sibling
A node's start / end pointnode_end_point node_start_point
Node error and state predicatesnode_has_error node_is_error node_is_extra node_is_missing
Node symbols and parse statesnode_grammar_symbol node_next_parse_state node_parse_state node_symbol
Create a parserparser
Adjust a parserparser_set_included_ranges parser_set_language parser_set_timeout
Parse or reparse textparser_parse parser_reparse
Pointsis_point point point_column point_row
Compile a tree-sitter queryquery
Run a query and collect its capturesquery_captures
Run a query and collect its matchesquery_matches
Query byte ranges per pattern (1-indexed pattern)query_end_byte_for_pattern query_start_byte_for_pattern
Query countsquery_capture_count query_pattern_count query_string_count
Rangesis_range range range_end_byte range_end_point range_start_byte range_start_point
Parse text in one steptext_parse
The tree's included rangestree_included_ranges
Retrieve the root node of a treetree_root_node
An offset root nodetree_root_node_with_offset
Tree accessorstree_language tree_text
Walk a tree or node with a cursornode_walk tree_walk