engine of binary operator in R#
BinaryOperatorEngine
01 Syntax
SMRUCC.Rsharp.Runtime.Interop.Operator.BinaryOperatorEngine
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| arithmeticOperators | 1 | add arithmetic operators |
| addMixedOperators | 1 | left and right should be in different type |
| addBinary | 1 | add a new operator |
| ImportsOperators | 1 | imports user defined operator |
| getOperator | 1 |
03 Members
arithmeticOperators
add arithmetic operators
left and right should be in different type
Parameters
add a new operator
Parameters
| Name | Type | Description |
|---|---|---|
left | RType | - |
right | RType | - |
symbol | String | - |
op | IBinaryOperator | - |
env | Environment | - |
overrides | Boolean | Overrides of the existed operator evaluation when the operator symbol and the binary type is matched? |
ImportsOperators(
Type, Environment)imports user defined operator
Parameters
| Name | Type | Description |
|---|---|---|
package | Type | - |
env | Environment | the environment object is apply for generates the error message if the operator is already existed, could be nothing to omit it. |