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.
26 lines
422 B
26 lines
422 B
package net.mightypork.rcalc.tokens;
|
|
|
|
|
|
import net.mightypork.rcalc.IToken;
|
|
import net.mightypork.rcalc.TokenList;
|
|
|
|
|
|
/**
|
|
* Left parenthesis token
|
|
*
|
|
* @author Ondrej Hruska
|
|
*/
|
|
public class TokenParenthesisLeft implements IToken {
|
|
|
|
@Override
|
|
public String toString() {
|
|
|
|
return "(";
|
|
}
|
|
|
|
@Override
|
|
public TokenList wrapInTokenList() {
|
|
throw new RuntimeException("Cannot wrap a parenthesis in a TokenList!");
|
|
}
|
|
|
|
}
|
|
|