[antlr-interest] Referencing Template(s) in a grammar.

Kaleb Pederson kaleb.pederson at gmail.com
Thu Nov 12 11:08:16 PST 2009

On Wed, Nov 11, 2009 at 9:00 PM,  <craig at palantir.co.za> wrote:
> Hi,
> I have a grammar that I am using to generate sql. My question is: Is there any
> easy way to refer to a 'parent' template in a child production.


> I need xmlWhere(declarations={$d}...) but it's not available.

I was going to say that you need to use scopes to make that available
later in your code, but it looks like you're already using scopes.
Can you elaborate a bit on what I may have missed that makes scopes
insufficient for your needs?


Kaleb Pederson

Blog - http://kalebpederson.com
Twitter - http://twitter.com/kalebpederson

More information about the antlr-interest mailing list