Stephen,

For what its worth, I too am spending a considerable amount of time
rewriting trees, and any time I get to something not in "The Definitive
ANTLR Reference", I immediately jump to using code.

At first it was a royal pain because I tried to write the code from scratch.
I then turned to writing each part of the tree in ANTLR, generating the
compiled code, and then cutting and pasting the compiled code back into what
I needed and stitching together. The rewrite comments are a big help here.

This also involved creating imaginary nodes, but be careful not to do what I
just did and create a token of one type and add text of a different type.

This is one area where I have considered converting the trees to PROLOG and
solving or using http://strategoxt.org/

Eric

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