lua-users home
lua-l archive

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


I'm on phone so can't read all that well. Any deserialization that doesn't depend on load() ?

On Sun, May 14, 2017, 4:06 PM Martin <eden_martin_fuhrspam@gmx.de> wrote:
-- Lua table serializer

details = {
  intention = 'Serialize data to machine-and-human readable format.',
  requirements = {'Lua 5.3'},
  license = 'GPLv3',
  priorities = {
    fast = 0,
    simple = 0.4,
    flexible = 0.6,
  },
  handles = {
    cycles = true,
    metatables = false,
    threads = false,
    userdata = false,
    functions = false,
  },
  installation = {
    '$ git clone https://github.com/martin-eden/lua_table_serializer',
    '$ cd lua_table_serializer',
  },
  usage = {
    "require('workshop.base')",
    "local table_to_str = request('!.formats.lua_table_code.save')",
    'print(table_to_str(_G))',
  },
}

-- Martin

--
--

Ryan <vandor2012@gmail.com>
Software Developer / System Administrator
https://hashbang.sh