Java 类org.eclipse.xtext.parser.antlr.XtextTokenStream 实例源码

项目:n4js    文件:HighlightingParser.java   
private void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens(
            InternalN4JSParser.tokenNames[InternalN4JSParser.RULE_WS],
            InternalN4JSParser.tokenNames[InternalN4JSParser.RULE_ML_COMMENT],
            InternalN4JSParser.tokenNames[InternalN4JSParser.RULE_SL_COMMENT],
            InternalN4JSParser.tokenNames[InternalN4JSParser.RULE_EOL]);
}
项目:n4js    文件:N4JSSemicolonInjectingParser.java   
/**
 * @param stream
 *            the given stream, must be a {@link LazyTokenStream}
 * @see #createTokenStream(TokenSource)
 */
@Override
protected InternalN4JSParser createParser(XtextTokenStream stream) {
    if (!(stream instanceof LazyTokenStream)) {
        throw new IllegalArgumentException("token stream must be an instance of LazyTokenStream");
    }
    return new InternalSemicolonInjectingParser(stream, getGrammarAccess());
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void entryRulePolicies() throws RecognitionException {

        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:183:1: ( rulePolicies EOF )
        // InternalDSLPolicies.g:184:1: rulePolicies EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPoliciesRule()); 
        }
        pushFollow(FOLLOW_1);
        rulePolicies();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getPoliciesRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void entryRulePathGeneratorStopCondition() throws RecognitionException {

        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:216:1: ( rulePathGeneratorStopCondition EOF )
        // InternalDSLPolicies.g:217:1: rulePathGeneratorStopCondition EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPathGeneratorStopConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        rulePathGeneratorStopCondition();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getPathGeneratorStopConditionRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void entryRuleStringCondition() throws RecognitionException {

        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:324:1: ( ruleStringCondition EOF )
        // InternalDSLPolicies.g:325:1: ruleStringCondition EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getStringConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleStringCondition();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getStringConditionRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void entryRuleNumber() throws RecognitionException {

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

    try {
        // InternalDSLPolicies.g:1907:1: ( ruleNumber EOF )
        // InternalDSLPolicies.g:1908:1: ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleNumber();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNumberRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:jason-eclipse-plugin    文件:InternalAslParser.java   
public final void entryRuleTK_REL_OP() throws RecognitionException {
    int entryRuleTK_REL_OP_StartIndex = input.index();

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

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 51) ) { return ; }
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:766:1: ( ruleTK_REL_OP EOF )
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:767:1: ruleTK_REL_OP EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getTK_REL_OPRule()); 
        }
        pushFollow(FOLLOW_ruleTK_REL_OP_in_entryRuleTK_REL_OP1579);
        ruleTK_REL_OP();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getTK_REL_OPRule()); 
        }
        match(input,EOF,FOLLOW_EOF_in_entryRuleTK_REL_OP1586); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 51, entryRuleTK_REL_OP_StartIndex); }

            myHiddenTokenState.restore();

    }
    return ;
}
项目:xtext-core    文件:InternalSimpleBeeLangTestLanguageParser.java   
public final void entryRuleQID() throws RecognitionException {
    int entryRuleQID_StartIndex = input.index();

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

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 113) ) { return ; }
        // InternalSimpleBeeLangTestLanguage.g:1467:1: ( ruleQID EOF )
        // InternalSimpleBeeLangTestLanguage.g:1468:1: ruleQID EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getQIDRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        ruleQID();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getQIDRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 113, entryRuleQID_StartIndex); }

            myHiddenTokenState.restore();

    }
    return ;
}
项目:xtext-core    文件:InternalBeeLangTestLanguageParser.java   
public final void entryRuleQID() throws RecognitionException {
    int entryRuleQID_StartIndex = input.index();

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

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 111) ) { return ; }
        // InternalBeeLangTestLanguage.g:1442:1: ( ruleQID EOF )
        // InternalBeeLangTestLanguage.g:1443:1: ruleQID EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getQIDRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleQID();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getQIDRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 111, entryRuleQID_StartIndex); }

            myHiddenTokenState.restore();

    }
    return ;
}
项目:xtext-extras    文件:InternalXImportSectionTestLangParser.java   
public final void entryRuleNumber() throws RecognitionException {

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

    try {
        // InternalXImportSectionTestLang.g:1583:1: ( ruleNumber EOF )
        // InternalXImportSectionTestLang.g:1584:1: ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleNumber();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNumberRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:xtext-extras    文件:InternalPureXbaseParser.java   
public final void entryRuleNumber() throws RecognitionException {

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

    try {
        // InternalPureXbase.g:1608:1: ( ruleNumber EOF )
        // InternalPureXbase.g:1609:1: ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleNumber();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNumberRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

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

            myHiddenTokenState.restore();

    }
    return ;
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoParser.java   
@Override
protected InternalPkmntcgoParser createParser(XtextTokenStream stream) {
    return new InternalPkmntcgoParser(stream, getGrammarAccess());
}
项目:n4js    文件:TypesParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_EOL");
}
项目:n4js    文件:TypesParser.java   
@Override
protected InternalTypesParser createParser(XtextTokenStream stream) {
    return new InternalTypesParser(stream, getGrammarAccess());
}
项目:n4js    文件:RegularExpressionParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens();
}
项目:n4js    文件:RegularExpressionParser.java   
@Override
protected InternalRegularExpressionParser createParser(XtextTokenStream stream) {
    return new InternalRegularExpressionParser(stream, getGrammarAccess());
}
项目:n4js    文件:N4JSParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_EOL");
}
项目:n4js    文件:N4JSParser.java   
@Override
protected InternalN4JSParser createParser(XtextTokenStream stream) {
    return new InternalN4JSParser(stream, getGrammarAccess());
}
项目:n4js    文件:N4MFParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:n4js    文件:N4MFParser.java   
@Override
protected InternalN4MFParser createParser(XtextTokenStream stream) {
    return new InternalN4MFParser(stream, getGrammarAccess());
}
项目:DocIT    文件:IOIParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:DocIT    文件:IOIParser.java   
@Override
protected org.ioicompanies.lang.parser.antlr.internal.InternalIOIParser createParser(XtextTokenStream stream) {
    return new org.ioicompanies.lang.parser.antlr.internal.InternalIOIParser(stream, getGrammarAccess());
}
项目:Xtext_Xtend_HTML_Generator    文件:MyDslParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:Xtext_Xtend_HTML_Generator    文件:MyDslParser.java   
@Override
protected InternalMyDslParser createParser(XtextTokenStream stream) {
    return new InternalMyDslParser(stream, getGrammarAccess());
}
项目:bromium    文件:BromiumParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:bromium    文件:BromiumParser.java   
@Override
protected InternalBromiumParser createParser(XtextTokenStream stream) {
    return new InternalBromiumParser(stream, getGrammarAccess());
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final EObject entryRulePolicies() throws RecognitionException {
    EObject current = null;

    EObject iv_rulePolicies = null;



        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:304:2: (iv_rulePolicies= rulePolicies EOF )
        // InternalDSLPolicies.g:305:2: iv_rulePolicies= rulePolicies EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getPoliciesRule()); 
        }
        pushFollow(FOLLOW_1);
        iv_rulePolicies=rulePolicies();

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

        }

    }

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

            myHiddenTokenState.restore();

    }
    return current;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final EObject entryRulePathGeneratorStopCondition() throws RecognitionException {
    EObject current = null;

    EObject iv_rulePathGeneratorStopCondition = null;



        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:444:2: (iv_rulePathGeneratorStopCondition= rulePathGeneratorStopCondition EOF )
        // InternalDSLPolicies.g:445:2: iv_rulePathGeneratorStopCondition= rulePathGeneratorStopCondition EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getPathGeneratorStopConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        iv_rulePathGeneratorStopCondition=rulePathGeneratorStopCondition();

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

        }

    }

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

            myHiddenTokenState.restore();

    }
    return current;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final EObject entryRuleStringCondition() throws RecognitionException {
    EObject current = null;

    EObject iv_ruleStringCondition = null;



        HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:1183:2: (iv_ruleStringCondition= ruleStringCondition EOF )
        // InternalDSLPolicies.g:1184:2: iv_ruleStringCondition= ruleStringCondition EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getStringConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        iv_ruleStringCondition=ruleStringCondition();

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

        }

    }

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

            myHiddenTokenState.restore();

    }
    return current;
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final String entryRuleNumber() throws RecognitionException {
    String current = null;

    AntlrDatatypeRuleToken iv_ruleNumber = null;



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

    try {
        // InternalDSLPolicies.g:6707:2: (iv_ruleNumber= ruleNumber EOF )
        // InternalDSLPolicies.g:6708:2: iv_ruleNumber= ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           newCompositeNode(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_1);
        iv_ruleNumber=ruleNumber();

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

        }

    }

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

            myHiddenTokenState.restore();

    }
    return current;
}
项目:gw4e.project    文件:DSLPoliciesParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:gw4e.project    文件:DSLPoliciesParser.java   
@Override
protected InternalDSLPoliciesParser createParser(XtextTokenStream stream) {
    return new InternalDSLPoliciesParser(stream, getGrammarAccess());
}
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void rulePolicies() throws RecognitionException {

                HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
                int stackSize = keepStackSize();

        try {
            // InternalDSLPolicies.g:199:2: ( ( ( rule__Policies__Alternatives ) ) )
            // InternalDSLPolicies.g:200:2: ( ( rule__Policies__Alternatives ) )
            {
            // InternalDSLPolicies.g:200:2: ( ( rule__Policies__Alternatives ) )
            // InternalDSLPolicies.g:201:3: ( rule__Policies__Alternatives )
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getPoliciesAccess().getAlternatives()); 
            }
            // InternalDSLPolicies.g:202:3: ( rule__Policies__Alternatives )
            // InternalDSLPolicies.g:202:4: rule__Policies__Alternatives
            {
            pushFollow(FOLLOW_2);
            rule__Policies__Alternatives();

            state._fsp--;
            if (state.failed) return ;

            }

            if ( state.backtracking==0 ) {
               after(grammarAccess.getPoliciesAccess().getAlternatives()); 
            }

            }


            }

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

                restoreStackSize(stackSize);
                myHiddenTokenState.restore();

        }
        return ;
    }
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void rulePathGeneratorStopCondition() throws RecognitionException {

                HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
                int stackSize = keepStackSize();

        try {
            // InternalDSLPolicies.g:232:2: ( ( ( rule__PathGeneratorStopCondition__Group__0 ) ) )
            // InternalDSLPolicies.g:233:2: ( ( rule__PathGeneratorStopCondition__Group__0 ) )
            {
            // InternalDSLPolicies.g:233:2: ( ( rule__PathGeneratorStopCondition__Group__0 ) )
            // InternalDSLPolicies.g:234:3: ( rule__PathGeneratorStopCondition__Group__0 )
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getPathGeneratorStopConditionAccess().getGroup()); 
            }
            // InternalDSLPolicies.g:235:3: ( rule__PathGeneratorStopCondition__Group__0 )
            // InternalDSLPolicies.g:235:4: rule__PathGeneratorStopCondition__Group__0
            {
            pushFollow(FOLLOW_2);
            rule__PathGeneratorStopCondition__Group__0();

            state._fsp--;
            if (state.failed) return ;

            }

            if ( state.backtracking==0 ) {
               after(grammarAccess.getPathGeneratorStopConditionAccess().getGroup()); 
            }

            }


            }

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

                restoreStackSize(stackSize);
                myHiddenTokenState.restore();

        }
        return ;
    }
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void ruleStringCondition() throws RecognitionException {

                HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
                int stackSize = keepStackSize();

        try {
            // InternalDSLPolicies.g:340:2: ( ( ( rule__StringCondition__Alternatives ) ) )
            // InternalDSLPolicies.g:341:2: ( ( rule__StringCondition__Alternatives ) )
            {
            // InternalDSLPolicies.g:341:2: ( ( rule__StringCondition__Alternatives ) )
            // InternalDSLPolicies.g:342:3: ( rule__StringCondition__Alternatives )
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getStringConditionAccess().getAlternatives()); 
            }
            // InternalDSLPolicies.g:343:3: ( rule__StringCondition__Alternatives )
            // InternalDSLPolicies.g:343:4: rule__StringCondition__Alternatives
            {
            pushFollow(FOLLOW_2);
            rule__StringCondition__Alternatives();

            state._fsp--;
            if (state.failed) return ;

            }

            if ( state.backtracking==0 ) {
               after(grammarAccess.getStringConditionAccess().getAlternatives()); 
            }

            }


            }

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

                restoreStackSize(stackSize);
                myHiddenTokenState.restore();

        }
        return ;
    }
