I wrote a small program to take the grammar and generate input to the dot program from Graphviz. You can generate the diagrams with some scripts available on Github or view a prebuilt version here: http://hackerpilot.org/d/dgrammar.zip Please take a look at this and let me know if you find any mistakes.