ArthurSonzogni / Diagon

Interactive ASCII art diagram generators. :star2:
https://arthursonzogni.com/Diagon/
MIT License
1.48k stars 56 forks source link

Some grammar online demos not working #19

Open mingodad opened 3 years ago

mingodad commented 3 years ago

When trying https://arthursonzogni.com/Diagon/#Grammar and selecting ISO-EBNF-EBNF we get this error:

2:14: Syntax error: expected production rule separator

And when selecting WSN-WSN we get this error:

2:14: Syntax error
mingodad commented 3 years ago

My bad it seems that we need to select input and output according, maybe could be a good idea to auto select then for the demos in a way that at least do not give an error.

ArthurSonzogni commented 3 years ago

Adding the "auto" mode for input seems like a nice addition.

For this translator, I am reusing the KGT project. Unfortunately, this wasn't really supposed to be called as a library and this project is using "exit(...)" in many places, which prevents Diagon from continuing on errors.

I remember I started working on this here: https://github.com/katef/kgt/issues/38 but I am not sure I finished. I would have to to implement your feature.

+CC: @katef FYI.