title: Float literal and range parameter in ANTLR
body: <p>I'm working on a parser for the language D and I ran in to trouble when I tried to add the "slice" operator rule. You can find the ANTLR grammar for it <a href="http://code.google.com/a/eclipselabs.org/r/gyulagubacsi-ddt-root/source/browse/org.dsource.ddt.dtool/src/dtool/parser/Dee.g" rel="nofollow">here</a>.
  Basically the problem is that if the lexer encounters a string like this: "1..2" it gets completely lost, and it ends up being as a single float value and therefore the postfixExpression rule for a string like "a[10..11]" ends up being a ExpArrIndex object with a ExpLiteralReal argument. Can somebody explain what is exactly wrong with the numeric literals? (as far as I understand it fails somewhere around these tokens)</p>