5 stable releases
2.1.3 | Jul 2, 2023 |
---|---|
2.1.2 | Jan 28, 2023 |
2.1.1 | Jul 2, 2022 |
2.1.0 | Jun 28, 2022 |
0.0.1 |
|
#107 in Text editors
112 downloads per month
Used in beancount-language-server
475KB
17K
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.5–3.5MB
~67K SLoC