I am creating some (non-html) documentation for the Lua library that I developed. I will generate documentation manually, but I would appreciate some automation (i.e. Generate skeletons for each function so that I can fill them)
I would like to know if there is a way for lua to find out the parameter names that the function executes from outside.
For example, is there a way to do this in Lua?
function foo(x,y)
... -- any code here
end
print( something ... foo ... something)
-- expected output: "x", "y"
Many thanks.
source
share