1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-17 16:09:32 -08:00

Add a toString for UnaryPrefixNode

This commit is contained in:
Danila Fedorin 2017-07-28 14:57:11 -07:00
parent f4508a8c5a
commit ce9e32b08f

View File

@ -51,4 +51,9 @@ public class UnaryPrefixNode extends TreeNode {
public TreeNode getApplyTo() {
return applyTo;
}
@Override
public String toString() {
return "(" + (applyTo == null ? "null" : applyTo.toString()) + ")" + operation;
}
}