[antlr-interest] Lexer bug?

Clifford Heath clifford.heath at gmail.com
Sun Oct 21 17:13:33 PDT 2007


shmuel siegel wrote:
> BTW, since you are using skip for WS and not a hidden channel, you gain 
> nothing by tring to do it all in the lexer. If you change number to a 
> parser rule and change the fragments to regular tokens, your grammar 
> will work.

Interesting idea, but how do I then prevent the lexer from allowing
interjected whitespace, without dropping the WS rule and using
explicit WS skipping everywhere else in the grammar?

Clifford Heath.



More information about the antlr-interest mailing list