public final class OperatorTable<E>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
OperatorTable() |
Modifier and Type | Method and Description |
---|---|
OperatorTable<E> |
infixl(Parser<? extends Map2<? super E,? super E,? extends E>> p,
int precedence)
Adds a infix left-associative binary operator.
|
OperatorTable<E> |
infixn(Parser<? extends Map2<? super E,? super E,? extends E>> p,
int precedence)
Adds a infix non-associative binary operator.
|
OperatorTable<E> |
infixr(Parser<? extends Map2<? super E,? super E,? extends E>> p,
int precedence)
Adds a infix right-associative binary operator.
|
OperatorTable<E> |
postfix(Parser<? extends Map<? super E,? extends E>> p,
int precedence)
Adds a postfix unary operator.
|
OperatorTable<E> |
prefix(Parser<? extends Map<? super E,? extends E>> p,
int precedence)
Adds a prefix unary operator.
|
public OperatorTable<E> prefix(Parser<? extends Map<? super E,? extends E>> p, int precedence)
p
- the parser for the operator.precedence
- the precedence number.public OperatorTable<E> postfix(Parser<? extends Map<? super E,? extends E>> p, int precedence)
p
- the parser for the operator.precedence
- the precedence number.public OperatorTable<E> infixl(Parser<? extends Map2<? super E,? super E,? extends E>> p, int precedence)
p
- the parser for the operator.precedence
- the precedence number.public OperatorTable<E> infixr(Parser<? extends Map2<? super E,? super E,? extends E>> p, int precedence)
p
- the parser for the operator.precedence
- the precedence number.