[antlr-interest] Simple lexer grammar doesn't match '''

Gavin Lambert antlr at mirality.co.nz
Wed Aug 29 05:40:14 PDT 2007


At 00:07 30/08/2007, Mauro Pellicioli wrote:
 >Great!It works, I only modified STRING rule adding 'u2019'.

... which means it'll happen again the next time someone uses a 
funny character.

Is there any particular reason why you're not using an unbounded 
range?  It'd be simpler to specify this as an "all characters 
except *these*" block.



More information about the antlr-interest mailing list