1 unstable release

0.0.0 Jan 5, 2026

#18 in #tree-sitter-language

24 downloads per month

MIT license

2MB
59K SLoC

C 58K SLoC // 0.0% comments JavaScript 703 SLoC // 0.1% comments Scheme 264 SLoC // 0.1% comments Rust 33 SLoC

tree-sitter-zo.

the official zo tree-sitter.


lib.rs:

This crate provides Zo 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:

use tree_sitter::Parser;

let code = r#"
fun add(a: int, b: int) -> int {
    a + b
}
"#;
let mut parser = Parser::new();
let language = tree_sitter_zo::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Zo parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~245KB