Official D Grammar

Jonathan M Davis jmdavisProg at gmx.com
Sat Apr 6 11:40:01 PDT 2013


On Saturday, April 06, 2013 16:21:12 Bruno Medeiros wrote:
> On 02/04/2013 00:18, Brian Schott wrote:
> > I've pretty much finished up my work on the std.d.lexer module. I am
> > waiting for the review queue to make some progress on the other (three?)
> > modules being reviewed before starting a thread on it.
> 
> BTW, even in the lexer spec I've found an issue. How does this parse:
> 5.blah
> According to the spec (maximal munch technique), it should be FLOAT then
> IDENTIFIER. But DMD parses it as INTEGER DOT IDENTIFIER. I'm assuming
> the lastest is the correct behavior, so you can write stuff like
> 123.init, but that should be clarified.

It would definitely have to be INTEGER DOT IDENTIFIER due to UFCS, so it sounds 
like the spec wasn't updated like it should have been.

- Jonathan M Davis


More information about the Digitalmars-d mailing list