文件名称:LL(1)
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 7kb
- 下载次数:
- 0次
- 提 供 者:
- suh***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
根据某一LL(1)文法编制调试预测分析程序,以便对任意输入的符号串进行分析。
本次实验的LL(1)文法为表达式文法:
E→E+T | T
T→T*F | F
F→i | (E)
编写识别表达式文法的合法句子的预测分析程序,对输入的任意符号串,给出分析过程及分析结果。分析过程要求输出步骤、分析栈、剩余输入串和所用产生式。如果该符号串不是表达式文法的合法句子,要给出尽量详细的错误提示。-According to an LL (1) grammar analysis of the preparation of commissioning procedures for forecasting , in order to enter any string of symbols to analyze .
The experimental LL (1) grammar for the expression grammar :
E → E+ T | T
T → T* F | F
F → i | (E)
Write a recognition of the legitimate expression grammar sentence prediction analysis program , for any input string of symbols , given the results of the analysis process and analysis . Analysis requires that the output step , analysis of the stack , with the remaining input string and the production . If the string is not an expression grammar symbol lawful sentence , try to give a detailed error message.
本次实验的LL(1)文法为表达式文法:
E→E+T | T
T→T*F | F
F→i | (E)
编写识别表达式文法的合法句子的预测分析程序,对输入的任意符号串,给出分析过程及分析结果。分析过程要求输出步骤、分析栈、剩余输入串和所用产生式。如果该符号串不是表达式文法的合法句子,要给出尽量详细的错误提示。-According to an LL (1) grammar analysis of the preparation of commissioning procedures for forecasting , in order to enter any string of symbols to analyze .
The experimental LL (1) grammar for the expression grammar :
E → E+ T | T
T → T* F | F
F → i | (E)
Write a recognition of the legitimate expression grammar sentence prediction analysis program , for any input string of symbols , given the results of the analysis process and analysis . Analysis requires that the output step , analysis of the stack , with the remaining input string and the production . If the string is not an expression grammar symbol lawful sentence , try to give a detailed error message.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cf_fx.txt
code.c
sy2.cpp
sy2.dsp
sy2.dsw
sy2.ncb
sy2.opt
code.c
sy2.cpp
sy2.dsp
sy2.dsw
sy2.ncb
sy2.opt