'R' Grammar for 'Tree-Sitter'

Provides bindings to an 'R' grammar for 'Tree-sitter', to be used alongside the 'treesitter' package. '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.


treesitter.r

R-CMD-check

treesitter.r exposes the R tree-sitter grammar for use with the language agnostic treesitter package. To use it, provide treesitter.r::language() as an argument to treesitter::parser().

Installation

Install treesitter.r from CRAN with:

install.packages("treesitter.r")

You can install the development version of treesitter.r from GitHub with:

# install.packages("pak")
pak::pak("r-lib/tree-sitter-r/bindings/r")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("treesitter.r")

1.3.0 by Davis Vaughan, 4 months ago


https://github.com/r-lib/tree-sitter-r


Report a bug at https://github.com/r-lib/tree-sitter-r/issues


Browse source code at https://github.com/cran/treesitter.r


Authors: Davis Vaughan [aut, cre] , Posit Software , PBC [cph, fnd] , Tree-sitter authors [cph] (Tree-sitter C headers and parser.c)


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests testthat, treesitter


Imported by gander, goodpractice, muttest, pkgmatch.

Suggested by bonsaisitter, box.linters, treesitter.


See at CRAN