} else {
tokenName = tokenNames[mte.expecting];
}
msg = "Missing \""+ tokenName +"\" at "+ getTokenLocation(mte);
} else if (e instanceof UnwantedTokenException) {
UnwantedTokenException ute = (UnwantedTokenException)e;
String tokenName;
if (ute.expecting== Token.EOF) {
tokenName = "EOF";
} else {
tokenName = tokenNames[ute.expecting];
}
msg = "Unexpected input. Expecting \"" + tokenName + "\", got \"" + ute.getUnexpectedToken().getText()
+ "\" at " + getTokenLocation(ute);
} else if (e instanceof MismatchedTokenException) {
MismatchedTokenException mte = (MismatchedTokenException)e;
String tokenName;
if (mte.expecting== Token.EOF) {