我有以下职能:
function hi()
print( hi )
end
我能够把这一职能当作一个论点,并对此进行分析,例如列出其中的所有职能,看到它所提到的所有变量等等。
请注意,我不谈分析
The way I think you d go about doing this is to get the AST of the function. But I don t know how to do that. So how would I go about getting the AST of a function (or otherwise analysing it if there s a better way)?