I wrote a Tree-sitter grammar for Djot #280
treeman
started this conversation in
Show and tell
Replies: 3 comments 14 replies
-
This is cool as hell! |
Beta Was this translation helpful? Give feedback.
8 replies
-
Amazing! I'm starting an Emacs major mode that uses this. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm curious how it performs against the manually coded implementations. Have you done any comparisons? Also, does it make sense to either add your Tree-sitter grammar, or C and WASM parsers generated from it, to the above list? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Things happened, and I ended up creating a Tree-sitter grammar for Djot: https://github.com/treeman/tree-sitter-djot
It should be feature complete with Djot as described by the syntax description, but I'd appreciate any bug reports and feedback. This is the first Tree-sitter grammar I've created, so I'm sure I'm missing some tricks.
I also wrote a large-ish blog post on how to make a Tree-sitter grammar for a subset of Djot: https://www.jonashietala.se/blog/2024/03/19/lets_create_a_tree-sitter_grammar/
Beta Was this translation helpful? Give feedback.
All reactions