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

64 views
Skip to first unread message

Martin Eden

unread,
Jun 20, 2026, 2:50:35 PM (12 days ago) Jun 20
to lu...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages