1 unstable release
new 0.21.0 | Nov 18, 2024 |
---|
#479 in Text editors
Used in devgen-splitter
2.5MB
74K
SLoC
tree-sitter-r
R grammar for tree-sitter.
Rust bindings
This grammar is available as a Rust crate on crates.io.
References
lib.rs
:
This crate provides r language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_r::language()).expect("Error loading r grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–4MB
~76K SLoC