This program loads in an ugly Lua 5.1 file and spits out a pretty one. Well maybe not pretty, but readable. I wrote it to help make sense of Carbonite's unencrypted source, but I'm sure there are other uses as well.
[Only registered and activated users can see links. ] (2008-06-23)
Code:
LuaFormat:
usage: LuaFormat [options] [filenames].
Available options are:
-o name output to file 'name' (default is "LuaFormat.lua")
Note that this is a Lua 5.1 pretty printer with support for vararg functions and other changes from 5.0. Another point is that LuaFormat doesn't preserve comments--not too big a deal if you're feeding it computer-generated code.
Here's the source in case anyone feels like turning it into an obfuscater or code deflator. It's a simple modification of "luac.exe", complete with VC6 build files. [Only registered and activated users can see links. ] (2008-06-23)
AddOn developer and long time explorer.
R.I.P _Corpse: My Most Underrated Addon
The only one I've ever seen is the original from lua.org; I just took that source and added outputs to the parsing process. In fact, I avoided looking to third party interpreters since this one parses exactly as well as the original.
Here's a link to all of [Only registered and activated users can see links. ]. I used [Only registered and activated users can see links. ] to organize the 5.1 source into.
Thanks for the support, by the way!
AddOn developer and long time explorer.
R.I.P _Corpse: My Most Underrated Addon