[antlr-interest] Re: Can ANTLR transform AST to XML?
Pete Forman
pete.forman at westerngeco.com
Mon Mar 14 02:48:49 PST 2005
FC <tangfc2001 at yahoo.com> writes:
> I am still confused with the problem to transform AST
> to XML. Using Antlr I can get AST for Java code, while
> serialization to XML is provided in the class of
> XMLAST which is a derived class of class CommonAST.
> Since base class can not be casted to its sub class,
> how can I cast AST to XMLAST?
Call setASTNodeClass on the [Tree]Parser.
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman at westerngeco.com -./\.- opinion of Schlumberger, Baker
http://petef.port5.com -./\.- Hughes or their divisions.
More information about the antlr-interest
mailing list