At 03:06 23/07/2009, Tim Williams wrote: >WILD_STRING: (('a'..'z'|'A'..'Z')* ('*'|'?') >('a'..'z'|'A'..'Z')*)+ > >This generates the warning "Decision can match input >('a'..'z'|'A'..'Z') using multiple alternatives 1,2 disabling >alternative(s) 2."
WILD_STRING : ('a'..'z'|'A'..'Z')* ( ('*'|'?') ('a'..'z'|'A'..'Z')* )+ ; This might end up being ambiguous with an ID-style rule, though, since the lexer doesn't always look far enough ahead to deal with distinguishing characters after loops. List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---