[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AST serialization




>Hi Mathias.
>
>Can you tell me what files/macros had to be changed (and confirm that I
>only need to add "implements Serializable"), so that I do the same thing
>in the next SableCC distribution?  It would be nice to provide a
>Serializable AST out-of-the-box.
>
>Thanks
>
>Etienne
>-- 

Yes, you need to change the token.txt file in order to make Tokens 
serializable, the production.txt and util.txt files where classes for nodes 
are described. You do not change any java source code. For the moment, I did 
not find any trouble in saving or restoring AST.

Mathias Braux