[antlr-interest] subtrees which I don't care about and .*

Carter Cheng carter_cheng at yahoo.com
Mon Feb 16 13:31:16 PST 2009


Thanks Jim. What I am doing in the mean time is just replicating my entire tree grammar for each of the two passes. I suspect given my file sizes are not large this should not be a problem.


--- On Sun, 2/15/09, Jim Idle <jimi at temporal-wave.com> wrote:

> From: Jim Idle <jimi at temporal-wave.com>
> Subject: Re: [antlr-interest] subtrees which I don't care about and .*
> To: 
> Cc: antlr-interest at antlr.org
> Date: Sunday, February 15, 2009, 7:30 PM
> Carter Cheng wrote:
> > Hi,
> >
> > I was spending sometime with my tree grammar today and
> noticed that the .* rules dont seem to properly match/ignore
> subtrees and instead generate an error upon encountering
> DOWN. 
> >
> > If I am correct about this, what is the proper way of
> creating tree grammars where I am only interested in a
> subset of the rules in the generated tree? Is there some
> method for doing this using grammar inheritance?
> >   
> There are changes for this in the latest Java source that
> have yet to 
> come in to the latest C source,so I suspect that you are
> running in to 
> the need for those changes.
> 
> Jim
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


      


More information about the antlr-interest mailing list