Listing 3 is a rewrite of Listing 2 that makes the tree walking more explicit.
清单3是对清单2的改写,它使得树的遍历算法更明显。
Therefore XSLT has a built-in tree walking engine that, by default, processes the entire document.
因此XSLT具有内置的遍历引擎,在默认情况下会处理整个文档。
Instead of relying on the processor to operate the walk, this stylesheet has a named template, main, that implements the tree walking.
为了避免依靠处理程序操作树,这个样式表有一个命名模板main实现了树的遍历。
This means that you still need to use XML structural constructs like Element or Text, and you still need to do a decent bit of tree walking.
这意味着仍然需要使用Element、Text这样的XML结构成分,仍然需要适当的树遍历。
Note the declarative approach: you specify what to do with the elements and the processor (through its built-in tree walking logic) decides when to apply a template.
注意声明方法:您指定如何处理元素,处理器(通过其内置的树遍历逻辑)决定何时应用模板。
ANTLR provides excellent support for tree construction, tree walking, translation, error recovery, and error reporting.
ANTLR对树构造,树遍历,转换,错误恢复和错误报告提供了很好的支持。
This "tree-walking" may have been something even monkeys did.
甚至猴子都会在“树上行走”。
SquirrelFish differs from the previous implementation of the interpreter in that it uses a bytecode based strategy rather than syntax tree-walking interpretation.
与之前的解释器使用遍历语法树的实现方式不同的是,SquirrelFish的实现采用字节码。
SquirrelFish differs from the previous implementation of the interpreter in that it uses a bytecode based strategy rather than syntax tree-walking interpretation.
与之前的解释器使用遍历语法树的实现方式不同的是,SquirrelFish的实现采用字节码。
应用推荐