Search in sources :

Example 16 with HiddenTokens

use of org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens in project xtext-core by eclipse.

the class InternalBeeLangTestLanguageParser method rulePath.

// $ANTLR end "entryRulePath"
// $ANTLR start "rulePath"
// InternalBeeLangTestLanguage.g:1398:1: rulePath returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) ) ;
public final AntlrDatatypeRuleToken rulePath() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
    int rulePath_StartIndex = input.index();
    Token this_STRING_0 = null;
    Token kw = null;
    AntlrDatatypeRuleToken this_QID_2 = null;
    AntlrDatatypeRuleToken this_QID_4 = null;
    enterRule();
    HiddenTokens myHiddenTokenState = ((XtextTokenStream) input).setHiddenTokens();
    try {
        if (state.backtracking > 0 && alreadyParsedRule(input, 12)) {
            return current;
        }
        // InternalBeeLangTestLanguage.g:1405:2: ( (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) ) )
        // InternalBeeLangTestLanguage.g:1406:2: (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) )
        {
            // InternalBeeLangTestLanguage.g:1406:2: (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) )
            int alt25 = 2;
            int LA25_0 = input.LA(1);
            if ((LA25_0 == RULE_STRING)) {
                alt25 = 1;
            } else if ((LA25_0 == RULE_ID || LA25_0 == 32)) {
                alt25 = 2;
            } else {
                if (state.backtracking > 0) {
                    state.failed = true;
                    return current;
                }
                NoViableAltException nvae = new NoViableAltException("", 25, 0, input);
                throw nvae;
            }
            switch(alt25) {
                case 1:
                    // InternalBeeLangTestLanguage.g:1407:3: this_STRING_0= RULE_STRING
                    {
                        this_STRING_0 = (Token) match(input, RULE_STRING, FOLLOW_2);
                        if (state.failed)
                            return current;
                        if (state.backtracking == 0) {
                            current.merge(this_STRING_0);
                        }
                        if (state.backtracking == 0) {
                            newLeafNode(this_STRING_0, grammarAccess.getPathAccess().getSTRINGTerminalRuleCall_0());
                        }
                    }
                    break;
                case 2:
                    // InternalBeeLangTestLanguage.g:1415:3: ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? )
                    {
                        // InternalBeeLangTestLanguage.g:1415:3: ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? )
                        // InternalBeeLangTestLanguage.g:1416:4: (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )?
                        {
                            // InternalBeeLangTestLanguage.g:1416:4: (kw= '/' )?
                            int alt22 = 2;
                            int LA22_0 = input.LA(1);
                            if ((LA22_0 == 32)) {
                                alt22 = 1;
                            }
                            switch(alt22) {
                                case 1:
                                    // InternalBeeLangTestLanguage.g:1417:5: kw= '/'
                                    {
                                        kw = (Token) match(input, 32, FOLLOW_13);
                                        if (state.failed)
                                            return current;
                                        if (state.backtracking == 0) {
                                            current.merge(kw);
                                            newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_0());
                                        }
                                    }
                                    break;
                            }
                            if (state.backtracking == 0) {
                                newCompositeNode(grammarAccess.getPathAccess().getQIDParserRuleCall_1_1());
                            }
                            pushFollow(FOLLOW_25);
                            this_QID_2 = ruleQID();
                            state._fsp--;
                            if (state.failed)
                                return current;
                            if (state.backtracking == 0) {
                                current.merge(this_QID_2);
                            }
                            if (state.backtracking == 0) {
                                afterParserOrEnumRuleCall();
                            }
                            // InternalBeeLangTestLanguage.g:1433:4: (kw= '/' this_QID_4= ruleQID )*
                            loop23: do {
                                int alt23 = 2;
                                int LA23_0 = input.LA(1);
                                if ((LA23_0 == 32)) {
                                    int LA23_1 = input.LA(2);
                                    if ((LA23_1 == RULE_ID)) {
                                        alt23 = 1;
                                    }
                                }
                                switch(alt23) {
                                    case 1:
                                        // InternalBeeLangTestLanguage.g:1434:5: kw= '/' this_QID_4= ruleQID
                                        {
                                            kw = (Token) match(input, 32, FOLLOW_13);
                                            if (state.failed)
                                                return current;
                                            if (state.backtracking == 0) {
                                                current.merge(kw);
                                                newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_2_0());
                                            }
                                            if (state.backtracking == 0) {
                                                newCompositeNode(grammarAccess.getPathAccess().getQIDParserRuleCall_1_2_1());
                                            }
                                            pushFollow(FOLLOW_25);
                                            this_QID_4 = ruleQID();
                                            state._fsp--;
                                            if (state.failed)
                                                return current;
                                            if (state.backtracking == 0) {
                                                current.merge(this_QID_4);
                                            }
                                            if (state.backtracking == 0) {
                                                afterParserOrEnumRuleCall();
                                            }
                                        }
                                        break;
                                    default:
                                        break loop23;
                                }
                            } while (true);
                            // InternalBeeLangTestLanguage.g:1450:4: (kw= '/' )?
                            int alt24 = 2;
                            int LA24_0 = input.LA(1);
                            if ((LA24_0 == 32)) {
                                alt24 = 1;
                            }
                            switch(alt24) {
                                case 1:
                                    // InternalBeeLangTestLanguage.g:1451:5: kw= '/'
                                    {
                                        kw = (Token) match(input, 32, FOLLOW_2);
                                        if (state.failed)
                                            return current;
                                        if (state.backtracking == 0) {
                                            current.merge(kw);
                                            newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_3());
                                        }
                                    }
                                    break;
                            }
                        }
                    }
                    break;
            }
        }
        if (state.backtracking == 0) {
            leaveRule();
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
        if (state.backtracking > 0) {
            memoize(input, 12, rulePath_StartIndex);
        }
        myHiddenTokenState.restore();
    }
    return current;
}
Also used : XtextTokenStream(org.eclipse.xtext.parser.antlr.XtextTokenStream) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) HiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)

