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

The following examples show how to use org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken#getText() . 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: InternalEcore2XtextTestParser.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleINT0() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleINT0 = null;


    try {
        // InternalEcore2XtextTest.g:285:44: (iv_ruleINT0= ruleINT0 EOF )
        // InternalEcore2XtextTest.g:286:2: iv_ruleINT0= ruleINT0 EOF
        {
         newCompositeNode(grammarAccess.getINT0Rule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleINT0=ruleINT0();

        state._fsp--;

         current =iv_ruleINT0.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 2
Source File: InternalBug347012TestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleFQN() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleFQN = null;


    try {
        // InternalBug347012TestLanguage.g:156:43: (iv_ruleFQN= ruleFQN EOF )
        // InternalBug347012TestLanguage.g:157:2: iv_ruleFQN= ruleFQN EOF
        {
         newCompositeNode(grammarAccess.getFQNRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleFQN=ruleFQN();

        state._fsp--;

         current =iv_ruleFQN.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 3
Source File: InternalBmTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleVALUE() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleVALUE = null;


    try {
        // InternalBmTestLanguage.g:278:45: (iv_ruleVALUE= ruleVALUE EOF )
        // InternalBmTestLanguage.g:279:2: iv_ruleVALUE= ruleVALUE EOF
        {
         newCompositeNode(grammarAccess.getVALUERule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleVALUE=ruleVALUE();

        state._fsp--;

         current =iv_ruleVALUE.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

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

    AntlrDatatypeRuleToken iv_ruleAfter = null;


    try {
        // InternalBug378967TestLanguage.g:495:45: (iv_ruleAfter= ruleAfter EOF )
        // InternalBug378967TestLanguage.g:496:2: iv_ruleAfter= ruleAfter EOF
        {
         newCompositeNode(grammarAccess.getAfterRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleAfter=ruleAfter();

        state._fsp--;

         current =iv_ruleAfter.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 5
Source File: InternalFragmentTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleFQN() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleFQN = null;


    try {
        // InternalFragmentTestLanguage.g:722:43: (iv_ruleFQN= ruleFQN EOF )
        // InternalFragmentTestLanguage.g:723:2: iv_ruleFQN= ruleFQN EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getFQNRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleFQN=ruleFQN();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleFQN.getText(); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 6
Source File: InternalAssignmentsTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleStringDatatype() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleStringDatatype = null;


    try {
        // InternalAssignmentsTestLanguage.g:718:54: (iv_ruleStringDatatype= ruleStringDatatype EOF )
        // InternalAssignmentsTestLanguage.g:719:2: iv_ruleStringDatatype= ruleStringDatatype EOF
        {
         newCompositeNode(grammarAccess.getStringDatatypeRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleStringDatatype=ruleStringDatatype();

        state._fsp--;

         current =iv_ruleStringDatatype.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 7
Source File: InternalReferringTestLanguageParser.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleFQN() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleFQN = null;


    try {
        // InternalReferringTestLanguage.g:257:43: (iv_ruleFQN= ruleFQN EOF )
        // InternalReferringTestLanguage.g:258:2: iv_ruleFQN= ruleFQN EOF
        {
         newCompositeNode(grammarAccess.getFQNRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleFQN=ruleFQN();

        state._fsp--;

         current =iv_ruleFQN.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 8
Source File: InternalBug296889ExTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleDataTypeVariable() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleDataTypeVariable = null;


    try {
        // InternalBug296889ExTestLanguage.g:457:56: (iv_ruleDataTypeVariable= ruleDataTypeVariable EOF )
        // InternalBug296889ExTestLanguage.g:458:2: iv_ruleDataTypeVariable= ruleDataTypeVariable EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getDataTypeVariableRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleDataTypeVariable=ruleDataTypeVariable();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleDataTypeVariable.getText(); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 9
Source File: InternalBuilderTestLanguageParser.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleQualifiedName() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleQualifiedName = null;


    try {
        // InternalBuilderTestLanguage.g:337:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )
        // InternalBuilderTestLanguage.g:338:2: iv_ruleQualifiedName= ruleQualifiedName EOF
        {
         newCompositeNode(grammarAccess.getQualifiedNameRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleQualifiedName=ruleQualifiedName();

        state._fsp--;

         current =iv_ruleQualifiedName.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 10
Source File: InternalXtypeParser.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleArrayBrackets() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleArrayBrackets = null;


    try {
        // InternalXtype.g:131:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF )
        // InternalXtype.g:132:2: iv_ruleArrayBrackets= ruleArrayBrackets EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getArrayBracketsRule()); 
        }
        pushFollow(FOLLOW_1);
        iv_ruleArrayBrackets=ruleArrayBrackets();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleArrayBrackets.getText(); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return current;

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 11
Source File: InternalParametersTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleIdOrKeyword() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleIdOrKeyword = null;


    try {
        // InternalParametersTestLanguage.g:885:51: (iv_ruleIdOrKeyword= ruleIdOrKeyword EOF )
        // InternalParametersTestLanguage.g:886:2: iv_ruleIdOrKeyword= ruleIdOrKeyword EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getIdOrKeywordRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleIdOrKeyword=ruleIdOrKeyword();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleIdOrKeyword.getText(); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 12
Source File: InternalGH1462TestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleInteger() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleInteger = null;


    try {
        // InternalGH1462TestLanguage.g:1210:47: (iv_ruleInteger= ruleInteger EOF )
        // InternalGH1462TestLanguage.g:1211:2: iv_ruleInteger= ruleInteger EOF
        {
         newCompositeNode(grammarAccess.getIntegerRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleInteger=ruleInteger();

        state._fsp--;

         current =iv_ruleInteger.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 13
Source File: InternalQualifiedNameTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleQualifiedName() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleQualifiedName = null;


    try {
        // InternalQualifiedNameTestLanguage.g:106:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )
        // InternalQualifiedNameTestLanguage.g:107:2: iv_ruleQualifiedName= ruleQualifiedName EOF
        {
         newCompositeNode(grammarAccess.getQualifiedNameRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleQualifiedName=ruleQualifiedName();

        state._fsp--;

         current =iv_ruleQualifiedName.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 14
Source File: InternalBug297105TestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleIntValue() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleIntValue = null;


    try {
        // InternalBug297105TestLanguage.g:281:48: (iv_ruleIntValue= ruleIntValue EOF )
        // InternalBug297105TestLanguage.g:282:2: iv_ruleIntValue= ruleIntValue EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getIntValueRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleIntValue=ruleIntValue();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleIntValue.getText(); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;

        }

    }

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

    AntlrDatatypeRuleToken iv_ruleMethodCallLiteral = null;


    try {
        // InternalSimpleExpressions.g:632:2: (iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF )
        // InternalSimpleExpressions.g:633:2: iv_ruleMethodCallLiteral= ruleMethodCallLiteral EOF
        {
         newCompositeNode(grammarAccess.getMethodCallLiteralRule()); 
        pushFollow(FOLLOW_1);
        iv_ruleMethodCallLiteral=ruleMethodCallLiteral();

        state._fsp--;

         current =iv_ruleMethodCallLiteral.getText(); 
        match(input,EOF,FOLLOW_2); 

        }

    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
Example 16
Source File: InternalNoParametersTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleIdOrKeyword() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleIdOrKeyword = null;


    try {
        // InternalNoParametersTestLanguage.g:965:51: (iv_ruleIdOrKeyword= ruleIdOrKeyword EOF )
        // InternalNoParametersTestLanguage.g:966:2: iv_ruleIdOrKeyword= ruleIdOrKeyword EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getIdOrKeywordRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleIdOrKeyword=ruleIdOrKeyword();

        state._fsp--;
        if (state.failed) return current;
        if ( state.backtracking==0 ) {
           current =iv_ruleIdOrKeyword.getText(); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 17
Source File: InternalValidParser.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
public final String entryRuleQualifiedID() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleQualifiedID = null;


    try {
        // InternalValid.g:1788:2: (iv_ruleQualifiedID= ruleQualifiedID EOF )
        // InternalValid.g:1789:2: iv_ruleQualifiedID= ruleQualifiedID EOF
        {
         newCompositeNode(grammarAccess.getQualifiedIDRule()); 
        pushFollow(FOLLOW_1);
        iv_ruleQualifiedID=ruleQualifiedID();

        state._fsp--;

         current =iv_ruleQualifiedID.getText(); 
        match(input,EOF,FOLLOW_2); 

        }

    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
Example 18
Source File: InternalTestLanguageParser.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
public final String entryRuleQualifiedName() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleQualifiedName = null;


    try {
        // InternalTestLanguage.g:854:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )
        // InternalTestLanguage.g:855:2: iv_ruleQualifiedName= ruleQualifiedName EOF
        {
         newCompositeNode(grammarAccess.getQualifiedNameRule()); 
        pushFollow(FOLLOW_1);
        iv_ruleQualifiedName=ruleQualifiedName();

        state._fsp--;

         current =iv_ruleQualifiedName.getText(); 
        match(input,EOF,FOLLOW_2); 

        }

    }

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

    AntlrDatatypeRuleToken iv_ruleModelId = null;


    try {
        // InternalDatatypeRulesTestLanguage.g:242:47: (iv_ruleModelId= ruleModelId EOF )
        // InternalDatatypeRulesTestLanguage.g:243:2: iv_ruleModelId= ruleModelId EOF
        {
         newCompositeNode(grammarAccess.getModelIdRule()); 
        pushFollow(FollowSets000.FOLLOW_1);
        iv_ruleModelId=ruleModelId();

        state._fsp--;

         current =iv_ruleModelId.getText(); 
        match(input,EOF,FollowSets000.FOLLOW_2); 

        }

    }

        catch (RecognitionException re) {
            recover(input,re);
            appendSkippedTokens();
        }
    finally {
    }
    return current;
}
 
Example 20
Source File: InternalSingleCodetemplateParser.java    From xtext-eclipse with Eclipse Public License 2.0 3 votes vote down vote up
public final String entryRuleFQN() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleFQN = null;



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

    try {
        // InternalSingleCodetemplateParser.g:753:2: (iv_ruleFQN= ruleFQN EOF )
        // InternalSingleCodetemplateParser.g:754:2: iv_ruleFQN= ruleFQN EOF
        {
         newCompositeNode(grammarAccess.getFQNRule()); 
        pushFollow(FOLLOW_1);
        iv_ruleFQN=ruleFQN();

        state._fsp--;

         current =iv_ruleFQN.getText(); 
        match(input,EOF,FOLLOW_2); 

        }

    }

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

        	myHiddenTokenState.restore();

    }
    return current;
}