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.
LuaFormat.exe (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.
Source: LuaFormat-5.1.zip (2008-06-23)