Example 17 with HiddenTokens

use of org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens in project xtext-core by eclipse.

the class InternalSimpleBeeLangTestLanguageParser method rulePath.

// $ANTLR end "entryRulePath"
// $ANTLR start "rulePath"
// InternalSimpleBeeLangTestLanguage.g:1426:1: rulePath returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) ) ;
public final AntlrDatatypeRuleToken rulePath() throws RecognitionException {
    AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
    int rulePath_StartIndex = input.index();
    Token this_STRING_0 = null;
    Token kw = null;
    AntlrDatatypeRuleToken this_QID_2 = null;
    AntlrDatatypeRuleToken this_QID_4 = null;
    enterRule();
    HiddenTokens myHiddenTokenState = ((XtextTokenStream) input).setHiddenTokens();
    try {
        if (state.backtracking > 0 && alreadyParsedRule(input, 14)) {
            return current;
        }
        // InternalSimpleBeeLangTestLanguage.g:1433:2: ( (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) ) )
        // InternalSimpleBeeLangTestLanguage.g:1434:2: (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) )
        {
            // InternalSimpleBeeLangTestLanguage.g:1434:2: (this_STRING_0= RULE_STRING | ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? ) )
            int alt25 = 2;
            int LA25_0 = input.LA(1);
            if ((LA25_0 == RULE_STRING)) {
                alt25 = 1;
            } else if ((LA25_0 == RULE_ID || LA25_0 == 32)) {
                alt25 = 2;
            } else {
                if (state.backtracking > 0) {
                    state.failed = true;
                    return current;
                }
                NoViableAltException nvae = new NoViableAltException("", 25, 0, input);
                throw nvae;
            }
            switch(alt25) {
                case 1:
                    // InternalSimpleBeeLangTestLanguage.g:1435:3: this_STRING_0= RULE_STRING
                    {
                        this_STRING_0 = (Token) match(input, RULE_STRING, FollowSets000.FOLLOW_2);
                        if (state.failed)
                            return current;
                        if (state.backtracking == 0) {
                            current.merge(this_STRING_0);
                        }
                        if (state.backtracking == 0) {
                            newLeafNode(this_STRING_0, grammarAccess.getPathAccess().getSTRINGTerminalRuleCall_0());
                        }
                    }
                    break;
                case 2:
                    // InternalSimpleBeeLangTestLanguage.g:1443:3: ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? )
                    {
                        // InternalSimpleBeeLangTestLanguage.g:1443:3: ( (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )? )
                        // InternalSimpleBeeLangTestLanguage.g:1444:4: (kw= '/' )? this_QID_2= ruleQID (kw= '/' this_QID_4= ruleQID )* (kw= '/' )?
                        {
                            // InternalSimpleBeeLangTestLanguage.g:1444:4: (kw= '/' )?
                            int alt22 = 2;
                            int LA22_0 = input.LA(1);
                            if ((LA22_0 == 32)) {
                                alt22 = 1;
                            }
                            switch(alt22) {
                                case 1:
                                    // InternalSimpleBeeLangTestLanguage.g:1445:5: kw= '/'
                                    {
                                        kw = (Token) match(input, 32, FollowSets000.FOLLOW_13);
                                        if (state.failed)
                                            return current;
                                        if (state.backtracking == 0) {
                                            current.merge(kw);
                                            newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_0());
                                        }
                                    }
                                    break;
                            }
                            if (state.backtracking == 0) {
                                newCompositeNode(grammarAccess.getPathAccess().getQIDParserRuleCall_1_1());
                            }
                            pushFollow(FollowSets000.FOLLOW_25);
                            this_QID_2 = ruleQID();
                            state._fsp--;
                            if (state.failed)
                                return current;
                            if (state.backtracking == 0) {
                                current.merge(this_QID_2);
                            }
                            if (state.backtracking == 0) {
                                afterParserOrEnumRuleCall();
                            }
                            // InternalSimpleBeeLangTestLanguage.g:1461:4: (kw= '/' this_QID_4= ruleQID )*
                            loop23: do {
                                int alt23 = 2;
                                int LA23_0 = input.LA(1);
                                if ((LA23_0 == 32)) {
                                    int LA23_1 = input.LA(2);
                                    if ((LA23_1 == RULE_ID)) {
                                        alt23 = 1;
                                    }
                                }
                                switch(alt23) {
                                    case 1:
                                        // InternalSimpleBeeLangTestLanguage.g:1462:5: kw= '/' this_QID_4= ruleQID
                                        {
                                            kw = (Token) match(input, 32, FollowSets000.FOLLOW_13);
                                            if (state.failed)
                                                return current;
                                            if (state.backtracking == 0) {
                                                current.merge(kw);
                                                newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_2_0());
                                            }
                                            if (state.backtracking == 0) {
                                                newCompositeNode(grammarAccess.getPathAccess().getQIDParserRuleCall_1_2_1());
                                            }
                                            pushFollow(FollowSets000.FOLLOW_25);
                                            this_QID_4 = ruleQID();
                                            state._fsp--;
                                            if (state.failed)
                                                return current;
                                            if (state.backtracking == 0) {
                                                current.merge(this_QID_4);
                                            }
                                            if (state.backtracking == 0) {
                                                afterParserOrEnumRuleCall();
                                            }
                                        }
                                        break;
                                    default:
                                        break loop23;
                                }
                            } while (true);
                            // InternalSimpleBeeLangTestLanguage.g:1478:4: (kw= '/' )?
                            int alt24 = 2;
                            int LA24_0 = input.LA(1);
                            if ((LA24_0 == 32)) {
                                alt24 = 1;
                            }
                            switch(alt24) {
                                case 1:
                                    // InternalSimpleBeeLangTestLanguage.g:1479:5: kw= '/'
                                    {
                                        kw = (Token) match(input, 32, FollowSets000.FOLLOW_2);
                                        if (state.failed)
                                            return current;
                                        if (state.backtracking == 0) {
                                            current.merge(kw);
                                            newLeafNode(kw, grammarAccess.getPathAccess().getSolidusKeyword_1_3());
                                        }
                                    }
                                    break;
                            }
                        }
                    }
                    break;
            }
        }
        if (state.backtracking == 0) {
            leaveRule();
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
        if (state.backtracking > 0) {
            memoize(input, 14, rulePath_StartIndex);
        }
        myHiddenTokenState.restore();
    }
    return current;
}
Also used : XtextTokenStream(org.eclipse.xtext.parser.antlr.XtextTokenStream) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) HiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)

