Menu

#2 Tree should have some persistent form

open
nobody
None
2
2001-09-13
2001-06-22
No

In fact, when the source base is large, it takes a lot
of time to parse source code and to resolve a tree.
There should be some mechanism, which will enable to
save the built tree for the future usage.

The simpliest solution is to make a tree serializable.
The more advanced one is to create ORDBMS mapping and
to save tree there.

Discussion

  • Andrew McCormick

    • priority: 5 --> 2
     
  • Andrew McCormick

    Logged In: YES
    user_id=5928

    Apparently, ASTs are already serializable. See
    <http://antlr.org/doc/trees.html#AST%20Serialization> for
    more information. However, I still see this as a relatively
    low priority.

     
  • Mike Aizatsky

    Mike Aizatsky - 2001-09-14

    Logged In: YES
    user_id=76543

    Well, AST is really serializalbe, but any effort to
    serialize the complete AST with resolved references will
    fail because a lot of your internal data structures uses
    unserializable classes (e.g. java.lang.Method).

     

Log in to post a comment.

MongoDB Logo MongoDB