[antlr-interest] Re: tree --> tree transformation
parrt at cs.usfca.edu
Thu Jun 22 12:27:26 PDT 2006
On Jun 22, 2006, at 12:06 PM, Bernhard Damberger wrote:
> As a starting point, would it be possible for me to just make the
> two fixes you outline below (locally), and just build trees using
> that for now? It would be nice to be able to continue my
> development while your still hashing out the issue of dups/no dups
Most likely that would work.
> Might also want to consider how TreeAdaptors fit into this whole
> Is this feature going to be working for the beta?
Nope... > 3.0 most likely
> PS I was trying to manually move the Java grammer from 2.7 to 3.0.
> Almost got it working, but I don't understand enough about the
> parser (LL(*) etc) to finish it.
Did you see the example-v3/java/java.g, which is exactly that?
> But what I did do instead was use antlr 2.7 to create a tree that
> implements both antlr.AST and org.antlr.Tree, and then use the
> antlr 3.0 to do my tree transformation...which now I find is not
> yet done. :-( Its a hack, but it works.
> PPS Whats the diff between ^ and ^^ in antlr 3.0?
^ in v2 is ^^ in v3. Plain ^ in v3 means make root of enclosing
subtree, which can be a subrule not just a root.
More information about the antlr-interest