9 releases
new 0.3.0 | Apr 25, 2024 |
---|---|
0.2.4 | Apr 16, 2024 |
0.1.2 | Mar 25, 2024 |
#142 in Text editors
1,297 downloads per month
Used in earthlyls
2.5MB
93K
SLoC
tree-sitter-earthfile
tree-sitter grammar for Earthfile.
License
tree-sitter-earthfile
is distributed under the terms of the MIT license.
See LICENSE for details.
lib.rs
:
This crate provides Earthfile language support for the tree-sitter parsing library.
Typically, you will use the language function 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();
parser.set_language(&tree_sitter_earthfile::language()).expect("Error loading Earthfile grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
Dependencies
~2.8–4MB
~72K SLoC