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
656 downloads per month
Used in adl-lsp
190KB
7K
SLoC
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