搜索资源列表
yufafenxi
- 本课程设计即为词法分析阶段。词法分析阶段是编译过程的第一个阶段。这个阶段的任务是从左到右一个字符一个字符地读入源程序,对构成源程序的字符流进行扫描和分解,从而识别出一个个单词(也称单词符号或符号)。如保留字(关键字或基本字)、标志符、常数、算符和界符等等。-the curriculum design shall lexical analysis stage. Lexical analysis stage of the process is to compile the first phase.
cifafenxiqi(new)
- 词法分析器制作与应用 设计思想 (1)程序主体结构部分: 说明部分 %% 规则部分 %% 辅助程序部分 (2)主体结构的说明 在这里说明部分告诉我们使用的LETTER,DIGIT, IDENT(标识符,通常定义为字母开头的字母数字串)和STR(字符串常量,通常定义为双引号括起来的一串字符)是什么意思.这部分也可以包含一些初始化代码.例如用#include来使用标准的头文件和前向说明(forward ,references).这些代码应该再标记\"%{\"和\"
Syntax
- 算符优先文法分析的c语言实现代码 需要输入词法分析的txt结果文件- The operator first grammar analysis c language realization code needs to input the lexical analysis the txt result document
yf.rar
- 构造实验一所给文法(应考虑改造)的FIRST集合和FOLLOW集合;构造LL(1)分析表;构造预测分析的总控程序;利用分析表、分析栈和总控程序对源程序进行自上而下的语法分输出整个语法分析过程中栈的变化过程及分析结果,如符合语法规则输出“正确”,否则输出“错误”。 ,Experiment to construct a grammar (should consider the transformation) of FIRST and FOLLOW set of the collection co
yuyifenxiyuanmahebaogao
- 语义分析的功能: 第一,审查每个语法结构的静态语义,即验证语法结构合法的程序是否真正有意义。有时把这个工作称为静态语义分析或静态审查。第二,如果静态语义正确,语义处理则要执行真正的翻译,即,或者将源程序翻译成程序的一种中间表示形式(中间代码),或者将源程序翻译成目标代码。 有报告-Semantic analysis of the functions: First, review each of the grammatical structure of the static semanti
YAC_CLEX2Basic
- 本文包含简单中文说明和详细源代码,首先利用Lex进行词法分析,然后用YACC进行语法分析,最后生成执行代码,但是没有对执行代码进行优化。-This article contains the simple English descr iption and source code in detail, first of all carried out using Lex lexical analysis, and then carried out using YACC syntax analysis
PL0
- PL0 C语言版本 //A.2 C 版 本 /*编译和运行环境: *1Visual C++6.0,VisualC++.NET and Visual C++.NET 2003 *WinNT, Win 200, WinXP and Win2003 *2 gcc version 3.3.2 20031022(Red Hat Linux 3.3.2-1) *Redhat Fedora core 1 *Intel 32 platform *使用方法: *运行后
bianyiqi
- 八、 设计SAMPLE语言的语法、语义分析器,输出四元式的中间结果。 检查要求: a] 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音)。 b] 请求输入测试程序名,键入程序名后自动开始编译。 c] 输出四元式中间代码(样式见样板输出3和4)。 d] 能发现程序的语法错误并输出出错信息。 -Eight, design SAMPLE language grammar, semantic analyzer, the output quaternion type
c-viterbi
- 这是(2,1,7)viterbi编码和译码的c语言代码 译码中是用基二算法实现的,运行时首先要在c盘中建立一个输入文件和一个输出文件。-This is the [2,1,7] viterbi encoding and decoding of the c language code decoding is to use the base implementation of the second algorithm, run-time we must first set up in c aft
cfront[1]
- CFront1.0的源代码,第一代C++编译器的思想-CFront1.0 the source code, the first generation of C++ compiler of thinking ...
ok
- 小语言编译器[包含具体代码] TMMY.c 为TMMY虚拟机完整源代码 smmy.c 为小语言编译器完整源代码 大家玩的时候,先使用 “编译.bat” 编译try.tny代码将生成: THE1.txt (代码初始处理) 语法树.txt (初看和try.tny中的代码相似,但其实是通过生成好的语法树结构还原生成的代码。如果此代码和try.tny 有出路,那就是语法有误) 汇编代码.txt (最终目标代码) 再使用 “运行.bat” 就
first-follow
- slr program for parsers
shiyan2
- 本函数是一个词法分析器,其分析主要从几个方面入手: * * 1.先判别是不是注释。一旦读入的字符出现 / * ,则用一个while循环一直读取下面的字符,直到出现* /为止。 * * 2.接着判断是不是以数值开头的。如果是以数值开头则再分情况讨论: * A.在遇到空格之前,后面读进来的都是数值的话,则很明显,这是一个数。然后将其种别码输出来(37,-) * B.在遇到空格之前,后面读进来的都是数值的话,譬如123ac 那么这是一个非法字符,输出错误-This funct
Seven-segment-display-decoder
- 七段显示译码器 因为计算机输出的是BCD码,要想在数码管上显示十进制数,就必须先把BCD码转换成 7 段字型数码管所要求的代码。我们把能够将计算机输出的BCD码换成 7 段字型代码,并使数码管显示出十进制数的电路称为“七段字型译码器”。 -Seven-segment display decoder because the computer output is BCD code, in order to display in the digital tube decimal numbe
cifafenxi
- 制作pl0编译器的第一步:词法分析,带有pl0源程序,运行可输出单词流-The first step in making pl0 compiler: lexical analysis, with pl0 source code, running can output word stream
SNLCompiler
- 编译程序通常包括:词法分析、语法分析、语义分析、中间代码生成、目标代码生成、错误处理、表格管理,如图所示。由于能力有限,本编译器只做前三部分。-Compiler typically include: lexical analysis, syntax analysis, semantic analysis, intermediate code generation, object code generation, error handling, form management, as shown.
Soft-decisiondecodingofafirst-orderRMcodewithhetyp
- 软判决译码,是信道编码方面很好的资料,c语言代码实现!-Soft decision decoding, channel coding is very good information, c language code!
ucc160
- ucc是一个编译器驱动器,在运行过程中,它会首先调用预处理器对C文件进行预处理, 然后依次调用编译器和汇编器生成目标文件,最后调用链接器将多个目标文件以及 库文件链接在一起生成最终的应用程序。 目前,ucc支持运行在Intel X86平台上的Linux和Windows操作系统。 当解压下载的源码后,系统中会产生一个名为ucc的目录,该目录的组织如下: driver 驱动器实现 ucl C编译器实现 doc 文档,中英文版本的ucc使用手册以及ucc内
854584LL1
- 中间代码生成 掌握语学制导下的中间代码生成技术,在第一、第二次实验的基础上完成中间代码生成程序-Learn to master language intermediate code generation under the guidance of the intermediate code generation technology, in the first and second test done on the basis of intermediate code generator
467651fds05LL1
- 中间代码生成掌握语学制导下的中间代码生成技术,在第一、第二次实验的基础上完成中间代码生成程序。-Learn to master language intermediate code generation under the guidance of the intermediate code generation technology, in the first and second test done on the basis of intermediate code generation pr