[antlr-interest] Lexer bug?
Clifford Heath
clifford.heath at gmail.com
Sun Oct 21 05:17:38 PDT 2007
Austin Hastings wrote:
> I'm guessing it's because "10..20" is two completely valid tokens: 10.
> and .20. Both NUMBERs, of course.
10. is not a valid token unless followed by another digit. That's why
I mentioned using DIGIT+ instead of DIGIT* in FRACTION.
> Keep in mind that you have two different machines at work.
Yes - see my post explaining that to Simon West, for example.
> In theory, you should be able to describe integer literals, the range
> operator, and floats, in that order, and have it work. But I'd try it...
Interesting thought... Not relevant here, but I'll try it sometime.
Clifford Heath.
More information about the antlr-interest
mailing list