}
} else {
String message = "the input text doesn't match the bnf provided\ninput string was:\n";
message += input + "\nbest parsed string was:";
message += globalBestParse + "\n";
throw new ParseException(message, input, globalBestParse);
}
return retVal;
}