Hi,
Not sure if this is dummy level, but I can't figure out why the presence of
token Date messes up the parsing. When Date is present and not a fragment, I
get EarlyExitException on inputs like "123" and "123,456."
My question is primarily whether this is a bug or normal behavior. I'm sure
there are ways around it but this is part of a larger grammar and the "ways
around it" (declar Number token, make Date a rule, etc.) break other parts
of the grammar.
Thanks,
Mihai
grammar BugTest;
list: string (',' string)*;
string: (Alnum+);
fragment Digit: ('0'..'9');
Alnum: ('0'..'9') | ('a'..'z') | ('A'..'Z');
Date: (Digit Digit Digit Digit '-' Digit Digit '-' Digit Digit);
--~--~---------~--~----~------------~-------~--~----~
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