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

Reply via email to