[antlr-interest] Root node transformation

Jeff Dahl jddahl at micron.com
Mon Jun 20 11:54:53 PDT 2005


Is it possible to transform the tree:

    #( A #( B C D ) E ... )

to

    #( B C D E ... )

How do you replace the root node with the first child and all the other 
children of the root node?

Thanks,
Jeff Dahl


More information about the antlr-interest mailing list