Description: Lex 和Yacc 简明教程
本书将教会你如何使用lex 和yacc 构造一个编译器。 lex 和yacc 是两个用来生成词汇分析器和剖析器的工具。
导言部分描写了构建编译器所需的基本部分,以及lex 和yacc 之间的互动关系。后面两章更加详细的描写了lex 和 yacc。构建了一个经典的计算器程序。这个计算器支持常用
的算术符号和控制结构,例如实现了像ifelse和while 这样的控制结构。经过小小的修改,就把这个计算器转换成一个可以运行在基于栈的计算机上的编译器。-Lex and Yacc tutorial concise book will teach you how to use lex and yacc to construct a compiler. lex and yacc are used to generate lexical analyzer and parser tools. Introductory section describes the compiler to build the basic parts, as well as lex and yacc interaction between. Behind the two chapters of a more detailed description of the lex and yacc. Construction of a classic calculator program. The calculator supports the common arithmetic symbols and control structure, for example, realize like ifelse and while such a control structure. After small modifications, so the calculator can run into a stack-based computer compiler. Platform: |
Size: 351232 |
Author:蒋崇武 |
Hits:
Description: Xerces-C++是一个非常健壮的 XML 解析器,其提供的两种解析XML文档的方法,DOM和SAX。SAX是一个面向事件的编程API.一个解析引擎消耗XML序列数据,并在发现进来的XML数据的结构时回调应用程序,这些回调称为事件句柄.与SAX不同,它允许对XML文档进行编辑并保存为一个文件或者流,还允许以编程的方式构建一个XML文档.DOM提供了一个内存中的模型,你可以遍历文档树,删除节点或者嫁接新节点.与解析的SAX事件不同,DOM事件反映出用户与文档的互动以及使用文档的改变.总的来说,SAX是按行遍历XML文档的,而DOM是先把XML文档生成树,然后遍历DOM树,来解析每个节点.-C++ is a very Xerces- healthy XML parser, it provides two analytic method of XML document, DOM and interesting. Interesting is an object-oriented programming API. An event sequence analysis engine consumes XML data, and found in the XML data structure and callback applications of these callback called event handler is different, with interesting. It allows for an XML document to edit and keep a file or flow, but also allows to programming build an XML document. DOM provides a memory of the models, you can traverse document tree, delete the node or grafting new nodes. And analytical interesting events, DOM events reflects different user interaction with the document and the use of the document. Generally speaking, interesting is according to the east, and alex XML document DOM is an XML document, then traverse spanning tree, DOM tree analysis each node. Platform: |
Size: 5051392 |
Author:coldwater |
Hits: