mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-23 07:50:09 -08:00
Add a toString for UnaryPrefixNode
This commit is contained in:
parent
f4508a8c5a
commit
ce9e32b08f
|
@ -51,4 +51,9 @@ public class UnaryPrefixNode extends TreeNode {
|
||||||
public TreeNode getApplyTo() {
|
public TreeNode getApplyTo() {
|
||||||
return applyTo;
|
return applyTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "(" + (applyTo == null ? "null" : applyTo.toString()) + ")" + operation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user