StringBuilder errorMsg = new StringBuilder();
String[] names = antlr.getTokenNames();
if (re.token != null && re.token.getType() == ExpressionParser.EOF) {
errorMsg.append("unexpected end of expression");
} else if (re instanceof MismatchedTokenException) {
MismatchedTokenException mte = (MismatchedTokenException) re;
String txt;
String expecting;
// bleh same exception class has different fields set depending on
// where it occurred
if (antlr instanceof Lexer) {