I\'m generating some (non-html) documentation for a Lua library that I developed. I will generate the documentation by hand, but I\'d appreciate some kind of automation if p
Take a look at debug.getinfo, but you probably need a parser for this task. I don't know of any way to fetch the parameters of a function from within Lua without actually running the function and inspecting its environment table (see debug.debug and debug.getlocal).