7 releases (4 breaking)

0.5.0 Jun 17, 2025
0.4.1 Jun 16, 2025
0.3.2 Jun 9, 2025
0.2.0 Jun 8, 2025
0.1.0 Jun 7, 2025

#1852 in Parser implementations

Download history 39/week @ 2025-06-01 265/week @ 2025-06-08 331/week @ 2025-06-15 21/week @ 2025-06-22

656 downloads per month
Used in adl-lsp

MIT license

190KB
7K SLoC

C 6.5K SLoC JavaScript 181 SLoC // 0.0% comments Rust 32 SLoC // 0.1% comments

tree-sitter-adl

tree-sitter grammar for Algebraic Data Language


lib.rs:

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

Dependencies

~4–280KB