[antlr-interest] Bug in ANTLR with +=, the second

Terence Parr parrt at cs.usfca.edu
Fri Apr 20 14:17:27 PDT 2007


On Apr 20, 2007, at 2:01 PM, Johannes Luber wrote:

> Hello,
>
> I think, I've discovered another bug. The rule
> HEXADECIMAL_ESCAPE_SEQUENCE in the following grammar:
>
> grammar Test2;
>
> start
>    :	HEXADECIMAL_ESCAPE_SEQUENCE
>    ;
>
> HEXADECIMAL_ESCAPE_SEQUENCE
> 	:	'\\x' (h+=HEX_DIGIT)+ {$h.size()<=4}? // Restrict the number of
> HEX_DIGITs to a maximum of 4
> 	;
> fragment HEX_DIGIT
> 	:	'0'..'9'
> 	|	'A'..'F'
> 	|	'a'..'f'
> 	;

Thanks. I have a reproduced and will fix before I push this next  
build.  I'm just verifying a few more things.  I also have school  
duties til about 1pm tomorrow starting now :(

Ter



More information about the antlr-interest mailing list