[antlr-interest] Two more lexer bugs in antlr-03-16-2007.10

Terence Parr parrt at cs.usfca.edu
Fri Mar 16 14:22:31 PDT 2007


Thanks for the exellent unit tests.

Try antlr-03-16-2007.14.tar.gz

Gavin: should fix your stuff too.

Ter
On Mar 16, 2007, at 1:15 PM, Allen Short wrote:

> lexer grammar tiny4;
>
> Dec: ('0' | '1'..'9' '0'..'9'*) ;
>
> Oct : '0' ('0'..'7')+ ;
>
> // error(100): tiny4.g:0:0: syntax error: buildnfa: <AST>:3:6:  
> unexpected AST node: BLOCK
>
>
> lexer grammar tiny5;
>
> A: 'a';
> X: A+;
> Y: 'b' A;
>
> // error(100): tiny5.g:0:0: syntax error: buildnfa: <AST>:4:11:  
> unexpected AST node: +
> // Error also occurs if 'a' is substituted for A in X and Y



More information about the antlr-interest mailing list