[antlr-interest] largest match

etoffi2 etoffi2 at yahoo.com
Mon Jan 7 05:21:45 PST 2002


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/ 



More information about the antlr-interest mailing list