1 unstable release

new 0.0.4 Apr 25, 2025

#1872 in Parser implementations

46 downloads per month

MIT license

4.5MB
183K SLoC

C 182K SLoC JavaScript 725 SLoC // 0.5% comments Scheme 83 SLoC // 0.1% comments Rust 48 SLoC // 0.1% comments

tree-sitter-avenger

Tree sitter grammar for the Avenger visualization language.


lib.rs:

This crate provides Avenger 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_avenger::LANGUAGE;
parser
    .set_language(&language.into())
    .expect("Error loading Avenger parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies