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