[antlr-interest] Unexpected Token problem
Bryan Ewbank
ewbank at gmail.com
Tue Mar 22 04:10:56 PST 2005
I think the error is caused because IDENT matched "m" - the lexer rule
shown matches exactly one letter, followed by whitespace:
This needs to change by adding a * after the first set of parenthesis
On Tue, 22 Mar 2005 12:35:24 +0100, Meena Moktali <mmoktali at bphx.dk> wrote:
> class MapsLexer extends Lexer;
>
> options{k=2;}
>
> IDENT : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'\'')(WS)* ;
More information about the antlr-interest
mailing list