You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
477 B
23 lines
477 B
package net.mightypork.rcalc.tokens;
|
|
|
|
|
|
import net.mightypork.rcalc.TokenList;
|
|
import net.mightypork.rcalc.operations.Operation;
|
|
|
|
|
|
/**
|
|
* Abstract operation token with two operands
|
|
*
|
|
* @author Ondrej Hruska
|
|
*/
|
|
public abstract class TokenBinaryOperator extends TokenOperator {
|
|
|
|
/**
|
|
* Convert to operation
|
|
*
|
|
* @param left left operand
|
|
* @param right right operand
|
|
* @return operation
|
|
*/
|
|
public abstract Operation toOperation(TokenList left, TokenList right);
|
|
}
|
|
|