Skip to content

addcninblue/tree-sitter-cooklang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages