Welcome![Sign In][Sign Up]
Location:
Search - lex and yacc based c compiler

Search list

[ELanguagestudy_Lex_Yacc

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:

[ELanguageucc160

Description: 牛人写的C编译器,还有设计文档,可读性强,可以改造成为自己所需要的各种编译器。
Platform: | Size: 376832 | Author: 曹文科 | Hits:

[JSP/Javaantlr

Description: ANTLR—Another Tool for Language Recognition,其前身是PCCTS,它为包括Java,C++,C#在内的语言提供了一个通过语法描述来自动构造自定义语言的识别器(recognizer),编译器(parser)和解释器(translator)的框架。ANTLR可以通过断言(Predicate)解决识别冲突;支持动作(Action)和返回值(Return Value)来;更棒的是,它可以根据输入自动生成语法树并可视化的显示出来(这一点我将在下面的例子中演示)。由此,计算机语言的翻译变成了一项普通的任务—在这之前YACC/LEX显得过于学院派,而以LL(k)为基础的ANTLR虽然在效率上还略有不足,但是经过近些年来的升级修改,使得ANTLR足以应付现存的绝大多数应用。感谢Terence Parr博士和他的同事们十几年来的出色工作,他们为编译理论的基础和语言工具的构造做了大量基础性工作,也直接导致了ANTLR的产生。-ANTLR-Another Tool for Language Recognition. Its predecessor, PCCTS, including Java, C++, C#, including the language provides a syntax description to automatically construct self-definition language identification (recognizer), the compiler (parser) and explain the framework of the (translator on). ANTLR by the assertion (the Predicate) to address the problems identified conflicts support action (Action) and the return value (Return Value) Even better, it can be automatically generated based on the input syntax tree and visualization is displayed (which I will The following example demonstrates). As a result, the computer language translation has become a common task- in this YACC to/LEX seem the too academic, ANTLR-based LL (k), although the efficiency is slightly less, but after a recent years of upgrade modifications, making the ANTLR enough to cope with the vast majority of the existing application. Thank the excellent work, Terence Parr, Ph.D., and his colleagues more than a dec
Platform: | Size: 420864 | Author: issacs | Hits:

[ELanguage286

Description: lex,yacc的c编译器,有语法树、代码生成等-c compiler based on yacc and lex,code generated
Platform: | Size: 173056 | Author: mudell | Hits:

CodeBus www.codebus.net