文件名称:20029440913
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 283kb
- 下载次数:
- 0次
- 提 供 者:
- z**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 根据LL(1)分析法编写一个语法分析程序,可根据自己实际情况,选择以下一项作为分析算法的输入:
a. 直接输入根据已知文法构造的分析表M
b.输入文法的FIRST(α)和FOLLOW(U)集合,由程序自动生成文法的分析表M;
c.输入已知文法,由程序自动构造文法的分析表M。
(2) 程序具有通用性
所开发的程序可适用于不同的文法和任意输入串,且能判断该文法是否为LL(1)文法。
(3) 有运行实例
对于输入的文法和符号串,所编制的语法分析程序应能正确判断此串是否为文法的句子,并要求输出分析过程。
-(1) According to the LL (1) method to write a parser, according to their own situation, choose one of the following analysis of the algorithm as input:
a. directly into the basis of known structures of grammar table M
b. enter the grammar of FIRST (α) and FOLLOW (U) set automatically by the program analysis table statute of Health M
c. Enter known grammar, the program can automatically construct grammatical analysis table M.
(2) program has universal
The developed program used in various types of grammar and an arbitrary input string, and can determine whether the grammar LL (1) grammar.
(3) the running instance
Grammar and symbols for the input string, the parser should be compiled correctly determine whether this string of sentence grammar, and asked the output of the process.
a. 直接输入根据已知文法构造的分析表M
b.输入文法的FIRST(α)和FOLLOW(U)集合,由程序自动生成文法的分析表M;
c.输入已知文法,由程序自动构造文法的分析表M。
(2) 程序具有通用性
所开发的程序可适用于不同的文法和任意输入串,且能判断该文法是否为LL(1)文法。
(3) 有运行实例
对于输入的文法和符号串,所编制的语法分析程序应能正确判断此串是否为文法的句子,并要求输出分析过程。
-(1) According to the LL (1) method to write a parser, according to their own situation, choose one of the following analysis of the algorithm as input:
a. directly into the basis of known structures of grammar table M
b. enter the grammar of FIRST (α) and FOLLOW (U) set automatically by the program analysis table statute of Health M
c. Enter known grammar, the program can automatically construct grammatical analysis table M.
(2) program has universal
The developed program used in various types of grammar and an arbitrary input string, and can determine whether the grammar LL (1) grammar.
(3) the running instance
Grammar and symbols for the input string, the parser should be compiled correctly determine whether this string of sentence grammar, and asked the output of the process.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
编译原理课程设计原稿(陈强 20029440913)\编译原理课程设计(语法分析程序)陈强.doc
........................................\陈强 20029440913\Debug\vc60.idb
........................................\................\.....\vc60.pdb
........................................\................\.....\yufafenxi.exe
........................................\................\.....\yufafenxi.ilk
........................................\................\.....\yufafenxi.obj
........................................\................\.....\yufafenxi.pch
........................................\................\.....\yufafenxi.pdb
........................................\................\yufafenxi.cpp
........................................\................\yufafenxi.dsp
........................................\................\yufafenxi.dsw
........................................\................\yufafenxi.ncb
........................................\................\yufafenxi.opt
........................................\................\yufafenxi.plg
........................................\................\Debug
........................................\陈强 20029440913
编译原理课程设计原稿(陈强 20029440913)
........................................\陈强 20029440913\Debug\vc60.idb
........................................\................\.....\vc60.pdb
........................................\................\.....\yufafenxi.exe
........................................\................\.....\yufafenxi.ilk
........................................\................\.....\yufafenxi.obj
........................................\................\.....\yufafenxi.pch
........................................\................\.....\yufafenxi.pdb
........................................\................\yufafenxi.cpp
........................................\................\yufafenxi.dsp
........................................\................\yufafenxi.dsw
........................................\................\yufafenxi.ncb
........................................\................\yufafenxi.opt
........................................\................\yufafenxi.plg
........................................\................\Debug
........................................\陈强 20029440913
编译原理课程设计原稿(陈强 20029440913)