[antlr-interest] Re: yet another java 1.5 grammar
thrutchy
eric_mahurin at yahoo.com
Wed Aug 25 14:21:47 PDT 2004
--- 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).
Eric
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