这个方法存在的问题是,它需要处理程序代码始终知道解析器位于文档的哪个位置,并需要它正确地解释组件。
The problem with this approach is that it requires your handler code to always know where the parser is in the document, and to interpret the components appropriately.
解析器的行为更像解释器,而不是编译器。
The parsers behave more like interpreters and are not compilers.
为解释这个以及其他有趣的特性,我需要描述一下索引器使用解析器的AST将如何工作以及它如何同PDOM进行交互。
To explain this and other interesting features, I need to describe what the indexer does with the parser's AST and how it interacts with the PDOM.
应用推荐