English 中文(简体)
A. 功能的现代化
原标题:Getting the AST of a function

我有以下职能:

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)?

最佳回答

您不妨尝试一下我的lbci,这是一个星码检查员图书馆。

问题回答

www.un.org/spanish/ga/president 为什么没有来源? 是否以某种方式混淆了?

上文提到的任何情况,无论是在卢阿,还是从卢阿开始,都不是通过任何管理机制提供的。

虽然在很多情况下很容易接触来文方,因为它被带入或未穿过译员(当然,他们只是靠船舶编码......)。

摘要 树木(按照定义大致上)是一个来源概念。

因此,你或许以非通货膨胀的汇编语言来研究的是decompiler"

这项工作吗?

http://luadec.luaforge.net/





相关问题
Why I can t pass two chars as function arguments in C?

I have a function: int get_symbol(tab *tp, FILE *fp, char delim) and I call it like this: get_symbol(tp, fp, ; ) I always have it declared in the header as: int get_symbol(tab *, FILE *, char); ...

problem w/ linking static function g++

I am trying to build a small program and I have my own library libfoo. I have a camera class that is calling a static function from my Vector3 class (i.e. crossProduct). My camera class and Vector3 ...

taking java method names as function arg in clojure

All, I want to create a function that takes a symbol representing a java method and applies it to some object: (user=> (defn f [m] (. "foo" (m))) When I execute this, I get a result much ...

Def, Void, Function?

Recently, I ve been learning different programming langages, and come across many different names to initalize a function construct. For instance, ruby and python use the def keyword, and php and ...

热门标签