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.
24 lines
477 B
24 lines
477 B
11 years ago
|
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
|
||
|
*/
|
||
11 years ago
|
public abstract class TokenBinaryOperator extends TokenOperator {
|
||
11 years ago
|
|
||
|
/**
|
||
|
* Convert to operation
|
||
|
*
|
||
|
* @param left left operand
|
||
|
* @param right right operand
|
||
|
* @return operation
|
||
|
*/
|
||
|
public abstract Operation toOperation(TokenList left, TokenList right);
|
||
|
}
|