1 unstable release
0.0.1 | May 28, 2025 |
---|
#46 in #rune
132 downloads per month
1MB
31K
SLoC
This crate provides Rune language support for the tree-sitter parsing library.
Typically, you will use the LANGUAGE
constant 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();
let language = tree_sitter_rune::LANGUAGE;
parser
.set_language(&language.into())
.expect("Error loading Rune parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
tree-sitter-rune
Tree-sitter grammar for the Rune programming language.
About Rune
Rune is a language for programmatic scripting and configuration. It's designed to be embedded in Rust applications as a dynamic scripting layer.
Learn more about the Rune language at its official website and documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~4–280KB