Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a bug in DOT generation in ANTLR (3.0)?

1 view
Skip to first unread message

Arto V Viitanen

unread,
Aug 3, 2007, 12:40:22 PM8/3/07
to
I used the example in Terence Parr's "The Definite ANTLR, Building
Domain-Specific Languages", page 191 to generate DOT from the abstract
syntax table. I directed the result DOT file to "dot -svg" and stored
the SVG file. Then I generated an HTML file that contains the program
file and its abstract syntax file.

This was quite nice, since I could read the test program and resulting
AST same time. But, if the program has string literals, dot does not
understand them (I guess it thinks they are meant as label names), so
all strings nodes are empty.

So, is the problem in ANTLR or DOT and how can I fix it?

--

Arto Viitanen
Finland

0 new messages