#tree-sitter #incremental #parser #hare

tree-sitter-hare

Hare grammar for the tree-sitter parsing library

1 unstable release

0.20.8 Jun 28, 2022
0.20.7 May 7, 2022
0.20.6 May 7, 2022

#292 in #incremental

Download history 42/week @ 2024-08-26 47/week @ 2024-09-02 48/week @ 2024-09-09 49/week @ 2024-09-16 75/week @ 2024-09-23 63/week @ 2024-09-30 55/week @ 2024-10-07 12/week @ 2024-10-14 7/week @ 2024-10-21 9/week @ 2024-10-28 8/week @ 2024-11-04 7/week @ 2024-11-11 14/week @ 2024-11-18 9/week @ 2024-11-25 13/week @ 2024-12-02 48/week @ 2024-12-09

85 downloads per month

MIT license

1MB
39K SLoC

C 38K SLoC JavaScript 650 SLoC // 0.0% comments Scheme 134 SLoC Rust 33 SLoC // 0.4% comments

tree-sitter-hare

Hare grammar for the popular incremental parser generator tree-sitter.

status: the majority of sources in examples (Hare stdlib) is recognized fine - sources containing \\ in strings fail, due to them getting parsed as comments as a consequence to tree-sitter precedence rules.

For a list of features offered by tree-sitter refer to their site. Summarily, one of the main features is context-aware highlight (e.g. local variables are highlighted differently than function parameters).

This grammar can be used in a number of editors and different situations (github uses it, for example) - at this stage it must be inserted manually into your editor. See, for example, nvim-treesitter.

References

Dependencies

~2.7–4MB
~76K SLoC