[antlr-interest] Using range operator (INT .. INT)
Bart Kiers
bkiers at gmail.com
Sun Nov 13 10:14:51 PST 2011
On Sun, Nov 13, 2011 at 6:59 PM, Jiwon Seo <seojiwon at gmail.com> wrote:
> Thanks for the reply!
>
> I'm trying to do it without extending lexer since I think my
> definition of FLOAT should not be a problem with the range operator.
But it _is_ a problem if the `..` is preceded by an INT: the ('0'..'9')+
'.' is consumed by FLOAT and can then not match ('0'..'9')+ EXPONENT?,
resulting in the MismatchedTokenException.
Regards,
Bart.
More information about the antlr-interest
mailing list