I discovered that antlrworks-1.4.jar is capable of producing syntax diagrams, and I ran the modified DRL grammar through it.<br><br>The result is disappointing:<br><ul><li>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.)<br>
</li><li>jpg, png aren&#39;t useful, because</li></ul><ol style="margin-left: 40px;"><li>There is no wrapping of wide diagrams.</li><li>keywords (e.g. &#39;package&#39;) are represented as a sequence of single letter terminals, which looks terrible (and produces even wider diagrams).</li>
<li>Lines overlap in certain cases, which is confusing.<br></li></ol>-W<br><br>