1 unstable release
0.21.0 | Nov 18, 2024 |
---|
#529 in Text editors
175 downloads per month
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.7–4MB
~76K SLoC