#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

#2515 in Parser implementations

Download history 53/week @ 2024-01-07 33/week @ 2024-01-14 36/week @ 2024-01-21 58/week @ 2024-01-28 60/week @ 2024-02-04 38/week @ 2024-02-11 51/week @ 2024-02-18 103/week @ 2024-02-25 80/week @ 2024-03-03 69/week @ 2024-03-10 46/week @ 2024-03-17 55/week @ 2024-03-24 130/week @ 2024-03-31 66/week @ 2024-04-07 42/week @ 2024-04-14 47/week @ 2024-04-21

295 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
~71K SLoC