A Janet grammar for tree-sitter.
Usable, but as tree-sitter is pre-1.0, don't forget the salt.
This repository currently provides "source" files such as:
grammar.js- can be used to generateparser.cusing thetree-sittergeneratesubcommand, butnodeis then requiredpackage.json- without this file, thetree-sittercli's capabilities will be somewhat impacted.
Also, things that are provided (which are actually generated) but might disappear at some point:
src/parser.cand friends [1] - other projects have come to expect these to be committed to a grammar repository, but there are forces in the world wanting to remove them, so depending on how things go, these may disappear.
[1] Currently these files are generated to have ABI 14.
Coincidentally, it appears another effort by GrayJack was started at about the same time.
The main difference between these two is that GrayJack's grammar
supports higher level constructs (e.g. def is recognized by the
grammar) at the cost of accuracy.
There might end up being different trade-offs in either approach and my belief is that there is room in the world for multiple attempts (especially for lisp-like languages).
- 314eter - handling null characters
- Aerijo - Guide to your first Tree-sitter grammar
- ahelwer - tree-sitter discussions
- ahlinc - tree-sitter work and discussions
- andrewchambers - janet-uri
- bakpakin - janet
- dannyfreeman - tree-sitter-clojure discussions, investigations, and work
- GrayJack - tree-sitter-janet
- Grazfather -
short_fn_litdiscussion - jfly - tree-sitter.json-related suggestion and discussion
- maxbrunsfeld - tree-sitter and related
- NoahTheDuke - tree-sitter-clojure discussions and investigations
- pyrmont - various discussions++