[antlr-interest] Serializing a CommonTree

Jeff Hair knifed at gmail.com
Sat Jun 4 06:03:24 PDT 2011


Doesn't look they implement Serializable.

https://github.com/antlr/antlr/tree/master/runtime/Java/src/main/java/org/antlr/runtime/tree

<https://github.com/antlr/antlr/tree/master/runtime/Java/src/main/java/org/antlr/runtime/tree>So
you will have to serialize through whatever voodoo allows one to serialize a
non-Serializable class (I'm sure it's possible some way or another).

(Sorry, forgot to Reply to All)

On Fri, Jun 3, 2011 at 5:37 PM, David Smith <david.smith at cc.gatech.edu>wrote:

> I am really appreciative of the speed and expertise of the answers
> from this list.  Hopefully, this is not as rudimentary as some of my
> earlier questions.
>
> For fairly obvious reasons, I would like to write out and read in a
> CommonTree. Is it possible to serialize one?  I don't think i can
> reconstruct a tree from the result of a toStringTree() call.  If so, how?
>
>                                 DMS
>
> David M. Smith http://www.cc.gatech.edu/fac/David.Smith
> Georgia Institute of Technology, College of Computing
> Sent from my ASR-33 Teletype
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list