#incremental #parser #navi

tree-sitter-navi

Navi grammar for the tree-sitter parsing library

11 releases

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

#158 in Text editors

Download history 14/week @ 2024-02-05 145/week @ 2024-02-19 235/week @ 2024-02-26 6/week @ 2024-03-04 19/week @ 2024-03-11 280/week @ 2024-03-25 23/week @ 2024-04-01 139/week @ 2024-04-08 347/week @ 2024-04-15

487 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
~72K SLoC