[Mathlib-commitlog] SF.net SVN: mathlib:[545] JMathLib/trunk/src/jmathlib/core/interpreter/ Parser.
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-07 19:12:39
|
Revision: 545
http://mathlib.svn.sourceforge.net/mathlib/?rev=545&view=rev
Author: st_mueller
Date: 2008-12-07 19:12:37 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
bugfix for (8-4)! factorial =4!
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/Parser.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/Parser.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/Parser.java 2008-12-07 19:02:17 UTC (rev 544)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/Parser.java 2008-12-07 19:12:37 UTC (rev 545)
@@ -827,14 +827,14 @@
Expression tree = null;
- if ((leftSide instanceof DoubleNumberToken) ||
+ /* if ((leftSide instanceof DoubleNumberToken) ||
(leftSide instanceof MatrixToken) ||
(leftSide instanceof VariableToken) ||
(leftSide instanceof FunctionToken) )
- {
+ {*/
// (e.g. 3! a! a++ a--)
tree = new Expression((UnaryOperatorToken)nextToken, leftSide);
- }
+ /*}
else if (leftSide instanceof Expression)
{
Expression leftExpr = (Expression)leftSide;
@@ -848,7 +848,7 @@
}
else
Errors.throwParserException(" Unary operator");
-
+ */
return tree;
} // end parseBinaryOperator
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|