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 [EMAIL PROTECTED]
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address