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]); }
/** * @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()); }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
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 ; }
@Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); }
@Override protected InternalPkmntcgoParser createParser(XtextTokenStream stream) { return new InternalPkmntcgoParser(stream, getGrammarAccess()); }
@Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_EOL"); }
@Override protected InternalTypesParser createParser(XtextTokenStream stream) { return new InternalTypesParser(stream, getGrammarAccess()); }
@Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens(); }
@Override protected InternalRegularExpressionParser createParser(XtextTokenStream stream) { return new InternalRegularExpressionParser(stream, getGrammarAccess()); }
@Override protected InternalN4JSParser createParser(XtextTokenStream stream) { return new InternalN4JSParser(stream, getGrammarAccess()); }
@Override protected InternalN4MFParser createParser(XtextTokenStream stream) { return new InternalN4MFParser(stream, getGrammarAccess()); }
@Override protected org.ioicompanies.lang.parser.antlr.internal.InternalIOIParser createParser(XtextTokenStream stream) { return new org.ioicompanies.lang.parser.antlr.internal.InternalIOIParser(stream, getGrammarAccess()); }
@Override protected InternalMyDslParser createParser(XtextTokenStream stream) { return new InternalMyDslParser(stream, getGrammarAccess()); }
@Override protected InternalBromiumParser createParser(XtextTokenStream stream) { return new InternalBromiumParser(stream, getGrammarAccess()); }
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; }
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; }
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; }
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; }
@Override protected InternalDSLPoliciesParser createParser(XtextTokenStream stream) { return new InternalDSLPoliciesParser(stream, getGrammarAccess()); }
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 ; }
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 ; }
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 ; }
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 ; }
@Override protected InternalLcDslParser createParser(XtextTokenStream stream) { return new InternalLcDslParser(stream, getGrammarAccess()); }