搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
简单pacal编译器实现
- 此源码是简单Pascal编译器实现代码,采用工具LEX和YACC实现-this source is simple Pascal compiler for code using tools LEX and YACC
lex.yy
- 词法分析lex.yy原代码-lexical analysis lex.yy source
lex
- 包含两个简单的词法分析器代码,一个是用c写的,另一个是用java写的。有一个说明文档。
词法分析Lex
- 名称:C语言词法分析器 功能:1)从C语言源代码文件中提取所有词素 2)检测程序的词法错误,给出错误行号及提示 3)语法分析器的预备程序 文件:分析器代码(Lex.c)、测试文件(test.c)、状态转换图、可执行程序 输出:错误记录文件、符号表文件、标识符文件-Name lexical analyzer for C language function: 1)Extract all lexems from C Language source code 2)Examine the sy
Lex和Yacc
- Lex 和 Yacc 是 UNIX 两个非常重要的、功能强大的工具。事实上,如果你熟练掌握 Lex 和 Yacc 的话,它们的强大功能使创建 FORTRAN 和 C 的编译器如同儿戏。Ashish Bansal 为您详细的讨论了编写自己的语言和编译器所用到的这两种工具,包括常规表达式、声明、匹配模式、变量、Yacc 语法和解析器代码。最后,他解释了怎样把 Lex 和 Yacc 结合起来。
Lex.rar
- 1.输入文件解析 2.正则表达式转化为NFA 3.多个NFA合并 4.NFA转换DFA 5代码生成 关于输入文件格式: 没有考虑对lex输入文件的出错处理,所以输入文件务必严格书写正确。 Lex中的正规表达式使用了以下运算符: [] | * @ ( ) 并且正规表达式中不能出现其他的子正规表达式。 如果想要在待识别的正则式中使用上述运算符,请使用转义符号,即\。 例如,如果想用*,可以写成\* ,1. Analysis of the input file 2.
lex
- lex的C++代码实现,比较好用,老师给的程序以及.exe文件。
ansi_c_grammar
- C语言上下文无关文法的词法及语法描述文件,通过使用yacc、lex工具可以生成相关C语言的词法、语法分析的C语言代码-C language context-free grammar to describe the morphology and syntax files, through the use of yacc, lex tool generates C language related to the morphology, syntax analysis, C language code
Lex
- 基于C++的编译器词法分析模块生成器[Lex],可使用Visual C++ 2003编译,分析词法定义文件,产生确定自动机[DFA]和对应词法的分析代码,使用此代码可解析C++源码并生成TOKEN序列-Based on C++ compiler lexical analysis module generator [Lex], can use the Visual C++ 2003 to compile, analyze lexical definition file, generated to
Lex_and_Yacc_2edition
- lex与yacc中文版原书第二版 附带书上代码-lex and yacc original Chinese version attached to the second edition of the code book
flex_and_bison
- lex yacc 一种很有用的制造编译器的工具和代码。-lex yacc to create a very useful tool for compiler and code.
CM-Lex
- 一个由LEX编写的C-词法分析程序。为锻炼使用者能力,未加载LEX已编译的代码。建立时最好建立控制台程序。-LEX written by a C-lexical analysis program. The user the ability to exercise without load LEX compiled code. Is best to establish procedures for the establishment of the console.
Lex
- **本次实验在Visual Studio.NET 2003环境下开发** 此压缩包内包括以下五个文件: 1.Lex的源代码文件 Lex.cpp 2.Lex的测试输入文件 test.txt 3.测试文件需包含的头文件 yytab.h 4.经过Lex生成的结果文件yylex.cpp 5.说明 关于Lex: 本实验中完成的Lex可以完成以下算法: 1.输入文件解析 2.多个NFA合并 3.NFA转换DFA 4.最小化DFA 5.生成代码
Lex
- 词法分析器,词法分析器是编译原理中一个重要的分析器,这个词法分析器的代码可以帮你将所学到的原理与具体编程结合起来。-This is a Lexcial,it can help you learn the princple of lexcial.
lex-and-yacc
- lex与yacc, 开发编译器的好工具,包含了每个部分的元代码-about lex and yacc,which are good tools for complier construction.It includes every sections codes.
lex
- lex词法分析自动生成程序,给一个规则定义文件,即可生成.cpp代码-lex lexical analysis to automatically generate the program to a rule definition file to generate. cpp code
qiancheng
- linux下 写的myshell代码,可以cd功能,简单的命令支持管道,重定向-write myshell under linux code, cd function, a simple command to support pipes, redirection
lex-yacc
- 一款用lex和yacc写的编译器,代码转换成了c++,对于small语言进行了编译。-A use lex and yacc to write a compiler, code converted into c++, the small language compiler.
lex
- 词法分析器又称扫描器。词法分析是指将我们编写的文本代码流解析为一个一个的记号,分析得到的记号以供后续语法分析使用。词法分析器的工作是低级别的分析:将字符或者字符序列转化成记号。-Lexical analyzer, also known as scanners. Lexical analysis refers to the text of the code we write flow analysis for a token one, analyze the resulting syntax no