public class HashedOrderlessMatcher
extends java.lang.Object
Orderless
AST into a new resulting
expression.HashedPatternRules
Constructor and Description |
---|
HashedOrderlessMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
defineHashRule(IExpr lhs1,
IExpr lhs2,
BinaryFunctorImpl<IExpr> function) |
void |
defineHashRule(IExpr lhs1,
IExpr lhs2,
IExpr rhs)
Define the rule for the
Orderless operator OP. |
void |
defineHashRule(IExpr lhs1,
IExpr lhs2,
IExpr rhs,
IExpr condition)
Define the rule for the
Orderless operator OP. |
void |
defineHashRule(java.lang.String lhs1Str,
java.lang.String lhs2Str,
BinaryFunctorImpl<IExpr> function) |
void |
defineHashRule(java.lang.String lhs1Str,
java.lang.String lhs2Str,
java.lang.String rhsStr)
Define the rule for the
Orderless operator OP. |
void |
defineHashRule(java.lang.String lhs1Str,
java.lang.String lhs2Str,
java.lang.String rhsStr,
java.lang.String conditionStr) |
void |
definePatternHashRule(IExpr lhs1,
IExpr lhs2,
IExpr rhs)
Define the rule for the
Orderless operator OP. |
void |
definePatternHashRule(IExpr lhs1,
IExpr lhs2,
IExpr rhs,
IExpr condition)
Define the rule for the
Orderless operator OP. |
IAST |
evaluate(IAST orderlessAST)
Evaluate an
Orderless AST with the defined
HashedPatternRules . |
public void defineHashRule(java.lang.String lhs1Str, java.lang.String lhs2Str, java.lang.String rhsStr) throws SyntaxError
Orderless
operator OP.
OP[lhs1Str, lhs2Str, ....] := OP[rhsStr, ...]
lhs1Str
- lhs2Str
- rhsStr
- SyntaxError
public void defineHashRule(java.lang.String lhs1Str, java.lang.String lhs2Str, BinaryFunctorImpl<IExpr> function) throws SyntaxError
SyntaxError
public void defineHashRule(java.lang.String lhs1Str, java.lang.String lhs2Str, java.lang.String rhsStr, java.lang.String conditionStr) throws SyntaxError
SyntaxError
public void defineHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs)
Orderless
operator OP.
OP[lhs1, lhs2, ....] := OP[rhs, ...]
lhs1
- lhs2
- rhs
- public void defineHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs, IExpr condition)
Orderless
operator OP.
OP[lhs1, lhs2, ....] := OP[rhs, ...] /; condition
lhs1
- lhs2
- rhs
- condition
- public void defineHashRule(IExpr lhs1, IExpr lhs2, BinaryFunctorImpl<IExpr> function)
public void definePatternHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs)
Orderless
operator OP.
OP[lhs1Str, rhsStr, ....] := OP[rhsStr, ...] /; condition
lhs1
- lhs2
- rhs
- public void definePatternHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs, IExpr condition)
Orderless
operator OP.
OP[lhs1Str, rhsStr, ....] := OP[rhsStr, ...] /; condition
lhs1
- lhs2
- rhs
- condition
- public IAST evaluate(IAST orderlessAST)
Orderless
AST with the defined
HashedPatternRules
.orderlessAST
- HashedPatternRules