[ANN] Lua table serializer (lts), 2026-06

"'Martin Eden' via lua-l" <[email protected]> Sat, 20 Jun 2026 20:50:13 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
Ahoy list,

I'm happy to announce end of rework of my Lua graph serializer.

It's function to print Lua table to string with Lua code that
recreates this table.

It was first announced somewhere in 2017 or 2018.

It's more than common Joe's t2s:

   local graph_to_str = require('serialize_lua_graph`)

   Graph = { [{}] = {} }
   Graph['\\'] = Graph
   Graph[Graph] = Graph

   print(graph_to_str(Graph))

   --[[
   local T_1 = { [{ }] = { } }
   T_1[ [[\]]] = T_1
   T_1[T_1] = T_1
   return T_1
   ]]

I hope you'll find it useful:

   https://github.com/martin-eden/lua_table_serializer

All feedback is welcome.

-- Martin

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/f6e50272-5623-4dc7-9b79-bbcefa27c1b0%40disroot.org.