Try to add "fragment" prefix before "DIGITO"

On Mon, May 4, 2009 at 10:49 PM, Marwan Ajraoui <[email protected]> wrote:
> Hi There;
>
> I'm currently defining a grammar for a based tag language using ANTLR;
> The problem I'm facing is that a single digit doesn't match my defined
> rule INTEGER, here is the definition I put (as i saw in The Definitive
> guide of ANTLR):
>
> DIGITO: '0'..'9' ;
> INT : DIGITO + ;
>
> This rule should match any digit, but does match only numbers that are
> composed of tow or more digits, like 45, 0567, etc. Numbers as 0, 7 or
> 5 doesn't match.
>
> I will be gratefull, if you give me any issue about it;
>
> Many thx
>
>
>
> --
> Marouane
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to