Closed agladysh closed 10 years ago
$ find . -name '*.lua' | xargs -I% bash -c "luac -l -o /dev/null % | sed -e 's|^|%|g'" | grep ETGLOBAL | sort -k 8 ./grammar/generator.lua 5 [318] GETGLOBAL 2 -2 ; eprintf ./grammar/generator.lua 50 [713] GETGLOBAL 1 -14 ; eprintf ./grammar/lexer.lua 5 [522] GETGLOBAL 5 -3 ; x
BTW, it would be nice to alias legitimate globals at the top of the file, for added sandbox-compliance.
BTW, it would be nice to alias legitimate globals at the top of the file, for added sandbox-compliance.