1 stable release
new 1.0.2 | Jun 15, 2025 |
---|
#2291 in Parser implementations
99 downloads per month
430KB
17K
SLoC
This crate provides Miniscript 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_miniscript::LANGUAGE;
parser
.set_language(&language.into())
.expect("Error loading Miniscript parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
tree-sitter-miniscript
A Tree-sitter grammar for the MiniScript programming language.
This parser can be used in editors, code analysis tools, and other applications that leverage Tree-sitter for parsing and syntax highlighting.
Dependencies
~4–280KB