文件名称:Design-of-operator-precedence
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:194.16kb
-
已下载: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
Design of operator precedence/Debug/text4.ilk
Design of operator precedence/Debug/text4.obj
Design of operator precedence/Debug/text4.pch
Design of operator precedence/Debug/text4.pdb
Design of operator precedence/Debug/vc60.idb
Design of operator precedence/Debug/vc60.pdb
Design of operator precedence/Gop2.dat
Design of operator precedence/OpPrior.dat
Design of operator precedence/text4-1.txt
Design of operator precedence/text4-2.txt
Design of operator precedence/text4-3.txt
Design of operator precedence/text4.cpp
Design of operator precedence/text4.dsp
Design of operator precedence/text4.dsw
Design of operator precedence/text4.ncb
Design of operator precedence/text4.opt
Design of operator precedence/text4.plg
Design of operator precedence/Debug
Design of operator precedence
Design of operator precedence/Debug/text4.ilk
Design of operator precedence/Debug/text4.obj
Design of operator precedence/Debug/text4.pch
Design of operator precedence/Debug/text4.pdb
Design of operator precedence/Debug/vc60.idb
Design of operator precedence/Debug/vc60.pdb
Design of operator precedence/Gop2.dat
Design of operator precedence/OpPrior.dat
Design of operator precedence/text4-1.txt
Design of operator precedence/text4-2.txt
Design of operator precedence/text4-3.txt
Design of operator precedence/text4.cpp
Design of operator precedence/text4.dsp
Design of operator precedence/text4.dsw
Design of operator precedence/text4.ncb
Design of operator precedence/text4.opt
Design of operator precedence/text4.plg
Design of operator precedence/Debug
Design of operator precedence
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.