#tree-sitter #bucket #incremental #parser

tree-sitter-bucket

bucket grammar for the tree-sitter parsing library

3 releases

0.0.3 Mar 3, 2024
0.0.2 Mar 3, 2024
0.0.1 Mar 3, 2024

#455 in Text editors

MIT license

38KB
1K SLoC

C 1K SLoC JavaScript 45 SLoC Rust 31 SLoC // 0.5% comments Scheme 7 SLoC

This crate provides bucket 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_bucket::language()).expect("Error loading bucket grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.8–4MB
~77K SLoC