Case Range Statement ..

Rainer Deyke rainerd at eldwood.com
Tue Jul 7 12:22:22 PDT 2009


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.

> 0. .. .wyda
> 0. ...wyda

Legal and unambiguous.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list