-
Notifications
You must be signed in to change notification settings - Fork 508
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
Syntax Diagrams #398
Comments
Someone created a tool to generate railroad diagrams for the rust grammar here: https://github.com/willy610/bnf2railroad He mentioned it in rust-lang/rust#30942, but I haven't seen any recent activity. |
Thoughts? |
I've just added two examples ( |
I don't have too much time to tinker with this right now. The main requirements for a first pass I have for this are:
Also, we should not create railroad diagrams that are just a long switch statement of simple things like If you or anybody else wants to tackle that, I would be ecstatic. |
If you were to use |
I don't remember what our browser support story is like, but we can re-render the SVGs as PNGs if necessary. |
A project was made to create syntax diagrams out of
macro_rules!
. This has reminded me how useful they were for me learning JavaScript (specifically "The Good Parts") and I feel like we should have them alongside the BNF descriptions of the grammar in the reference.I do not have a plan to actually realize this.
The text was updated successfully, but these errors were encountered: