Title:
Design-of-operator-precedence Download
Description: 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
To Search:
- [sy3-ex] - operator limited analysis// procedural f
- [1] - failed to translate
File list (Check if you may need any files):
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