#incremental #parser #navi

tree-sitter-navi

Navi grammar for the tree-sitter parsing library

10 releases

new 0.0.14 Apr 10, 2024
0.0.13 Mar 28, 2024
0.0.9 Feb 28, 2024

#153 in Text editors

Download history 14/week @ 2024-02-02 126/week @ 2024-02-16 206/week @ 2024-02-23 51/week @ 2024-03-01 16/week @ 2024-03-08 6/week @ 2024-03-15 246/week @ 2024-03-22 55/week @ 2024-03-29 118/week @ 2024-04-05

426 downloads per month

MIT license

2.5MB
74K SLoC

C 73K SLoC // 0.0% comments JavaScript 1K SLoC // 0.1% comments Scheme 216 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.7–4MB
~71K SLoC