#incremental #parsing #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

#898 in Parser implementations

Download history 305/week @ 2022-12-02 326/week @ 2022-12-09 363/week @ 2022-12-16 398/week @ 2022-12-23 527/week @ 2022-12-30 431/week @ 2023-01-06 464/week @ 2023-01-13 469/week @ 2023-01-20 487/week @ 2023-01-27 512/week @ 2023-02-03 589/week @ 2023-02-10 501/week @ 2023-02-17 458/week @ 2023-02-24 444/week @ 2023-03-03 441/week @ 2023-03-10 428/week @ 2023-03-17

1,824 downloads per month

MIT license

1MB
39K SLoC

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

tree-sitter-hare

Note: fork of Hare to better support Rust based tree-sitter binding specially lapce.dev

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

~1.3–1.9MB
~51K SLoC