For that, you would turn to something quite familiar to compiler aficionados: the JDT's Abstract Syntax Tree (AST) framework.
因为您会转而使用一些对编译器迷而言十分熟悉的工具:JDT的抽象语法树(Abstract Syntax Tree, AST)框架。
MPS maintains the code in an Abstract Syntax Tree ( AST), which consists of nodes with properties, children and references, and fully describes the program code.
MPS用一棵抽象句法树( AST)来维护代码。
A lack of a pure Ruby parser has been negligible for some time in Ruby's history, since getting the Abstract Syntax Tree (AST) of some Ruby code was possible with utilities such as ParseTree.
因为可以使用类似语法分析树(ParseTree)的通用方法来对Ruby代码进行分析并获得抽象语法树(Abstract Syntax Tree),所以在Ruby历史上的一定时期内,纯ruby语法分析器的缺失被忽视了。
应用推荐