[antlr-interest] lexer lookahead in antlr v3

Johannes Luber JALuber at gmx.de
Thu Feb 12 03:55:49 PST 2009


>  Hello everyone!
> 
> How can I set k=4(for example) for lexer in v3
> I'm trying to convert my v2 grammar...

Use the option "k=4;" in the options block. You can set it globally or for only certain rules (which can have their own option blocks). The default behavior is switched on by "k=*;".

Johannes
> 
> Thanks in advance.
> 
> Jon

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01


More information about the antlr-interest mailing list