[antlr-interest] token definitions can never be matched because prior tokens match the same input
matt.jazz
matt.jazz at laposte.net
Thu Nov 27 00:25:15 PST 2008
Hello,
I'm new to ANTLR and i need to create a translator. I encounter a problem with the following grammar.
Grammar :
r0 : 'OK' r1 r2? r3?
;
r1 : 'V'
| 'W'
;
r2 : ('A'..'Z''0..9')('A'..'Z''0..9')('A'..'Z''0..9')
;
r3 : ('A'..'Z''0..9')('A'..'Z''0..9')
;
Examples of valid sentences :
OK W 65 0X9
OK V AZ 78F
Error :
The following token definitions can never be matched because prior tokens match the same input
Thanks for your help
Matt
Créez votre adresse électronique prenom.nom at laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081127/11ac46b0/attachment.html
More information about the antlr-interest
mailing list