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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 16 00:46:47 PDT 2012


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



--- Comment #5 from Don <clugdbug at yahoo.com.au> 2012-05-16 00:48:17 PDT ---
(In reply to comment #4)
> 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?

Yes, because the . isn't followed by a digit.

> 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.

You are correct, it's out of date now. Please open a new bug for that, with
keyword 'spec'.

-- 
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