Example 18 with HiddenTokens

use of org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens in project xtext-core by eclipse.

the class InternalExBeeLangTestLanguageParser method entryRuleQID.

// $ANTLR end "ruleParanthesizedExpression"
// $ANTLR start "entryRuleQID"
// InternalExBeeLangTestLanguageParser.g:5405:1: entryRuleQID returns [String current=null] : iv_ruleQID= ruleQID EOF ;
public final String entryRuleQID() throws RecognitionException {
    String current = null;
    int entryRuleQID_StartIndex = input.index();
    AntlrDatatypeRuleToken iv_ruleQID = null;
    HiddenTokens myHiddenTokenState = ((XtextTokenStream) input).setHiddenTokens();
    try {
        if (state.backtracking > 0 && alreadyParsedRule(input, 113)) {
            return current;
        }
        // InternalExBeeLangTestLanguageParser.g:5407:2: (iv_ruleQID= ruleQID EOF )
        // InternalExBeeLangTestLanguageParser.g:5408:2: iv_ruleQID= ruleQID EOF
        {
            if (state.backtracking == 0) {
                newCompositeNode(grammarAccess.getQIDRule());
            }
            pushFollow(FollowSets000.FOLLOW_1);
            iv_ruleQID = ruleQID();
            state._fsp--;
            if (state.failed)
                return current;
            if (state.backtracking == 0) {
                current = iv_ruleQID.getText();
            }
            match(input, EOF, FollowSets000.FOLLOW_2);
            if (state.failed)
                return current;
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
        if (state.backtracking > 0) {
            memoize(input, 113, entryRuleQID_StartIndex);
        }
        myHiddenTokenState.restore();
    }
    return current;
}
Also used : XtextTokenStream(org.eclipse.xtext.parser.antlr.XtextTokenStream) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) HiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)

