[antlr-interest] Re: yet another java 1.5 grammar

Michael Stahl gcpa-antlr-interest at m.gmane.org
Thu Aug 26 07:09:11 PDT 2004


On Wed, 25 Aug 2004 22:21:47 +0000, thrutchy wrote:
> --- In antlr-interest at yahoogroups.com, "lgcraymer" <lgc at m...> wrote:
>> --- In antlr-interest at yahoogroups.com, Terence Parr <parrt at c...> wrote:
>> > 
>> > On Aug 25, 2004, at 11:02 AM, Michael Stahl wrote:
>> ... 
>> > > do you have any comment on the syntactic predicate in loops
>> > > issue i have with antlr? (see original posting)
>> > 
>> > I'm completely underwater at the moment breathing through a small
> straw 
>> > ;)  I'm gearing up for school; advising students and prepping my
> first 
>> > classes.  Ugh.  I expect to surface next week sometime. :)
>> 
>> Ter may be completely under water at the moment, but the "synpreds in
>> loops" issue has been raised as an ANTLR 3 design concern and one that
>> will probably be addressed.  Right now, you can use synpreds in
>> recursive definitions, but not in loops.  That rules out an important
>> class of refactorings:  it is important that logically equivalent
>> constructs actually have the same behavior!
>> 
>> --Loring
> 
> 
> As far as I can tell, syntactic predicates with loops do work - you
> just have to ignore the warning.  I use a wrapper to antlr that
> filters out these (one of my previous posts has it).

ah, i have found a message from you from five days ago.
if i understand this correctly, then antlr will actually
do the right thing, but gives out a totally spurious
warning. if that is correct, then, could that warning be
removed in a future antlr release (2.7.5)?

michael




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list