Java Code Examples for org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken#merge()

The following examples show how to use org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken#merge() . 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: AntlrDatatypeRuleTokenTest.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Test public void testMergeFirstDatatypeRuleToken() {
	AntlrDatatypeRuleToken tokenToMerge = new AntlrDatatypeRuleToken();
	tokenToMerge.setText("text");
	tokenToMerge.setStartOffset(6);
	AntlrDatatypeRuleToken token = new AntlrDatatypeRuleToken();
	token.merge(tokenToMerge);
	assertEquals("text", token.getText());
	assertEquals(10, token.getExpectedOffset());
}
 
Example 2
Source File: InternalAssignmentFinderTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleBoolean() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;


    	enterRule();

    try {
        // InternalAssignmentFinderTestLanguage.g:763:2: ( (kw= 'true' | kw= 'false' ) )
        // InternalAssignmentFinderTestLanguage.g:764:2: (kw= 'true' | kw= 'false' )
        {
        // InternalAssignmentFinderTestLanguage.g:764:2: (kw= 'true' | kw= 'false' )
        int alt9=2;
        int LA9_0 = input.LA(1);

        if ( (LA9_0==26) ) {
            alt9=1;
        }
        else if ( (LA9_0==27) ) {
            alt9=2;
        }
        else {
            NoViableAltException nvae =
                new NoViableAltException("", 9, 0, input);

            throw nvae;
        }
        switch (alt9) {
            case 1 :
                // InternalAssignmentFinderTestLanguage.g:765:3: kw= 'true'
                {
                kw=(Token)match(input,26,FollowSets000.FOLLOW_2); 

                			current.merge(kw);
                			newLeafNode(kw, grammarAccess.getBooleanAccess().getTrueKeyword_0());
                		

                }
                break;
            case 2 :
                // InternalAssignmentFinderTestLanguage.g:771:3: kw= 'false'
                {
                kw=(Token)match(input,27,FollowSets000.FOLLOW_2); 

                			current.merge(kw);
                			newLeafNode(kw, grammarAccess.getBooleanAccess().getFalseKeyword_1());
                		

                }
                break;

        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 3
Source File: InternalNoParametersTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken norm1_IdOrKeyword() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;
    Token this_ID_1=null;


    	enterRule();

    try {
        // InternalNoParametersTestLanguage.g:996:2: ( (kw= 'keyword' | this_ID_1= RULE_ID ) )
        // InternalNoParametersTestLanguage.g:997:2: (kw= 'keyword' | this_ID_1= RULE_ID )
        {
        // InternalNoParametersTestLanguage.g:997:2: (kw= 'keyword' | this_ID_1= RULE_ID )
        int alt13=2;
        int LA13_0 = input.LA(1);

        if ( (LA13_0==20) ) {
            alt13=1;
        }
        else if ( (LA13_0==RULE_ID) ) {
            alt13=2;
        }
        else {
            if (state.backtracking>0) {state.failed=true; return current;}
            NoViableAltException nvae =
                new NoViableAltException("", 13, 0, input);

            throw nvae;
        }
        switch (alt13) {
            case 1 :
                // InternalNoParametersTestLanguage.g:998:3: kw= 'keyword'
                {
                kw=(Token)match(input,20,FollowSets000.FOLLOW_2); if (state.failed) return current;
                if ( state.backtracking==0 ) {

                  			current.merge(kw);
                  			newLeafNode(kw, grammarAccess.getIdOrKeywordAccess().getKeywordKeyword_0_0());
                  		
                }

                }
                break;
            case 2 :
                // InternalNoParametersTestLanguage.g:1004:3: this_ID_1= RULE_ID
                {
                this_ID_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;
                if ( state.backtracking==0 ) {

                  			current.merge(this_ID_1);
                  		
                }
                if ( state.backtracking==0 ) {

                  			newLeafNode(this_ID_1, grammarAccess.getIdOrKeywordAccess().getIDTerminalRuleCall_1());
                  		
                }

                }
                break;

        }


        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 4
Source File: InternalSimpleExpressionsParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleArgument() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_INT_1=null;
    AntlrDatatypeRuleToken this_MethodCallLiteral_0 = null;


     enterRule(); 
        
    try {
        // InternalSimpleExpressions.g:732:28: ( (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT ) )
        // InternalSimpleExpressions.g:733:1: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT )
        {
        // InternalSimpleExpressions.g:733:1: (this_MethodCallLiteral_0= ruleMethodCallLiteral | this_INT_1= RULE_INT )
        int alt13=2;
        int LA13_0 = input.LA(1);

        if ( (LA13_0==RULE_ID) ) {
            alt13=1;
        }
        else if ( (LA13_0==RULE_INT) ) {
            alt13=2;
        }
        else {
            NoViableAltException nvae =
                new NoViableAltException("", 13, 0, input);

            throw nvae;
        }
        switch (alt13) {
            case 1 :
                // InternalSimpleExpressions.g:734:5: this_MethodCallLiteral_0= ruleMethodCallLiteral
                {
                 
                        newCompositeNode(grammarAccess.getArgumentAccess().getMethodCallLiteralParserRuleCall_0()); 
                    
                pushFollow(FOLLOW_2);
                this_MethodCallLiteral_0=ruleMethodCallLiteral();

                state._fsp--;


                		current.merge(this_MethodCallLiteral_0);
                    
                 
                        afterParserOrEnumRuleCall();
                    

                }
                break;
            case 2 :
                // InternalSimpleExpressions.g:745:10: this_INT_1= RULE_INT
                {
                this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); 

                		current.merge(this_INT_1);
                    
                 
                    newLeafNode(this_INT_1, grammarAccess.getArgumentAccess().getINTTerminalRuleCall_1()); 
                    

                }
                break;

        }


        }

         leaveRule(); 
    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
Example 5
Source File: InternalDatatypeRulesTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleDots() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;


    	enterRule();

    try {
        // InternalDatatypeRulesTestLanguage.g:420:2: ( ( (kw= '.' kw= '.' ) | kw= '..' ) )
        // InternalDatatypeRulesTestLanguage.g:421:2: ( (kw= '.' kw= '.' ) | kw= '..' )
        {
        // InternalDatatypeRulesTestLanguage.g:421:2: ( (kw= '.' kw= '.' ) | kw= '..' )
        int alt7=2;
        int LA7_0 = input.LA(1);

        if ( (LA7_0==16) ) {
            alt7=1;
        }
        else if ( (LA7_0==20) ) {
            alt7=2;
        }
        else {
            NoViableAltException nvae =
                new NoViableAltException("", 7, 0, input);

            throw nvae;
        }
        switch (alt7) {
            case 1 :
                // InternalDatatypeRulesTestLanguage.g:422:3: (kw= '.' kw= '.' )
                {
                // InternalDatatypeRulesTestLanguage.g:422:3: (kw= '.' kw= '.' )
                // InternalDatatypeRulesTestLanguage.g:423:4: kw= '.' kw= '.'
                {
                kw=(Token)match(input,16,FollowSets000.FOLLOW_13); 

                				current.merge(kw);
                				newLeafNode(kw, grammarAccess.getDotsAccess().getFullStopKeyword_0_0());
                			
                kw=(Token)match(input,16,FollowSets000.FOLLOW_2); 

                				current.merge(kw);
                				newLeafNode(kw, grammarAccess.getDotsAccess().getFullStopKeyword_0_1());
                			

                }


                }
                break;
            case 2 :
                // InternalDatatypeRulesTestLanguage.g:435:3: kw= '..'
                {
                kw=(Token)match(input,20,FollowSets000.FOLLOW_2); 

                			current.merge(kw);
                			newLeafNode(kw, grammarAccess.getDotsAccess().getFullStopFullStopKeyword_1());
                		

                }
                break;

        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 6
Source File: InternalTwoParametersTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleIdOrKeyword() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;


    	enterRule();

    try {
        // InternalTwoParametersTestLanguage.g:1060:2: (this_ID_0= RULE_ID )
        // InternalTwoParametersTestLanguage.g:1061:2: this_ID_0= RULE_ID
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

          		current.merge(this_ID_0);
          	
        }
        if ( state.backtracking==0 ) {

          		newLeafNode(this_ID_0, grammarAccess.getIdOrKeywordAccess().getIDTerminalRuleCall_1());
          	
        }

        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 7
Source File: InternalSimpleAntlrParser.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleIdOrInt() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;
    Token this_INT_1=null;

     enterRule(); 
        
    try {
        // InternalSimpleAntlr.g:293:28: ( (this_ID_0= RULE_ID | this_INT_1= RULE_INT ) )
        // InternalSimpleAntlr.g:294:1: (this_ID_0= RULE_ID | this_INT_1= RULE_INT )
        {
        // InternalSimpleAntlr.g:294:1: (this_ID_0= RULE_ID | this_INT_1= RULE_INT )
        int alt4=2;
        int LA4_0 = input.LA(1);

        if ( (LA4_0==RULE_ID) ) {
            alt4=1;
        }
        else if ( (LA4_0==RULE_INT) ) {
            alt4=2;
        }
        else {
            if (state.backtracking>0) {state.failed=true; return current;}
            NoViableAltException nvae =
                new NoViableAltException("", 4, 0, input);

            throw nvae;
        }
        switch (alt4) {
            case 1 :
                // InternalSimpleAntlr.g:294:6: this_ID_0= RULE_ID
                {
                this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
                if ( state.backtracking==0 ) {

                  		current.merge(this_ID_0);
                      
                }
                if ( state.backtracking==0 ) {
                   
                      newLeafNode(this_ID_0, grammarAccess.getIdOrIntAccess().getIDTerminalRuleCall_0()); 
                      
                }

                }
                break;
            case 2 :
                // InternalSimpleAntlr.g:302:10: this_INT_1= RULE_INT
                {
                this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current;
                if ( state.backtracking==0 ) {

                  		current.merge(this_INT_1);
                      
                }
                if ( state.backtracking==0 ) {
                   
                      newLeafNode(this_INT_1, grammarAccess.getIdOrIntAccess().getINTTerminalRuleCall_1()); 
                      
                }

                }
                break;

        }


        }

        if ( state.backtracking==0 ) {
           leaveRule(); 
        }
    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
Example 8
Source File: InternalFragmentTestLanguageExParser.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;
    AntlrDatatypeRuleToken this_Suffix_1 = null;



    	enterRule();

    try {
        // InternalFragmentTestLanguageEx.g:760:2: ( (this_ID_0= RULE_ID (this_Suffix_1= ruleSuffix )? ) )
        // InternalFragmentTestLanguageEx.g:761:2: (this_ID_0= RULE_ID (this_Suffix_1= ruleSuffix )? )
        {
        // InternalFragmentTestLanguageEx.g:761:2: (this_ID_0= RULE_ID (this_Suffix_1= ruleSuffix )? )
        // InternalFragmentTestLanguageEx.g:762:3: this_ID_0= RULE_ID (this_Suffix_1= ruleSuffix )?
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_10); if (state.failed) return current;
        if ( state.backtracking==0 ) {

          			current.merge(this_ID_0);
          		
        }
        if ( state.backtracking==0 ) {

          			newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
          		
        }
        // InternalFragmentTestLanguageEx.g:769:3: (this_Suffix_1= ruleSuffix )?
        int alt6=2;
        int LA6_0 = input.LA(1);

        if ( (LA6_0==23) ) {
            alt6=1;
        }
        switch (alt6) {
            case 1 :
                // InternalFragmentTestLanguageEx.g:770:4: this_Suffix_1= ruleSuffix
                {
                if ( state.backtracking==0 ) {

                  				newCompositeNode(grammarAccess.getFQNAccess().getSuffixParserRuleCall_1());
                  			
                }
                pushFollow(FollowSets000.FOLLOW_2);
                this_Suffix_1=ruleSuffix();

                state._fsp--;
                if (state.failed) return current;
                if ( state.backtracking==0 ) {

                  				current.merge(this_Suffix_1);
                  			
                }
                if ( state.backtracking==0 ) {

                  				afterParserOrEnumRuleCall();
                  			
                }

                }
                break;

        }


        }


        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 9
Source File: InternalParametersTestLanguageExParser.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleIdOrKeyword() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;


    	enterRule();

    try {
        // InternalParametersTestLanguageEx.g:1299:2: (this_ID_0= RULE_ID )
        // InternalParametersTestLanguageEx.g:1300:2: this_ID_0= RULE_ID
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

          		current.merge(this_ID_0);
          	
        }
        if ( state.backtracking==0 ) {

          		newLeafNode(this_ID_0, grammarAccess.getIdOrKeywordAccess().getIDTerminalRuleCall_1());
          	
        }

        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 10
Source File: InternalTwoParametersTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken norm1_IdOrKeyword2() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;


    	enterRule();

    try {
        // InternalTwoParametersTestLanguage.g:1234:2: (this_ID_0= RULE_ID )
        // InternalTwoParametersTestLanguage.g:1235:2: this_ID_0= RULE_ID
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

          		current.merge(this_ID_0);
          	
        }
        if ( state.backtracking==0 ) {

          		newLeafNode(this_ID_0, grammarAccess.getIdOrKeyword2Access().getIDTerminalRuleCall_1());
          	
        }

        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 11
Source File: InternalTwoParametersTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public final AntlrDatatypeRuleToken ruleIdOrKeyword2() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;


    	enterRule();

    try {
        // InternalTwoParametersTestLanguage.g:1216:2: (this_ID_0= RULE_ID )
        // InternalTwoParametersTestLanguage.g:1217:2: this_ID_0= RULE_ID
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

          		current.merge(this_ID_0);
          	
        }
        if ( state.backtracking==0 ) {

          		newLeafNode(this_ID_0, grammarAccess.getIdOrKeyword2Access().getIDTerminalRuleCall_1());
          	
        }

        }

        if ( state.backtracking==0 ) {

          	leaveRule();

        }
    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 12
Source File: InternalFormatterTestLanguageParser.java    From dsl-devkit with Eclipse Public License 1.0 3 votes vote down vote up
public final AntlrDatatypeRuleToken ruleDatatype3() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    AntlrDatatypeRuleToken this_FQN_0 = null;


     enterRule(); 
        
    try {
        // InternalFormatterTestLanguage.g:1543:28: (this_FQN_0= ruleFQN )
        // InternalFormatterTestLanguage.g:1545:5: this_FQN_0= ruleFQN
        {
         
                newCompositeNode(grammarAccess.getDatatype3Access().getFQNParserRuleCall()); 
            
        pushFollow(FOLLOW_2);
        this_FQN_0=ruleFQN();

        state._fsp--;


        		current.merge(this_FQN_0);
            
         
                afterParserOrEnumRuleCall();
            

        }

         leaveRule(); 
    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
Example 13
Source File: InternalSingleCodetemplateParser.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;
    AntlrDatatypeRuleToken this_ValidID_0 = null;

    AntlrDatatypeRuleToken this_ValidID_2 = null;



    	enterRule();
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalSingleCodetemplateParser.g:770:2: ( (this_ValidID_0= ruleValidID (kw= FullStop this_ValidID_2= ruleValidID )* ) )
        // InternalSingleCodetemplateParser.g:771:2: (this_ValidID_0= ruleValidID (kw= FullStop this_ValidID_2= ruleValidID )* )
        {
        // InternalSingleCodetemplateParser.g:771:2: (this_ValidID_0= ruleValidID (kw= FullStop this_ValidID_2= ruleValidID )* )
        // InternalSingleCodetemplateParser.g:772:3: this_ValidID_0= ruleValidID (kw= FullStop this_ValidID_2= ruleValidID )*
        {

        			newCompositeNode(grammarAccess.getFQNAccess().getValidIDParserRuleCall_0());
        		
        pushFollow(FOLLOW_23);
        this_ValidID_0=ruleValidID();

        state._fsp--;


        			current.merge(this_ValidID_0);
        		

        			afterParserOrEnumRuleCall();
        		
        // InternalSingleCodetemplateParser.g:782:3: (kw= FullStop this_ValidID_2= ruleValidID )*
        loop24:
        do {
            int alt24=2;
            int LA24_0 = input.LA(1);

            if ( (LA24_0==FullStop) ) {
                alt24=1;
            }


            switch (alt24) {
        	case 1 :
        	    // InternalSingleCodetemplateParser.g:783:4: kw= FullStop this_ValidID_2= ruleValidID
        	    {
        	    kw=(Token)match(input,FullStop,FOLLOW_4); 

        	    				current.merge(kw);
        	    				newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
        	    			

        	    				newCompositeNode(grammarAccess.getFQNAccess().getValidIDParserRuleCall_1_1());
        	    			
        	    pushFollow(FOLLOW_23);
        	    this_ValidID_2=ruleValidID();

        	    state._fsp--;


        	    				current.merge(this_ValidID_2);
        	    			

        	    				afterParserOrEnumRuleCall();
        	    			

        	    }
        	    break;

        	default :
        	    break loop24;
            }
        } while (true);


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {

        	myHiddenTokenState.restore();

    }
    return current;
}
 
Example 14
Source File: InternalBug292245TestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleFix() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_APOSTROPHE_CHAR_0=null;
    Token this_APOSTROPHE_CHAR_2=null;
    AntlrDatatypeRuleToken this_Graphical_1 = null;

    AntlrDatatypeRuleToken this_Rehide_3 = null;



    	enterRule();
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalBug292245TestLanguage.g:240:2: ( (this_APOSTROPHE_CHAR_0= RULE_APOSTROPHE_CHAR this_Graphical_1= ruleGraphical this_APOSTROPHE_CHAR_2= RULE_APOSTROPHE_CHAR this_Rehide_3= ruleRehide ) )
        // InternalBug292245TestLanguage.g:241:2: (this_APOSTROPHE_CHAR_0= RULE_APOSTROPHE_CHAR this_Graphical_1= ruleGraphical this_APOSTROPHE_CHAR_2= RULE_APOSTROPHE_CHAR this_Rehide_3= ruleRehide )
        {
        // InternalBug292245TestLanguage.g:241:2: (this_APOSTROPHE_CHAR_0= RULE_APOSTROPHE_CHAR this_Graphical_1= ruleGraphical this_APOSTROPHE_CHAR_2= RULE_APOSTROPHE_CHAR this_Rehide_3= ruleRehide )
        // InternalBug292245TestLanguage.g:242:3: this_APOSTROPHE_CHAR_0= RULE_APOSTROPHE_CHAR this_Graphical_1= ruleGraphical this_APOSTROPHE_CHAR_2= RULE_APOSTROPHE_CHAR this_Rehide_3= ruleRehide
        {
        this_APOSTROPHE_CHAR_0=(Token)match(input,RULE_APOSTROPHE_CHAR,FollowSets000.FOLLOW_5); 

        			current.merge(this_APOSTROPHE_CHAR_0);
        		

        			newLeafNode(this_APOSTROPHE_CHAR_0, grammarAccess.getFixAccess().getAPOSTROPHE_CHARTerminalRuleCall_0());
        		

        			newCompositeNode(grammarAccess.getFixAccess().getGraphicalParserRuleCall_1());
        		
        pushFollow(FollowSets000.FOLLOW_3);
        this_Graphical_1=ruleGraphical();

        state._fsp--;


        			current.merge(this_Graphical_1);
        		

        			afterParserOrEnumRuleCall();
        		
        this_APOSTROPHE_CHAR_2=(Token)match(input,RULE_APOSTROPHE_CHAR,FollowSets000.FOLLOW_6); 

        			current.merge(this_APOSTROPHE_CHAR_2);
        		

        			newLeafNode(this_APOSTROPHE_CHAR_2, grammarAccess.getFixAccess().getAPOSTROPHE_CHARTerminalRuleCall_2());
        		

        			newCompositeNode(grammarAccess.getFixAccess().getRehideParserRuleCall_3());
        		
        pushFollow(FollowSets000.FOLLOW_2);
        this_Rehide_3=ruleRehide();

        state._fsp--;


        			current.merge(this_Rehide_3);
        		

        			afterParserOrEnumRuleCall();
        		

        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {

        	myHiddenTokenState.restore();

    }
    return current;
}
 
Example 15
Source File: InternalBuilderTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;
    Token kw=null;
    Token this_ID_2=null;


    	enterRule();

    try {
        // InternalBuilderTestLanguage.g:350:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )
        // InternalBuilderTestLanguage.g:351:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
        {
        // InternalBuilderTestLanguage.g:351:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
        // InternalBuilderTestLanguage.g:352:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*
        {
        this_ID_0=(Token)match(input,RULE_ID,FOLLOW_10); 

        			current.merge(this_ID_0);
        		

        			newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0());
        		
        // InternalBuilderTestLanguage.g:359:3: (kw= '.' this_ID_2= RULE_ID )*
        loop7:
        do {
            int alt7=2;
            int LA7_0 = input.LA(1);

            if ( (LA7_0==19) ) {
                alt7=1;
            }


            switch (alt7) {
        	case 1 :
        	    // InternalBuilderTestLanguage.g:360:4: kw= '.' this_ID_2= RULE_ID
        	    {
        	    kw=(Token)match(input,19,FOLLOW_3); 

        	    				current.merge(kw);
        	    				newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0());
        	    			
        	    this_ID_2=(Token)match(input,RULE_ID,FOLLOW_10); 

        	    				current.merge(this_ID_2);
        	    			

        	    				newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1());
        	    			

        	    }
        	    break;

        	default :
        	    break loop7;
            }
        } while (true);


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 16
Source File: InternalIndexTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildCard() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;
    AntlrDatatypeRuleToken this_QualifiedName_0 = null;



    	enterRule();

    try {
        // InternalIndexTestLanguage.g:155:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? ) )
        // InternalIndexTestLanguage.g:156:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? )
        {
        // InternalIndexTestLanguage.g:156:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.*' )? )
        // InternalIndexTestLanguage.g:157:3: this_QualifiedName_0= ruleQualifiedName (kw= '.*' )?
        {

        			newCompositeNode(grammarAccess.getQualifiedNameWithWildCardAccess().getQualifiedNameParserRuleCall_0());
        		
        pushFollow(FollowSets000.FOLLOW_5);
        this_QualifiedName_0=ruleQualifiedName();

        state._fsp--;


        			current.merge(this_QualifiedName_0);
        		

        			afterParserOrEnumRuleCall();
        		
        // InternalIndexTestLanguage.g:167:3: (kw= '.*' )?
        int alt2=2;
        int LA2_0 = input.LA(1);

        if ( (LA2_0==12) ) {
            alt2=1;
        }
        switch (alt2) {
            case 1 :
                // InternalIndexTestLanguage.g:168:4: kw= '.*'
                {
                kw=(Token)match(input,12,FollowSets000.FOLLOW_2); 

                				current.merge(kw);
                				newLeafNode(kw, grammarAccess.getQualifiedNameWithWildCardAccess().getFullStopAsteriskKeyword_1());
                			

                }
                break;

        }


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 17
Source File: InternalReferringTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token this_ID_0=null;
    Token kw=null;
    Token this_ID_2=null;


    	enterRule();

    try {
        // InternalReferringTestLanguage.g:270:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) )
        // InternalReferringTestLanguage.g:271:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
        {
        // InternalReferringTestLanguage.g:271:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* )
        // InternalReferringTestLanguage.g:272:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )*
        {
        this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_6); 

        			current.merge(this_ID_0);
        		

        			newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
        		
        // InternalReferringTestLanguage.g:279:3: (kw= '.' this_ID_2= RULE_ID )*
        loop3:
        do {
            int alt3=2;
            int LA3_0 = input.LA(1);

            if ( (LA3_0==13) ) {
                alt3=1;
            }


            switch (alt3) {
        	case 1 :
        	    // InternalReferringTestLanguage.g:280:4: kw= '.' this_ID_2= RULE_ID
        	    {
        	    kw=(Token)match(input,13,FollowSets000.FOLLOW_4); 

        	    				current.merge(kw);
        	    				newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
        	    			
        	    this_ID_2=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_6); 

        	    				current.merge(this_ID_2);
        	    			

        	    				newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
        	    			

        	    }
        	    break;

        	default :
        	    break loop3;
            }
        } while (true);


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 18
Source File: InternalContentAssistTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;
    Token this_ID_2=null;
    AntlrDatatypeRuleToken this_QN_0 = null;



    	enterRule();

    try {
        // InternalContentAssistTestLanguage.g:360:2: ( (this_QN_0= ruleQN (kw= '$' this_ID_2= RULE_ID )* ) )
        // InternalContentAssistTestLanguage.g:361:2: (this_QN_0= ruleQN (kw= '$' this_ID_2= RULE_ID )* )
        {
        // InternalContentAssistTestLanguage.g:361:2: (this_QN_0= ruleQN (kw= '$' this_ID_2= RULE_ID )* )
        // InternalContentAssistTestLanguage.g:362:3: this_QN_0= ruleQN (kw= '$' this_ID_2= RULE_ID )*
        {

        			newCompositeNode(grammarAccess.getFQNAccess().getQNParserRuleCall_0());
        		
        pushFollow(FOLLOW_7);
        this_QN_0=ruleQN();

        state._fsp--;


        			current.merge(this_QN_0);
        		

        			afterParserOrEnumRuleCall();
        		
        // InternalContentAssistTestLanguage.g:372:3: (kw= '$' this_ID_2= RULE_ID )*
        loop6:
        do {
            int alt6=2;
            int LA6_0 = input.LA(1);

            if ( (LA6_0==17) ) {
                alt6=1;
            }


            switch (alt6) {
        	case 1 :
        	    // InternalContentAssistTestLanguage.g:373:4: kw= '$' this_ID_2= RULE_ID
        	    {
        	    kw=(Token)match(input,17,FOLLOW_5); 

        	    				current.merge(kw);
        	    				newLeafNode(kw, grammarAccess.getFQNAccess().getDollarSignKeyword_1_0());
        	    			
        	    this_ID_2=(Token)match(input,RULE_ID,FOLLOW_7); 

        	    				current.merge(this_ID_2);
        	    			

        	    				newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
        	    			

        	    }
        	    break;

        	default :
        	    break loop6;
            }
        } while (true);


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 19
Source File: InternalContentAssistTestLanguageParser.java    From xtext-extras with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleImportedFQN() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;
    AntlrDatatypeRuleToken this_FQN_0 = null;



    	enterRule();

    try {
        // InternalContentAssistTestLanguage.g:324:2: ( (this_FQN_0= ruleFQN (kw= '.*' )? ) )
        // InternalContentAssistTestLanguage.g:325:2: (this_FQN_0= ruleFQN (kw= '.*' )? )
        {
        // InternalContentAssistTestLanguage.g:325:2: (this_FQN_0= ruleFQN (kw= '.*' )? )
        // InternalContentAssistTestLanguage.g:326:3: this_FQN_0= ruleFQN (kw= '.*' )?
        {

        			newCompositeNode(grammarAccess.getImportedFQNAccess().getFQNParserRuleCall_0());
        		
        pushFollow(FollowSets000.FOLLOW_6);
        this_FQN_0=ruleFQN();

        state._fsp--;


        			current.merge(this_FQN_0);
        		

        			afterParserOrEnumRuleCall();
        		
        // InternalContentAssistTestLanguage.g:336:3: (kw= '.*' )?
        int alt5=2;
        int LA5_0 = input.LA(1);

        if ( (LA5_0==16) ) {
            alt5=1;
        }
        switch (alt5) {
            case 1 :
                // InternalContentAssistTestLanguage.g:337:4: kw= '.*'
                {
                kw=(Token)match(input,16,FollowSets000.FOLLOW_2); 

                				current.merge(kw);
                				newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1());
                			

                }
                break;

        }


        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 20
Source File: InternalUnassignedTextTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 2 votes vote down vote up
public final AntlrDatatypeRuleToken ruleGroupDataTypeRule() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();

    Token kw=null;


    	enterRule();

    try {
        // InternalUnassignedTextTestLanguage.g:493:2: ( (kw= 'this' kw= 'is' kw= 'a' kw= 'test' ) )
        // InternalUnassignedTextTestLanguage.g:494:2: (kw= 'this' kw= 'is' kw= 'a' kw= 'test' )
        {
        // InternalUnassignedTextTestLanguage.g:494:2: (kw= 'this' kw= 'is' kw= 'a' kw= 'test' )
        // InternalUnassignedTextTestLanguage.g:495:3: kw= 'this' kw= 'is' kw= 'a' kw= 'test'
        {
        kw=(Token)match(input,21,FollowSets000.FOLLOW_10); 

        			current.merge(kw);
        			newLeafNode(kw, grammarAccess.getGroupDataTypeRuleAccess().getThisKeyword_0());
        		
        kw=(Token)match(input,22,FollowSets000.FOLLOW_11); 

        			current.merge(kw);
        			newLeafNode(kw, grammarAccess.getGroupDataTypeRuleAccess().getIsKeyword_1());
        		
        kw=(Token)match(input,23,FollowSets000.FOLLOW_12); 

        			current.merge(kw);
        			newLeafNode(kw, grammarAccess.getGroupDataTypeRuleAccess().getAKeyword_2());
        		
        kw=(Token)match(input,24,FollowSets000.FOLLOW_2); 

        			current.merge(kw);
        			newLeafNode(kw, grammarAccess.getGroupDataTypeRuleAccess().getTestKeyword_3());
        		

        }


        }


        	leaveRule();

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}