#tree-sitter #incremental #parser #navi

tree-sitter-navi

Navi grammar for the tree-sitter parsing library

11 releases

0.1.0 May 13, 2024
0.0.14 Apr 10, 2024
0.0.13 Mar 28, 2024
0.0.9 Feb 28, 2024

#366 in Text editors

Download history 1/week @ 2024-07-29 18/week @ 2024-09-23 2/week @ 2024-09-30

1,081 downloads per month

MIT license

2.5MB
76K SLoC

C 75K SLoC // 0.0% comments JavaScript 1K SLoC // 0.1% comments Scheme 206 SLoC // 0.1% comments Rust 34 SLoC // 0.4% comments

tree-sitter-navi

Navi language support for tree-sitter.

cargo add tree-sitter-navi

lib.rs:

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

Dependencies

~2.8–4MB
~76K SLoC