[Issue 1466] Spec claims maximal munch technique always works: not for "1..3"

Jascha Wetzel "[firstname]" at mainia.de
Sun Sep 9 16:53:50 PDT 2007


Jascha Wetzel wrote:
> d-bugmail at puremagic.com wrote:
>>         // thinks it's [0 ... 1], no maximal munch taking place
>>         assert (Foo[0... 1] == 0);
>> }
> 
> this *is* maximal munch taking place. because of the ".." lexeme, float 
> literals are not lexemes. they are context free production rules 
> consisting of multiple lexemes. therefore "0." consists of two lexemes 
> and "..." wins the max munch over ".".

this was formulated poorly. float literals *may* be considered context 
free to solve this problem...


More information about the Digitalmars-d-bugs mailing list