[antlr-interest] wildcard in tree grammar

Sam Harwell sharwell at pixelminegames.com
Sat Nov 29 16:29:11 PST 2008


I have a reply earlier in this thread that shows the necessary condition
for handling the two cases separately. :)

Sam

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Terence Parr
Sent: Saturday, November 29, 2008 6:20 PM
To: Gavin Lambert
Cc: antlr-interest Interest
Subject: Re: [antlr-interest] wildcard in tree grammar

I agree. '.' as root should be ok.  I'll have to go back and make it  
context sensitive.  Right now, '.' can be a subtree as well.  it would  
mess up analysis.
Ter
On Nov 29, 2008, at 3:23 PM, Gavin Lambert wrote:

> At 09:58 30/11/2008, Oliver Zeigermann wrote:
> >Hmmm. Just checked that with the latest snapshot of ANTLR 3.2,
> >but it really does not work, but it should, right? Why can "."
> >not be a tree root?
>
> Yes, that's what Sam Harwell and myself were discussing earlier in  
> this thread; I think we agree that this should be considered as valid.
>
> (I gave a detailed description of how I think it should behave  
> earlier on, but the general idea was to make ANTLR parse the tree as  
> if it were a "real" tree rather than the "flat" tree that it's  
> actually implemented as.)
>


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-addr
ess



More information about the antlr-interest mailing list