summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-04-03 20:36:27 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-04-03 20:36:27 -0400
commit73d1ba7a3a4c3c1df4863861cbf71ddf85ccb7d3 (patch)
tree65d462443b1ab558d92c326b2fb2c662cdcd759c /BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java
parent1c8bc7132d980c1ff2dbd6b9af579c3b2fd8c63e (diff)
Code maintenance and changes
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java b/BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java
index 28ca1e3..6fedf87 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/parserutils/TreeConstructor.java
@@ -41,7 +41,11 @@ public class TreeConstructor {
} else {
if (queue.size() < 2) {
throw new IllegalStateException(
- "Attempted to parse binary operator without enough operands");
+ "Attempted to parse binary operator without enough operands.\n"
+ + "Problem operator is "
+ + element
+ + "\nPossible operand is: \n\t"
+ + queue.peek());
}
AST<T> rightAST = queue.pop();