We have a small language implemented with ANTLR 3.2.

We need to transmit a tree through RMI and therefore the tree
needs to be serializable. I am very curious to learn what the
best approach to serializing an ANTLR tree is.

I have noticed that BaseTree or CommonTree are does not
implement Serializable, while, in ANTLR2, BaseAST does implement
Serializable. - What is the rationale behind this?

- Is it "better" (in terms of performance and robustness) to:
  (a) rely on the default Java serialization mechanism that uses
      the internal representation of the AST nodes to serialize
      the AST, or
  (b) serialize to a text format and then use an ANTLR parser to
      parse that format upon deserialization, or
  (c) something clever I haven't thought of?

Thanks! :)

-- 
Rune Glerup


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to