Start by constructing a parser.
首先构造一个解析器。
Like a parser, it can generate SAX events.
和解析器一样,它能生成SAX事件。
It creates a parser object around a grammar.
它围绕着文法创建解析器对象。
Use a parser generator framework (for example, ANTLR).
使用解析器生成器框架(比如ANTLR)。
The value will be used if a parser is using lex's output.
如果有解析器要使用lex的输出,那么这个值将会用到。
Create a parser implementing ISecurityDataParser interface.
创建一个实现ISecurityDataParser接口的解析器。
This comes with a parser to support the parsing and writing of messages.
还随之提供一个解析器以支持消息的解析和写入。
The language is parsed by a parser written using the Ruby library Ragel.
这门语言使用以ruby类库ragel编写的解析器进行解析。
I use the term parse order for the order in which elements are reported by a parser.
我将解析器报告元素的顺序称为解析顺序。
Applications that need to use a parser with the same set of features and properties.
需要使用具有一组相同特性和性质的解析器的应用程序。
In addition, creating a parser can be even more expensive if you are using the JAXP API.
此外,如果使用JAXP API创建解析器,可能需要更高的代价。
But I have found that it pays to generate those events from my application, without a parser.
但我发现,在没有语法分析器的情况下,从我的应用程序生成那些事件还是合算的。
For instance, in the case of the simple line-counting program, there's no real need for a parser.
例如,在那个简单的行计数程序的例子中,实际上不需要解析器。
This accounts for the many different ways a parser is allowed to pass text into a ContentHandler.
这考虑到了解析器向ContentHandler传递文本的各种方式。
JJTree is a preprocessor, and generating a parser for a particular BNF is an easy two-step process.
JJTree是一个预处理器,为特定BNF生成解析器只需要简单的两步。
The application should interact with your parser pool implementation each time it needs to get a parser.
应用程序应当在需要获得解析器时,与解析器池进行交互。
One of the more complicated tasks for a C++ programmer is coding a parser within a reasonable time period.
C++程序员需要面对的最复杂的任务之一就是在一段合理的时间期限内编写一个解析器。
You can start by defining a parser pool interface and registering its implementation with your application.
可以事先定义一个解析器池接口,并通过应用程序注册其实现。
Or to use the appropriate terminology, how a parser can produce a custom element... in this case our AST objects.
用适当的术语来说就是解析器如何才能产生一个定制的元素(在这里,就是AST对象)。
The method involves first disassembling the input service name into its constituent words using a parser component.
这个方法首先要用解析器组件把输入服务名称分解成单个词。
The result is that they lock their applications into a specific parser -- sometimes a specific version of a parser.
其结果就是他们的应用程序受困于某个特定的语法分析器 --有时甚至是某个语法分析器的特定版本。
If memory efficiency and performance are significant, a parser that USES protocol buffers might be a better choice.
如果内存效率和性能很重要,使用protocolbuffers的解析器可能是个较好的选择。
For certain USES where XML documents are built only by a parser, and never by application-level code, this is irrelevant.
在某些应用中,XML文档是仅由语法分析器建立的,而从不会由应用程序级代码建立,这是不相关的。
While lex can be used to generate sequences of tokens for a parser, it can also be used to perform simple input operations.
虽然可以用lex来为解析器生成记号序列,但也可以用它来执行简单的输入操作。
You can select the check box at any time during script development whether or not you select a parser for syntax validation.
不管您是否选择了用于语法验证的解析器,您都可以在脚本开发过程的任何时候选择复选框。
When you add whitespace to your documents, a parser processes more characters, which in the end affects parsing performance.
当您将空格添加到文档中时,解析器就要处理更多的字符,从而最终影响解析过程的性能。
The axpath() method returns what is known as an augmented parse tree -- a parser tree with one extra node for the END_MARK.
axpath()方法返回称之为扩张的解析树 ―该解析树额外地带有一个表示 END_MARK 的节点。
Issue 1 — for a parser to read the XML accurately, the content stored within the XML file had to format entities accordingly.
第1个问题—为使解析器精确读取XML,存储在XML文件中的内容必须对实体进行相应地格式化。
This configuration doesn't let you host other types of child tags, however. If you did that, a parser exception would be thrown.
但是这种配置不支持其它类型的子标签,如果你使用其它类型的子标签,解析器将会发出一个错误。
Since the grammar of JSON is fairly simple, you can implement such a parser easily without any noticeable performance difference.
由于JSON的语法相当的简单,您可以轻易地实现这种解析器,而不会带来显著的性能差异。
应用推荐