-
Notifications
You must be signed in to change notification settings - Fork 10
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 #46
Comments
I've also just added this project grammar to https://mingodad.github.io/parsertl-playground/playground/ an Notice that I replaced all occurrences of right recursion by left recursion because |
This is super cool! Thanks for sharing this :D. Lately I've actually been strongly considering a future parsing migration from JCup to ANTLR, and I get the feeling that even just having this simplified EBNF with all the production actions stripped out would already make that a lot easier. |
Using a script doing a bit of regex search and repace and manually adding the tokens from the lexer we can get an
EBNF
understood by (IPV6) https://www.bottlecaps.de/rr/ui or (IPV4) https://rr.red-dove.com/ui to generate a nice navigable railroad diagram that can help document/develop/debug this project grammar.Follow the instructions shown bellow at the top:
Script using
Lua
string pattern matching:The text was updated successfully, but these errors were encountered: