Railroad diagram of python's grammar - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html) +--- Forum: Bar (https://python-forum.io/forum-27.html) +--- Thread: Railroad diagram of python's grammar (/thread-24954.html) |
Railroad diagram of python's grammar - Gribouillis - Mar-12-2020 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! RE: Railroad diagram of python's grammar - Larz60+ - Mar-12-2020 This is so cool Brewster! RE: Railroad diagram of python's grammar - Gribouillis - Mar-12-2020 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. RE: Railroad diagram of python's grammar - Gribouillis - Mar-12-2020 The third version above is even cooler... |