lua-users home
lua-l archive

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


I'm trying to modify Lua so that a table constructed as:

  t = { weight = 9, wibble, foo }

results in a table as:

  { weight = 9, wibble = true, foo = true }

I've been playing around with the code in lparser.c, but I'm not having
much success (this is the first time I've done any hacking on Lua).

Could someone perhaps give me some example code, or a bunch of places to
look at and modify?  (I'm using Lua 5.1.)

Andrew Sidwell