1 unstable release
0.0.1 | Jun 17, 2024 |
---|
#161 in #parsing
105KB
3.5K
SLoC
tree-sitter-restedlang
restedlang
is being developed at part of the rested project.
Usage (Neovim)
nvim-treesitter has the full relevant instructions.
Clone this repo into ~/projects/tree-sitter-restedlang/
mkdir ~/projects/tree-sitter-restedlang
git clone https://github.com/Gnarus-G/tree-sitter-restedlang ~/projects/tree-sitter-restedlang
Then use the neovim plugin
lib.rs
:
This crate provides Restedlang 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 = r#"
"#;
let mut parser = tree_sitter::Parser::new();
parser.set_language(&tree_sitter_restedlang::language()).expect("Error loading Restedlang grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
Dependencies
~2.7–4MB
~71K SLoC