文件名称:analysis
-
所属分类:
- 标签属性:
- 上传时间:2012-12-24
-
文件大小:5kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写语法分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法产生:
E->E+T|E-T|T
T->T*F|T/F|F
F->id|(E)|num
实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。
编程实现算法4.2,为给定文法自动构造预测分析表。
编程实现算法4.1,构造LL(1)预测分析程序。-Write a parser, parsing arithmetic expressions. Requirements analysis arithmetic expressions generated by the following grammar: E-> E+T | ET | T T-> T* F | T/F | F F-> id | (E) | num experimental requirements: input expression the analysis process, the output generated by the formula. Programming algorithm 4.2 the grammar automatically constructs predictive analysis table given. Programming algorithm 4.1, constructing LL (1) predictive analysis program.
E->E+T|E-T|T
T->T*F|T/F|F
F->id|(E)|num
实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。
编程实现算法4.2,为给定文法自动构造预测分析表。
编程实现算法4.1,构造LL(1)预测分析程序。-Write a parser, parsing arithmetic expressions. Requirements analysis arithmetic expressions generated by the following grammar: E-> E+T | ET | T T-> T* F | T/F | F F-> id | (E) | num experimental requirements: input expression the analysis process, the output generated by the formula. Programming algorithm 4.2 the grammar automatically constructs predictive analysis table given. Programming algorithm 4.1, constructing LL (1) predictive analysis program.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
analysis.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
