Location:
Search - slr code
Search list
Description: slr1文法语法分析的c语言实现代码 需要输入词法分析的txt结果文件-slr1 the grammar grammar analysis c language realization code
needs to input the lexical analysis the txt result document
Platform: |
Size: 1024 |
Author: 信仰 |
Hits:
Description: 用SLR(1)方法实现的类C语言的编译器的语义分析程序。-with SLR (1) Realization of the Class C language compiler is the semantic analysis procedures.
Platform: |
Size: 296960 |
Author: 魏本峰 |
Hits:
Description: 我开发的一个用java语言实现的编译器,内含词法分析器,语法分析器,而且可以实现中间代码生成.用到了SLR算法和LR(1)算法-I developed a java language using the compiler, containing the lexical analyzer, syntax analyzer, and code generation can be achieved between. Used the SLR algorithm and LR (1) algorithm
Platform: |
Size: 67584 |
Author: 陈想 |
Hits:
Description: slr语法分析器,手动构造slr分析表。-SLR parser, manual SLR structural analysis table.
Platform: |
Size: 211968 |
Author: 阿冬 |
Hits:
Description: 此代码是奥林巴斯相机驱动的例程,可实现对奥林巴斯单反相机的基本控制,如拍照、聚焦、向pc上传图像(同过usb和1394总线方式)。-This code is the Olympus camera-driven routines, can be realized on the Olympus SLR camera' s basic controls, such as photographs, Focus, upload images to the pc (with usb and 1394 have been the way).
Platform: |
Size: 47104 |
Author: 杜海浩 |
Hits:
Description: 这个报告记录了编译原理的大作业的过程和各个阶段的设计,包括词法分
析、语法分析、语义分析和汇编代码生成四个阶段,在语法分析时我采用了两种
语法分析,即一种自上而下的语法分析方法——LL(1)分析法,另一种是自底向
上的语法分析方法——SLR(1)分析法,这样可以了解到这两种不同的基本分析方
法,这样在语义分析阶段也要分这两种方法处理语义动作,并且要个产生式分别
编写语义动作。-The report recorded a big operation principle compile process and different stages of the design, including lexical analysis, syntax analysis, semantic analysis and compilation of code generation in four stages, in grammatical analysis, I have used two types of syntax analysis, that is, a self- top-down method of syntax analysis- LL (1) analysis, and the other is bottom-up grammar analysis- SLR (1) analysis, so that it can be seen that the basic analysis of two different methods, such stage in the semantic analysis of these two methods to deal with sub-semantic actions, and to the preparation of a generative semantics movement, respectively.
Platform: |
Size: 1296384 |
Author: |
Hits:
Description: slr program for parsers
Platform: |
Size: 1024 |
Author: sss |
Hits:
Description: this is a code for SLR parser generator written in C
Platform: |
Size: 1024 |
Author: S.Iswariya |
Hits:
Description: 有词法分析,用的是SLR语法。语义子程序,说明报告里有全部的操作过程,及完整的源代码。-A lexical analysis, syntax using a SLR. Semantic routines, that report has all the operation, and the complete source code.
Platform: |
Size: 1513472 |
Author: 侯 |
Hits:
Description: 这是本人花费一个周完成的编译原理课程设计,也可以作为相关内容的实验报告,里面包括SLR(1)文法和算符优先文法相关内容,包括原代码等,比较详细,希望对各位有所帮助。
-This is my take one week to complete the compiler theory of curriculum design, relevant content can be used as lab reports, which include the SLR (1) grammar, and operator precedence grammar-related content, including source code, etc., more detailed, I hope some of you Help.
Platform: |
Size: 247808 |
Author: 黎明 |
Hits:
Description: 程序输入为形如i+i*i# 或者ii#的串,对于SLR(1)分析,输出为包括分析步骤、分析栈情况、剩余输入串以及分析动作在内的分析过程,并考虑增加语义分析生成中间代码功能的程序扩展。-Program input shape i+i* i# or ii# string for the analysis of the SLR (1), the output analysis to include steps to analyze the analysis process, including the stack situation, the remaining input string, and analysis of action, and consider increasing the semantic analysis to generate The function of intermediate code program expansion.
Platform: |
Size: 203776 |
Author: Jiang |
Hits:
Description: (1)设计符号表
确定符号表的组织方式,一般应包括名字栏和信息栏,其中名字栏作为关键字。要考虑能够存储有关名字的信息,并可以高效地完成如下操作:
a.查找:根据给定的名字,在符号表中查找其信息。如果该名字在符号表中不存在,则将其加入到符号表中,否则返回指向该名字的指针;
b.删除:从符号表中删除给定名字的表项。
(2)设计词法分析器(也可以使用FLEX生成词法分析器)
设计各单词的状态转换图,并为不同的单词设计种别码。将词法分析器设计成供语法分析器调用的子程序。功能包括:
a. 能够拼出语言中的各个单词;
b. 将拼出的标识符填入符号表;
c. 返回(种别码, 属性值)。
(3)语法分析与中间代码产生器(也可以使用BISON生成语法分析程序)
要求用递归下降分析法、预测分析法或SLR分析法,实现对表达式、各种说明语句、控制语句进行语法分析。
若语法正确,则输出一棵语法树。
若语法错误,要求指出出错性质和出错位置(行号)。出错处理应设计成一个出错处理子程序。-(1) Design symbol table
Determine the symbol table of organization, the general should include the name bar and bar, where the name column as a keyword. To be considered capable of storing information about the name, and the following operations can be efficiently completed:
a find: Find its information according to the name given in the symbol table. If the name does not exist in the symbol table, then it is added to the symbol table, otherwise it returns a pointer to the name of the pointer
Delete: delete the given name from the symbol table entry.
(2) design of lexical analyzer (You can also use the FLEX generate the lexical analyzer)
The design of each word in the state transition diagram, and a word design for different kind as code. The lexical analyzer is designed for the parser calls the subroutine. Features include:
a. to spell out each word in the language
b. spell identifier fill in the symbol table
c. return (other code, attribute values).
(3) syntax analysis an
Platform: |
Size: 2048 |
Author: 夏帆 |
Hits:
Description: 能操作佳能单反的OpenCV封装类,经实验可以控制5D mark II拍照并自动包装成OpenCV的对象格式。使得OpenCV的代码能够直接使用5D2来进行图像采集,可以扔掉劣质的USB摄像机了。-Operation Canon SLR the OpenCV wrapper class, the experiment can be controlled 5D Mark II camera and automatically packaged into OpenCV Object Format. OpenCV code can be used directly 5D2 for image acquisition, inferior USB camera can be thrown away.
Platform: |
Size: 2048 |
Author: nahcooo |
Hits:
Description: 开发的一个用java语言实现的编译器,内含词法分析器,语法分析器,而且可以实现中间代码生成.用到了SLR算法和LR算法 -I developed a java language compiler, containing the lexical analyzer, parser, and code generation can be achieved in the middle. Algorithm used in the SLR and LR algorithm
Platform: |
Size: 7535616 |
Author: 郑鹏 |
Hits:
Description: ,熟悉分析过程,注意在构造表2时依据“操作符运算优先级和运算符的结合率”原则解决冲突。(2)思考:如要将程序改成SLR四则运算语法分析器,应如何修改文法3为文法4(文法4应还支持减除运算)。(3)思考:要将程序改成SLR四则运算语法分析器,应如何在该程序的基础上修改、增加代码。-Familiar with the process, analysis, pay attention to in the construction of Table 2 for "with the operator priority of operations and operator of rate" principle to solve conflict. (2) think: if the program should be changed to SLR four operations should be how to modify the grammar parser, 3 to 4 (4 grammar grammar should also support the subtraction operation). (3) think: the program should be changed to SLR four operations parser, should how to modify, add the code in the program is based on.
Platform: |
Size: 9216 |
Author: 发电 |
Hits: