文件名称:calculator
-
所属分类:
- 标签属性:
- 上传时间:2012-11-15
-
文件大小:40.36kb
-
已下载: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
bin/exceptions/EmptyExpressionException.class
bin/exceptions/ExpressionException.class
bin/exceptions/SqrtException.class
bin/gui/mainWindow$1.class
bin/gui/mainWindow$2.class
bin/gui/mainWindow$3.class
bin/gui/mainWindow$4.class
bin/gui/mainWindow$5.class
bin/gui/mainWindow$6.class
bin/gui/mainWindow$7.class
bin/gui/mainWindow$8.class
bin/gui/mainWindow$9.class
bin/gui/mainWindow$Act.class
bin/gui/mainWindow.class
bin/gui/mainWindow.java.bak
bin/parser/Calculator.class
bin/parser/Opp_table.class
bin/parser/Parser.class
bin/parser/Scan.class
bin/parser/Token.class
bin/start.class
bin/symbol/And.class
bin/symbol/Cos.class
bin/symbol/Divi.class
bin/symbol/Lbracket.class
bin/symbol/Mod.class
bin/symbol/Mono.class
bin/symbol/Mult.class
bin/symbol/Not.class
bin/symbol/Or.class
bin/symbol/Plus.class
bin/symbol/Pound.class
bin/symbol/Rbracket.class
bin/symbol/Sin.class
bin/symbol/Sqrt.class
bin/symbol/Sub.class
bin/symbol/Value1.class
bin/testcase.class
src/exceptions/DividedByZeroException.java
src/exceptions/EmptyExpressionException.java
src/exceptions/ExpressionException.java
src/exceptions/SqrtException.java
src/gui/mainWindow.java
src/parser/Calculator.java
src/parser/Opp_table.java
src/parser/Parser.java
src/parser/Scan.java
src/parser/Token.java
src/start.java
src/symbol/And.java
src/symbol/Cos.java
src/symbol/Divi.java
src/symbol/Lbracket.java
src/symbol/Mod.java
src/symbol/Mono.java
src/symbol/Mult.java
src/symbol/Not.java
src/symbol/Or.java
src/symbol/Plus.java
src/symbol/Pound.java
src/symbol/Rbracket.java
src/symbol/Sin.java
src/symbol/Sqrt.java
src/symbol/Sub.java
src/symbol/Value1.java
src/testcase.java
bin/exceptions
bin/gui
bin/parser
bin/symbol
src/exceptions
src/gui
src/parser
src/symbol
bin
src
bin/exceptions/EmptyExpressionException.class
bin/exceptions/ExpressionException.class
bin/exceptions/SqrtException.class
bin/gui/mainWindow$1.class
bin/gui/mainWindow$2.class
bin/gui/mainWindow$3.class
bin/gui/mainWindow$4.class
bin/gui/mainWindow$5.class
bin/gui/mainWindow$6.class
bin/gui/mainWindow$7.class
bin/gui/mainWindow$8.class
bin/gui/mainWindow$9.class
bin/gui/mainWindow$Act.class
bin/gui/mainWindow.class
bin/gui/mainWindow.java.bak
bin/parser/Calculator.class
bin/parser/Opp_table.class
bin/parser/Parser.class
bin/parser/Scan.class
bin/parser/Token.class
bin/start.class
bin/symbol/And.class
bin/symbol/Cos.class
bin/symbol/Divi.class
bin/symbol/Lbracket.class
bin/symbol/Mod.class
bin/symbol/Mono.class
bin/symbol/Mult.class
bin/symbol/Not.class
bin/symbol/Or.class
bin/symbol/Plus.class
bin/symbol/Pound.class
bin/symbol/Rbracket.class
bin/symbol/Sin.class
bin/symbol/Sqrt.class
bin/symbol/Sub.class
bin/symbol/Value1.class
bin/testcase.class
src/exceptions/DividedByZeroException.java
src/exceptions/EmptyExpressionException.java
src/exceptions/ExpressionException.java
src/exceptions/SqrtException.java
src/gui/mainWindow.java
src/parser/Calculator.java
src/parser/Opp_table.java
src/parser/Parser.java
src/parser/Scan.java
src/parser/Token.java
src/start.java
src/symbol/And.java
src/symbol/Cos.java
src/symbol/Divi.java
src/symbol/Lbracket.java
src/symbol/Mod.java
src/symbol/Mono.java
src/symbol/Mult.java
src/symbol/Not.java
src/symbol/Or.java
src/symbol/Plus.java
src/symbol/Pound.java
src/symbol/Rbracket.java
src/symbol/Sin.java
src/symbol/Sqrt.java
src/symbol/Sub.java
src/symbol/Value1.java
src/testcase.java
bin/exceptions
bin/gui
bin/parser
bin/symbol
src/exceptions
src/gui
src/parser
src/symbol
bin
src
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.