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

Allen Short washort at divmod.com
Fri Mar 16 13:15:47 PDT 2007


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