1 stable release
1.1.0 | Feb 21, 2023 |
---|
#497 in Text editors
45KB
1.5K
SLoC
tree-sitter-elsa
A tree-sitter grammar for Elsa, a lambda calculus evaluator.
lib.rs
:
This crate provides elsa 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_elsa::language()).expect("Error loading elsa grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–4MB
~76K SLoC