Package: treesitter 0.1.0.9000

treesitter: Bindings to 'Tree-Sitter'

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.

Authors:Davis Vaughan [aut, cre], Posit Software, PBC [cph, fnd], Tree-sitter authors [cph]

treesitter_0.1.0.9000.tar.gz
treesitter_0.1.0.9000.zip(r-4.5)treesitter_0.1.0.9000.zip(r-4.4)treesitter_0.1.0.9000.zip(r-4.3)
treesitter_0.1.0.9000.tgz(r-4.4-x86_64)treesitter_0.1.0.9000.tgz(r-4.4-arm64)treesitter_0.1.0.9000.tgz(r-4.3-x86_64)treesitter_0.1.0.9000.tgz(r-4.3-arm64)
treesitter_0.1.0.9000.tar.gz(r-4.5-noble)treesitter_0.1.0.9000.tar.gz(r-4.4-noble)
treesitter_0.1.0.9000.tgz(r-4.4-emscripten)treesitter_0.1.0.9000.tgz(r-4.3-emscripten)
treesitter.pdf |treesitter.html
treesitter/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/davisvaughan/r-tree-sitter/issues

On CRAN:

6.07 score 31 stars 1 packages 17 scripts 882 downloads 88 exports 6 dependencies

Last updated 4 months agofrom:4a2467ea13. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 05 2024
R-4.5-win-x86_64OKDec 05 2024
R-4.5-linux-x86_64OKDec 05 2024
R-4.4-win-x86_64OKDec 05 2024
R-4.4-mac-x86_64OKDec 05 2024
R-4.4-mac-aarch64OKDec 05 2024
R-4.3-win-x86_64OKDec 05 2024
R-4.3-mac-x86_64OKDec 05 2024
R-4.3-mac-aarch64OKDec 05 2024

Exports:is_languageis_nodeis_parseris_pointis_queryis_rangeis_treelanguage_field_countlanguage_field_id_for_namelanguage_field_name_for_idlanguage_namelanguage_next_statelanguage_state_countlanguage_symbol_countlanguage_symbol_for_namelanguage_symbol_namenode_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_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_walkTreeCursor

Dependencies:cligluelifecycleR6rlangvctrs

Readme and manuals

Help Manual

Help pageTopics
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
Language field countlanguage_field_count
Language field identifierslanguage_field_id_for_name
Language field nameslanguage_field_name_for_id
Language namelanguage_name
Language state advancementlanguage_next_state
Language state countlanguage_state_count
Language symbol countlanguage_symbol_count
Language symbolslanguage_symbol_for_name
Language symbol nameslanguage_symbol_name
Node descendant countnode_descendant_count
Get a child's field name by indexnode_field_name_for_child
Get a node's underlying languagenode_language
Get a node's parentnode_parent
"Raw" S-expressionnode_raw_s_expression
Pretty print a 'node''s s-expressionnode_show_s_expression
Node symbolnode_symbol
Get a node's underlying textnode_text
Node typenode_type
Generate a 'TreeCursor' iteratornode_walk
Get a node's child by indexnode-child node_child node_named_child
Get a node's child by field id or namenode-child-by-field node_child_by_field_id node_child_by_field_name
Get a node's child countnode-child-count node_child_count node_named_child_count
Get a node's childrennode-children node_children node_named_children
Node descendantsnode-descendant node_descendant_for_byte_range node_descendant_for_point_range node_named_descendant_for_byte_range node_named_descendant_for_point_range
Get the first child that extends beyond the given byte offsetnode-first-child-byte node_first_child_for_byte node_first_named_child_for_byte
Node grammar types and symbolsnode-grammar node_grammar_symbol node_grammar_type
Node byte and point accessorsnode-location node_end_byte node_end_point node_range node_start_byte node_start_point
Node metadatanode-metadata node_has_error node_is_error node_is_extra node_is_missing node_is_named
Node parse statesnode-parse-state node_next_parse_state node_parse_state
Node sibling accessorsnode-sibling node_next_named_sibling node_next_sibling node_previous_named_sibling node_previous_sibling
Create a new parserparser
Parser adjustmentsparser-adjustments parser_set_included_ranges parser_set_language parser_set_timeout
Parse or reparse textparser-parse parser_parse parser_reparse
Pointsis_point point points point_column point_row
Queriesquery
Query accessorsquery-accessors query_capture_count query_end_byte_for_pattern query_pattern_count query_start_byte_for_pattern query_string_count
Query matches and capturesquery-matches-and-captures query_captures query_matches
Rangesis_range range ranges range_end_byte range_end_point range_start_byte range_start_point
Parse a snippet of texttext_parse
Retrieve the root node of the treetree_root_node
Retrieve an offset root nodetree_root_node_with_offset
Generate a 'TreeCursor' iteratortree_walk
Tree accessorstree-accessors tree_included_ranges tree_language tree_text
Tree cursorsTreeCursor