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

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


At 02:27 AM 10/14/2007, Benjamin Niemann wrote:
>Hi Gerald,
>
>The upcoming 3.1 release features AST rewriting for tree grammars. As part
>of this, the API of BaseTree has been extended to support delete, replace
>and insert operations.

I did look at the source pulled from 
http://fisheye2.cenqua.com/browse/antlr/runtime/Java/src, but did not 
see anything that could be used directly.

I know too little about how Antlr's planned AST -> AST rewrites will 
work to know whether it will work well for interactive refactorings 
-- FWIW, will need to be able to pick out and rewrite a single node 
at a time and fire an event that captures just the AST change, 
potentially on every keystroke.

Thanks,
Gerald
----
Gerald B. Rosenberg, Esq.
NewTechLaw
285 Hamilton Avenue, Suite 520
Palo Alto, CA  94301-2576

650.325.2100  (office)  /  650.703.1724  (cell)
650.325.2107  (fax)

www.newtechlaw.com



More information about the antlr-interest mailing list