Re: [ANN] lcm -- Lua Code Melder, 2026-04
"'Martin Eden' via lua-l" <[email protected]> Fri, 24 Apr 2026 12:21:12 +0200
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
Following the suggestion of mjmouse9999 I've changed generated code layout. And added command-line option "--indent". With it produces code like _G.package.preload['modules.a.Represent'] = function(...) return function(self) print(self.Data) end end Sadly, we can't apply indent if there are multi-line strings. And we can't detect them without fully-blown parser. So without "--indent" embedded code is not modified. But we are still trying to remain nice and produce comments around block: -- ( module modules.a.Represent _G.package.preload['modules.a.Represent'] = function(...) return function(self) print(self.Data) end end -- ) module modules.a.Represent -- 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/20ddc160-3474-45ab-9624-c22eb7bcc95f%40disroot.org.