5 unstable releases
| 0.3.2 | Nov 17, 2025 |
|---|---|
| 0.3.1 | Oct 26, 2025 |
| 0.3.0 | Oct 26, 2025 |
| 0.2.0 | Jul 7, 2025 |
| 0.1.0 | Jul 3, 2025 |
#1767 in Parser implementations
409 downloads per month
Used in mergiraf
42KB
1.5K
SLoC
This crate provides GoSumOrchard 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#"
cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I=
cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg=
code.forgejo.org/f3/gof3/v3 v3.11.0 h1:f/xToKwqTgxG6PYxvewywjDQyCcyHEEJ6sZqUitFsAE=
code.forgejo.org/f3/gof3/v3 v3.11.0/go.mod h1:4FaRUNSQGBiD1M0DuB0yNv+Z2wMtlOeckgygHSSq4KQ=
"#;
let mut parser = tree_sitter::Parser::new();
let language = tree_sitter_gosum_orchard::LANGUAGE;
parser
.set_language(&language.into())
.expect("Error loading go.sum parser");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());
tree-sitter-gosum-orchard
go.sum grammar for tree-sitter
Forked from https://github.com/tree-sitter-grammars/tree-sitter-go-sum by Amaan Qureshi, to update it to tree-sitter 0.25.
Dependencies
~16–250KB