-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grammar railroad diagram #365
Comments
@ZiQiangZhou your comment feels like span/fishing |
@mingodad I agree, having railroad diagrams would be useful. I've started getting them, but didn't organize into a page yet: I was using Your message says "see below", but I don't see any diagrams. Do I get it right that you actually produced those? |
Thank you for reply !
But I forgot to do so on the first message (I'm editing it now and adding it). |
Oh wow, this is great! Somehow I didn't know you can simply render BNFs. Thank you! @mingodad do you want to send a pull-request to merge your changes to syntax file? |
After manually converting the grammar shown here https://github.com/EvgSkv/logica/blob/main/docs/syntax.md to an EBNF understood by https://github.com/GuntherRademacher/rr we can have a nice navigable railroad diagram (see bellow).
And looking at the railroad diagram I suspect that the grammar can be refined to more closely resembles that hard coded grammar in https://github.com/EvgSkv/logica/blob/main/parser_py/parse.py .
The text was updated successfully, but these errors were encountered: