#incremental #parsing #ursa

tree-sitter-ursa

Ursa grammar for the tree-sitter parsing library

7 releases (4 stable)

1.0.4 Nov 18, 2023
1.0.3 Nov 13, 2023
1.0.2 Oct 19, 2023
0.0.3 Sep 23, 2023

#105 in Text editors

Download history 62/week @ 2023-09-18 12/week @ 2023-09-25 1/week @ 2023-10-02 51/week @ 2023-10-16 10/week @ 2023-10-23 11/week @ 2023-10-30 51/week @ 2023-11-13 26/week @ 2023-11-20 20/week @ 2023-11-27

97 downloads per month

MIT license

465KB
15K SLoC

C 14K SLoC JavaScript 152 SLoC // 0.1% comments Scheme 73 SLoC // 0.3% comments Rust 34 SLoC // 0.4% comments

Tree-sitter grammar for Ursa

© 2023 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.6–4MB
~68K SLoC