[antlr-interest] Request for Change regarding Lexer (?)

Terence Parr parrt at cs.usfca.edu
Tue Feb 16 11:13:24 PST 2010


On Feb 16, 2010, at 11:11 AM, Marcin Rzeźnicki wrote:

> 
> 
> 2010/2/16 Terence Parr <parrt at cs.usfca.edu>
> The key to your question was:
> 
> "and it occurred to me that ANTLR does not really inspect follow set, it
> seems to inspect only what's left in the rule itself."
> 
> That improvement/bug is what I intend to fix :)  Actually, ANTLR v4 lexers will just plain work better (i.e., more like what you expect) ;)
> 
> 
> Well, yes, right, that would be really nice (by the way, when is this new release coming?),

not sure. i'm focusing on error handlng first then will do the meat.  Almost done with error handling.

> but when I am thinking of this; it would not really save the day in my case as follow set of LineSequence is actually {  '}' , ']'  } and what I need is loop escaping dependent on previous match, so some constrained context passing would be nice. 

try predicates. :)
Ter


More information about the antlr-interest mailing list