搜索资源列表
cifafenxi
- 编译原理实验的词法分析,包括测试代码和分析器源程序以及程序说明-Compiler Construction Principles of lexical analysis experiments, including test code and source code analyzer, as well as descr iption of the procedures
bianyiyuanlishiyan
- 相当强悍,学编译原理的绝不能错过! ------------------------------------ 编译原理的几个实验: 1.词法分析 2.语法分析 3.表达式求值 4.四元式中间代码 有C和VC两个环境、-Very tough, learning to compile principle must not be missed!------------------------------------ Compilation Principle of sev
define
- define 编译原理词法分析器 八、 实验一:设计SAMPLE语言的词法分析器 检查要求: a) 启动程序后,先输出作者姓名、班级、学号(可用汉语、英语或拼音); b) 请求输入测试程序名,键入程序名后自动开始词法分析并输出结果; c) 输出结果为单词的二元式序列(样式见样板输出1和2); d) 要求能发现下列词法错误和指出错误性质和位置: 非法字符,即不是SAMPLE字符集的符号; 字符常数缺右边的单引号(字符常数要求左、右边用单引号界定,不能跨行);
Lexicalanalysis
- 词法分析算法源代码,对输入的词法进行特定的分析。是编译原理课中做的实验-Lexical analysis algorithm source code, on the importation of specific lexical analysis. Classes are compiled in principle to do the experiment
cifafenxi
- 本程序用C语言编写,在Visual studio 6.0 下运行成功 拷贝之后便可以运行。 本程序是本人在学习编译原理课程时所编写的,现在不用了,发出来供大家一起参考讨论之用。 由于只是为了实验课的需要而用,所以程序的功能还十分简单,程序中也还存在很多问题和不足,欢迎大家给予指正。 词法分析程序 编译原理课程-This program is written in C, operation successfully in Visual studio 6.0 After
ll1
- LL(1)分析实验,根据语法规则逐一分析词法分析时得到的属性字
simple1
- 本文是关于编绎原理中词法分析的重要内容,严格实验所以要求.-Sounds of this article is about the principle for lexical analysis of the essential content, so the strict requirements of the experiment.
wufuhaoshu
- 编译原理中实验一程序代码--无符号数的词法分析程序-Experimental a principle of compiled code- no sign of the lexical analysis of the number of procedures
Lexan
- 编译器的第一个环节,词法分析,我们上的编译原理的第一次实验-Compiler of the first session, lexical analysis, we compiled on the principle of the first experiment
biyiyuanlishiyan
- 本次实验,掌握词法分析、语法分析和产生四元式的设计-just a simple complie
chenbo
- 编译原理词法分析 通过对DFA模拟程序实验,使学生掌握词法分析的实现技术,及具体实现方法。-the code of bianyiyuanli about cifafenxi
yffx
- 语法分析 C2.1 实验目的 编制一个递归下降分析程序,实现对词法分析程序所提供的单词序列的语法检查和结构分析. C2.2 实验要求 利用C语言编制递归下降分析程序,并对简单语言进行语法分析. C2.2.1待分析的简单语言的语法 用扩充的BNF表示如下: (1)<程序>::=begin<语句串>end (2)<语句串>::=<语句>{ <语句>} (3)<语句>::=<赋值语句>
chifa
- 这个是我上编译原理实验课的时候写的小程序,实现了词法分析的功能。-This is my compile time course experiment to write a small program to realize the function of lexical analysis.
ReversePolish
- 编译原理实验进行语法和词法分析,分析结果是用逆波兰式的形式输出。-Experiment carried out to compile grammar and lexical analysis and the results are reverse Polish form of output.
bianyishiyan
- 用visual c++6.0编写的编译原理实验,其中含词法分析、语义分析、算符优先分析的程序。-With the preparation of visual c++6.0 compiler experiment, which included lexical analysis, semantic analysis, the analysis of operator priority procedures.
cifafenxi
- 这是一个编译原理实验要用到的词法分析程序,用C++完成的,可以实现对C++源程序的词法分析,类型判别,已在VS2008调试通过,欢迎下载。-This is an experiment to use the compiler from lexical analysis program, using C++ to complete, and can be achieved on the C++ source code of the lexical analysis, the type of disc
LR
- 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to de
1_scanner
- 编译原理实验,一个词法分析器,输入需要分析的单词输出Tokens串。编写比较简单有一定的代表性。-Compiler experiment, a lexical analyzer, enter the word need to analyze the output string Tokens. Relatively simple to prepare a certain level of representativeness.
Lex
- 通过设计、调试词法分析程序,实现从源程序中分出各种单词的方法;熟悉词法分析程序所用的工具自动机,进一步理解自动机理论。掌握文法转换成自动机的技术及有穷自动机实现的方法。确定词法分析器的输出形式及标识符与关键字的区分方法。加深对课堂教学的理解;提高词法分析方法的实践能力。通过本实验,应达到以下目标: -Through the design, debug lexical analysis procedures, to achieve separation from the source in a
Complie
- 一个小型的编译程序,用于学习实验。 文件中包含有 词法分析 语法分析 编译程序等 -Compile a small program for learning experiment. File contains lexical analysis parser compiler, etc.