[antlr-interest] StringTemplate is Ok, but what about "Action code"?

Loring Craymer lgcraymer at yahoo.com
Tue Nov 27 12:42:00 PST 2007


Arnulf--

The current version of Yggdrasil incorporates the 3.0 release internals, and the implementation is fairly solid (attribute translation and tree construction features are well tested).  The attribute syntax has changed slightly from the draft manual I had posted at antlr.org but is unlikely to change further.  I will post an updated draft manual on antlr.org and hope to get the sourceforge site up in February (I am in the process of moving from one coast to the other, so I do not have much free time before then).

Most of my recent efforts have been focused on the tree grammar generator, especially on the algorithm for modeling attribute assignments.  I had originally intended to do the "Yggdrasil in Yggdrasil" step first, but after halfway completing the ANTLR 2 to Yggdrasil translator I decided that it made more sense to finish the grammar generator first and use that to help finish the translator.  I have completed  but not yet tested the attribute modeling transformation passes.  [The algorithm proved more difficult than I had anticipated.]  Once I have the modeling passes tested, it should not take long to do the "^ in loop" transformation passes and have a working tree grammar generator.

--Loring


----- Original Message ----
> From: Arnulf Heller <aheller at gmx.at>
> To: antlr-interest at antlr.org
> Sent: Tuesday, November 27, 2007 11:00:44 AM
> Subject: Re: [antlr-interest] StringTemplate is Ok, but what about  "Action code"?
> 
> hi,
> 
> Loring Craymer contributed "Yggdrasil" for this task:
> http://www.antlr.org/article/1153859608705/yggdrasil.pdf
> http://www.antlr.org/share/list
> 
> It seems to be based on ANTLR3 but I don't know to which extent it is 
> compatible to recent versions. The Draft is rather old. Maybe Loring 
> can tell us about the state of Yggdrasil.
> 
> I'd also appreciate seeing language independent action code embedded 
> directly into ANTLR3 (e.g. dictionaries). I assume this would also 
> make debugging action code in grammars with ANTLRWorks much easier.
> 
> hth,
> Arnulf
> 
> At 16:35 27.11.2007, you wrote:
> >Hi,
> >
> >With StringTemplate we can achieve low coupling with the target
> >language. But what about Action code?
> >How we should achieve low coupling with the target language?
> >
> >Thanks in advance,
> >Cristian.
> >
> >--
> >GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch
> 
> 




      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the antlr-interest mailing list