文件名称:src
介绍说明--下载内容均来自于网络,请自行研究使用
Java版运算表达式解析器
主要功能:
对有括号的四则运算解析并求解.
支持多种表达式类型
思路:
1.把中缀表达式转化成后缀表达式
2.从后缀表达式得到解
注意:
该版本只支持1.6JDK,如果想替换成1.5JDK改替换LinkedList的几个方法就行了.
详细内容:
http://jomper.javaeye.com/blog/464906-Java version of computing expressions parser main functions: to have the brackets, and four computing analytic solution. Supports a variety of types of ideas the expression: 1. The infix expression into postfix expression 2. Postfix expression is obtained from the solution Note: This version only supports 1.6JDK, If you want to make changes to replace LinkedList replaced 1.5JDK several methods on the list. Details: http://jomper.javaeye.com/blog/464906
主要功能:
对有括号的四则运算解析并求解.
支持多种表达式类型
思路:
1.把中缀表达式转化成后缀表达式
2.从后缀表达式得到解
注意:
该版本只支持1.6JDK,如果想替换成1.5JDK改替换LinkedList的几个方法就行了.
详细内容:
http://jomper.javaeye.com/blog/464906-Java version of computing expressions parser main functions: to have the brackets, and four computing analytic solution. Supports a variety of types of ideas the expression: 1. The infix expression into postfix expression 2. Postfix expression is obtained from the solution Note: This version only supports 1.6JDK, If you want to make changes to replace LinkedList replaced 1.5JDK several methods on the list. Details: http://jomper.javaeye.com/blog/464906
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src
...\ExpressionUtil.java
...\TestExpressionUtil.java
...\ExpressionUtil.java
...\TestExpressionUtil.java