[antlr-interest] largest match
mzukowski at bco.com
mzukowski at bco.com
Mon Jan 7 06:41:34 PST 2002
Are you using literals? What does your ID rule look like where you have the
testLiterals=true option on?
Sounds to me like you have a hard coded lexer rule like
INT:"int";
and you should be using literals instead.
Monty
> -----Original Message-----
> From: etoffi2 [mailto:etoffi2 at yahoo.com]
> Sent: Monday, January 07, 2002 5:22 AM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] largest match
>
>
> hello all,
>
> is there a way to make antlr match the longest token?
> i have a language parser which is returning keywords instead of
> idents:
>
> TOK_INTEGER instead of TOK_IDENT for:
>
> int integer;
> ^^^
>
> this is really killing my compiler.
> thanx in advance.
>
> --
> etoffi
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list