org.antlr.runtime.EarlyExitException Java Examples

The following examples show how to use org.antlr.runtime.EarlyExitException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RecognizerErrorHandler.java    From legstar-core2 with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Simplify error message text for end users.
 * @param e exception that occurred
 * @param msg as formatted by ANTLR
 * @return a more readable error message
 */
public static String makeUserMsg(final RecognitionException e, final String msg) {
    if (e instanceof NoViableAltException) {
        return msg.replace("no viable alternative at", "unrecognized");
    } else if (e instanceof UnwantedTokenException) {
        return msg.replace("extraneous input", "unexpected token");
    } else if (e instanceof MismatchedTokenException) {
        if (msg.contains("mismatched input '<EOF>'")) {
            return msg.replace("mismatched input '<EOF>' expecting", "reached end of file looking for");
        } else {
            return msg.replace("mismatched input", "unexpected token");
        }
    } else if (e instanceof EarlyExitException) {
        return msg.replace("required (...)+ loop did not match anything", "required tokens not found");
    } else if (e instanceof FailedPredicateException) {
        if (msg.contains("picture_string failed predicate: {Unbalanced parentheses}")) {
            return "Unbalanced parentheses in picture string";
        }
        if (msg.contains("PICTURE_PART failed predicate: {Contains invalid picture symbols}")) {
            return "Picture string contains invalid symbols";
        }
        if (msg.contains("PICTURE_PART failed predicate: {Syntax error in last picture clause}")) {
            return "Syntax error in last picture clause";
        }
        if (msg.contains("DATA_NAME failed predicate: {Syntax error in last clause}")) {
            return "Syntax error in last COBOL clause";
        }
    }
    return msg;
}
 
Example #2
Source File: RecognizerErrorHandler.java    From legstar-core2 with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * Format an error message as expected by ANTLR. It is basically the
 * same error message that ANTL BaseRecognizer generates with some
 * additional data.
 * Also used to log debugging information.
 * @param log the logger to use at debug time
 * @param recognizer the lexer or parser who generated the error
 * @param e the exception that occured
 * @param superMessage the error message that the super class generated
 * @param tokenNames list of token names
 * @return a formatted error message
 */
public static String getErrorMessage(
        final Logger log,
        final BaseRecognizer recognizer,
        final RecognitionException e,
        final String superMessage,
        final String[] tokenNames) {
    if (log.isDebugEnabled()) {
        List < ? > stack = BaseRecognizer.getRuleInvocationStack(
                e, recognizer.getClass().getSuperclass().getName());
        String debugMsg = recognizer.getErrorHeader(e)
            + " " + e.getClass().getSimpleName()
            + ": " + superMessage
            + ":";
        if (e instanceof NoViableAltException) {
            NoViableAltException nvae = (NoViableAltException) e;
            debugMsg += " (decision=" + nvae.decisionNumber
            + " state=" + nvae.stateNumber + ")"
            + " decision=<<" + nvae.grammarDecisionDescription + ">>";
        } else if (e instanceof UnwantedTokenException) {
            UnwantedTokenException ute = (UnwantedTokenException) e;
            debugMsg += " (unexpected token=" + toString(ute.getUnexpectedToken(), tokenNames) + ")";

        } else if (e instanceof EarlyExitException) {
            EarlyExitException eea = (EarlyExitException) e;
            debugMsg += " (decision=" + eea.decisionNumber + ")";
        }
        debugMsg += " ruleStack=" + stack.toString();
        log.debug(debugMsg);
    }

    return makeUserMsg(e, superMessage);
}
 
Example #3
Source File: JavaLexer.java    From kogito-runtimes with Apache License 2.0 5 votes vote down vote up
public final void mUnderscores() throws RecognitionException {
	try {
		// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1335:12: ( ( '_' )+ )
		// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1335:14: ( '_' )+
		{
		// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1335:14: ( '_' )+
		int cnt19=0;
		loop19:
		while (true) {
			int alt19=2;
			int LA19_0 = input.LA(1);
			if ( (LA19_0=='_') ) {
				alt19=1;
			}

			switch (alt19) {
			case 1 :
				// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1335:14: '_'
				{
				match('_'); 
				}
				break;

			default :
				if ( cnt19 >= 1 ) break loop19;
				EarlyExitException eee = new EarlyExitException(19, input);
				throw eee;
			}
			cnt19++;
		}

		}

	}
	finally {
		// do for sure before leaving
	}
}
 
