Cooklang Tree-Sitter Grammar
This is a Tree-Sitter grammar for Cooklang.
TODO
- [ ] Syntax highlighting
- [ ] Properly handle
unreserved_symbol
s.
Notable Differences
- It appears that the Cooklang BNF doesn't actually allow for punctuation (eg.
-
) in word
s (like ingredient names), but the compiler allows for it. I explicitly put it in this grammar since it seems useful. This is hacky.
- Newline and whitespace characters are handled slightly differently due to the way Tree-Sitter views them.
References