1 unstable release

0.0.1 May 28, 2025

#46 in #rune

Download history 125/week @ 2025-05-26 7/week @ 2025-06-02

132 downloads per month

MIT license

1MB
31K SLoC

C 30K SLoC JavaScript 797 SLoC // 0.0% comments Rust 32 SLoC // 0.1% comments

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

Build/test

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