Package org.antlr.runtime

Examples of org.antlr.runtime.MismatchedNotSetException


                                     expected,
                                     formatParserLocation() );
            codeAndMessage.add( message );
            codeAndMessage.add( "ERR 107" );
        } else if ( e instanceof MismatchedNotSetException ) {
            MismatchedNotSetException mse = (MismatchedNotSetException) e;
            String expected = expectedTokensAsString( mse.expecting );
            message = String.format(
                                     DroolsParserExceptionFactory.MISMATCHED_NOT_SET_MESSAGE,
                                     e.line,
                                     e.charPositionInLine,
View Full Code Here


                    e.line, e.charPositionInLine, getBetterToken(e.token),
                    mse.expecting, formatParserLocation());
            codeAndMessage.add(message);
            codeAndMessage.add("ERR 107");
        } else if (e instanceof MismatchedNotSetException) {
            MismatchedNotSetException mse = (MismatchedNotSetException) e;
            message = String.format(
                    DroolsParserExceptionFactory.MISMATCHED_NOT_SET_MESSAGE,
                    e.line, e.charPositionInLine, getBetterToken(e.token),
                    mse.expecting, formatParserLocation());
            codeAndMessage.add(message);
View Full Code Here

          e.line, e.charPositionInLine, getBetterToken(e.token),
          mse.expecting, formatParserLocation());
      codeAndMessage.add(message);
      codeAndMessage.add("ERR 105");
    } else if (e instanceof MismatchedNotSetException) {
      MismatchedNotSetException mse = (MismatchedNotSetException) e;
      message = String.format(
          DroolsParserExceptionFactory.MISMATCHED_NOT_SET_MESSAGE,
          e.line, e.charPositionInLine, getBetterToken(e.token),
          mse.expecting, formatParserLocation());
      codeAndMessage.add(message);
View Full Code Here

                            message.append("mismatched token '"+
                                                               e.token+
                                                               "' expecting set "+mse.expecting);
                    }
                    else if ( e instanceof MismatchedNotSetException ) {
                            MismatchedNotSetException mse = (MismatchedNotSetException)e;
                            message.append("mismatched token '"+
                                                               e.token+
                                                               "' expecting set "+mse.expecting);
                    }
                    else if ( e instanceof FailedPredicateException ) {
View Full Code Here

                                     expected,
                                     formatParserLocation() );
            codeAndMessage.add( message );
            codeAndMessage.add( "ERR 107" );
        } else if ( e instanceof MismatchedNotSetException ) {
            MismatchedNotSetException mse = (MismatchedNotSetException) e;
            String expected = expectedTokensAsString( mse.expecting );
            message = String.format(
                                     MISMATCHED_NOT_SET_MESSAGE,
                                     e.line,
                                     e.charPositionInLine,
View Full Code Here

//      EarlyExitException eee = (EarlyExitException)e;
      // for development, can add "(decision="+eee.decisionNumber+")"
      msg = "required (...)+ loop did not match anything at character "+lexer.getCharErrorDisplay(e.c);
    }
    else if ( e instanceof MismatchedNotSetException ) {
      MismatchedNotSetException mse = (MismatchedNotSetException)e;
      msg = "mismatched character "+lexer.getCharErrorDisplay(e.c)+" expecting set "+mse.expecting;
    }
    else if ( e instanceof MismatchedSetException ) {
      MismatchedSetException mse = (MismatchedSetException)e;
      msg = "mismatched character "+lexer.getCharErrorDisplay(e.c)+" expecting set "+mse.expecting;
View Full Code Here

      MismatchedSetException mse = (MismatchedSetException)e;
      msg = "mismatched input "+parser.getTokenErrorDisplay(e.token)+
        " expecting set "+mse.expecting;
    }
    else if ( e instanceof MismatchedNotSetException ) {
      MismatchedNotSetException mse = (MismatchedNotSetException)e;
      msg = "mismatched input "+parser.getTokenErrorDisplay(e.token)+
        " expecting set "+mse.expecting;
    }
    else if ( e instanceof FailedPredicateException ) {
      FailedPredicateException fpe = (FailedPredicateException)e;
View Full Code Here

          e.line, e.charPositionInLine, getBetterToken(e.token),
          expected, formatParserLocation());
      codeAndMessage.add(message);
      codeAndMessage.add("ERR 107");
    } else if (e instanceof MismatchedNotSetException) {
      MismatchedNotSetException mse = (MismatchedNotSetException) e;
            String expected = expectedTokensAsString( mse.expecting );
      message = String.format(
          DroolsParserExceptionFactory.MISMATCHED_NOT_SET_MESSAGE,
          e.line, e.charPositionInLine, getBetterToken(e.token),
          expected, formatParserLocation());
View Full Code Here

                                     expected,
                                     formatParserLocation() );
            codeAndMessage.add( message );
            codeAndMessage.add( "ERR 107" );
        } else if ( e instanceof MismatchedNotSetException ) {
            MismatchedNotSetException mse = (MismatchedNotSetException) e;
            String expected = expectedTokensAsString( mse.expecting );
            message = String.format(
                                     DroolsParserExceptionFactory.MISMATCHED_NOT_SET_MESSAGE,
                                     e.line,
                                     e.charPositionInLine,
View Full Code Here

        }
        else if ( e instanceof org.antlr.runtime.EarlyExitException ) {
            return Messages.getString("Metrics.Calculate.Error.Antlr.requiredLoop")+ getCharErrorDisplay(e.c, tokens,processor); //$NON-NLS-1$
        }
        else if ( e instanceof org.antlr.runtime.MismatchedNotSetException ) {
          MismatchedNotSetException  mnse = (MismatchedNotSetException) e;
            return Messages.getString("Metrics.Calculate.Error.Antlr.mismatchedCharacter")+getCharErrorDisplay(e.c, tokens,processor)+Messages.getString("Metrics.Calculate.Error.Antlr.ExpectingSet")+mnse.expecting; //$NON-NLS-1$ //$NON-NLS-2$
        }
        else if ( e instanceof org.antlr.runtime.MismatchedSetException ) {
          MismatchedSetException mmse = (MismatchedSetException) e;
            return Messages.getString("Metrics.Calculate.Error.Antlr.mismatchedCharacter")+getCharErrorDisplay(e.c, tokens,processor)+Messages.getString("Metrics.Calculate.Error.Antlr.ExpectingSet")+mmse.expecting; //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

TOP

Related Classes of org.antlr.runtime.MismatchedNotSetException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.