文件名称:grammar-analyser
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.42mb
- 下载次数:
- 0次
- 提 供 者:
- che***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1、任意输入一个文法G;
2、处理文法中可能存在的左递归和公共左因子问题;
3、对文法中的每个非终结符自动生成并打印输出:
① FIRST集;
② FOLLOW集;
4、判断处理后的文法是否为LL(1)文法,如果是,自动生成并打印输出其预测分析表;
5、模拟分析过程。
如输入一个句子,如果该句子合法则输出与句子对应的语法树;能够输出分析过程中每一步符号栈的变化情况。如果该句子非法则进行相应的报错处理。
-An arbitrary input to a grammar G
2, handle left recursive grammar and public left factor
3, for each nonterminal in the grammar automatically generate and print the output:
① the FIRST set
② FOLLOW sets
4, the judge after the grammar is LL (1) grammar, if yes, to automatically generate and print the output of the prediction table
5, the simulation analysis.
Enter a sentence if the sentence is legitimate output corresponding with the sentence syntax tree able to output analysis process every step of the symbols in the stack changes. If the sentence is illegal is the appropriate error handling.
2、处理文法中可能存在的左递归和公共左因子问题;
3、对文法中的每个非终结符自动生成并打印输出:
① FIRST集;
② FOLLOW集;
4、判断处理后的文法是否为LL(1)文法,如果是,自动生成并打印输出其预测分析表;
5、模拟分析过程。
如输入一个句子,如果该句子合法则输出与句子对应的语法树;能够输出分析过程中每一步符号栈的变化情况。如果该句子非法则进行相应的报错处理。
-An arbitrary input to a grammar G
2, handle left recursive grammar and public left factor
3, for each nonterminal in the grammar automatically generate and print the output:
① the FIRST set
② FOLLOW sets
4, the judge after the grammar is LL (1) grammar, if yes, to automatically generate and print the output of the prediction table
5, the simulation analysis.
Enter a sentence if the sentence is legitimate output corresponding with the sentence syntax tree able to output analysis process every step of the symbols in the stack changes. If the sentence is illegal is the appropriate error handling.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
语法分析器\grammer.txt
..........\input.txt
..........\output.txt
..........\yf.cpp
..........\语法分析器.dsp
..........\语法分析器.dsw
..........\语法分析器.ncb
..........\语法分析器.plg
..........\Debug\vc60.idb
..........\.....\vc60.pdb
..........\.....\yf.sbr
..........\.....\语法分析器.bsc
..........\.....\语法分析器.exe
..........\.....\语法分析器.ilk
..........\.....\语法分析器.pch
..........\.....\语法分析器.pdb
..........\.....\yf.pch
..........\.....\yf.obj
..........\.....\yf.ilk
..........\.....\yf.exe
..........\.....\yf.pdb
..........\语法分析器.opt
..........\yf.dsp
..........\yf.ncb
..........\yf.plg
..........\yf.opt
..........\yf.dsw
..........\Debug
语法分析器
语法分析器实验报告.doc
..........\input.txt
..........\output.txt
..........\yf.cpp
..........\语法分析器.dsp
..........\语法分析器.dsw
..........\语法分析器.ncb
..........\语法分析器.plg
..........\Debug\vc60.idb
..........\.....\vc60.pdb
..........\.....\yf.sbr
..........\.....\语法分析器.bsc
..........\.....\语法分析器.exe
..........\.....\语法分析器.ilk
..........\.....\语法分析器.pch
..........\.....\语法分析器.pdb
..........\.....\yf.pch
..........\.....\yf.obj
..........\.....\yf.ilk
..........\.....\yf.exe
..........\.....\yf.pdb
..........\语法分析器.opt
..........\yf.dsp
..........\yf.ncb
..........\yf.plg
..........\yf.opt
..........\yf.dsw
..........\Debug
语法分析器
语法分析器实验报告.doc