Easier/cleaner way to write tree-sitter grammar
mingodad opened this issue · comments
Here https://mingodad.github.io/lua-wasm-playground/ there is an easier/cleaner way to write tree-sitter grammars like vimdoc (select Tree-sitter-ebnf-generator-VimDoc from Examples then click Run to see a full commented out grammar.js from the EBNF variant describng the grammar in Input Text (arg[1])).
I hope it can be helpful !
"easier/cleaner" meaning one can start with an EBNF grammar instead of editing grammar.js directly? Good to know, thanks.
Thank you, but writing grammars is a craft, not a science. In fact, blindly converting an EBNF is usually a bad idea.
(PSA: I hope you're not going to open such an "issue" at every parser repo; this would count as spam.)
I guess that none of you looked at it before reply !
Am I right ?
I did look at it. You gave no explanation and I made my best guess as to what you mean.
Thank you !