[antlr-interest] Is there an AST rewrite library available?

Gerald B. Rosenberg gbr at newtechlaw.com
Sun Oct 14 13:15:01 PDT 2007


Thanks, that helps.

At 03:59 PM 10/13/2007, David Holroyd wrote:
>Hi,
>
>I've done some very basic stuff to allow inserting and deleting (though
>not specifically moving yet) of AST nodes, while attempting to make the
>appropriate updates to the tokens so that the modified code can be
>recovered without having to pretty-print the AST (i.e. I want AST
>modifications to be format-preserving).
>
>The code is part of metaas,
>   http://www.badgers-in-foil.co.uk/projects/metaas/
>
>The business-end of the codebase is here,
> 
>http://svn.badgers-in-foil.co.uk/metaas/trunk/src/main/java/uk/co/badgersinfoil/metaas/impl/antlr/
>
>It's not great, but it could split it off into a standalone library, if
>useful to others.
>
>
>ta,
>dave
>
>--
>http://david.holroyd.me.uk/

----
Gerald B. Rosenberg
Certiv Analytics

www.certiv.net



More information about the antlr-interest mailing list