Tree-sitter converter to EBNF for railroad diagram

Examples

Or type the raw url to 'grammar.json' here

Copy and paste the EBNF shown bellow on https://www.bottlecaps.de/rr/ui on the tab 'Edit Grammar' the click on the tab 'View Diagram' to see/download a navigable railroad diagram.

Or press to automatically send it to https://www.bottlecaps.de/rr/ui .

Noticed that from the same author (Gunther Rademacher) of the railroad diagram generator there is:

Convert2EBNF that convert to EBNF from ABNF, ANTLR 3, ANTLR 4, Bison, GOLD, Instaparse, Invisible XML, JavaCC, Jison, PEG.js, Xtext .

REx Parser Generator that generates parsers from EBNF in the following languages: C++, C#, Haxe, Java, JavaScript, TypeScript, Scala, XQuery, XSLT, XML .