#tree-sitter #incremental #parser #frugurt

tree-sitter-frugurt

Frugurt grammar for tree-sitter

11 releases

0.0.11 Jun 17, 2024
0.0.10 May 10, 2024
0.0.5 Apr 27, 2024

#185 in Text editors

MIT license

400KB
15K SLoC

C 14K SLoC JavaScript 388 SLoC // 0.0% comments Scheme 32 SLoC Rust 29 SLoC // 0.3% comments

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.8–4MB
~78K SLoC