std.d.lexer: pre-voting review / discussion
Jonathan M Davis
jmdavisProg at gmx.com
Wed Sep 11 12:36:40 PDT 2013
On Wednesday, September 11, 2013 15:29:33 Jonathan M Davis wrote:
> On Wednesday, September 11, 2013 19:17:26 Manfred Nowak wrote:
> > Walter Bright wrote:
> > > Parsing D requires arbitrary lookahead.
> >
> > Why---and since which version?
>
> IIRC, it's at least partially cause by the .. token. You have to look ahead
> to figure out whether it's .. or a floating point literal. There may be
> other cases as well, but that particular one was actually complained about
> by Robert Schadek in his talk at dconf 2013.
LOL. You were asking about _parsing_ requiring arbitrary lookahead, and I
answered as to why lexing requires more than one character of lookahead. I
should read more carefully...
- Jonathan M Davis
More information about the Digitalmars-d
mailing list