Example #4
Source File: ConditionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mNUMBER() throws RecognitionException {
  try {
    final int _type = NUMBER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:32:9:
    // ( ( DIGIT )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:32:11:
    // ( DIGIT )+
    {
      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:32:11:
      // ( DIGIT )+
      int cnt1 = 0;
      loop1: do {
        int alt1 = 2;
        final int LA1_0 = input.LA(1);

        if (((LA1_0 >= '0' && LA1_0 <= '9'))) {
          alt1 = 1;
        }


        switch (alt1) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:32:11:
          // DIGIT
          {
            mDIGIT();

          }
            break;

          default:
            if (cnt1 >= 1) {
              break loop1;
            }
            final EarlyExitException eee = new EarlyExitException(1, input);
            throw eee;
        }
        cnt1++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #5
Source File: QueryFilterLexer.java    From usergrid with Apache License 2.0 4 votes vote down vote up
public final void mWS() throws RecognitionException {
    try {
        int _type = WS;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // org/usergrid/persistence/query/QueryFilter.g:99:4: ( ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+ )
        // org/usergrid/persistence/query/QueryFilter.g:99:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
        {
            // org/usergrid/persistence/query/QueryFilter.g:99:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
            int cnt18 = 0;
            loop18:
            do {
                int alt18 = 2;
                int LA18_0 = input.LA( 1 );

                if ( ( ( LA18_0 >= '\t' && LA18_0 <= '\n' ) || ( LA18_0 >= '\f' && LA18_0 <= '\r' )
                        || LA18_0 == ' ' ) ) {
                    alt18 = 1;
                }


                switch ( alt18 ) {
                    case 1:
                        // org/usergrid/persistence/query/QueryFilter.g:
                    {
                        if ( ( input.LA( 1 ) >= '\t' && input.LA( 1 ) <= '\n' ) || ( input.LA( 1 ) >= '\f'
                                && input.LA( 1 ) <= '\r' ) || input.LA( 1 ) == ' ' ) {
                            input.consume();
                        }
                        else {
                            MismatchedSetException mse = new MismatchedSetException( null, input );
                            recover( mse );
                            throw mse;
                        }
                    }
                    break;

                    default:
                        if ( cnt18 >= 1 ) {
                            break loop18;
                        }
                        EarlyExitException eee = new EarlyExitException( 18, input );
                        throw eee;
                }
                cnt18++;
            }
            while ( true );

            _channel = HIDDEN;
        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #6
Source File: QueryFilterLexer.java    From usergrid with Apache License 2.0 4 votes vote down vote up
public final void mINT() throws RecognitionException {
    try {
        int _type = INT;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // org/usergrid/persistence/query/QueryFilter.g:48:5: ( ( '-' )? ( '0' .. '9' )+ )
        // org/usergrid/persistence/query/QueryFilter.g:48:7: ( '-' )? ( '0' .. '9' )+
        {
            // org/usergrid/persistence/query/QueryFilter.g:48:7: ( '-' )?
            int alt2 = 2;
            int LA2_0 = input.LA( 1 );

            if ( ( LA2_0 == '-' ) ) {
                alt2 = 1;
            }
            switch ( alt2 ) {
                case 1:
                    // org/usergrid/persistence/query/QueryFilter.g:48:8: '-'
                {
                    match( '-' );
                }
                break;
            }

            // org/usergrid/persistence/query/QueryFilter.g:48:14: ( '0' .. '9' )+
            int cnt3 = 0;
            loop3:
            do {
                int alt3 = 2;
                int LA3_0 = input.LA( 1 );

                if ( ( ( LA3_0 >= '0' && LA3_0 <= '9' ) ) ) {
                    alt3 = 1;
                }


                switch ( alt3 ) {
                    case 1:
                        // org/usergrid/persistence/query/QueryFilter.g:48:14: '0' .. '9'
                    {
                        matchRange( '0', '9' );
                    }
                    break;

                    default:
                        if ( cnt3 >= 1 ) {
                            break loop3;
                        }
                        EarlyExitException eee = new EarlyExitException( 3, input );
                        throw eee;
                }
                cnt3++;
            }
            while ( true );
        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #7
Source File: CFMLLexer.java    From openbd-core with GNU General Public License v3.0 4 votes vote down vote up
public final void mINTEGER_LITERAL() throws RecognitionException {
    try {
        int _type = INTEGER_LITERAL;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:331:3: ( ( DecimalDigit )+ )
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:331:5: ( DecimalDigit )+
        {
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:331:5: ( DecimalDigit )+
        int cnt13=0;
        loop13:
        do {
            int alt13=2;
            int LA13_0 = input.LA(1);

            if ( ((LA13_0>='0' && LA13_0<='9')) ) {
                alt13=1;
            }


            switch (alt13) {
        	case 1 :
        	    // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:331:5: DecimalDigit
        	    {
        	    mDecimalDigit(); 

        	    }
        	    break;

        	default :
        	    if ( cnt13 >= 1 ) break loop13;
                    EarlyExitException eee =
                        new EarlyExitException(13, input);
                    throw eee;
            }
            cnt13++;
        } while (true);


        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #8
Source File: CFMLLexer.java    From openbd-core with GNU General Public License v3.0 4 votes vote down vote up
public final void mWS() throws RecognitionException {
    try {
        int _type = WS;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:153:4: ( ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+ )
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:153:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
        {
        // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:153:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
        int cnt1=0;
        loop1:
        do {
            int alt1=2;
            int LA1_0 = input.LA(1);

            if ( ((LA1_0>='\t' && LA1_0<='\n')||(LA1_0>='\f' && LA1_0<='\r')||LA1_0==' ') ) {
                alt1=1;
            }


            switch (alt1) {
        	case 1 :
        	    // E:\\BlueDragon\\OpenBD_ANTLR\\src\\com\\naryx\\tagfusion\\cfm\\parser\\CFML.g:
        	    {
        	    if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||(input.LA(1)>='\f' && input.LA(1)<='\r')||input.LA(1)==' ' ) {
        	        input.consume();

        	    }
        	    else {
        	        MismatchedSetException mse = new MismatchedSetException(null,input);
        	        recover(mse);
        	        throw mse;}


        	    }
        	    break;

        	default :
        	    if ( cnt1 >= 1 ) break loop1;
                    EarlyExitException eee =
                        new EarlyExitException(1, input);
                    throw eee;
            }
            cnt1++;
        } while (true);

        _channel=HIDDEN;

        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #9
Source File: InternalTaxonomyLexer.java    From slr-toolkit with Eclipse Public License 1.0 4 votes vote down vote up
public final void mRULE_WS() throws RecognitionException {
    try {
        int _type = RULE_WS;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // InternalTaxonomy.g:218:9: ( ( ' ' | '\\t' )+ )
        // InternalTaxonomy.g:218:11: ( ' ' | '\\t' )+
        {
        // InternalTaxonomy.g:218:11: ( ' ' | '\\t' )+
        int cnt2=0;
        loop2:
        do {
            int alt2=2;
            int LA2_0 = input.LA(1);

            if ( (LA2_0=='\t'||LA2_0==' ') ) {
                alt2=1;
            }


            switch (alt2) {
        	case 1 :
        	    // InternalTaxonomy.g:
        	    {
        	    if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {
        	        input.consume();

        	    }
        	    else {
        	        MismatchedSetException mse = new MismatchedSetException(null,input);
        	        recover(mse);
        	        throw mse;}


        	    }
        	    break;

        	default :
        	    if ( cnt2 >= 1 ) break loop2;
                    EarlyExitException eee =
                        new EarlyExitException(2, input);
                    throw eee;
            }
            cnt2++;
        } while (true);


        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #10
Source File: InternalTaxonomyLexer.java    From slr-toolkit with Eclipse Public License 1.0 4 votes vote down vote up
public final void mRULE_WS() throws RecognitionException {
    try {
        int _type = RULE_WS;
        int _channel = DEFAULT_TOKEN_CHANNEL;
        // InternalTaxonomy.g:604:9: ( ( ' ' | '\\t' )+ )
        // InternalTaxonomy.g:604:11: ( ' ' | '\\t' )+
        {
        // InternalTaxonomy.g:604:11: ( ' ' | '\\t' )+
        int cnt2=0;
        loop2:
        do {
            int alt2=2;
            int LA2_0 = input.LA(1);

            if ( (LA2_0=='\t'||LA2_0==' ') ) {
                alt2=1;
            }


            switch (alt2) {
        	case 1 :
        	    // InternalTaxonomy.g:
        	    {
        	    if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {
        	        input.consume();

        	    }
        	    else {
        	        MismatchedSetException mse = new MismatchedSetException(null,input);
        	        recover(mse);
        	        throw mse;}


        	    }
        	    break;

        	default :
        	    if ( cnt2 >= 1 ) break loop2;
                    EarlyExitException eee =
                        new EarlyExitException(2, input);
                    throw eee;
            }
            cnt2++;
        } while (true);


        }

        state.type = _type;
        state.channel = _channel;
    }
    finally {
    }
}
 
Example #11
Source File: CTFLexer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
public final void mCHARACTER_LITERAL() throws RecognitionException {
	try {
		int _type = CHARACTER_LITERAL;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:162:19: ( ( STRINGPREFIX )? SINGLEQUOTE ( CHAR_CONTENT )+ SINGLEQUOTE )
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:162:21: ( STRINGPREFIX )? SINGLEQUOTE ( CHAR_CONTENT )+ SINGLEQUOTE
		{
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:162:21: ( STRINGPREFIX )?
		int alt21=2;
		int LA21_0 = input.LA(1);
		if ( (LA21_0=='L') ) {
			alt21=1;
		}
		switch (alt21) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:
				{
				if ( input.LA(1)=='L' ) {
					input.consume();
				}
				else {
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

		}

		mSINGLEQUOTE(); 

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:162:47: ( CHAR_CONTENT )+
		int cnt22=0;
		loop22:
		while (true) {
			int alt22=2;
			int LA22_0 = input.LA(1);
			if ( ((LA22_0 >= '\u0000' && LA22_0 <= '&')||(LA22_0 >= '(' && LA22_0 <= '\uFFFF')) ) {
				alt22=1;
			}

			switch (alt22) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:162:47: CHAR_CONTENT
				{
				mCHAR_CONTENT(); 

				}
				break;

			default :
				if ( cnt22 >= 1 ) break loop22;
				EarlyExitException eee = new EarlyExitException(22, input);
				throw eee;
			}
			cnt22++;
		}

		mSINGLEQUOTE(); 

		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #12
Source File: CTFLexer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
public final void mHEXADECIMAL_ESCAPE() throws RecognitionException {
	try {
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:145:29: ( BACKSLASH 'x' ( HEX_DIGIT )+ )
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:145:31: BACKSLASH 'x' ( HEX_DIGIT )+
		{
		mBACKSLASH(); 

		match('x'); 
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:145:45: ( HEX_DIGIT )+
		int cnt19=0;
		loop19:
		while (true) {
			int alt19=2;
			int LA19_0 = input.LA(1);
			if ( ((LA19_0 >= '0' && LA19_0 <= '9')||(LA19_0 >= 'A' && LA19_0 <= 'F')||(LA19_0 >= 'a' && LA19_0 <= 'f')) ) {
				alt19=1;
			}

			switch (alt19) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:
				{
				if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
					input.consume();
				}
				else {
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt19 >= 1 ) break loop19;
				EarlyExitException eee = new EarlyExitException(19, input);
				throw eee;
			}
			cnt19++;
		}

		}

	}
	finally {
		// do for sure before leaving
	}
}
 
Example #13
Source File: CTFLexer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
public final void mHEX_LITERAL() throws RecognitionException {
	try {
		int _type = HEX_LITERAL;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:109:13: ( HEX_PREFIX ( HEX_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? )
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:109:15: HEX_PREFIX ( HEX_DIGIT )+ ( INTEGER_TYPES_SUFFIX )?
		{
		mHEX_PREFIX(); 

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:109:26: ( HEX_DIGIT )+
		int cnt5=0;
		loop5:
		while (true) {
			int alt5=2;
			int LA5_0 = input.LA(1);
			if ( ((LA5_0 >= '0' && LA5_0 <= '9')||(LA5_0 >= 'A' && LA5_0 <= 'F')||(LA5_0 >= 'a' && LA5_0 <= 'f')) ) {
				alt5=1;
			}

			switch (alt5) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:
				{
				if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
					input.consume();
				}
				else {
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt5 >= 1 ) break loop5;
				EarlyExitException eee = new EarlyExitException(5, input);
				throw eee;
			}
			cnt5++;
		}

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:109:37: ( INTEGER_TYPES_SUFFIX )?
		int alt6=2;
		int LA6_0 = input.LA(1);
		if ( (LA6_0=='L'||LA6_0=='U'||LA6_0=='l'||LA6_0=='u') ) {
			alt6=1;
		}
		switch (alt6) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:109:37: INTEGER_TYPES_SUFFIX
				{
				mINTEGER_TYPES_SUFFIX(); 

				}
				break;

		}

		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #14
Source File: CTFLexer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
public final void mDECIMAL_LITERAL() throws RecognitionException {
	try {
		int _type = DECIMAL_LITERAL;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:108:17: ( ( DIGIT )+ ( INTEGER_TYPES_SUFFIX )? )
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:108:19: ( DIGIT )+ ( INTEGER_TYPES_SUFFIX )?
		{
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:108:19: ( DIGIT )+
		int cnt3=0;
		loop3:
		while (true) {
			int alt3=2;
			int LA3_0 = input.LA(1);
			if ( ((LA3_0 >= '0' && LA3_0 <= '9')) ) {
				alt3=1;
			}

			switch (alt3) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:
				{
				if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
					input.consume();
				}
				else {
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt3 >= 1 ) break loop3;
				EarlyExitException eee = new EarlyExitException(3, input);
				throw eee;
			}
			cnt3++;
		}

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:108:26: ( INTEGER_TYPES_SUFFIX )?
		int alt4=2;
		int LA4_0 = input.LA(1);
		if ( (LA4_0=='L'||LA4_0=='U'||LA4_0=='l'||LA4_0=='u') ) {
			alt4=1;
		}
		switch (alt4) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:108:26: INTEGER_TYPES_SUFFIX
				{
				mINTEGER_TYPES_SUFFIX(); 

				}
				break;

		}

		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #15
Source File: CTFLexer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
public final void mOCTAL_LITERAL() throws RecognitionException {
	try {
		int _type = OCTAL_LITERAL;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:107:15: ( OCT_PREFIX ( OCT_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? )
		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:107:17: OCT_PREFIX ( OCT_DIGIT )+ ( INTEGER_TYPES_SUFFIX )?
		{
		mOCT_PREFIX(); 

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:107:28: ( OCT_DIGIT )+
		int cnt1=0;
		loop1:
		while (true) {
			int alt1=2;
			int LA1_0 = input.LA(1);
			if ( ((LA1_0 >= '0' && LA1_0 <= '7')) ) {
				alt1=1;
			}

			switch (alt1) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:
				{
				if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
					input.consume();
				}
				else {
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt1 >= 1 ) break loop1;
				EarlyExitException eee = new EarlyExitException(1, input);
				throw eee;
			}
			cnt1++;
		}

		// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:107:41: ( INTEGER_TYPES_SUFFIX )?
		int alt2=2;
		int LA2_0 = input.LA(1);
		if ( (LA2_0=='L'||LA2_0=='U'||LA2_0=='l'||LA2_0=='u') ) {
			alt2=1;
		}
		switch (alt2) {
			case 1 :
				// org/eclipse/tracecompass/ctf/parser/CTFLexer.g:107:41: INTEGER_TYPES_SUFFIX
				{
				mINTEGER_TYPES_SUFFIX(); 

				}
				break;

		}

		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #16
Source File: ConditionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mIDENTIFIER() throws RecognitionException {
  try {
    final int _type = IDENTIFIER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:34:12:
    // ( CHARACTER ( CHARACTER | DIGIT )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:34:14:
    // CHARACTER ( CHARACTER | DIGIT )+
    {
      mCHARACTER();
      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:34:24:
      // ( CHARACTER | DIGIT )+
      int cnt3 = 0;
      loop3: do {
        int alt3 = 2;
        final int LA3_0 = input.LA(1);

        if (((LA3_0 >= '0' && LA3_0 <= '9') || (LA3_0 >= 'A' && LA3_0 <= 'Z') || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
          alt3 = 1;
        }


        switch (alt3) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:
          {
            if ((input.LA(1) >= '0' && input.LA(1) <= '9')
                || (input.LA(1) >= 'A' && input.LA(1) <= 'Z')
                || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
              input.consume();

            } else {
              final MismatchedSetException mse = new MismatchedSetException(null, input);
              recover(mse);
              throw mse;
            }


          }
            break;

          default:
            if (cnt3 >= 1) {
              break loop3;
            }
            final EarlyExitException eee = new EarlyExitException(3, input);
            throw eee;
        }
        cnt3++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #17
Source File: ConditionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mHEX_NUMBER() throws RecognitionException {
  try {
    final int _type = HEX_NUMBER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:33:12:
    // ( '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:33:14:
    // '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
    {
      match("0x");

      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:33:19:
      // ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
      int cnt2 = 0;
      loop2: do {
        int alt2 = 2;
        final int LA2_0 = input.LA(1);

        if (((LA2_0 >= '0' && LA2_0 <= '9') || (LA2_0 >= 'A' && LA2_0 <= 'F') || (LA2_0 >= 'a' && LA2_0 <= 'f'))) {
          alt2 = 1;
        }


        switch (alt2) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\BreakpointCondition\\Condition.g:
          {
            if ((input.LA(1) >= '0' && input.LA(1) <= '9')
                || (input.LA(1) >= 'A' && input.LA(1) <= 'F')
                || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
              input.consume();

            } else {
              final MismatchedSetException mse = new MismatchedSetException(null, input);
              recover(mse);
              throw mse;
            }


          }
            break;

          default:
            if (cnt2 >= 1) {
              break loop2;
            }
            final EarlyExitException eee = new EarlyExitException(2, input);
            throw eee;
        }
        cnt2++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #18
Source File: MemoryExpressionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mREGISTER() throws RecognitionException {
  try {
    final int _type = REGISTER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:27:10:
    // ( CHARACTER ( CHARACTER | DIGIT )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:27:12:
    // CHARACTER ( CHARACTER | DIGIT )+
    {
      mCHARACTER();
      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:27:22:
      // ( CHARACTER | DIGIT )+
      int cnt3 = 0;
      loop3: do {
        int alt3 = 2;
        final int LA3_0 = input.LA(1);

        if (((LA3_0 >= '0' && LA3_0 <= '9') || (LA3_0 >= 'A' && LA3_0 <= 'Z') || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
          alt3 = 1;
        }


        switch (alt3) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:
          {
            if ((input.LA(1) >= '0' && input.LA(1) <= '9')
                || (input.LA(1) >= 'A' && input.LA(1) <= 'Z')
                || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
              input.consume();

            } else {
              final MismatchedSetException mse = new MismatchedSetException(null, input);
              recover(mse);
              throw mse;
            }


          }
            break;

          default:
            if (cnt3 >= 1) {
              break loop3;
            }
            final EarlyExitException eee = new EarlyExitException(3, input);
            throw eee;
        }
        cnt3++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #19
Source File: MemoryExpressionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mNUMBER() throws RecognitionException {
  try {
    final int _type = NUMBER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:25:9:
    // ( ( DIGIT )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:25:11:
    // ( DIGIT )+
    {
      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:25:11:
      // ( DIGIT )+
      int cnt1 = 0;
      loop1: do {
        int alt1 = 2;
        final int LA1_0 = input.LA(1);

        if (((LA1_0 >= '0' && LA1_0 <= '9'))) {
          alt1 = 1;
        }


        switch (alt1) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:25:11:
          // DIGIT
          {
            mDIGIT();

          }
            break;

          default:
            if (cnt1 >= 1) {
              break loop1;
            }
            final EarlyExitException eee = new EarlyExitException(1, input);
            throw eee;
        }
        cnt1++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #20
Source File: MemoryExpressionLexer.java    From binnavi with Apache License 2.0 4 votes vote down vote up
public final void mHEX_NUMBER() throws RecognitionException {
  try {
    final int _type = HEX_NUMBER;
    final int _channel = DEFAULT_TOKEN_CHANNEL;
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:26:12:
    // ( '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ )
    // C:\\Dokumente und
    // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:26:14:
    // '0x' ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
    {
      match("0x");

      // C:\\Dokumente und
      // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:26:19:
      // ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+
      int cnt2 = 0;
      loop2: do {
        int alt2 = 2;
        final int LA2_0 = input.LA(1);

        if (((LA2_0 >= '0' && LA2_0 <= '9') || (LA2_0 >= 'A' && LA2_0 <= 'F') || (LA2_0 >= 'a' && LA2_0 <= 'f'))) {
          alt2 = 1;
        }


        switch (alt2) {
          case 1:
          // C:\\Dokumente und
          // Einstellungen\\sp\\workspace\\com.google.security.zynamics.binnavi-Trunk\\src\\com.google.security.zynamics.binnavi\\parsers\\gotomem\\MemoryExpression.g:
          {
            if ((input.LA(1) >= '0' && input.LA(1) <= '9')
                || (input.LA(1) >= 'A' && input.LA(1) <= 'F')
                || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
              input.consume();

            } else {
              final MismatchedSetException mse = new MismatchedSetException(null, input);
              recover(mse);
              throw mse;
            }


          }
            break;

          default:
            if (cnt2 >= 1) {
              break loop2;
            }
            final EarlyExitException eee = new EarlyExitException(2, input);
            throw eee;
        }
        cnt2++;
      } while (true);


    }

    state.type = _type;
    state.channel = _channel;
  } finally {
  }
}
 
Example #21
Source File: DSLMapWalker.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final void value_section() throws RecognitionException {
	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:105:5: ( ^( VT_ENTRY_VAL ( value_sentence )+ ) )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:105:7: ^( VT_ENTRY_VAL ( value_sentence )+ )
		{
		match(input,VT_ENTRY_VAL,FOLLOW_VT_ENTRY_VAL_in_value_section329); 
		match(input, Token.DOWN, null); 
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:105:22: ( value_sentence )+
		int cnt11=0;
		loop11:
		while (true) {
			int alt11=2;
			int LA11_0 = input.LA(1);
			if ( (LA11_0==VT_LITERAL||LA11_0==VT_SPACE||LA11_0==VT_VAR_REF) ) {
				alt11=1;
			}

			switch (alt11) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:105:22: value_sentence
				{
				pushFollow(FOLLOW_value_sentence_in_value_section331);
				value_sentence();
				state._fsp--;

				}
				break;

			default :
				if ( cnt11 >= 1 ) break loop11;
				EarlyExitException eee = new EarlyExitException(11, input);
				throw eee;
			}
			cnt11++;
		}

		match(input, Token.UP, null); 

		}


		    entry_stack.peek().valuebuffer.append(" ");

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #22
Source File: DSLMapWalker.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final void key_section() throws RecognitionException {
	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:84:5: ( ^( VT_ENTRY_KEY ( key_sentence )+ ) )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:84:7: ^( VT_ENTRY_KEY ( key_sentence )+ )
		{
		match(input,VT_ENTRY_KEY,FOLLOW_VT_ENTRY_KEY_in_key_section254); 
		match(input, Token.DOWN, null); 
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:84:22: ( key_sentence )+
		int cnt9=0;
		loop9:
		while (true) {
			int alt9=2;
			int LA9_0 = input.LA(1);
			if ( (LA9_0==VT_LITERAL||(LA9_0 >= VT_SPACE && LA9_0 <= VT_VAR_DEF)) ) {
				alt9=1;
			}

			switch (alt9) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g:84:22: key_sentence
				{
				pushFollow(FOLLOW_key_sentence_in_key_section256);
				key_sentence();
				state._fsp--;

				}
				break;

			default :
				if ( cnt9 >= 1 ) break loop9;
				EarlyExitException eee = new EarlyExitException(9, input);
				throw eee;
			}
			cnt9++;
		}

		match(input, Token.UP, null); 

		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #23
Source File: DSLMapLexer.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final void mLITERAL() throws RecognitionException {
	try {
		int _type = LITERAL;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:5: ( ( IdentifierPart | MISC | EscapeSequence | DOT )+ )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:7: ( IdentifierPart | MISC | EscapeSequence | DOT )+
		{
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:7: ( IdentifierPart | MISC | EscapeSequence | DOT )+
		int cnt3=0;
		loop3:
		while (true) {
			int alt3=5;
			int LA3_0 = input.LA(1);
			if ( ((LA3_0 >= '\u0000' && LA3_0 <= '\b')||(LA3_0 >= '\u000E' && LA3_0 <= '\u001B')||LA3_0=='$'||(LA3_0 >= '0' && LA3_0 <= '9')||(LA3_0 >= 'A' && LA3_0 <= 'Z')||LA3_0=='_'||(LA3_0 >= 'a' && LA3_0 <= 'z')||(LA3_0 >= '\u007F' && LA3_0 <= '\u009F')||(LA3_0 >= '\u00A2' && LA3_0 <= '\u00A5')||LA3_0=='\u00AA'||LA3_0=='\u00AD'||LA3_0=='\u00B5'||LA3_0=='\u00BA'||(LA3_0 >= '\u00C0' && LA3_0 <= '\u00D6')||(LA3_0 >= '\u00D8' && LA3_0 <= '\u00F6')||(LA3_0 >= '\u00F8' && LA3_0 <= '\u0236')||(LA3_0 >= '\u0250' && LA3_0 <= '\u02C1')||(LA3_0 >= '\u02C6' && LA3_0 <= '\u02D1')||(LA3_0 >= '\u02E0' && LA3_0 <= '\u02E4')||LA3_0=='\u02EE'||(LA3_0 >= '\u0300' && LA3_0 <= '\u0357')||(LA3_0 >= '\u035D' && LA3_0 <= '\u036F')||LA3_0=='\u037A'||LA3_0=='\u0386'||(LA3_0 >= '\u0388' && LA3_0 <= '\u038A')||LA3_0=='\u038C'||(LA3_0 >= '\u038E' && LA3_0 <= '\u03A1')||(LA3_0 >= '\u03A3' && LA3_0 <= '\u03CE')||(LA3_0 >= '\u03D0' && LA3_0 <= '\u03F5')||(LA3_0 >= '\u03F7' && LA3_0 <= '\u03FB')||(LA3_0 >= '\u0400' && LA3_0 <= '\u0481')||(LA3_0 >= '\u0483' && LA3_0 <= '\u0486')||(LA3_0 >= '\u048A' && LA3_0 <= '\u04CE')||(LA3_0 >= '\u04D0' && LA3_0 <= '\u04F5')||(LA3_0 >= '\u04F8' && LA3_0 <= '\u04F9')||(LA3_0 >= '\u0500' && LA3_0 <= '\u050F')||(LA3_0 >= '\u0531' && LA3_0 <= '\u0556')||LA3_0=='\u0559'||(LA3_0 >= '\u0561' && LA3_0 <= '\u0587')||(LA3_0 >= '\u0591' && LA3_0 <= '\u05A1')||(LA3_0 >= '\u05A3' && LA3_0 <= '\u05B9')||(LA3_0 >= '\u05BB' && LA3_0 <= '\u05BD')||LA3_0=='\u05BF'||(LA3_0 >= '\u05C1' && LA3_0 <= '\u05C2')||LA3_0=='\u05C4'||(LA3_0 >= '\u05D0' && LA3_0 <= '\u05EA')||(LA3_0 >= '\u05F0' && LA3_0 <= '\u05F2')||(LA3_0 >= '\u0600' && LA3_0 <= '\u0603')||(LA3_0 >= '\u0610' && LA3_0 <= '\u0615')||(LA3_0 >= '\u0621' && LA3_0 <= '\u063A')||(LA3_0 >= '\u0640' && LA3_0 <= '\u0658')||(LA3_0 >= '\u0660' && LA3_0 <= '\u0669')||(LA3_0 >= '\u066E' && LA3_0 <= '\u06D3')||(LA3_0 >= '\u06D5' && LA3_0 <= '\u06DD')||(LA3_0 >= '\u06DF' && LA3_0 <= '\u06E8')||(LA3_0 >= '\u06EA' && LA3_0 <= '\u06FC')||LA3_0=='\u06FF'||(LA3_0 >= '\u070F' && LA3_0 <= '\u074A')||(LA3_0 >= '\u074D' && LA3_0 <= '\u074F')||(LA3_0 >= '\u0780' && LA3_0 <= '\u07B1')||(LA3_0 >= '\u0901' && LA3_0 <= '\u0939')||(LA3_0 >= '\u093C' && LA3_0 <= '\u094D')||(LA3_0 >= '\u0950' && LA3_0 <= '\u0954')||(LA3_0 >= '\u0958' && LA3_0 <= '\u0963')||(LA3_0 >= '\u0966' && LA3_0 <= '\u096F')||(LA3_0 >= '\u0981' && LA3_0 <= '\u0983')||(LA3_0 >= '\u0985' && LA3_0 <= '\u098C')||(LA3_0 >= '\u098F' && LA3_0 <= '\u0990')||(LA3_0 >= '\u0993' && LA3_0 <= '\u09A8')||(LA3_0 >= '\u09AA' && LA3_0 <= '\u09B0')||LA3_0=='\u09B2'||(LA3_0 >= '\u09B6' && LA3_0 <= '\u09B9')||(LA3_0 >= '\u09BC' && LA3_0 <= '\u09C4')||(LA3_0 >= '\u09C7' && LA3_0 <= '\u09C8')||(LA3_0 >= '\u09CB' && LA3_0 <= '\u09CD')||LA3_0=='\u09D7'||(LA3_0 >= '\u09DC' && LA3_0 <= '\u09DD')||(LA3_0 >= '\u09DF' && LA3_0 <= '\u09E3')||(LA3_0 >= '\u09E6' && LA3_0 <= '\u09F3')||(LA3_0 >= '\u0A01' && LA3_0 <= '\u0A03')||(LA3_0 >= '\u0A05' && LA3_0 <= '\u0A0A')||(LA3_0 >= '\u0A0F' && LA3_0 <= '\u0A10')||(LA3_0 >= '\u0A13' && LA3_0 <= '\u0A28')||(LA3_0 >= '\u0A2A' && LA3_0 <= '\u0A30')||(LA3_0 >= '\u0A32' && LA3_0 <= '\u0A33')||(LA3_0 >= '\u0A35' && LA3_0 <= '\u0A36')||(LA3_0 >= '\u0A38' && LA3_0 <= '\u0A39')||LA3_0=='\u0A3C'||(LA3_0 >= '\u0A3E' && LA3_0 <= '\u0A42')||(LA3_0 >= '\u0A47' && LA3_0 <= '\u0A48')||(LA3_0 >= '\u0A4B' && LA3_0 <= '\u0A4D')||(LA3_0 >= '\u0A59' && LA3_0 <= '\u0A5C')||LA3_0=='\u0A5E'||(LA3_0 >= '\u0A66' && LA3_0 <= '\u0A74')||(LA3_0 >= '\u0A81' && LA3_0 <= '\u0A83')||(LA3_0 >= '\u0A85' && LA3_0 <= '\u0A8D')||(LA3_0 >= '\u0A8F' && LA3_0 <= '\u0A91')||(LA3_0 >= '\u0A93' && LA3_0 <= '\u0AA8')||(LA3_0 >= '\u0AAA' && LA3_0 <= '\u0AB0')||(LA3_0 >= '\u0AB2' && LA3_0 <= '\u0AB3')||(LA3_0 >= '\u0AB5' && LA3_0 <= '\u0AB9')||(LA3_0 >= '\u0ABC' && LA3_0 <= '\u0AC5')||(LA3_0 >= '\u0AC7' && LA3_0 <= '\u0AC9')||(LA3_0 >= '\u0ACB' && LA3_0 <= '\u0ACD')||LA3_0=='\u0AD0'||(LA3_0 >= '\u0AE0' && LA3_0 <= '\u0AE3')||(LA3_0 >= '\u0AE6' && LA3_0 <= '\u0AEF')||LA3_0=='\u0AF1'||(LA3_0 >= '\u0B01' && LA3_0 <= '\u0B03')||(LA3_0 >= '\u0B05' && LA3_0 <= '\u0B0C')||(LA3_0 >= '\u0B0F' && LA3_0 <= '\u0B10')||(LA3_0 >= '\u0B13' && LA3_0 <= '\u0B28')||(LA3_0 >= '\u0B2A' && LA3_0 <= '\u0B30')||(LA3_0 >= '\u0B32' && LA3_0 <= '\u0B33')||(LA3_0 >= '\u0B35' && LA3_0 <= '\u0B39')||(LA3_0 >= '\u0B3C' && LA3_0 <= '\u0B43')||(LA3_0 >= '\u0B47' && LA3_0 <= '\u0B48')||(LA3_0 >= '\u0B4B' && LA3_0 <= '\u0B4D')||(LA3_0 >= '\u0B56' && LA3_0 <= '\u0B57')||(LA3_0 >= '\u0B5C' && LA3_0 <= '\u0B5D')||(LA3_0 >= '\u0B5F' && LA3_0 <= '\u0B61')||(LA3_0 >= '\u0B66' && LA3_0 <= '\u0B6F')||LA3_0=='\u0B71'||(LA3_0 >= '\u0B82' && LA3_0 <= '\u0B83')||(LA3_0 >= '\u0B85' && LA3_0 <= '\u0B8A')||(LA3_0 >= '\u0B8E' && LA3_0 <= '\u0B90')||(LA3_0 >= '\u0B92' && LA3_0 <= '\u0B95')||(LA3_0 >= '\u0B99' && LA3_0 <= '\u0B9A')||LA3_0=='\u0B9C'||(LA3_0 >= '\u0B9E' && LA3_0 <= '\u0B9F')||(LA3_0 >= '\u0BA3' && LA3_0 <= '\u0BA4')||(LA3_0 >= '\u0BA8' && LA3_0 <= '\u0BAA')||(LA3_0 >= '\u0BAE' && LA3_0 <= '\u0BB5')||(LA3_0 >= '\u0BB7' && LA3_0 <= '\u0BB9')||(LA3_0 >= '\u0BBE' && LA3_0 <= '\u0BC2')||(LA3_0 >= '\u0BC6' && LA3_0 <= '\u0BC8')||(LA3_0 >= '\u0BCA' && LA3_0 <= '\u0BCD')||LA3_0=='\u0BD7'||(LA3_0 >= '\u0BE7' && LA3_0 <= '\u0BEF')||LA3_0=='\u0BF9'||(LA3_0 >= '\u0C01' && LA3_0 <= '\u0C03')||(LA3_0 >= '\u0C05' && LA3_0 <= '\u0C0C')||(LA3_0 >= '\u0C0E' && LA3_0 <= '\u0C10')||(LA3_0 >= '\u0C12' && LA3_0 <= '\u0C28')||(LA3_0 >= '\u0C2A' && LA3_0 <= '\u0C33')||(LA3_0 >= '\u0C35' && LA3_0 <= '\u0C39')||(LA3_0 >= '\u0C3E' && LA3_0 <= '\u0C44')||(LA3_0 >= '\u0C46' && LA3_0 <= '\u0C48')||(LA3_0 >= '\u0C4A' && LA3_0 <= '\u0C4D')||(LA3_0 >= '\u0C55' && LA3_0 <= '\u0C56')||(LA3_0 >= '\u0C60' && LA3_0 <= '\u0C61')||(LA3_0 >= '\u0C66' && LA3_0 <= '\u0C6F')||(LA3_0 >= '\u0C82' && LA3_0 <= '\u0C83')||(LA3_0 >= '\u0C85' && LA3_0 <= '\u0C8C')||(LA3_0 >= '\u0C8E' && LA3_0 <= '\u0C90')||(LA3_0 >= '\u0C92' && LA3_0 <= '\u0CA8')||(LA3_0 >= '\u0CAA' && LA3_0 <= '\u0CB3')||(LA3_0 >= '\u0CB5' && LA3_0 <= '\u0CB9')||(LA3_0 >= '\u0CBC' && LA3_0 <= '\u0CC4')||(LA3_0 >= '\u0CC6' && LA3_0 <= '\u0CC8')||(LA3_0 >= '\u0CCA' && LA3_0 <= '\u0CCD')||(LA3_0 >= '\u0CD5' && LA3_0 <= '\u0CD6')||LA3_0=='\u0CDE'||(LA3_0 >= '\u0CE0' && LA3_0 <= '\u0CE1')||(LA3_0 >= '\u0CE6' && LA3_0 <= '\u0CEF')||(LA3_0 >= '\u0D02' && LA3_0 <= '\u0D03')||(LA3_0 >= '\u0D05' && LA3_0 <= '\u0D0C')||(LA3_0 >= '\u0D0E' && LA3_0 <= '\u0D10')||(LA3_0 >= '\u0D12' && LA3_0 <= '\u0D28')||(LA3_0 >= '\u0D2A' && LA3_0 <= '\u0D39')||(LA3_0 >= '\u0D3E' && LA3_0 <= '\u0D43')||(LA3_0 >= '\u0D46' && LA3_0 <= '\u0D48')||(LA3_0 >= '\u0D4A' && LA3_0 <= '\u0D4D')||LA3_0=='\u0D57'||(LA3_0 >= '\u0D60' && LA3_0 <= '\u0D61')||(LA3_0 >= '\u0D66' && LA3_0 <= '\u0D6F')||(LA3_0 >= '\u0D82' && LA3_0 <= '\u0D83')||(LA3_0 >= '\u0D85' && LA3_0 <= '\u0D96')||(LA3_0 >= '\u0D9A' && LA3_0 <= '\u0DB1')||(LA3_0 >= '\u0DB3' && LA3_0 <= '\u0DBB')||LA3_0=='\u0DBD'||(LA3_0 >= '\u0DC0' && LA3_0 <= '\u0DC6')||LA3_0=='\u0DCA'||(LA3_0 >= '\u0DCF' && LA3_0 <= '\u0DD4')||LA3_0=='\u0DD6'||(LA3_0 >= '\u0DD8' && LA3_0 <= '\u0DDF')||(LA3_0 >= '\u0DF2' && LA3_0 <= '\u0DF3')||(LA3_0 >= '\u0E01' && LA3_0 <= '\u0E3A')||(LA3_0 >= '\u0E3F' && LA3_0 <= '\u0E4E')||(LA3_0 >= '\u0E50' && LA3_0 <= '\u0E59')||(LA3_0 >= '\u0E81' && LA3_0 <= '\u0E82')||LA3_0=='\u0E84'||(LA3_0 >= '\u0E87' && LA3_0 <= '\u0E88')||LA3_0=='\u0E8A'||LA3_0=='\u0E8D'||(LA3_0 >= '\u0E94' && LA3_0 <= '\u0E97')||(LA3_0 >= '\u0E99' && LA3_0 <= '\u0E9F')||(LA3_0 >= '\u0EA1' && LA3_0 <= '\u0EA3')||LA3_0=='\u0EA5'||LA3_0=='\u0EA7'||(LA3_0 >= '\u0EAA' && LA3_0 <= '\u0EAB')||(LA3_0 >= '\u0EAD' && LA3_0 <= '\u0EB9')||(LA3_0 >= '\u0EBB' && LA3_0 <= '\u0EBD')||(LA3_0 >= '\u0EC0' && LA3_0 <= '\u0EC4')||LA3_0=='\u0EC6'||(LA3_0 >= '\u0EC8' && LA3_0 <= '\u0ECD')||(LA3_0 >= '\u0ED0' && LA3_0 <= '\u0ED9')||(LA3_0 >= '\u0EDC' && LA3_0 <= '\u0EDD')||LA3_0=='\u0F00'||(LA3_0 >= '\u0F18' && LA3_0 <= '\u0F19')||(LA3_0 >= '\u0F20' && LA3_0 <= '\u0F29')||LA3_0=='\u0F35'||LA3_0=='\u0F37'||LA3_0=='\u0F39'||(LA3_0 >= '\u0F3E' && LA3_0 <= '\u0F47')||(LA3_0 >= '\u0F49' && LA3_0 <= '\u0F6A')||(LA3_0 >= '\u0F71' && LA3_0 <= '\u0F84')||(LA3_0 >= '\u0F86' && LA3_0 <= '\u0F8B')||(LA3_0 >= '\u0F90' && LA3_0 <= '\u0F97')||(LA3_0 >= '\u0F99' && LA3_0 <= '\u0FBC')||LA3_0=='\u0FC6'||(LA3_0 >= '\u1000' && LA3_0 <= '\u1021')||(LA3_0 >= '\u1023' && LA3_0 <= '\u1027')||(LA3_0 >= '\u1029' && LA3_0 <= '\u102A')||(LA3_0 >= '\u102C' && LA3_0 <= '\u1032')||(LA3_0 >= '\u1036' && LA3_0 <= '\u1039')||(LA3_0 >= '\u1040' && LA3_0 <= '\u1049')||(LA3_0 >= '\u1050' && LA3_0 <= '\u1059')||(LA3_0 >= '\u10A0' && LA3_0 <= '\u10C5')||(LA3_0 >= '\u10D0' && LA3_0 <= '\u10F8')||(LA3_0 >= '\u1100' && LA3_0 <= '\u1159')||(LA3_0 >= '\u115F' && LA3_0 <= '\u11A2')||(LA3_0 >= '\u11A8' && LA3_0 <= '\u11F9')||(LA3_0 >= '\u1200' && LA3_0 <= '\u1206')||(LA3_0 >= '\u1208' && LA3_0 <= '\u1246')||LA3_0=='\u1248'||(LA3_0 >= '\u124A' && LA3_0 <= '\u124D')||(LA3_0 >= '\u1250' && LA3_0 <= '\u1256')||LA3_0=='\u1258'||(LA3_0 >= '\u125A' && LA3_0 <= '\u125D')||(LA3_0 >= '\u1260' && LA3_0 <= '\u1286')||LA3_0=='\u1288'||(LA3_0 >= '\u128A' && LA3_0 <= '\u128D')||(LA3_0 >= '\u1290' && LA3_0 <= '\u12AE')||LA3_0=='\u12B0'||(LA3_0 >= '\u12B2' && LA3_0 <= '\u12B5')||(LA3_0 >= '\u12B8' && LA3_0 <= '\u12BE')||LA3_0=='\u12C0'||(LA3_0 >= '\u12C2' && LA3_0 <= '\u12C5')||(LA3_0 >= '\u12C8' && LA3_0 <= '\u12CE')||(LA3_0 >= '\u12D0' && LA3_0 <= '\u12D6')||(LA3_0 >= '\u12D8' && LA3_0 <= '\u12EE')||(LA3_0 >= '\u12F0' && LA3_0 <= '\u130E')||LA3_0=='\u1310'||(LA3_0 >= '\u1312' && LA3_0 <= '\u1315')||(LA3_0 >= '\u1318' && LA3_0 <= '\u131E')||(LA3_0 >= '\u1320' && LA3_0 <= '\u1346')||(LA3_0 >= '\u1348' && LA3_0 <= '\u135A')||(LA3_0 >= '\u1369' && LA3_0 <= '\u1371')||(LA3_0 >= '\u13A0' && LA3_0 <= '\u13F4')||(LA3_0 >= '\u1401' && LA3_0 <= '\u166C')||(LA3_0 >= '\u166F' && LA3_0 <= '\u1676')||(LA3_0 >= '\u1681' && LA3_0 <= '\u169A')||(LA3_0 >= '\u16A0' && LA3_0 <= '\u16EA')||(LA3_0 >= '\u16EE' && LA3_0 <= '\u16F0')||(LA3_0 >= '\u1700' && LA3_0 <= '\u170C')||(LA3_0 >= '\u170E' && LA3_0 <= '\u1714')||(LA3_0 >= '\u1720' && LA3_0 <= '\u1734')||(LA3_0 >= '\u1740' && LA3_0 <= '\u1753')||(LA3_0 >= '\u1760' && LA3_0 <= '\u176C')||(LA3_0 >= '\u176E' && LA3_0 <= '\u1770')||(LA3_0 >= '\u1772' && LA3_0 <= '\u1773')||(LA3_0 >= '\u1780' && LA3_0 <= '\u17D3')||LA3_0=='\u17D7'||(LA3_0 >= '\u17DB' && LA3_0 <= '\u17DD')||(LA3_0 >= '\u17E0' && LA3_0 <= '\u17E9')||(LA3_0 >= '\u180B' && LA3_0 <= '\u180D')||(LA3_0 >= '\u1810' && LA3_0 <= '\u1819')||(LA3_0 >= '\u1820' && LA3_0 <= '\u1877')||(LA3_0 >= '\u1880' && LA3_0 <= '\u18A9')||(LA3_0 >= '\u1900' && LA3_0 <= '\u191C')||(LA3_0 >= '\u1920' && LA3_0 <= '\u192B')||(LA3_0 >= '\u1930' && LA3_0 <= '\u193B')||(LA3_0 >= '\u1946' && LA3_0 <= '\u196D')||(LA3_0 >= '\u1970' && LA3_0 <= '\u1974')||(LA3_0 >= '\u1D00' && LA3_0 <= '\u1D6B')||(LA3_0 >= '\u1E00' && LA3_0 <= '\u1E9B')||(LA3_0 >= '\u1EA0' && LA3_0 <= '\u1EF9')||(LA3_0 >= '\u1F00' && LA3_0 <= '\u1F15')||(LA3_0 >= '\u1F18' && LA3_0 <= '\u1F1D')||(LA3_0 >= '\u1F20' && LA3_0 <= '\u1F45')||(LA3_0 >= '\u1F48' && LA3_0 <= '\u1F4D')||(LA3_0 >= '\u1F50' && LA3_0 <= '\u1F57')||LA3_0=='\u1F59'||LA3_0=='\u1F5B'||LA3_0=='\u1F5D'||(LA3_0 >= '\u1F5F' && LA3_0 <= '\u1F7D')||(LA3_0 >= '\u1F80' && LA3_0 <= '\u1FB4')||(LA3_0 >= '\u1FB6' && LA3_0 <= '\u1FBC')||LA3_0=='\u1FBE'||(LA3_0 >= '\u1FC2' && LA3_0 <= '\u1FC4')||(LA3_0 >= '\u1FC6' && LA3_0 <= '\u1FCC')||(LA3_0 >= '\u1FD0' && LA3_0 <= '\u1FD3')||(LA3_0 >= '\u1FD6' && LA3_0 <= '\u1FDB')||(LA3_0 >= '\u1FE0' && LA3_0 <= '\u1FEC')||(LA3_0 >= '\u1FF2' && LA3_0 <= '\u1FF4')||(LA3_0 >= '\u1FF6' && LA3_0 <= '\u1FFC')||(LA3_0 >= '\u200C' && LA3_0 <= '\u200F')||(LA3_0 >= '\u202A' && LA3_0 <= '\u202E')||(LA3_0 >= '\u203F' && LA3_0 <= '\u2040')||LA3_0=='\u2054'||(LA3_0 >= '\u2060' && LA3_0 <= '\u2063')||(LA3_0 >= '\u206A' && LA3_0 <= '\u206F')||LA3_0=='\u2071'||LA3_0=='\u207F'||(LA3_0 >= '\u20A0' && LA3_0 <= '\u20B1')||(LA3_0 >= '\u20D0' && LA3_0 <= '\u20DC')||LA3_0=='\u20E1'||(LA3_0 >= '\u20E5' && LA3_0 <= '\u20EA')||LA3_0=='\u2102'||LA3_0=='\u2107'||(LA3_0 >= '\u210A' && LA3_0 <= '\u2113')||LA3_0=='\u2115'||(LA3_0 >= '\u2119' && LA3_0 <= '\u211D')||LA3_0=='\u2124'||LA3_0=='\u2126'||LA3_0=='\u2128'||(LA3_0 >= '\u212A' && LA3_0 <= '\u212D')||(LA3_0 >= '\u212F' && LA3_0 <= '\u2131')||(LA3_0 >= '\u2133' && LA3_0 <= '\u2139')||(LA3_0 >= '\u213D' && LA3_0 <= '\u213F')||(LA3_0 >= '\u2145' && LA3_0 <= '\u2149')||(LA3_0 >= '\u2160' && LA3_0 <= '\u2183')||LA3_0=='\u3000'||(LA3_0 >= '\u3005' && LA3_0 <= '\u3007')||(LA3_0 >= '\u3021' && LA3_0 <= '\u302F')||(LA3_0 >= '\u3031' && LA3_0 <= '\u3035')||(LA3_0 >= '\u3038' && LA3_0 <= '\u303C')||(LA3_0 >= '\u3041' && LA3_0 <= '\u3096')||(LA3_0 >= '\u3099' && LA3_0 <= '\u309A')||(LA3_0 >= '\u309D' && LA3_0 <= '\u309F')||(LA3_0 >= '\u30A1' && LA3_0 <= '\u30FF')||(LA3_0 >= '\u3105' && LA3_0 <= '\u312C')||(LA3_0 >= '\u3131' && LA3_0 <= '\u318E')||(LA3_0 >= '\u31A0' && LA3_0 <= '\u31B7')||(LA3_0 >= '\u31F0' && LA3_0 <= '\u31FF')||(LA3_0 >= '\u3400' && LA3_0 <= '\u4DB5')||(LA3_0 >= '\u4E00' && LA3_0 <= '\u9FA5')||(LA3_0 >= '\uA000' && LA3_0 <= '\uA48C')||(LA3_0 >= '\uAC00' && LA3_0 <= '\uD7A3')||(LA3_0 >= '\uF900' && LA3_0 <= '\uFA2D')||(LA3_0 >= '\uFA30' && LA3_0 <= '\uFA6A')||(LA3_0 >= '\uFB00' && LA3_0 <= '\uFB06')||(LA3_0 >= '\uFB13' && LA3_0 <= '\uFB17')||(LA3_0 >= '\uFB1D' && LA3_0 <= '\uFB28')||(LA3_0 >= '\uFB2A' && LA3_0 <= '\uFB36')||(LA3_0 >= '\uFB38' && LA3_0 <= '\uFB3C')||LA3_0=='\uFB3E'||(LA3_0 >= '\uFB40' && LA3_0 <= '\uFB41')||(LA3_0 >= '\uFB43' && LA3_0 <= '\uFB44')||(LA3_0 >= '\uFB46' && LA3_0 <= '\uFBB1')||(LA3_0 >= '\uFBD3' && LA3_0 <= '\uFD3D')||(LA3_0 >= '\uFD50' && LA3_0 <= '\uFD8F')||(LA3_0 >= '\uFD92' && LA3_0 <= '\uFDC7')||(LA3_0 >= '\uFDF0' && LA3_0 <= '\uFDFC')||(LA3_0 >= '\uFE00' && LA3_0 <= '\uFE0F')||(LA3_0 >= '\uFE20' && LA3_0 <= '\uFE23')||(LA3_0 >= '\uFE33' && LA3_0 <= '\uFE34')||(LA3_0 >= '\uFE4D' && LA3_0 <= '\uFE4F')||LA3_0=='\uFE69'||(LA3_0 >= '\uFE70' && LA3_0 <= '\uFE74')||(LA3_0 >= '\uFE76' && LA3_0 <= '\uFEFC')||LA3_0=='\uFEFF'||LA3_0=='\uFF04'||(LA3_0 >= '\uFF10' && LA3_0 <= '\uFF19')||(LA3_0 >= '\uFF21' && LA3_0 <= '\uFF3A')||LA3_0=='\uFF3F'||(LA3_0 >= '\uFF41' && LA3_0 <= '\uFF5A')||(LA3_0 >= '\uFF65' && LA3_0 <= '\uFFBE')||(LA3_0 >= '\uFFC2' && LA3_0 <= '\uFFC7')||(LA3_0 >= '\uFFCA' && LA3_0 <= '\uFFCF')||(LA3_0 >= '\uFFD2' && LA3_0 <= '\uFFD7')||(LA3_0 >= '\uFFDA' && LA3_0 <= '\uFFDC')||(LA3_0 >= '\uFFE0' && LA3_0 <= '\uFFE1')||(LA3_0 >= '\uFFE5' && LA3_0 <= '\uFFE6')||(LA3_0 >= '\uFFF9' && LA3_0 <= '\uFFFB')) ) {
				alt3=1;
			}
			else if ( ((LA3_0 >= '!' && LA3_0 <= '#')||(LA3_0 >= '%' && LA3_0 <= '-')||LA3_0=='/'||(LA3_0 >= ';' && LA3_0 <= '<')||(LA3_0 >= '>' && LA3_0 <= '@')||LA3_0=='^'||LA3_0=='|'||LA3_0=='~') ) {
				alt3=2;
			}
			else if ( (LA3_0=='\\') ) {
				alt3=3;
			}
			else if ( (LA3_0=='.') ) {
				alt3=4;
			}

			switch (alt3) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:8: IdentifierPart
				{
				mIdentifierPart(); if (state.failed) return;

				}
				break;
			case 2 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:23: MISC
				{
				mMISC(); if (state.failed) return;

				}
				break;
			case 3 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:28: EscapeSequence
				{
				mEscapeSequence(); if (state.failed) return;

				}
				break;
			case 4 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:325:43: DOT
				{
				mDOT(); if (state.failed) return;

				}
				break;

			default :
				if ( cnt3 >= 1 ) break loop3;
				if (state.backtracking>0) {state.failed=true; return;}
				EarlyExitException eee = new EarlyExitException(3, input);
				throw eee;
			}
			cnt3++;
		}

		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #24
Source File: DSLMapLexer.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final void mWS() throws RecognitionException {
	try {
		int _type = WS;
		int _channel = DEFAULT_TOKEN_CHANNEL;
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:274:9: ( ( ' ' | '\\t' | '\\f' )+ )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:274:17: ( ' ' | '\\t' | '\\f' )+
		{
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:274:17: ( ' ' | '\\t' | '\\f' )+
		int cnt1=0;
		loop1:
		while (true) {
			int alt1=2;
			int LA1_0 = input.LA(1);
			if ( (LA1_0=='\t'||LA1_0=='\f'||LA1_0==' ') ) {
				alt1=1;
			}

			switch (alt1) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:
				{
				if ( input.LA(1)=='\t'||input.LA(1)=='\f'||input.LA(1)==' ' ) {
					input.consume();
					state.failed=false;
				}
				else {
					if (state.backtracking>0) {state.failed=true; return;}
					MismatchedSetException mse = new MismatchedSetException(null,input);
					recover(mse);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt1 >= 1 ) break loop1;
				if (state.backtracking>0) {state.failed=true; return;}
				EarlyExitException eee = new EarlyExitException(1, input);
				throw eee;
			}
			cnt1++;
		}

		if ( state.backtracking==0 ) { _channel=HIDDEN;}
		}

		state.type = _type;
		state.channel = _channel;
	}
	finally {
		// do for sure before leaving
	}
}
 
Example #25
Source File: DSLMapParser.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final DSLMapParser.variable_reference_expr_return variable_reference_expr() throws RecognitionException {
	DSLMapParser.variable_reference_expr_return retval = new DSLMapParser.variable_reference_expr_return();
	retval.start = input.LT(1);

	Object root_0 = null;

	Token set36=null;

	Object set36_tree=null;

	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:248:5: ( ( LITERAL | EQUALS )+ )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:248:8: ( LITERAL | EQUALS )+
		{
		root_0 = (Object)adaptor.nil();


		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:248:8: ( LITERAL | EQUALS )+
		int cnt17=0;
		loop17:
		while (true) {
			int alt17=2;
			int LA17_0 = input.LA(1);
			if ( (LA17_0==EQUALS||LA17_0==LITERAL) ) {
				alt17=1;
			}

			switch (alt17) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:
				{
				set36=input.LT(1);
				if ( input.LA(1)==EQUALS||input.LA(1)==LITERAL ) {
					input.consume();
					if ( state.backtracking==0 ) adaptor.addChild(root_0, (Object)adaptor.create(set36));
					state.errorRecovery=false;
					state.failed=false;
				}
				else {
					if (state.backtracking>0) {state.failed=true; return retval;}
					MismatchedSetException mse = new MismatchedSetException(null,input);
					throw mse;
				}
				}
				break;

			default :
				if ( cnt17 >= 1 ) break loop17;
				if (state.backtracking>0) {state.failed=true; return retval;}
				EarlyExitException eee = new EarlyExitException(17, input);
				throw eee;
			}
			cnt17++;
		}

		}

		retval.stop = input.LT(-1);

		if ( state.backtracking==0 ) {
		retval.tree = (Object)adaptor.rulePostProcessing(root_0);
		adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
		}
	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
		retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);
	}
	finally {
		// do for sure before leaving
	}
	return retval;
}
 
Example #26
Source File: DSLMapParser.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final DSLMapParser.value_section_return value_section() throws RecognitionException {
	DSLMapParser.value_section_return retval = new DSLMapParser.value_section_return();
	retval.start = input.LT(1);

	Object root_0 = null;

	ParserRuleReturnScope value_sentence18 =null;

	RewriteRuleSubtreeStream stream_value_sentence=new RewriteRuleSubtreeStream(adaptor,"rule value_sentence");

	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:168:5: ( ( value_sentence )+ -> ^( VT_ENTRY_VAL ( value_sentence )+ ) )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:168:7: ( value_sentence )+
		{
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:168:7: ( value_sentence )+
		int cnt11=0;
		loop11:
		while (true) {
			int alt11=2;
			int LA11_0 = input.LA(1);
			if ( ((LA11_0 >= COLON && LA11_0 <= DOT)||LA11_0==EQUALS||(LA11_0 >= LEFT_CURLY && LA11_0 <= LITERAL)||LA11_0==RIGHT_SQUARE) ) {
				alt11=1;
			}

			switch (alt11) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:168:7: value_sentence
				{
				pushFollow(FOLLOW_value_sentence_in_value_section664);
				value_sentence18=value_sentence();
				state._fsp--;
				if (state.failed) return retval;
				if ( state.backtracking==0 ) stream_value_sentence.add(value_sentence18.getTree());
				}
				break;

			default :
				if ( cnt11 >= 1 ) break loop11;
				if (state.backtracking>0) {state.failed=true; return retval;}
				EarlyExitException eee = new EarlyExitException(11, input);
				throw eee;
			}
			cnt11++;
		}

		// AST REWRITE
		// elements: value_sentence
		// token labels: 
		// rule labels: retval
		// token list labels: 
		// rule list labels: 
		// wildcard labels: 
		if ( state.backtracking==0 ) {
		retval.tree = root_0;
		RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

		root_0 = (Object)adaptor.nil();
		// 169:5: -> ^( VT_ENTRY_VAL ( value_sentence )+ )
		{
			// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:169:8: ^( VT_ENTRY_VAL ( value_sentence )+ )
			{
			Object root_1 = (Object)adaptor.nil();
			root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(VT_ENTRY_VAL, "VT_ENTRY_VAL"), root_1);
			if ( !(stream_value_sentence.hasNext()) ) {
				throw new RewriteEarlyExitException();
			}
			while ( stream_value_sentence.hasNext() ) {
				adaptor.addChild(root_1, stream_value_sentence.nextTree());
			}
			stream_value_sentence.reset();

			adaptor.addChild(root_0, root_1);
			}

		}


		retval.tree = root_0;
		}

		}

		retval.stop = input.LT(-1);

		if ( state.backtracking==0 ) {
		retval.tree = (Object)adaptor.rulePostProcessing(root_0);
		adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
		}
	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
		retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);
	}
	finally {
		// do for sure before leaving
	}
	return retval;
}
 
Example #27
Source File: DSLMapParser.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final DSLMapParser.key_chunk_return key_chunk() throws RecognitionException {
	DSLMapParser.key_chunk_return retval = new DSLMapParser.key_chunk_return();
	retval.start = input.LT(1);

	Object root_0 = null;

	ParserRuleReturnScope literal17 =null;


	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:164:5: ( ( literal )+ )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:164:7: ( literal )+
		{
		root_0 = (Object)adaptor.nil();


		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:164:7: ( literal )+
		int cnt10=0;
		loop10:
		while (true) {
			int alt10=2;
			int LA10_0 = input.LA(1);
			if ( (LA10_0==COLON||(LA10_0 >= LEFT_SQUARE && LA10_0 <= LITERAL)||LA10_0==RIGHT_SQUARE) ) {
				int LA10_2 = input.LA(2);
				if ( (synpred12_DSLMap()) ) {
					alt10=1;
				}

			}

			switch (alt10) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:164:7: literal
				{
				pushFollow(FOLLOW_literal_in_key_chunk646);
				literal17=literal();
				state._fsp--;
				if (state.failed) return retval;
				if ( state.backtracking==0 ) adaptor.addChild(root_0, literal17.getTree());

				}
				break;

			default :
				if ( cnt10 >= 1 ) break loop10;
				if (state.backtracking>0) {state.failed=true; return retval;}
				EarlyExitException eee = new EarlyExitException(10, input);
				throw eee;
			}
			cnt10++;
		}

		}

		retval.stop = input.LT(-1);

		if ( state.backtracking==0 ) {
		retval.tree = (Object)adaptor.rulePostProcessing(root_0);
		adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
		}
	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
		retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);
	}
	finally {
		// do for sure before leaving
	}
	return retval;
}
 
Example #28
Source File: DSLMapParser.java    From kogito-runtimes with Apache License 2.0 4 votes vote down vote up
public final DSLMapParser.key_section_return key_section() throws RecognitionException {
	DSLMapParser.key_section_return retval = new DSLMapParser.key_section_return();
	retval.start = input.LT(1);

	Object root_0 = null;

	ParserRuleReturnScope ks =null;

	RewriteRuleSubtreeStream stream_key_sentence=new RewriteRuleSubtreeStream(adaptor,"rule key_sentence");

	try {
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:150:5: ( (ks= key_sentence )+ -> ^( VT_ENTRY_KEY ( key_sentence )+ ) )
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:150:7: (ks= key_sentence )+
		{
		// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:150:9: (ks= key_sentence )+
		int cnt8=0;
		loop8:
		while (true) {
			int alt8=2;
			int LA8_0 = input.LA(1);
			if ( (LA8_0==COLON||(LA8_0 >= LEFT_CURLY && LA8_0 <= LITERAL)||LA8_0==RIGHT_SQUARE) ) {
				alt8=1;
			}

			switch (alt8) {
			case 1 :
				// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:150:9: ks= key_sentence
				{
				pushFollow(FOLLOW_key_sentence_in_key_section568);
				ks=key_sentence();
				state._fsp--;
				if (state.failed) return retval;
				if ( state.backtracking==0 ) stream_key_sentence.add(ks.getTree());
				}
				break;

			default :
				if ( cnt8 >= 1 ) break loop8;
				if (state.backtracking>0) {state.failed=true; return retval;}
				EarlyExitException eee = new EarlyExitException(8, input);
				throw eee;
			}
			cnt8++;
		}

		// AST REWRITE
		// elements: key_sentence
		// token labels: 
		// rule labels: retval
		// token list labels: 
		// rule list labels: 
		// wildcard labels: 
		if ( state.backtracking==0 ) {
		retval.tree = root_0;
		RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

		root_0 = (Object)adaptor.nil();
		// 151:5: -> ^( VT_ENTRY_KEY ( key_sentence )+ )
		{
			// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:151:8: ^( VT_ENTRY_KEY ( key_sentence )+ )
			{
			Object root_1 = (Object)adaptor.nil();
			root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(VT_ENTRY_KEY, "VT_ENTRY_KEY"), root_1);
			if ( !(stream_key_sentence.hasNext()) ) {
				throw new RewriteEarlyExitException();
			}
			while ( stream_key_sentence.hasNext() ) {
				adaptor.addChild(root_1, stream_key_sentence.nextTree());
			}
			stream_key_sentence.reset();

			adaptor.addChild(root_0, root_1);
			}

		}


		retval.tree = root_0;
		}

		}

		retval.stop = input.LT(-1);

		if ( state.backtracking==0 ) {
		retval.tree = (Object)adaptor.rulePostProcessing(root_0);
		adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
		}
	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
		retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);
	}
	finally {
		// do for sure before leaving
	}
	return retval;
}