I have this simple grammar:
expr: token+;
token: And | Number | String;
And: '.AND.';
Number: Digit ;
String: '"' (~('"')*) '"';
fragment Digit: ('0'..'9');
My question: though ANTLR parses "123".AND."45" correctly, it doesn't parse
expressions of the form 123.AND.45 correctly. What is the remedy for this?
(Other than adding spaces in between the tokens.)
Thanks,
Mihai
--~--~---------~--~----~------------~-------~--~----~
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/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address