Example 19 with HiddenTokens

use of org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens in project xtext-core by eclipse.

the class InternalFormatterTestLanguageParser method ruleSuppressedHidden.

// $ANTLR end "entryRuleSuppressedHidden"
// $ANTLR start "ruleSuppressedHidden"
// InternalFormatterTestLanguage.g:989:1: ruleSuppressedHidden returns [EObject current=null] : ( () otherlv_1= '`' ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )? otherlv_5= '`' ) ;
public final EObject ruleSuppressedHidden() throws RecognitionException {
    EObject current = null;
    Token otherlv_1 = null;
    Token otherlv_3 = null;
    Token otherlv_5 = null;
    EObject lv_vals_2_0 = null;
    EObject lv_vals_4_0 = null;
    enterRule();
    HiddenTokens myHiddenTokenState = ((XtextTokenStream) input).setHiddenTokens();
    try {
        // InternalFormatterTestLanguage.g:996:2: ( ( () otherlv_1= '`' ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )? otherlv_5= '`' ) )
        // InternalFormatterTestLanguage.g:997:2: ( () otherlv_1= '`' ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )? otherlv_5= '`' )
        {
            // InternalFormatterTestLanguage.g:997:2: ( () otherlv_1= '`' ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )? otherlv_5= '`' )
            // InternalFormatterTestLanguage.g:998:3: () otherlv_1= '`' ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )? otherlv_5= '`'
            {
                // InternalFormatterTestLanguage.g:998:3: ()
                // InternalFormatterTestLanguage.g:999:4:
                {
                    current = forceCreateModelElement(grammarAccess.getSuppressedHiddenAccess().getSuppressedHiddenAction_0(), current);
                }
                otherlv_1 = (Token) match(input, 33, FollowSets000.FOLLOW_24);
                newLeafNode(otherlv_1, grammarAccess.getSuppressedHiddenAccess().getGraveAccentKeyword_1());
                // InternalFormatterTestLanguage.g:1009:3: ( ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )* )?
                int alt17 = 2;
                int LA17_0 = input.LA(1);
                if ((LA17_0 == RULE_ID || LA17_0 == 35)) {
                    alt17 = 1;
                }
                switch(alt17) {
                    case 1:
                        // InternalFormatterTestLanguage.g:1010:4: ( (lv_vals_2_0= ruleSuppressedHiddenSub ) ) (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )*
                        {
                            // InternalFormatterTestLanguage.g:1010:4: ( (lv_vals_2_0= ruleSuppressedHiddenSub ) )
                            // InternalFormatterTestLanguage.g:1011:5: (lv_vals_2_0= ruleSuppressedHiddenSub )
                            {
                                // InternalFormatterTestLanguage.g:1011:5: (lv_vals_2_0= ruleSuppressedHiddenSub )
                                // InternalFormatterTestLanguage.g:1012:6: lv_vals_2_0= ruleSuppressedHiddenSub
                                {
                                    newCompositeNode(grammarAccess.getSuppressedHiddenAccess().getValsSuppressedHiddenSubParserRuleCall_2_0_0());
                                    pushFollow(FollowSets000.FOLLOW_25);
                                    lv_vals_2_0 = ruleSuppressedHiddenSub();
                                    state._fsp--;
                                    if (current == null) {
                                        current = createModelElementForParent(grammarAccess.getSuppressedHiddenRule());
                                    }
                                    add(current, "vals", lv_vals_2_0, "org.eclipse.xtext.parsetree.formatter.FormatterTestLanguage.SuppressedHiddenSub");
                                    afterParserOrEnumRuleCall();
                                }
                            }
                            // InternalFormatterTestLanguage.g:1029:4: (otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) ) )*
                            loop16: do {
                                int alt16 = 2;
                                int LA16_0 = input.LA(1);
                                if ((LA16_0 == 34)) {
                                    alt16 = 1;
                                }
                                switch(alt16) {
                                    case 1:
                                        // InternalFormatterTestLanguage.g:1030:5: otherlv_3= '%' ( (lv_vals_4_0= ruleSuppressedHiddenSub ) )
                                        {
                                            otherlv_3 = (Token) match(input, 34, FollowSets000.FOLLOW_26);
                                            newLeafNode(otherlv_3, grammarAccess.getSuppressedHiddenAccess().getPercentSignKeyword_2_1_0());
                                            // InternalFormatterTestLanguage.g:1034:5: ( (lv_vals_4_0= ruleSuppressedHiddenSub ) )
                                            // InternalFormatterTestLanguage.g:1035:6: (lv_vals_4_0= ruleSuppressedHiddenSub )
                                            {
                                                // InternalFormatterTestLanguage.g:1035:6: (lv_vals_4_0= ruleSuppressedHiddenSub )
                                                // InternalFormatterTestLanguage.g:1036:7: lv_vals_4_0= ruleSuppressedHiddenSub
                                                {
                                                    newCompositeNode(grammarAccess.getSuppressedHiddenAccess().getValsSuppressedHiddenSubParserRuleCall_2_1_1_0());
                                                    pushFollow(FollowSets000.FOLLOW_25);
                                                    lv_vals_4_0 = ruleSuppressedHiddenSub();
                                                    state._fsp--;
                                                    if (current == null) {
                                                        current = createModelElementForParent(grammarAccess.getSuppressedHiddenRule());
                                                    }
                                                    add(current, "vals", lv_vals_4_0, "org.eclipse.xtext.parsetree.formatter.FormatterTestLanguage.SuppressedHiddenSub");
                                                    afterParserOrEnumRuleCall();
                                                }
                                            }
                                        }
                                        break;
                                    default:
                                        break loop16;
                                }
                            } while (true);
                        }
                        break;
                }
                otherlv_5 = (Token) match(input, 33, FollowSets000.FOLLOW_2);
                newLeafNode(otherlv_5, grammarAccess.getSuppressedHiddenAccess().getGraveAccentKeyword_3());
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
        myHiddenTokenState.restore();
    }
    return current;
}
Also used : XtextTokenStream(org.eclipse.xtext.parser.antlr.XtextTokenStream) EObject(org.eclipse.emf.ecore.EObject) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) HiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)

