[antlr-interest] lexer woes

Loring Craymer lgcraymer at yahoo.com
Tue Mar 4 15:25:28 PST 2008



----- Original Message ----
> From: Matt Benson <gudnabrsam at yahoo.com>
> To: antlr Interest <antlr-interest at antlr.org>
> Sent: Tuesday, March 4, 2008 2:55:09 PM
> Subject: Re: [antlr-interest] lexer woes
> 
> 
> --- Loring Craymer  wrote:
> 
> > 2.)  ANTLR 3 defaults to k=*; the best approach is
> > to leave k alone.  For ANTLR 2, k was to find a
> > minimum value that removed ambiguities; for ANTLR 3,
> > a fixed k is the maximum value investigated for any
> > decision and so weakens the analysis relative to
> > k=*.
> 
> Again, if I don't set k=2 for my lexer grammar, it
> disables rules that I don't want disabled.  As this
> grammar is intended for OSS anyway, I've posted it at

Ter has done less work with restricted analysis than with k=*; consequently, the error checking is weaker and the error reporting should not be trusted overly much.   In this case, the "disabled" messages are useful if you want to fix the grammar; the lack of them with k=2 is a sign that the k=2 analysis is faulty!

--Loring





      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


More information about the antlr-interest mailing list