9 stable releases
2.3.3 | Jul 20, 2024 |
---|---|
2.3.2 | Mar 9, 2024 |
2.3.1 | Feb 29, 2024 |
2.2.0 | Oct 14, 2023 |
0.0.1 |
|
#430 in Text editors
177 downloads per month
Used in beancount-language-server
520KB
19K
SLoC
tree-sitter-beancount
a tree-sitter parser for the beancount syntax
Reference
lib.rs
:
This crate provides beancount 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_beancount::language()).expect("Error loading beancount grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~73K SLoC