|
On 2012-09-17 2:49 PM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
>
> > 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
>
...is "3." a valid number? O.o