|
Abhihit,
> Basically I would want to give it a block of code and it would need to deduce the required arguments for the function and give me back the code string as "function (args...) ... end".
The simplest starting point, implementable with stock tools, that comes to my (5.1) mind is putting that chunk of code into a separate file and running a global reference detector on it (luac -p|grep [GS]ETGLOBAL). Now, Lua 5.2+ has no such ops...
Best regards,
--
DoubleF