1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-10 01:05:20 +00:00

Add a toString for UnaryPrefixNode

This commit is contained in:
2017-07-28 14:57:11 -07:00
parent c3bb3d7d3f
commit 8c5306051e

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;
}
}