项目:gw4e.project    文件:InternalDSLPoliciesParser.java   
public final void ruleNumber() throws RecognitionException {

                HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
                int stackSize = keepStackSize();

        try {
            // InternalDSLPolicies.g:1923:2: ( ( ( rule__Number__Alternatives ) ) )
            // InternalDSLPolicies.g:1924:2: ( ( rule__Number__Alternatives ) )
            {
            // InternalDSLPolicies.g:1924:2: ( ( rule__Number__Alternatives ) )
            // InternalDSLPolicies.g:1925:3: ( rule__Number__Alternatives )
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberAccess().getAlternatives()); 
            }
            // InternalDSLPolicies.g:1926:3: ( rule__Number__Alternatives )
            // InternalDSLPolicies.g:1926:4: rule__Number__Alternatives
            {
            pushFollow(FOLLOW_2);
            rule__Number__Alternatives();

            state._fsp--;
            if (state.failed) return ;

            }

            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberAccess().getAlternatives()); 
            }

            }


            }

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

                restoreStackSize(stackSize);
                myHiddenTokenState.restore();

        }
        return ;
    }
项目:lcdsl    文件:LcDslParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}
项目:lcdsl    文件:LcDslParser.java   
@Override
protected InternalLcDslParser createParser(XtextTokenStream stream) {
    return new InternalLcDslParser(stream, getGrammarAccess());
}
项目:Saturn    文件:KronusParser.java   
@Override
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
    tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
}