3 ms·
For people interested on grammars there is also: - Convert tree-sitter grammar.json to EBNF https://meimporta.eu/tree-sitter/json2ebnf.html https://meimporta.
by mingodad 3y ago
For people interested on grammars there is also:
- Convert tree-sitter grammar.json to EBNF https://meimporta.eu/tree-sitter/json2ebnf.html https://meimporta.eu/tree-sitter/json2ebnf.html
- An alternative syntax to write tree-sitter grammars https://mingodad.github.io/lua-wasm-playground/ https://mingodad.github.io/lua-wasm-playground/ (select "Tree-sitter-ebnf-generator" from "Examples" then click "Run" to see the tree-sitter grammar for the content in "Input Text (arg[1])")
- An Yacc/Lex online editor/tester with several example
grammars https://mingodad.github.io/parsertl-playground/playground/ https://mingodad.github.io/parsertl-playground/playground/