addcninblue / tree-sitter-cooklang

Tree-Sitter Grammar for Cooklang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cooklang Tree-Sitter Grammar

This is a Tree-Sitter grammar for Cooklang.

TODO

  • Syntax highlighting
  • Properly handle unreserved_symbols.

Notable Differences

  • It appears that the Cooklang BNF doesn't actually allow for punctuation (eg. -) in words (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

About

Tree-Sitter Grammar for Cooklang


Languages

Language:C 97.4%Language:JavaScript 1.3%Language:Rust 0.9%Language:C++ 0.3%Language:Python 0.1%