lua-users home
lua-l archive

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

How do we handle non-existent values?

t = {1,,3,,5,,7,8}

I have always wished that the parser handled this.


On 7/20/06, Luiz Henrique de Figueiredo <> wrote:
I'm sorry to reply to my own post, but here's a simpler solution:
Return "return {" on the first call to the reader.
For each input line, return "{" plus the line plus "},".
At the end, return "}".