DMD 1.021 and 2.004 releases
Jascha Wetzel
"[firstname]" at mainia.de
Tue Sep 11 13:28:45 PDT 2007
Jari-Matti Mäkelä wrote:
> Jascha Wetzel wrote:
>
>> before, the lexical structure was context free because of nested
>> comments and floats of the form "[0-9]+\.". the latter can be matched
>> with regexps if they support lookaheads, though.
>
> Nested comments don't necessarily need much more than a constant size
> counter, either.
it makes the lexer context free, though, and it therefore cannot be
implemented with regular expressions only.
> Btw, is this a bug?
>
> auto foo = q"EOS
> EOS
> EOS";
>
> doesn't compile with dmd 2.004. Or is the " always supposed to follow \n +
> matching identifier?
yep, since a non-nesting delimiter may only appear twice.
More information about the Digitalmars-d-announce
mailing list