One of the parser's main jobs is to determine the validity of any expression you pass it and to let you know.
解析器的主要工作之一就是确定您传递给它的任何表达式的有效性,并且让您知道。
Yacc is a grammar parser; it reads text and can be used to turn a sequence of words into a structured format for processing.
Yacc是一种语法分析器,它可以读取文本并用来将单词序列转换为便于处理的结构化的格式。
You then pass these methods (in the form of a handler) to the parser, along with a document to be parsed.
然后您将这些方法(以处理程序的形式)以及要解析的文档一起传递给解析器。
Or to use the appropriate terminology, how a parser can produce a custom element . . . in this case our AST objects.
用适当的术语来说就是解析器如何才能产生一个定制的元素(在这里,就是AST对象)。
That's because an XML parser has no idea whether that textual data -- that annoying whitespace -- is meant to be important.
这是因为XML语法分析器不知道文本数据--令人头疼的空格--是否重要。
Every regular expression is logically equivalent to a state machine, and the parser of every regular expression implements a state machine.
逻辑上,每个规则表达式都等价于一个状态机,而每个规则表达式的语法分析器都实现这个状态机。
Most parsers that implement the DOM provide at least a vendor-specific means of access to an underlying SAX parser.
很多实现DOM的解析器至少提供一个供应商专用的方法来访问一个底层SAX解析器。
This flexibility gives you many choices when trying to solve scalability or performance problems in a particular XML parser.
这种灵活性为您在一个特定的XML解析器下解决可扩展性或性能问题时提供更多的选择。
The OCL parser at the bottom of the OCL expression editor confirms that the syntax is okay and that you're returning a collection.
在OCLexpressioneditor底部的OCL解析器能确认语法是否正确以及是否返回了一个集合。
While it was never difficult, and while the parser is a standard part of the platform, the extra work was a bit of an annoyance.
虽然这并非是一件困难的事情,并且解析器是平台的标准部分,但是额外的工作总是有点让人烦。
Since the grammar of JSON is fairly simple, you can implement such a parser easily without any noticeable performance difference.
由于JSON的语法相当的简单,您可以轻易地实现这种解析器,而不会带来显著的性能差异。
Note that the SAX parser is not required to supply a Locator, but if it does, it must fire this event before any other event.
请注意,不需要SAX语法分析器提供Locator,但是如果它提供了,则必须在任何其它事件之前激活该事件。
You might have to adapt the classpath (second command) if you installed the parser in a different directory.
如果在另一个目录下安装语法分析器,则可能必须修改classpath(第二条命令)。
Parsing of XML data is often done with a SAX-style parser.
XML数据解析通常是使用一个SAX风格的解析器完成的。
In the past, to revalidate your document once it had been modified you had to save it to a file and read it back with a validating parser.
过去,要在文档修改后对它进行重新验证,必须将它保存为一个文件,再用验证解析器读回去。
The problem with XML in browser-based application development is the lack of a native, easy-to-use JavaScript parser.
在基于浏览器的应用程序的开发中,XML缺乏本地的、易于使用的JavaScript解析器。
The MRM CWF parser uses the record's properties (the length of each field) to determine where one Invoice ends and the next one begins.
MRMCWF解析器使用记录的属性(每个字段的长度)来确定一个Invoice记录从何处结束以及下一个Invoice记录从何处开始。
Recognizing and rejecting unexpected formats you aren't prepared to handle is typically the province of a validating XML parser.
识别和拒绝不打算处理的非预期格式通常属于XML验证解析器的范畴。
As you know, SAX parsing requires you to write a ContentHandler that processes parser events.
您知道,SAX语法分析要求您编写处理语法分析器事件的ContentHandler。
Before any provider can be built, the existence of some sort of domain-specific parser is required.
在创建任何种类的Provider之前,需要有一些特定领域的剖析器存在。
以上图片仅供学习交流使用,版权归原作者所有,如有侵权,请与我方联系