在我们继续之前,我要特别提一下,术语解析树和抽象语法树(或ast)描述了非常相似的语法结构。
I'll note before we go any further that the terms parse tree and abstract syntax tree (or AST) describe very similar grammatical structures.
请注意,语法分析器传递了足够信息以构建XML文档的文档树,但是与dom语法分析器不同,它并不显式地构建该树。
Note that the parser passes enough information to build the document tree of the XML documents but, unlike a DOM parser, it does not explicitly build the tree.
语法感知的长句断行基于语言的解析树(抽象语法树),其他功能需要各个语言的定制。
The syntax-aware reflow we use to wrap long lines is based on the parse trees (abstract syntax trees) for the language, and some other things need per-language customization.
因为可以使用类似语法分析树(ParseTree)的通用方法来对Ruby代码进行分析并获得抽象语法树(Abstract Syntax Tree),所以在Ruby历史上的一定时期内,纯ruby语法分析器的缺失被忽视了。
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.
创建软件包的语法为dpkg - bdirectorypackagename . deb,其中directory包含文件系统树,该文件系统树含有程序的全部必需文件。
The syntax for creating a package is DPKG -b directory packagename.deb where directory contains the filesystem tree with all the requisite files for your program.
给出解析抽象语法树所使用的词法规则和语法规则,提出了解析gcc抽象语法树的方法。
Lexical rules and syntax rules used for parsing syntax trees are given, and a method for parsing GCC is proposed.
给出解析抽象语法树所使用的词法规则和语法规则,提出了解析gcc抽象语法树的方法。
Lexical rules and syntax rules used for parsing syntax trees are given, and a method for parsing GCC is proposed.
应用推荐