This simplistic grammar can't be compiled: grammar T;
x : '\u006c'; y : '\u006C'; z : 'l'; ANTLR reports this error: The following token definitions can never be matched because prior tokens match the same input: T__5,T__6 In my grammar, by accident I had both ASCII character and Unicode escaped character and it took me hours to figure out the problem. I think ANTLR should recognize those are the same character before creating tokens for them to avoid this error. Best wishes, Minh. -- Lê Ngọc Minh Hanoi University of Science and Technology, Computer Science Skype: ngocminh_oss | Yahoo: ngocminh_oss | Tel: +84 988 456 037 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
