Obelisk icon indicating copy to clipboard operation
Obelisk copied to clipboard

Output EBNF for railroad diagram

Open mingodad opened this issue 2 years ago • 1 comments

Would be nice if this tool could output an EBNF accepted by https://www.bottlecaps.de/rr/ui .

Ideally menhir would have an option to output this kind of naked grammar to facilitate the work like I did for bison, byacc, ... here https://github.com/mingodad/lalr-parser-test .

See discussion here https://github.com/stan-dev/stanc3/issues/1142 .

mingodad avatar Mar 09 '22 16:03 mingodad

I added support for EBNF in dev branch, could you try it and tell me if it's okay for what you had in mind? I checked with Obelisk's parser that it works with the railroad diagram generator you mentioned but maybe I missed some corner cases.

Lelio-Brun avatar Mar 21 '22 19:03 Lelio-Brun