[antlr-interest] CommonTree Serialization to XML
Jim Idle
jimi at temporal-wave.com
Wed May 6 07:33:01 PDT 2009
Des Hartman wrote:
> I saw there was some documentation on serializing an AST (CommonTree)
> to XML. This appears to be only for ANTLR v2 (see below)
>
> Is there a similar facility in 3.1.3?
>
If I were you, I would just copy the code from
org.antlr.runtime.tree.DOTTreeGenerator.java and change it to produce
XML. Should be trivial.
Jim
More information about the antlr-interest
mailing list