On Mon, Aug 11, 2014 at 10:09 PM, H. S. Teoh via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > On Mon, Aug 11, 2014 at 07:47:44PM +0000, Klaus via Digitalmars-d-learn wrote: >> I mean when writing a D lexer, you necessarly reach the moment when >> you think: >> >> "Oh no! is this feature just here to suck ?"
> The crazy variety of ways to write string literals in D, OTOH, *is* a > bit over the top, as I found out myself when I also tried writing a D > lexer. :-P Out of curiosity, how does a lexer deal with heredocs? It's a sort of... user-defined token, right?