public ANTLRErrorStrategy createErrorStrategy() {
return new BailErrorStrategy() {
private void bail(Parser recognizer, Exception exc, String additionalHint)
throws ParseCancellationException
{
RecognitionException re = (RecognitionException)exc.getCause();
int offendingState = re.getOffendingState();
Token offendingToken = re.getOffendingToken();
int offendingTokenType = offendingToken.getType();
String msg = getErrorMessage(offendingState, offendingTokenType);
StringBuilder sb = new StringBuilder();