Python Forum

Full Version: Railroad diagram of python's grammar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
While creating a new parser, I produced a railroad diagram of python 3.8's syntax as described here. The diagram was drawn by the syntrax module. Needless to say that the conversion of the formal grammar to a railroad diagram is automated in my program... It is not perfect but it is understandable. Enjoy the pdf!
This is so cool Brewster!
I updated the first post with a better version of the railroad diagram obtained by using syntrax 1.1 from the github source instead of the version 1.0 installed by pip.
The third version above is even cooler...