Example 20 with HiddenTokens

use of org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens in project xtext-core by eclipse.

the class InternalFormatterTestLanguageParser method entryRuleSuppressedHiddenSubSub.

// $ANTLR end "ruleSuppressedHiddenSub"
// $ANTLR start "entryRuleSuppressedHiddenSubSub"
// InternalFormatterTestLanguage.g:1102:1: entryRuleSuppressedHiddenSubSub returns [EObject current=null] : iv_ruleSuppressedHiddenSubSub= ruleSuppressedHiddenSubSub EOF ;
public final EObject entryRuleSuppressedHiddenSubSub() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleSuppressedHiddenSubSub = null;
    HiddenTokens myHiddenTokenState = ((XtextTokenStream) input).setHiddenTokens("RULE_WS");
    try {
        // InternalFormatterTestLanguage.g:1104:2: (iv_ruleSuppressedHiddenSubSub= ruleSuppressedHiddenSubSub EOF )
        // InternalFormatterTestLanguage.g:1105:2: iv_ruleSuppressedHiddenSubSub= ruleSuppressedHiddenSubSub EOF
        {
            newCompositeNode(grammarAccess.getSuppressedHiddenSubSubRule());
            pushFollow(FollowSets000.FOLLOW_1);
            iv_ruleSuppressedHiddenSubSub = ruleSuppressedHiddenSubSub();
            state._fsp--;
            current = iv_ruleSuppressedHiddenSubSub;
            match(input, EOF, FollowSets000.FOLLOW_2);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
        myHiddenTokenState.restore();
    }
    return current;
}
Also used : XtextTokenStream(org.eclipse.xtext.parser.antlr.XtextTokenStream) EObject(org.eclipse.emf.ecore.EObject) HiddenTokens(org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)

Aggregations

XtextTokenStream (org.eclipse.xtext.parser.antlr.XtextTokenStream)42 HiddenTokens (org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens)42 AntlrDatatypeRuleToken (org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)34 EObject (org.eclipse.emf.ecore.EObject)16