Open mingodad opened 3 years ago
I've also added dino
grammar to https://mingodad.github.io/parsertl-playground/playground/ an Yacc/Lex
compatible online editor/tester (select Dino-lang parser
from Examples
then click Parse
to see a parser tree for the content in Input source
editor).
Any feedback is welcome !
Sorry for the delay with the answer. I am too busy this time of year.
I've just played with it. It is a really nice service! Thank you.
I have only one wish. The default input source is too specific and complicated. I would prefer to use something simpler, e.g. sieve.d (or fact.d or fib.d) from https://github.com/dino-lang/dino/tree/master/DINO/Examples.
It seems that there is some mistake around
XOR_ASSIGN
because it's defined twice as^=
and~=
inDINO/d_yacc.y
.Using this tool https://www.bottlecaps.de/convert/ (removing everything after the last
%%
) and manually adding the tokens fromDINO/d_kw.shilka
andDINO/d_yacc.y
we can see a railroad diagram for the grammar inDINO/d_yacc.y
copy and paste the EBNF shown bellow on https://www.bottlecaps.de/rr/ui in the tab Edit Grammar then switching to the tab View Diagram.