Lua Lint...
Nick Trout
nick at rockstarvancouver.com
Mon Mar 15 13:23:07 EST 2004
I got tired of typos.
http://place.org/~nop/lualint-0.0.tar.gz
Jay
---snip---
Usage: lualint [-r|-s] filename.lua [ [-r|-s] [filename.lua] ...]
lualint performs static analysis of Lua source code's usage of global
variables.. It uses luac's bytecode listing. It reports all accesses
to undeclared global variables, which catches many typing errors in
variable names. For example:
local really_aborting
local function abort() os.exit(1) end
if not os.getenv("HOME") then
realy_aborting = true
abortt()
end
reports:
/tmp/example.lua:4: *** global SET of realy_aborting
/tmp/example.lua:5: global get of abortt
More information about the q2x
mailing list