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:
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')) |
Bug tracker:https://github.com/davisvaughan/r-tree-sitter/issues
Last updated 4 months agofrom:4a2467ea13. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 05 2024 |
R-4.5-win-x86_64 | OK | Dec 05 2024 |
R-4.5-linux-x86_64 | OK | Dec 05 2024 |
R-4.4-win-x86_64 | OK | Dec 05 2024 |
R-4.4-mac-x86_64 | OK | Dec 05 2024 |
R-4.4-mac-aarch64 | OK | Dec 05 2024 |
R-4.3-win-x86_64 | OK | Dec 05 2024 |
R-4.3-mac-x86_64 | OK | Dec 05 2024 |
R-4.3-mac-aarch64 | OK | Dec 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
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 count | language_field_count |
Language field identifiers | language_field_id_for_name |
Language field names | language_field_name_for_id |
Language name | language_name |
Language state advancement | language_next_state |
Language state count | language_state_count |
Language symbol count | language_symbol_count |
Language symbols | language_symbol_for_name |
Language symbol names | language_symbol_name |
Node descendant count | node_descendant_count |
Get a child's field name by index | node_field_name_for_child |
Get a node's underlying language | node_language |
Get a node's parent | node_parent |
"Raw" S-expression | node_raw_s_expression |
Pretty print a 'node''s s-expression | node_show_s_expression |
Node symbol | node_symbol |
Get a node's underlying text | node_text |
Node type | node_type |
Generate a 'TreeCursor' iterator | node_walk |
Get a node's child by index | node-child node_child node_named_child |
Get a node's child by field id or name | node-child-by-field node_child_by_field_id node_child_by_field_name |
Get a node's child count | node-child-count node_child_count node_named_child_count |
Get a node's children | node-children node_children node_named_children |
Node descendants | node-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 offset | node-first-child-byte node_first_child_for_byte node_first_named_child_for_byte |
Node grammar types and symbols | node-grammar node_grammar_symbol node_grammar_type |
Node byte and point accessors | node-location node_end_byte node_end_point node_range node_start_byte node_start_point |
Node metadata | node-metadata node_has_error node_is_error node_is_extra node_is_missing node_is_named |
Node parse states | node-parse-state node_next_parse_state node_parse_state |
Node sibling accessors | node-sibling node_next_named_sibling node_next_sibling node_previous_named_sibling node_previous_sibling |
Create a new parser | parser |
Parser adjustments | parser-adjustments parser_set_included_ranges parser_set_language parser_set_timeout |
Parse or reparse text | parser-parse parser_parse parser_reparse |
Points | is_point point points point_column point_row |
Queries | query |
Query accessors | query-accessors query_capture_count query_end_byte_for_pattern query_pattern_count query_start_byte_for_pattern query_string_count |
Query matches and captures | query-matches-and-captures query_captures query_matches |
Ranges | is_range range ranges range_end_byte range_end_point range_start_byte range_start_point |
Parse a snippet of text | text_parse |
Retrieve the root node of the tree | tree_root_node |
Retrieve an offset root node | tree_root_node_with_offset |
Generate a 'TreeCursor' iterator | tree_walk |
Tree accessors | tree-accessors tree_included_ranges tree_language tree_text |
Tree cursors | TreeCursor |