Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
3a713b55
Commit
3a713b55
authored
Jul 27, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
, -> ;
parent
3248e287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
335 additions
and
326 deletions
+335
-326
cell/model/FormulaObjects/parserFormula.js
cell/model/FormulaObjects/parserFormula.js
+335
-326
No files found.
cell/model/FormulaObjects/parserFormula.js
View file @
3a713b55
...
@@ -2177,363 +2177,372 @@ cRangeIntersectionOperator.prototype.Calculate = function ( arg ) {
...
@@ -2177,363 +2177,372 @@ cRangeIntersectionOperator.prototype.Calculate = function ( arg ) {
};
};
/** @constructor */
/** @constructor */
function
cUnarMinusOperator
()
{
function
cUnarMinusOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
un_minus
'
/**name operator*/
,
49
/**priority of operator*/
,
1
/**count arguments*/
]
);
cBaseOperator
.
apply
(
this
,
[
'
un_minus
'
/**name operator*/
,
49
/**priority of operator*/
,
1
/**count arguments*/
]
);
this
.
isRightAssociative
=
true
;
this
.
isRightAssociative
=
true
;
}
}
cUnarMinusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cUnarMinusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cUnarMinusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cUnarMinusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
];
var
arg0
=
arg
[
0
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
else
if
(
arg0
instanceof
cArray
)
{
}
else
if
(
arg0
instanceof
cArray
)
{
arg0
.
foreach
(
function
(
arrElem
,
r
,
c
)
{
arg0
.
foreach
(
function
(
arrElem
,
r
,
c
)
{
arrElem
=
arrElem
.
tocNumber
();
arrElem
=
arrElem
.
tocNumber
();
arg0
.
array
[
r
][
c
]
=
arrElem
instanceof
cError
?
arrElem
:
new
cNumber
(
-
arrElem
.
getValue
()
);
arg0
.
array
[
r
][
c
]
=
arrElem
instanceof
cError
?
arrElem
:
new
cNumber
(
-
arrElem
.
getValue
()
);
});
});
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
}
arg0
=
arg0
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
return
this
.
value
=
arg0
instanceof
cError
?
arg0
:
new
cNumber
(
-
arg0
.
getValue
()
);
return
this
.
value
=
arg0
instanceof
cError
?
arg0
:
new
cNumber
(
-
arg0
.
getValue
()
);
};
};
cUnarMinusOperator
.
prototype
.
toString
=
function
()
{
// toString function
cUnarMinusOperator
.
prototype
.
toString
=
function
()
{
// toString function
return
'
-
'
;
return
'
-
'
;
};
};
cUnarMinusOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
cUnarMinusOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
return
new
cString
(
"
-
"
+
arg
[
0
]
);
return
new
cString
(
"
-
"
+
arg
[
0
]
);
};
};
cUnarMinusOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
cUnarMinusOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
"
-
"
+
arg
[
start
+
count
-
1
]
);
return
new
cString
(
"
-
"
+
arg
[
start
+
count
-
1
]
);
};
};
cUnarMinusOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
cUnarMinusOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
"
-
"
+
arg
[
start
+
count
-
1
]
);
return
new
cString
(
"
-
"
+
arg
[
start
+
count
-
1
]
);
};
};
/** @constructor */
/** @constructor */
function
cUnarPlusOperator
()
{
function
cUnarPlusOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
un_plus
'
,
49
,
1
]
);
cBaseOperator
.
apply
(
this
,
[
'
un_plus
'
,
49
,
1
]
);
this
.
isRightAssociative
=
true
;
this
.
isRightAssociative
=
true
;
}
}
cUnarPlusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cUnarPlusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cUnarPlusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cUnarPlusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
];
var
arg0
=
arg
[
0
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
arg0
=
arg0
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
};
};
cUnarPlusOperator
.
prototype
.
toString
=
function
()
{
cUnarPlusOperator
.
prototype
.
toString
=
function
()
{
return
'
+
'
;
return
'
+
'
;
};
};
cUnarPlusOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
cUnarPlusOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
return
new
cString
(
"
+
"
+
arg
[
0
]
);
return
new
cString
(
"
+
"
+
arg
[
0
]
);
};
};
cUnarPlusOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
cUnarPlusOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
"
+
"
+
arg
[
start
+
count
-
1
]
);
return
new
cString
(
"
+
"
+
arg
[
start
+
count
-
1
]
);
};
};
cUnarPlusOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
cUnarPlusOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
"
+
"
+
arg
[
start
+
count
-
1
]
);
return
new
cString
(
"
+
"
+
arg
[
start
+
count
-
1
]
);
};
};
/** @constructor */
/** @constructor */
function
cAddOperator
()
{
function
cAddOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
+
'
,
20
]
);
cBaseOperator
.
apply
(
this
,
[
'
+
'
,
20
]
);
}
}
cAddOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cAddOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cAddOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cAddOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tocNumber
(),
arg1
=
arg1
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
+
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tocNumber
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
+
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cMinusOperator
()
{
function
cMinusOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
-
'
,
20
]
);
cBaseOperator
.
apply
(
this
,
[
'
-
'
,
20
]
);
}
}
cMinusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cMinusOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cMinusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cMinusOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
}
arg0
=
arg0
.
tocNumber
(),
arg1
=
arg1
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
-
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tocNumber
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
-
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cPercentOperator
()
{
function
cPercentOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
%
'
,
45
,
1
]
);
cBaseOperator
.
apply
(
this
,
[
'
%
'
,
45
,
1
]
);
this
.
isRightAssociative
=
true
;
this
.
isRightAssociative
=
true
;
}
}
cPercentOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cPercentOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cPercentOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cPercentOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
];
var
arg0
=
arg
[
0
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
else
if
(
arg0
instanceof
cArray
)
{
}
else
if
(
arg0
instanceof
cArray
)
{
arg0
.
foreach
(
function
(
arrElem
,
r
,
c
)
{
arg0
.
foreach
(
function
(
arrElem
,
r
,
c
)
{
arrElem
=
arrElem
.
tocNumber
();
arrElem
=
arrElem
.
tocNumber
();
arg0
.
array
[
r
][
c
]
=
arrElem
instanceof
cError
?
arrElem
:
new
cNumber
(
arrElem
.
getValue
()
/
100
);
arg0
.
array
[
r
][
c
]
=
arrElem
instanceof
cError
?
arrElem
:
new
cNumber
(
arrElem
.
getValue
()
/
100
);
});
});
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
}
arg0
=
arg0
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
this
.
value
=
arg0
instanceof
cError
?
arg0
:
new
cNumber
(
arg0
.
getValue
()
/
100
);
this
.
value
=
arg0
instanceof
cError
?
arg0
:
new
cNumber
(
arg0
.
getValue
()
/
100
);
this
.
value
.
numFormat
=
9
;
this
.
value
.
numFormat
=
9
;
return
this
.
value
;
return
this
.
value
;
};
};
cPercentOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
cPercentOperator
.
prototype
.
Assemble
=
function
(
arg
)
{
return
new
cString
(
arg
[
0
]
+
this
.
name
);
return
new
cString
(
arg
[
0
]
+
this
.
name
);
};
};
cPercentOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
cPercentOperator
.
prototype
.
Assemble2
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
arg
[
start
+
count
-
1
]
+
this
.
name
);
return
new
cString
(
arg
[
start
+
count
-
1
]
+
this
.
name
);
};
};
cPercentOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
cPercentOperator
.
prototype
.
Assemble2Locale
=
function
(
arg
,
start
,
count
)
{
return
new
cString
(
arg
[
start
+
count
-
1
]
+
this
.
name
);
return
new
cString
(
arg
[
start
+
count
-
1
]
+
this
.
name
);
};
};
/** @constructor */
/** @constructor */
function
cPowOperator
()
{
function
cPowOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
^
'
,
40
]
);
cBaseOperator
.
apply
(
this
,
[
'
^
'
,
40
]
);
}
}
cPowOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cPowOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cPowOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cPowOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
arg0
=
arg0
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
arg1
=
arg1
.
tocNumber
();
arg1
=
arg1
.
tocNumber
();
if
(
arg0
instanceof
cError
)
{
if
(
arg0
instanceof
cError
)
{
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
}
if
(
arg1
instanceof
cError
)
{
if
(
arg1
instanceof
cError
)
{
return
this
.
value
=
arg1
;
return
this
.
value
=
arg1
;
}
}
var
_v
=
Math
.
pow
(
arg0
.
getValue
(),
arg1
.
getValue
()
);
var
_v
=
Math
.
pow
(
arg0
.
getValue
(),
arg1
.
getValue
()
);
if
(
isNaN
(
_v
)
)
{
if
(
isNaN
(
_v
)
)
{
return
this
.
value
=
new
cError
(
cErrorType
.
not_numeric
);
return
this
.
value
=
new
cError
(
cErrorType
.
not_numeric
);
}
else
if
(
_v
===
Number
.
POSITIVE_INFINITY
)
{
}
else
if
(
_v
===
Number
.
POSITIVE_INFINITY
)
{
return
this
.
value
=
new
cError
(
cErrorType
.
division_by_zero
);
return
this
.
value
=
new
cError
(
cErrorType
.
division_by_zero
);
}
}
return
this
.
value
=
new
cNumber
(
_v
);
return
this
.
value
=
new
cNumber
(
_v
);
};
};
/** @constructor */
/** @constructor */
function
cMultOperator
()
{
function
cMultOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
*
'
,
30
]
);
cBaseOperator
.
apply
(
this
,
[
'
*
'
,
30
]
);
}
}
cMultOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cMultOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cMultOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cMultOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tocNumber
(),
arg1
=
arg1
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
*
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tocNumber
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
*
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cDivOperator
()
{
function
cDivOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
/
'
,
30
]
);
cBaseOperator
.
apply
(
this
,
[
'
/
'
,
30
]
);
}
}
cDivOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cDivOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cDivOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cDivOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tocNumber
(),
arg1
=
arg1
.
tocNumber
();
arg0
=
arg0
.
tocNumber
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
/
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tocNumber
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
/
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cConcatSTROperator
()
{
function
cConcatSTROperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
&
'
,
15
]
);
cBaseOperator
.
apply
(
this
,
[
'
&
'
,
15
]
);
}
}
cConcatSTROperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cConcatSTROperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cConcatSTROperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cConcatSTROperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
arg0
=
arg0
.
tocString
();
arg0
=
arg0
.
tocString
();
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
arg1
=
arg1
.
tocString
();
arg1
=
arg1
.
tocString
();
return
this
.
value
=
arg0
instanceof
cError
?
arg0
:
return
this
.
value
=
arg0
instanceof
cError
?
arg0
:
arg1
instanceof
cError
?
arg1
:
new
cString
(
arg0
.
toString
().
concat
(
arg1
.
toString
()));
arg1
instanceof
cError
?
arg1
:
new
cString
(
arg0
.
toString
().
concat
(
arg1
.
toString
()));
};
};
/** @constructor */
/** @constructor */
function
cEqualsOperator
()
{
function
cEqualsOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
=
'
,
10
]
);
cBaseOperator
.
apply
(
this
,
[
'
=
'
,
10
]
);
}
}
cEqualsOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cEqualsOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cEqualsOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cEqualsOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tryConvert
(),
arg1
=
arg1
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
=
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tryConvert
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
=
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cNotEqualsOperator
()
{
function
cNotEqualsOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
<>
'
,
10
]
);
cBaseOperator
.
apply
(
this
,
[
'
<>
'
,
10
]
);
}
}
cNotEqualsOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cNotEqualsOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cNotEqualsOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cNotEqualsOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
if
(
arg1
.
type
==
cElementType
.
cellsRange
)
{
if
(
arg1
.
type
==
cElementType
.
cellsRange
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tryConvert
(),
arg1
=
arg1
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<>
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tryConvert
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<>
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cLessOperator
()
{
function
cLessOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
<
'
,
10
]
);
cBaseOperator
.
apply
(
this
,
[
'
<
'
,
10
]
);
}
}
cLessOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cLessOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cLessOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cLessOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tryConvert
(),
arg1
=
arg1
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tryConvert
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cLessOrEqualOperator
()
{
function
cLessOrEqualOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
<=
'
,
10
]
);
cBaseOperator
.
apply
(
this
,
[
'
<=
'
,
10
]
);
}
}
cLessOrEqualOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cLessOrEqualOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cLessOrEqualOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cLessOrEqualOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tryConvert
(),
arg1
=
arg1
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<=
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tryConvert
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
<=
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cGreaterOperator
()
{
function
cGreaterOperator
()
{
cBaseOperator
.
apply
(
this
,
[
'
>
'
,
10
]
);
cBaseOperator
.
apply
(
this
,
[
'
>
'
,
10
]
);
}
}
cGreaterOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cGreaterOperator
.
prototype
=
Object
.
create
(
cBaseOperator
.
prototype
);
cGreaterOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
cGreaterOperator
.
prototype
.
Calculate
=
function
(
arg
)
{
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
var
arg0
=
arg
[
0
],
arg1
=
arg
[
1
];
if
(
arg0
instanceof
cArea
)
{
if
(
arg0
instanceof
cArea
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg0
instanceof
cArea3D
)
{
}
else
if
(
arg0
instanceof
cArea3D
)
{
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg0
=
arg0
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
if
(
arg1
instanceof
cArea
)
{
if
(
arg1
instanceof
cArea
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
);
}
else
if
(
arg1
instanceof
cArea3D
)
{
}
else
if
(
arg1
instanceof
cArea3D
)
{
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]
);
arg1
=
arg1
.
cross
(
arguments
[
1
].
first
,
arguments
[
3
]);
}
}
arg0
=
arg0
.
tryConvert
(),
arg1
=
arg1
.
tryConvert
();
arg0
=
arg0
.
tryConvert
();
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
>
"
,
arguments
[
1
].
first
);
arg1
=
arg1
.
tryConvert
();
};
return
this
.
value
=
_func
[
arg0
.
type
][
arg1
.
type
](
arg0
,
arg1
,
"
>
"
,
arguments
[
1
].
first
);
};
/** @constructor */
/** @constructor */
function
cGreaterOrEqualOperator
()
{
function
cGreaterOrEqualOperator
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment