文件名称:Design-of-operator-precedence
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 194kb
- 下载次数:
- 0次
- 提 供 者:
- 浮*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
算符优先分析器设计
给定定义算术表达式的算符优先文法如下:
G[E]:
(1)E->E+T
(2)E->E-T
(3) E->T
(4)T->T*F
(5)T->T/F
(6)T->F
(7)F->P^F
(8)F->P
(9)P->(E)
(10)P->i
编程实现此文法的算法优先分析器,并设输入的文法的句子为:
(i*(i+i)-i )/i^i^i
给出输出结果
-Design of operator precedence parser
Given the definition of operator precedence grammar arithmetic expressions are as follows:
G [E]:
(1) E-> E+ T
(2) E-> E-T
(3) E-> T
(4) T-> T* F
(5) T-> T/F
(6) T-> F
(7) F-> P ^ F
(8) F-> P
(9) P-> (E)
(10) P-> i
Programming algorithm for precedence parser article law, and set the input of the grammar of the sentence is:
(i* (i+ i)-i)/i ^ i ^ i
Given output
给定定义算术表达式的算符优先文法如下:
G[E]:
(1)E->E+T
(2)E->E-T
(3) E->T
(4)T->T*F
(5)T->T/F
(6)T->F
(7)F->P^F
(8)F->P
(9)P->(E)
(10)P->i
编程实现此文法的算法优先分析器,并设输入的文法的句子为:
(i*(i+i)-i )/i^i^i
给出输出结果
-Design of operator precedence parser
Given the definition of operator precedence grammar arithmetic expressions are as follows:
G [E]:
(1) E-> E+ T
(2) E-> E-T
(3) E-> T
(4) T-> T* F
(5) T-> T/F
(6) T-> F
(7) F-> P ^ F
(8) F-> P
(9) P-> (E)
(10) P-> i
Programming algorithm for precedence parser article law, and set the input of the grammar of the sentence is:
(i* (i+ i)-i)/i ^ i ^ i
Given output
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Design of operator precedence\Debug\text4.exe
.............................\.....\text4.ilk
.............................\.....\text4.obj
.............................\.....\text4.pch
.............................\.....\text4.pdb
.............................\.....\vc60.idb
.............................\.....\vc60.pdb
.............................\Gop2.dat
.............................\OpPrior.dat
.............................\text4-1.txt
.............................\text4-2.txt
.............................\text4-3.txt
.............................\text4.cpp
.............................\text4.dsp
.............................\text4.dsw
.............................\text4.ncb
.............................\text4.opt
.............................\text4.plg
.............................\Debug
Design of operator precedence
.............................\.....\text4.ilk
.............................\.....\text4.obj
.............................\.....\text4.pch
.............................\.....\text4.pdb
.............................\.....\vc60.idb
.............................\.....\vc60.pdb
.............................\Gop2.dat
.............................\OpPrior.dat
.............................\text4-1.txt
.............................\text4-2.txt
.............................\text4-3.txt
.............................\text4.cpp
.............................\text4.dsp
.............................\text4.dsw
.............................\text4.ncb
.............................\text4.opt
.............................\text4.plg
.............................\Debug
Design of operator precedence