文件名称:diguixiajiangwenfa
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-05-17
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- zhouj******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、实验目的
实现一个递归下降语法分析程序,识别用户输入的算术表达式。
二、实验主要内容
1、文法如下:
E® TE`
E’® +TE’|-TE’|e
T® FT`
T’® *FT’|/FT’|e
F® (E)|i
2、求取各非终结符的First及Follow集合
3、编程实现下降递归分析法,识别从键盘输入的关于整数或浮点数的算术表达式(在此,上述文法中的i代表整数或浮点数)
4、对于语法错误,要指出错误具体信息。
5、运行实例如下:
-First, the purpose of the experiment to achieve a recursive descent parser to identify the user input an arithmetic expression. Second, the main contents of the experiment, the following grammar: ETE `E' +TE ' ' |-TE ' | e TFT` T' * FT ' |/FT' | e F (E) | i to strike each nonterminal First and Follow collections of 3 programming fall recursive analysis, identification entered from the keyboard on integer or floating-point arithmetic expression (in this case, the grammar i represents an integer or floating point) for syntax errors, to point out that the error specific information. 5, the running instance as follows:
实现一个递归下降语法分析程序,识别用户输入的算术表达式。
二、实验主要内容
1、文法如下:
E® TE`
E’® +TE’|-TE’|e
T® FT`
T’® *FT’|/FT’|e
F® (E)|i
2、求取各非终结符的First及Follow集合
3、编程实现下降递归分析法,识别从键盘输入的关于整数或浮点数的算术表达式(在此,上述文法中的i代表整数或浮点数)
4、对于语法错误,要指出错误具体信息。
5、运行实例如下:
-First, the purpose of the experiment to achieve a recursive descent parser to identify the user input an arithmetic expression. Second, the main contents of the experiment, the following grammar: ETE `E' +TE ' ' |-TE ' | e TFT` T' * FT ' |/FT' | e F (E) | i to strike each nonterminal First and Follow collections of 3 programming fall recursive analysis, identification entered from the keyboard on integer or floating-point arithmetic expression (in this case, the grammar i represents an integer or floating point) for syntax errors, to point out that the error specific information. 5, the running instance as follows:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Analysis.java