Hi,
I've been running into a strange problem using ANTLR 3.1.1. I don't know
wether it is a bug in my grammar or a bug in ANTLR.
In the language that has to be parsed following lines are legal strings:
1.
1.5.
There is a rule where a numeric is followed by a dot.
The problem with my grammar can be reduced to following sample grammar:
grammar test;
options {language=Java;}
foo : NUMERIC '.';
NUMERIC : '0'..'9'+ ('.' '0'..'9'+)?;
When using this grammar the string '1.5.' can be parsed successfully but
parsing the string '1.' fails with a MismatchedTokenException. Has
anybody an idea what is going wrong with my grammar?
Any help appreciated.
Regards,
Thomas
--
Interactive Objects Software GmbH
Basler Strasse 61
79100 Freiburg, Germany
Phone: +49 761 400 73 0
mailto:[email protected]
------------------------------------------------------------------------
Interactive Objects' Legacy Modernization Solutions
Get Your Applications SOA-Ready!
See http://www.interactive-objects.com/ for more information.
------------------------------------------------------------------------
Interactive Objects Software GmbH | Freiburg | Geschäftsführer: Alberto
Perandones, Andrea Hemprich
| AG Frbg. HRB 5810 | USt-ID: DE 197983057
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
-~----------~----~----~----~------~----~------~--~---