local p = {}
function p.LCToPython(LC)
local rtn = {"[ x for xs in ["}
for _, item in ipairs(LC.content) do
if item.type == "item" then
rtn[#rtn+1] = "lcparser.converter.from_body(\"" .. item.rule .. "\"),"
end
end
rtn[#rtn+1] = "] for x in xs ]"
return table.concat(rtn, "")
end
return p