mirror of
https://github.com/DanilaFe/abacus
synced 2025-01-09 07:44:14 -08:00
Add a toString for UnaryPrefixNode
This commit is contained in:
parent
c3bb3d7d3f
commit
8c5306051e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user