Python Forum
Railroad diagram of python's grammar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Railroad diagram of python's grammar
#1
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!

Attached Files

.pdf   python38-3.pdf (Size: 165.67 KB / Downloads: 390)
Reply
#2
This is so cool Brewster!
Reply
#3
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.
Reply
#4
The third version above is even cooler...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why grammar is import metulburr 7 5,960 Feb-19-2017, 12:24 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020