Case Range Statement ..
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jul 7 12:30:51 PDT 2009
Rainer Deyke wrote:
> Andrei Alexandrescu wrote:
>> Now there are several problems with this. All of the following compile:
>
> Possible solution: treat all sequences as dots as part of the same
> token, always.
>
>> 0.....wyda
>> 0....wyda
>> 0.... wyda
>> 0... .wyda
>> 0.. .wyda
>> 0. ....wyda
>
> All rejected by the lexer.
No. Actually, some, yes :o).
>> 0. .. .wyda
>> 0. ...wyda
>
> Legal and unambiguous.
And throroughly confusing, which was my point.
Andrei
More information about the Digitalmars-d
mailing list