#tree-sitter #parser #jslt

tree-sitter-jslt

jslt grammar for the tree-sitter parsing library

2 releases

0.1.1 Aug 31, 2023
0.1.0 Aug 31, 2023

#477 in Text editors

MIT license

17MB
742K SLoC

C 742K SLoC JavaScript 231 SLoC Scheme 46 SLoC // 0.1% comments Rust 31 SLoC // 0.5% comments

tree-sitter-jslt

jslt grammar for tree-sitter


lib.rs:

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

Dependencies

~2.7–4MB
~71K SLoC