搜索资源列表
myjava
- 我开发的一个用java语言实现的编译器,内含词法分析器,语法分析器,而且可以实现中间代码生成.用到了SLR算法和LR(1)算法
Compiler-theory-experiments
- 通过设计、编制、调试典型的SLR(1)语法分析程序,实现对实验一所得词法分析程序所提供的单词序列进行语法检查和结构分析,进一步掌握常用的语法分析方法。-A typical SLR (1) parser through the design, development, debugging, syntax checking and structural analysis of lexical analysis program, the experimental one obtained by the
4SLR
- 编译原理上机—语法分析2 1.目的:熟练掌握自下而上的语法分析方法,并能用C++程序实现。 2. 在已有文法的基础上再加上减法“-”和除法“/”对应的产生式构成最终的文法。从而使得记号流可以处理带括号的加、减、乘、除四则运算。 3. 对于任意给定的输入串(词法记号流)进行语法分析,要求采用SLR分析器来完成。手工构造SLR分析表,利用移进-归约分析算法(P69 图3.12)输出(P70 表3.8)对应的动作部分。如: 输入:id*+id/(id+id)# 输出:移进 按
slrparseing
- Simple LR or SLR parser is a type of LR parser with small parse tables and a relatively simple parser generator algorithm. As with other types of LR(1) parser, an SLR parser is quite efficient at finding the single correct bottom-up parse in a singl
LR
- 简易的LR语法分析器,只能实现用SLR(0)语法分析,不能实现LR(1)-Simple LR parser, can only be realized SLR (0) parsing can not be realized LR (1)
cCompiler
- 用C++语言开发的小型C编译器,包括语法分析、语义分析,最终生成汇编语言。采用slr-1语义分析-Development of small C++ language C compiler, including syntax analysis, semantic analysis, and the resulting assembly language. Slr-1 semantic analysis
bianyi5_1
- 编写一通用的SLR(1)程序,要求有一定的错误处理能力,出错后能够使程序继续运行下去,直到分析过程结束。可通过不同的文法(通过数据表现)进行测试。-The preparation of a common SLR (1) procedure that requires a certain degree of error-handling capabilities, enabling the program to continue after an error to run it until th