[antlr-interest] EarlyExitException Problem

Gavin Lambert antlr at mirality.co.nz
Tue Jul 21 12:36:14 PDT 2009


At 04:58 22/07/2009, Luís Reis wrote:
>Hello, I had a grammar written in Antlr 3 and I 
>am getting EarlyExitExceptions.
>This grammar attempts to match things like:
>
>"[1..3]", "[ 1 .. 3]", "[ 1 .. x ]", "[x..1]", etc.
>
>However, when provided  "[1..3]", it exits with 
>an EarlyExitException.
>line 1:3 required (...)+ loop did not match 
>anything at character '.'
>MismatchedTokenException(5!=7)
>line 1:5 mismatched input ']' expecting TO

<<http://www.antlr.org/wiki/display/ANTLR3/Lexer+grammar+for+floating+point,+dot,+range,+time+specs>http://www.antlr.org/wiki/display/ANTLR3/Lexer+grammar+for+floating+point,+dot,+range,+time+specs>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090722/08683dab/attachment.html 


More information about the antlr-interest mailing list