[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Probably bug in implementation of numerical constant parsing
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 17 Sep 2012 15:49:30 -0300
> The parser does do some lookahead though doesn't it? I seen to recall
> looking at the code and seeing such a trick when parsing for comments. It
> could do the same for numbers; if this is a dot, then check the next to see
> whether it's a concat or a decimal.
That would not solve the problem. If print(3..5) should be valid,
why not print(3....5)? (That is also a number followed by '..'
followed by a number.)
-- Roberto