org.simantics.basicexpression.lexer,
org.simantics.basicexpression.node,
org.simantics.basicexpression.parser
+Require-Bundle: org.slf4j.api;bundle-version="1.7.25"
import org.simantics.basicexpression.lexer.Lexer;
import org.simantics.basicexpression.node.Start;
import org.simantics.basicexpression.parser.Parser;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class Expressions {
+ private static final Logger LOGGER = LoggerFactory.getLogger(Expressions.class);
+
private static final boolean DEBUG = false;
public static void evaluate(String expression, DepthFirstAdapter evaluator) {
}
catch(Exception e)
{
- e.printStackTrace();
+ if (LOGGER.isDebugEnabled())
+ LOGGER.debug("Failed to evaluate expression {}", expression, e);
evaluator.except(e);
- }
-
+ }
+
}
}