2 -- reads the output of luac -d -l -p and reports global variable usage
3 -- typical usage: luac -p -l -d file.lua | lua globals.lua | sort
5 local P
="^.*; " -- pattern to extract comments
6 local l
="" -- last line seen
10 if s
==nil then return end
11 if strfind(s
,"%sSETLINE") then
13 elseif strfind(s
,"%sGETGLOBAL") then
16 elseif strfind(s
,"%sSETGLOBAL") then