diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 19:13:48 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 19:13:48 -0500 |
| commit | f9d9bd4bbf7dd6a297e1daf5ee7b4263d706d9cd (patch) | |
| tree | 75ade2ca798bcdbdd7daf867480378299598581a /base/src/bjc/dicelang/Node.java | |
| parent | b14a399d05fc90d8532cd08d1546e6bf197db10e (diff) | |
Update
Diffstat (limited to 'base/src/bjc/dicelang/Node.java')
| -rw-r--r-- | base/src/bjc/dicelang/Node.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/src/bjc/dicelang/Node.java b/base/src/bjc/dicelang/Node.java index 7e97f9c..a9e14db 100644 --- a/base/src/bjc/dicelang/Node.java +++ b/base/src/bjc/dicelang/Node.java @@ -2,6 +2,7 @@ package bjc.dicelang; import bjc.dicelang.eval.EvaluatorResult; import bjc.dicelang.eval.FailureEvaluatorResult; +import bjc.dicelang.tokens.Token; import bjc.utils.data.ITree; /* @@ -62,7 +63,7 @@ public class Node { @Override public String toString() { - switch (type) { + switch(type) { case UNARYOP: case BINOP: return "(" + type.name() + " : " + operatorType + ")"; @@ -84,17 +85,17 @@ public class Node { @Override public boolean equals(final Object other) { - if (!(other instanceof Node)) { + if(!(other instanceof Node)) { return false; } final Node otk = (Node) other; - if (otk.type != type) { + if(otk.type != type) { return false; } - switch (type) { + switch(type) { case OGROUP: return tokenVal.equals(otk.tokenVal); |
