[antlr-interest] semantic predicates vs. counter predicates

Terence Parr parrt at jguru.com
Fri Dec 7 13:07:28 PST 2001

On Friday, December 7, 2001, at 10:29  AM, Tom Moog wrote:

> Yes, but "real" semantic predicates require the
> computation of context so they are applied only
> when the lookahead is correct when they are
> hoisted.  However, counters have 0 context.

That's true...but if the loop stopped early due to syntax then the 
trailing sem pred that validates the count would catch it, wouldn't it?

Boy this stuff is tricky!


> --
Chief Scientist & Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org


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

More information about the antlr-interest mailing list