#rules #firebase #parser #incremental

tree-sitter-rules

firebase rules grammar for the tree-sitter parsing library

4 releases

0.0.4 Feb 4, 2024
0.0.3 Feb 4, 2024
0.0.2 Feb 3, 2024
0.0.1 Jan 29, 2024

#187 in Text editors

Download history 3/week @ 2024-01-27 8/week @ 2024-02-24 5/week @ 2024-03-02 8/week @ 2024-03-09 16/week @ 2024-03-30 39/week @ 2024-04-13

55 downloads per month

MIT license

170KB
6.5K SLoC

C 6K SLoC JavaScript 319 SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments

Tree-sitter firebase rules

firebase rules grammar for the tree-sitter parsing library


lib.rs:

This crate provides rules 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 = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_rules::language()).expect("Error loading rules grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.7–4MB
~71K SLoC