文件名称:根据某一LL(1)文法编制调试预测分析程序
-
所属分类:
- 标签属性:
- 上传时间:2012-11-13
-
文件大小:7.05kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
根据某一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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.