jfun.parsec
public final class OperatorTable<E> extends Object implements Serializable
Method Summary | |
---|---|
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. |
Parameters: p the parser for the operator. precedence the precedence number.
Returns: this.
Parameters: p the parser for the operator. precedence the precedence number.
Returns: this.
Parameters: p the parser for the operator. precedence the precedence number.
Returns: this.
Parameters: p the parser for the operator. precedence the precedence number.
Returns: this.
Parameters: p the parser for the operator. precedence the precedence number.
Returns: this.