#tree-sitter #parser #incremental #frugurt

tree-sitter-frugurt

Frugurt grammar for tree-sitter

5 releases

new 0.0.5 Apr 27, 2024
0.0.4 Apr 23, 2024
0.0.3 Apr 18, 2024
0.0.2 Apr 16, 2024
0.0.1 Apr 16, 2024

#150 in Text editors

Download history 263/week @ 2024-04-12 195/week @ 2024-04-19

458 downloads per month

MIT license

260KB
9K SLoC

C 8K SLoC JavaScript 271 SLoC // 0.0% comments Rust 29 SLoC // 0.3% comments Scheme 27 SLoC

tree-sitter-frugurt

Frugurt grammar for tree-sitter.


lib.rs:

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

Dependencies

~2.7–4MB
~72K SLoC