#tree-sitter

tree-sitter-sop

Google SecOps Parser grammar for tree-sitter

2 unstable releases

0.1.0 Sep 21, 2024
0.0.1 Sep 17, 2024

#1173 in Parser implementations

Download history 109/week @ 2024-09-14 208/week @ 2024-09-21 34/week @ 2024-09-28 3/week @ 2024-10-05

354 downloads per month

MIT license

63KB
2K SLoC

C 2K SLoC JavaScript 113 SLoC // 0.0% comments Scheme 39 SLoC // 0.3% comments Rust 29 SLoC // 0.3% comments

tree-sitter-sop

CI npm crates pypi

Google SecOps Parser grammar for tree-sitter.


lib.rs:

This crate provides Sop 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_sop::language()).expect("Error loading Sop grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~2.8–4MB
~76K SLoC