文件名称:LL(1)
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.33mb
- 下载次数:
- 0次
- 提 供 者:
- 卢**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现根据LL(1)文法生成First集和Follow集的算法。
【基本要求】
(1) 输入一个文法G;
(2) 实现由文法G构造FIRST集的算法;
(3) 输出First集;
(4) 实现由文法G构造FOLLOW集的算法;
(5) 输出FOLLOW集。
【测试数据】
输入文法:
E->TE’
E’->+TE’|ε
T->FT’
T’->*FT’|ε
F->(E)|i -ll(1).rar
【基本要求】
(1) 输入一个文法G;
(2) 实现由文法G构造FIRST集的算法;
(3) 输出First集;
(4) 实现由文法G构造FOLLOW集的算法;
(5) 输出FOLLOW集。
【测试数据】
输入文法:
E->TE’
E’->+TE’|ε
T->FT’
T’->*FT’|ε
F->(E)|i -ll(1).rar
(系统自动生成,下载前可以参看下载内容)
下载文件列表
10687_file
..........\编译器
..........\......\文法_1.txt
..........\......\文法_2.txt
..........\......\文法_3.txt
..........\......\文法_4.txt
..........\......\文法分析器.exe
first&follow
............\Debug
............\.....\first&follow.exe
............\.....\first&follow.ilk
............\.....\first&follow.obj
............\.....\first&follow.pch
............\.....\first&follow.pdb
............\.....\vc60.idb
............\.....\vc60.pdb
............\first&follow.cpp
............\first&follow.dsp
............\first&follow.dsw
............\first&follow.ncb
............\first&follow.opt
............\first&follow.plg
............\first&follow.txt
syntax
......\Debug
......\.....\syntax.exe
......\.....\syntax.ilk
......\.....\syntax.obj
......\.....\syntax.pch
......\.....\syntax.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\syntax.cpp
......\syntax.dsp
......\syntax.dsw
......\syntax.ncb
......\syntax.opt
......\syntax.plg
利用LL(1)预测表分析文法
.......................\利用LL(1)预测表分析文法
.......................\.......................\利用LL(1)预测表分析文法.exe
.......................\.......................\源代码.cpp
.......................\.......................\程序采用的文法和预测分析表.doc
.......................\.......................\算法.ppt
..........\编译器
..........\......\文法_1.txt
..........\......\文法_2.txt
..........\......\文法_3.txt
..........\......\文法_4.txt
..........\......\文法分析器.exe
first&follow
............\Debug
............\.....\first&follow.exe
............\.....\first&follow.ilk
............\.....\first&follow.obj
............\.....\first&follow.pch
............\.....\first&follow.pdb
............\.....\vc60.idb
............\.....\vc60.pdb
............\first&follow.cpp
............\first&follow.dsp
............\first&follow.dsw
............\first&follow.ncb
............\first&follow.opt
............\first&follow.plg
............\first&follow.txt
syntax
......\Debug
......\.....\syntax.exe
......\.....\syntax.ilk
......\.....\syntax.obj
......\.....\syntax.pch
......\.....\syntax.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\syntax.cpp
......\syntax.dsp
......\syntax.dsw
......\syntax.ncb
......\syntax.opt
......\syntax.plg
利用LL(1)预测表分析文法
.......................\利用LL(1)预测表分析文法
.......................\.......................\利用LL(1)预测表分析文法.exe
.......................\.......................\源代码.cpp
.......................\.......................\程序采用的文法和预测分析表.doc
.......................\.......................\算法.ppt