Skip to content

Commit f1e1cfd

Browse files
committed
fix: add debug logging for unary and binary operator processing in ExpressionParser
1 parent 3fbde69 commit f1e1cfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/java/mindustrytool/workflow/expressions/ExpressionParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ private Queue<String> toExpressionQueue(String expr, Map<String, Object> variabl
121121

122122
if (UNARY_OPERATORS.containsKey(token)) {
123123
ops.push(token);
124+
Log.debug("Push unary operator: " + token);
124125
} else if (BINARY_OPERATORS.containsKey(token)) {
125126
while (!ops.isEmpty() && PRECEDENCE.getOrDefault(ops.peek(), 0) >= PRECEDENCE.get(token)) {
126127
output.add(ops.pop());
127128
}
128129
ops.push(token);
130+
Log.debug("Push binary operator: " + token);
129131
} else if ("(".equals(token)) {
130132
ops.push(token);
131133
} else if (")".equals(token)) {

0 commit comments

Comments
 (0)