[antlr-interest] Can tree rewriting be done (easily/out-of-the-box) with the current ANTLR 3.x?

Harald Mueller harald_m_mueller at gmx.de
Thu Dec 13 06:09:24 PST 2007


Thanks Tom - 

it rules out 3.1 ;-) (I'm not going into some production software with it ...).
Anyone a take on how to do it (manually (as little as possible)) with 3.0?

Thx
Harald

-------- Original-Nachricht --------
> Datum: Thu, 13 Dec 2007 08:47:17 -0500
> Von: "Tom Smith" <yotommy at gmail.com>
> An: "Harald Mueller" <harald_m_mueller at gmx.de>
> CC: antlr-interest at antlr.org
> Betreff: Re: [antlr-interest] Can tree rewriting be done (easily/out-of-the-box) with the current ANTLR 3.x?

> Harald,
> 
> Looks like this is in the 3.1 early access release.  Here is an excerpt
> from
> CHANGES.txt:
> 
> July 20, 2007
> 
> * Added AST construction for tree parsers including -> rewrite rules.
>   Rewrite mode (rewrite=true) alters the tree in place rather than
>   constructing a whole new tree.  Implementation notes:
> 
> Hope this helps,
> Tom.
> 
> On Dec 13, 2007 8:34 AM, Harald Mueller <harald_m_mueller at gmx.de> wrote:
> 
> > Hi -
> >
> > sorry for that quesatsion: I searched the archives and found a posting
> > from Feb 2007 where Terrence says he can do it on one blackboard.
> However, I
> > did not find more indications whether it works now "out of the box."
> >
> > If it does: Where's documentation?
> >
> > If not: How can I do it (as manually and as node-copying as you have
> it)?
> > (yes, I can find out the pure manual code myself - but if someone
> already
> > has some idioms, it would be nice if she/he could share them).
> >
> > Ah yes: The software where I need this has to be delivered on Monday ...
> >
> > Regards
> > Harald
> >
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?
> > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


More information about the antlr-interest mailing list