[antlr-interest] Tree to File

mzukowski at yci.com mzukowski at yci.com
Fri Jun 13 10:16:18 PDT 2003


Also it can be serialized to XML.

http://www.antlr.org/doc/trees.html#AST%20Serialization

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam at yahoo.com] 
Sent: Friday, June 13, 2003 10:14 AM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Tree to File


You could store the String representations of the tree
using the toString* methods on the AST.  If you want
to store your tree in some other format, your
TreeParser will have to know what to output for each
node it encounters in the tree.

-Matt

--- mahesh_monu <mahesh_monu at yahoo.com> wrote:
> How to write a Tree into a file i.e how to store a
> tree into a file.
> 
> 
> 
> 
> my tree is
> 
> 
> 
> 
> class NX extends TreeParser;
> 
> 
> /** some variables */
> 
> 
> 
> 
> how to write this tree into the file and store it
> 
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list