#incremental #parser #ursa

tree-sitter-ursa

Ursa grammar for the tree-sitter parsing library

23 stable releases

new 1.0.24 Sep 14, 2024
1.0.11 Aug 27, 2024
1.0.9 Jul 21, 2024
1.0.8 Feb 8, 2024
0.0.3 Sep 23, 2023

#92 in Text editors

Download history 1/week @ 2024-06-27 12/week @ 2024-07-04 109/week @ 2024-07-18 13/week @ 2024-07-25 1/week @ 2024-08-01 197/week @ 2024-08-22 307/week @ 2024-08-29 1133/week @ 2024-09-05 332/week @ 2024-09-12

1,969 downloads per month

MIT license

565KB
19K SLoC

C 19K SLoC JavaScript 225 SLoC // 0.1% comments Scheme 73 SLoC // 0.3% comments Rust 34 SLoC // 0.4% comments

Tree-sitter grammar for Ursa

© 2023-2024 Reuben Thomas

This is a tree-sitter grammar for Ursa.

It is distributed under the ISC licence.

It can be used for example to power the Emacs tree-sitter mode.


lib.rs:

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

Dependencies

~2.7–6MB
~109K SLoC