文件名称:calculator
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 40kb
- 下载次数:
- 0次
- 提 供 者:
- 熊*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
计算器设计(运用词法分析&语法分析方法):1、为每种可能识别出来的合法单词创建一个类,类的属性包括该单词的各别码及值。
2、构建异常类,以实现计算器的容错性能。
3、构建一个词法分析类,用之提取单词。
4、构建表达式中各单词间的优先关系表。
5、构建一个语法分析类,对表达式进行规约。此类调用词法类获取单词,查询优先关系表进行规约操作。
6、构建一个计算类,调用语法分析类以实现计算。
7、构建一个GUI类,设计好操作界面,并内置计算类,以实现界面操作计算功能。
-Calculator design (the use of lexical analysis & syntax analysis method): 1, create a class for every possible identify legitimate word, and class attributes, including the respective code and value of the word. To build the exception class, in order to achieve the fault tolerance of the calculator. To build a lexical analysis class, used to extract a word. 4 to construct the table of precedence relations between each word in the expression. 5, to build a grammar class, and the Statute of the expression. This type of call the lexical class to obtain word, the query that the priority relational tables to carried out the Statute of the operating. 6, to build a computing class, calls the parser class to the calculation. 7, to build a GUI class, design a good user interface and built-in computing class, computing capabilities to achieve the interface operation.
2、构建异常类,以实现计算器的容错性能。
3、构建一个词法分析类,用之提取单词。
4、构建表达式中各单词间的优先关系表。
5、构建一个语法分析类,对表达式进行规约。此类调用词法类获取单词,查询优先关系表进行规约操作。
6、构建一个计算类,调用语法分析类以实现计算。
7、构建一个GUI类,设计好操作界面,并内置计算类,以实现界面操作计算功能。
-Calculator design (the use of lexical analysis & syntax analysis method): 1, create a class for every possible identify legitimate word, and class attributes, including the respective code and value of the word. To build the exception class, in order to achieve the fault tolerance of the calculator. To build a lexical analysis class, used to extract a word. 4 to construct the table of precedence relations between each word in the expression. 5, to build a grammar class, and the Statute of the expression. This type of call the lexical class to obtain word, the query that the priority relational tables to carried out the Statute of the operating. 6, to build a computing class, calls the parser class to the calculation. 7, to build a GUI class, design a good user interface and built-in computing class, computing capabilities to achieve the interface operation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bin\exceptions\DividedByZeroException.class
...\..........\EmptyExpressionException.class
...\..........\ExpressionException.class
...\..........\SqrtException.class
...\gui\mainWindow$1.class
...\...\mainWindow$2.class
...\...\mainWindow$3.class
...\...\mainWindow$4.class
...\...\mainWindow$5.class
...\...\mainWindow$6.class
...\...\mainWindow$7.class
...\...\mainWindow$8.class
...\...\mainWindow$9.class
...\...\mainWindow$Act.class
...\...\mainWindow.class
...\...\mainWindow.java.bak
...\parser\Calculator.class
...\......\Opp_table.class
...\......\Parser.class
...\......\Scan.class
...\......\Token.class
...\start.class
...\.ymbol\And.class
...\......\Cos.class
...\......\Divi.class
...\......\Lbracket.class
...\......\Mod.class
...\......\Mono.class
...\......\Mult.class
...\......\Not.class
...\......\Or.class
...\......\Plus.class
...\......\Pound.class
...\......\Rbracket.class
...\......\Sin.class
...\......\Sqrt.class
...\......\Sub.class
...\......\Value1.class
...\testcase.class
src\exceptions\DividedByZeroException.java
...\..........\EmptyExpressionException.java
...\..........\ExpressionException.java
...\..........\SqrtException.java
...\gui\mainWindow.java
...\parser\Calculator.java
...\......\Opp_table.java
...\......\Parser.java
...\......\Scan.java
...\......\Token.java
...\start.java
...\.ymbol\And.java
...\......\Cos.java
...\......\Divi.java
...\......\Lbracket.java
...\......\Mod.java
...\......\Mono.java
...\......\Mult.java
...\......\Not.java
...\......\Or.java
...\......\Plus.java
...\......\Pound.java
...\......\Rbracket.java
...\......\Sin.java
...\......\Sqrt.java
...\......\Sub.java
...\......\Value1.java
...\testcase.java
bin\exceptions
...\gui
...\parser
...\symbol
src\exceptions
...\gui
...\parser
...\symbol
bin
src
...\..........\EmptyExpressionException.class
...\..........\ExpressionException.class
...\..........\SqrtException.class
...\gui\mainWindow$1.class
...\...\mainWindow$2.class
...\...\mainWindow$3.class
...\...\mainWindow$4.class
...\...\mainWindow$5.class
...\...\mainWindow$6.class
...\...\mainWindow$7.class
...\...\mainWindow$8.class
...\...\mainWindow$9.class
...\...\mainWindow$Act.class
...\...\mainWindow.class
...\...\mainWindow.java.bak
...\parser\Calculator.class
...\......\Opp_table.class
...\......\Parser.class
...\......\Scan.class
...\......\Token.class
...\start.class
...\.ymbol\And.class
...\......\Cos.class
...\......\Divi.class
...\......\Lbracket.class
...\......\Mod.class
...\......\Mono.class
...\......\Mult.class
...\......\Not.class
...\......\Or.class
...\......\Plus.class
...\......\Pound.class
...\......\Rbracket.class
...\......\Sin.class
...\......\Sqrt.class
...\......\Sub.class
...\......\Value1.class
...\testcase.class
src\exceptions\DividedByZeroException.java
...\..........\EmptyExpressionException.java
...\..........\ExpressionException.java
...\..........\SqrtException.java
...\gui\mainWindow.java
...\parser\Calculator.java
...\......\Opp_table.java
...\......\Parser.java
...\......\Scan.java
...\......\Token.java
...\start.java
...\.ymbol\And.java
...\......\Cos.java
...\......\Divi.java
...\......\Lbracket.java
...\......\Mod.java
...\......\Mono.java
...\......\Mult.java
...\......\Not.java
...\......\Or.java
...\......\Plus.java
...\......\Pound.java
...\......\Rbracket.java
...\......\Sin.java
...\......\Sqrt.java
...\......\Sub.java
...\......\Value1.java
...\testcase.java
bin\exceptions
...\gui
...\parser
...\symbol
src\exceptions
...\gui
...\parser
...\symbol
bin
src