I discovered that antlrworks-1.4.jar is capable of producing syntax diagrams, and I ran the modified DRL grammar through it.
The result is disappointing:
- eps output is broken: boxes are empty, texts are somewhere outside. (I could fix this, but then it would suffer from the same problems as jpg/png - see below.)
- jpg, png aren't useful, because
- There is no wrapping of wide diagrams.
- keywords (e.g. 'package') are represented as a sequence of single letter terminals, which looks terrible (and produces even wider diagrams).
- Lines overlap in certain cases, which is confusing.
-W