文件名称:Syntax-analyzer
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 454kb
- 下载次数:
- 1次
- 提 供 者:
- 张**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编制递归下降法的语法分析器
通过设计、编制、调试一个典型的语法分析程序,能识别由加+、乘*、括号()、操作数所组成的算术表达式,其文法如下:
E→TE
E →+TE ∣ε
T→FT
T →*FT ∣ε
F→(E)∣i
1.程序功能(举例)
输入:#i1*(i2+i3)#
输出:SUCCESS
输入:# i1*( i2+i3#
输出:FOUND ERROR
-Recursive Descent parser prepared by the design, development, debugging a typical parser can recognize+ add, multiply, parentheses () of the operand arithmetic expression grammar is as follows: E 鈫?TE ' E' the 鈫?+TE ' | 蔚 T-鈫?the FT' T ' 鈫?* FT' | 蔚 F 鈫?(E) | i 1 program (for example) enter:# i1* (i2+i3)# output: SUCCESS enter:# i1* (i2+i3# output: FOUND ERROR
通过设计、编制、调试一个典型的语法分析程序,能识别由加+、乘*、括号()、操作数所组成的算术表达式,其文法如下:
E→TE
E →+TE ∣ε
T→FT
T →*FT ∣ε
F→(E)∣i
1.程序功能(举例)
输入:#i1*(i2+i3)#
输出:SUCCESS
输入:# i1*( i2+i3#
输出:FOUND ERROR
-Recursive Descent parser prepared by the design, development, debugging a typical parser can recognize+ add, multiply, parentheses () of the operand arithmetic expression grammar is as follows: E 鈫?TE ' E' the 鈫?+TE ' | 蔚 T-鈫?the FT' T ' 鈫?* FT' | 蔚 F 鈫?(E) | i 1 program (for example) enter:# i1* (i2+i3)# output: SUCCESS enter:# i1* (i2+i3# output: FOUND ERROR
(系统自动生成,下载前可以参看下载内容)
下载文件列表
语法分析器\debug\语法分析器.exe
..........\.....\语法分析器.ilk
..........\.....\语法分析器.pdb
..........\语法分析器\Debug\BuildLog.htm
..........\..........\.....\mt.dep
..........\..........\.....\vc80.idb
..........\..........\.....\vc80.pdb
..........\..........\.....\语法分析器.exe.embed.manifest
..........\..........\.....\语法分析器.exe.embed.manifest.res
..........\..........\.....\语法分析器.exe.intermediate.manifest
..........\..........\.....\语法分析器.obj
..........\..........\test.txt
..........\..........\test2.txt
..........\..........\语法分析器.cpp
..........\..........\语法分析器.vcproj
..........\..........\语法分析器.vcproj.304-56.Administrator.user
..........\语法分析器.ncb
..........\语法分析器.sln
..........\语法分析器.suo
..........\..........\Debug
..........\debug
..........\语法分析器
语法分析器
..........\.....\语法分析器.ilk
..........\.....\语法分析器.pdb
..........\语法分析器\Debug\BuildLog.htm
..........\..........\.....\mt.dep
..........\..........\.....\vc80.idb
..........\..........\.....\vc80.pdb
..........\..........\.....\语法分析器.exe.embed.manifest
..........\..........\.....\语法分析器.exe.embed.manifest.res
..........\..........\.....\语法分析器.exe.intermediate.manifest
..........\..........\.....\语法分析器.obj
..........\..........\test.txt
..........\..........\test2.txt
..........\..........\语法分析器.cpp
..........\..........\语法分析器.vcproj
..........\..........\语法分析器.vcproj.304-56.Administrator.user
..........\语法分析器.ncb
..........\语法分析器.sln
..........\语法分析器.suo
..........\..........\Debug
..........\debug
..........\语法分析器
语法分析器