2017-08-25 14:55:05 -07:00
|
|
|
package org.nwapw.abacus.function
|
|
|
|
|
2017-08-25 16:07:23 -07:00
|
|
|
import org.nwapw.abacus.function.applicable.Applicable
|
2017-08-25 14:55:05 -07:00
|
|
|
import org.nwapw.abacus.number.NumberInterface
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An operator that operates on NumberImplementations.
|
|
|
|
*
|
|
|
|
* This is simply an alias for Operator<NumberInterface, NumberInterface>.
|
|
|
|
* @param associativity the associativity of the operator.
|
|
|
|
* @param type the type of the operator (binary, unary, etc)
|
|
|
|
* @param precedence the precedence of the operator.
|
|
|
|
*/
|
|
|
|
abstract class NumberOperator(associativity: OperatorAssociativity, type: OperatorType,
|
|
|
|
precedence: Int) :
|
2017-08-25 15:42:10 -07:00
|
|
|
Operator(associativity, type, precedence),
|
|
|
|
Applicable<NumberInterface, NumberInterface>
|