[Issue 7652] Some float literals are now parsed as int.user-property

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 15 14:58:23 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7652



--- Comment #4 from jens.k.mueller at gmx.de 2012-05-15 14:59:46 PDT ---
Thank you very much for your explanation.
Your hint regarding maximal munch and that only an ending . causes difficulties
helped a lot.
But 56.foo is lexed as three tokens 56 . foo, isn't it?

I think the section "Floating Literals" on http://dlang.org/lex.html does not
reflect the current behavior. Because it allows deriving e.g. the decimal float
literal 56.f
But this should be forbidden. If a . is consumed there must be a digit
following. This must be done to abort the matching.
Not sure though whether I'm seeing fully.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list