Am Wed, 23 Sep 2009 15:29:32 -0700 schrieb Jim Idle: > > Could anyone explain this error and how to prevent it? > > > > Well, you have not specified to the lexer what it should do with > those chars (I assume that this is C from your code above): > > NL : ('\r' | '\n')+ { $channel=HIDDEN; } ; > ANY : . { SKIP(); } ; // Always make this the very last lexer rule
Thanks for your answers. I tried it and it works. Now I've the next problem that I tried to solve with a greedy=false rule, but failed. Input Data: key:value key:value key:value key:value key:value For key are all chars allowed until the first ':' arrives. For value all chars are allowed. Also another ':' which should no be handled special. My example works, but it fails e.g. is value is an URL (http://...). Could you help me again? regards Andreas 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 -~----------~----~----~----~------~----~------~--~---