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.

Version: 0.1.2
Suggests: tinytest, treesitter, treesitter.r
Published: 2026-09-17
DOI: 10.32614/CRAN.package.bonsaisitter (may not be active yet)
Author: Troy Hernandez ORCID iD [aut, cre], cornball.ai [cph], Max Brunsfeld [ctb, cph] (tree-sitter C library, bundled under src/tree-sitter), International Business Machines Corporation [cph] (ICU UTF-8 and UTF-16 headers, src/tree-sitter/lib/src/unicode), Unicode, Inc. [cph] (ICU license, src/tree-sitter/lib/src/unicode/LICENSE), Mathias Panzenböck [ctb] (src/tree-sitter/lib/src/portable/endian.h, public domain)
Maintainer: Troy Hernandez <troy at cornball.ai>
BugReports: https://github.com/cornball-ai/bonsaisitter/issues
License: MIT + file LICENSE
Copyright: cornball.ai, except the bundled tree-sitter sources under src/tree-sitter, whose holders are listed in inst/COPYRIGHTS.
bonsaisitter copyright details
URL: https://github.com/cornball-ai/bonsaisitter
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: bonsaisitter results

Documentation:

Reference manual: bonsaisitter.html , bonsaisitter.pdf

Downloads:

Package source: bonsaisitter_0.1.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): bonsaisitter_0.1.2.tgz, r-release (x86_64): bonsaisitter_0.1.2.tgz, r-oldrel (x86_64): bonsaisitter_0.1.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=bonsaisitter to link to this page.