Once the parser has completely processed the input document, it returns control back to your application — but in the meantime the parser is in control.
解析器处理完输入文档之后,就将控制权交还给应用程序,但此时解析器仍受控制。
The component of the broker that converts a bit stream into a logical message tree (parsing), and a logical message tree back into a bit stream (serializing or writing), is called a parser.
将位流转换为逻辑消息树(解析)以及将逻辑消息树转换回位流(序列化或编写)的代理组件称为解析器。
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 parser compiles any new schema it needs for validation and gives all the compiled schemas back to the grammar pool after the parsing of your XML document is complete.
解析器对验证需要的任何新模式进行编译,并在XML文档解析完成之后将编译过的模式交给语法池。
That's it for now; in the next set of articles, we'll go back to visiting more of Scala's language capabilities (such as generics, because parser combinators made use of them).
本文到此结束。在下一篇文章中,我们将回顾scala的更多语言功能(比如泛型,因为解析器组合子是由它们组成的)。
If you want a different serialization, then the designers go back to the drawing board and create a new structure that requires an entirely different parser.
如果您想要另一种序列化,那么设计人员就得从头做起,创建一个新结构,该结构需要一个完全不同的解析器。
If you want a different serialization, then the designers go back to the drawing board and create a new structure that requires an entirely different parser.
如果您想要另一种序列化,那么设计人员就得从头做起,创建一个新结构,该结构需要一个完全不同的解析器。
应用推荐