lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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