搜索资源列表
SLR1
- 在VC下打开SLR1.dsp,阅读工程SLR1,SLR1为一个加、乘(适当扩充可为四则)运算表达式的SLR语法分析器
ArithmeticSLR1
- 四则算术运算实现,采用的是SLR1文法包括号+,-,*,/,括号,
LRTrans1
- 该程序为一个手工编码实现的简单SLR语法分析器,其词法分析器调用接口为lex(),语法分析调用接口为SLR1()。-The program is a simple hand-coded implementation SLR parser, the lexical analyzer is called interface lex (), parsing call interface for the SLR1 ().
LRTrans1
- 该程序是在实验4程序基础上实现的一个手工编码实现的简单计算器,其词法分析器调用接口为lex(),语法分析器调用接口为SLR1(),语义动作调用接口为run()。-The program is based on the experimental procedure 4, a hand-coding a simple calculator, the lexical analyzer is called interface lex (), parser call interface for the S
SLR1
- 在VC下打开LRTrans1.dsp,阅读工程LRTrans1,LRTrans1为一个加、乘(适当扩充可为四则)运算表达式的SLR语法分析器,规定其文法如下: 文法3: (0) S ->E (1) E->E+E (2) E->E*E (3) E->(E) (4) E->i 经分析其SLR(1)分析表如下(分析表按“操作符运算优先级和运算符的结合率”方法解决冲突——*优先集高于+,*和+的结合率均为左结合) -In