| package org.eclipse.osbp.xtext.functionlibrarydsl.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.osbp.xtext.functionlibrarydsl.services.FunctionLibraryDslGrammarAccess; |
| |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| import java.util.Map; |
| import java.util.HashMap; |
| /** |
| * |
| * Copyright (c) 2011, 2017 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| @SuppressWarnings("all") |
| public class InternalFunctionLibraryDslParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_HEX", "RULE_INT", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'group'", "'blip-group'", "'statemachine'", "'validation'", "'dialog'", "'action'", "'converter'", "'model-datatype'", "'presentation-datatype'", "'to-model'", "'to-presentation'", "'rating'", "'function'", "'('", "','", "')'", "'returns'", "'test'", "'rate'", "'guard'", "'operation'", "'validate'", "'hook'", "'execute'", "'canExecute'", "'import'", "'static'", "'extension'", "'*'", "'ns'", "';'", "'@'", "'='", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'-'", "'**'", "'/'", "'%'", "'!'", "'as'", "'++'", "'--'", "'.'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'default'", "'case'", "'for'", "'while'", "'do'", "'var'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'" |
| }; |
| public static final int RULE_HEX=6; |
| public static final int T__50=50; |
| public static final int T__59=59; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__52=52; |
| public static final int T__53=53; |
| public static final int T__54=54; |
| public static final int T__60=60; |
| public static final int T__61=61; |
| public static final int RULE_ID=4; |
| public static final int RULE_INT=7; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__67=67; |
| public static final int T__68=68; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__63=63; |
| public static final int T__64=64; |
| public static final int T__65=65; |
| public static final int T__37=37; |
| public static final int T__38=38; |
| public static final int T__39=39; |
| public static final int T__33=33; |
| public static final int T__34=34; |
| public static final int T__35=35; |
| public static final int T__36=36; |
| public static final int T__30=30; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__41=41; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| public static final int T__91=91; |
| public static final int T__100=100; |
| public static final int T__92=92; |
| public static final int T__93=93; |
| public static final int T__102=102; |
| public static final int T__94=94; |
| public static final int T__101=101; |
| public static final int T__90=90; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__99=99; |
| public static final int T__13=13; |
| public static final int T__14=14; |
| public static final int T__95=95; |
| public static final int T__96=96; |
| public static final int T__97=97; |
| public static final int T__98=98; |
| public static final int RULE_DECIMAL=8; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=5; |
| public static final int RULE_SL_COMMENT=10; |
| public static final int T__77=77; |
| public static final int T__78=78; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int EOF=-1; |
| public static final int T__74=74; |
| public static final int T__75=75; |
| public static final int T__76=76; |
| public static final int T__80=80; |
| public static final int T__111=111; |
| public static final int T__81=81; |
| public static final int T__110=110; |
| public static final int T__82=82; |
| public static final int T__83=83; |
| public static final int RULE_WS=11; |
| public static final int RULE_ANY_OTHER=12; |
| public static final int T__88=88; |
| public static final int T__108=108; |
| public static final int T__89=89; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__84=84; |
| public static final int T__104=104; |
| public static final int T__85=85; |
| public static final int T__103=103; |
| public static final int T__86=86; |
| public static final int T__106=106; |
| public static final int T__87=87; |
| public static final int T__105=105; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalFunctionLibraryDslParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalFunctionLibraryDslParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalFunctionLibraryDslParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalFunctionLibraryDsl.g"; } |
| |
| |
| |
| private FunctionLibraryDslGrammarAccess grammarAccess; |
| |
| public InternalFunctionLibraryDslParser(TokenStream input, FunctionLibraryDslGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "FunctionLibraryModel"; |
| } |
| |
| @Override |
| protected FunctionLibraryDslGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryModel" |
| // InternalFunctionLibraryDsl.g:79:1: entryRuleFunctionLibraryModel returns [EObject current=null] : iv_ruleFunctionLibraryModel= ruleFunctionLibraryModel EOF ; |
| public final EObject entryRuleFunctionLibraryModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryModel = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:79:61: (iv_ruleFunctionLibraryModel= ruleFunctionLibraryModel EOF ) |
| // InternalFunctionLibraryDsl.g:80:2: iv_ruleFunctionLibraryModel= ruleFunctionLibraryModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryModel=ruleFunctionLibraryModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryModel" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryModel" |
| // InternalFunctionLibraryDsl.g:86:1: ruleFunctionLibraryModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) ) ; |
| public final EObject ruleFunctionLibraryModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_pckg_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:92:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) ) ) |
| // InternalFunctionLibraryDsl.g:93:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:93:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) ) |
| // InternalFunctionLibraryDsl.g:94:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) |
| { |
| // InternalFunctionLibraryDsl.g:94:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==41) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:95:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalFunctionLibraryDsl.g:95:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalFunctionLibraryDsl.g:96:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryModelAccess().getImportSectionXImportSectionParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_importSection_0_0=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:113:3: ( (lv_pckg_1_0= ruleFunctionLibraryPackage ) ) |
| // InternalFunctionLibraryDsl.g:114:4: (lv_pckg_1_0= ruleFunctionLibraryPackage ) |
| { |
| // InternalFunctionLibraryDsl.g:114:4: (lv_pckg_1_0= ruleFunctionLibraryPackage ) |
| // InternalFunctionLibraryDsl.g:115:5: lv_pckg_1_0= ruleFunctionLibraryPackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryModelAccess().getPckgFunctionLibraryPackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_pckg_1_0=ruleFunctionLibraryPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryModelRule()); |
| } |
| set( |
| current, |
| "pckg", |
| lv_pckg_1_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryPackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryModel" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryPackage" |
| // InternalFunctionLibraryDsl.g:136:1: entryRuleFunctionLibraryPackage returns [EObject current=null] : iv_ruleFunctionLibraryPackage= ruleFunctionLibraryPackage EOF ; |
| public final EObject entryRuleFunctionLibraryPackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryPackage = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:136:63: (iv_ruleFunctionLibraryPackage= ruleFunctionLibraryPackage EOF ) |
| // InternalFunctionLibraryDsl.g:137:2: iv_ruleFunctionLibraryPackage= ruleFunctionLibraryPackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryPackage=ruleFunctionLibraryPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryPackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryPackage" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryPackage" |
| // InternalFunctionLibraryDsl.g:143:1: ruleFunctionLibraryPackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= '{' ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* otherlv_6= '}' ) ; |
| public final EObject ruleFunctionLibraryPackage() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_groups_4_1 = null; |
| |
| EObject lv_groups_4_2 = null; |
| |
| EObject lv_groups_4_3 = null; |
| |
| EObject lv_groups_4_4 = null; |
| |
| EObject lv_groups_4_5 = null; |
| |
| EObject lv_groups_4_6 = null; |
| |
| EObject lv_groups_4_7 = null; |
| |
| EObject lv_ratings_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:149:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= '{' ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* otherlv_6= '}' ) ) |
| // InternalFunctionLibraryDsl.g:150:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= '{' ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* otherlv_6= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:150:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= '{' ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* otherlv_6= '}' ) |
| // InternalFunctionLibraryDsl.g:151:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= '{' ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* otherlv_6= '}' |
| { |
| // InternalFunctionLibraryDsl.g:151:3: () |
| // InternalFunctionLibraryDsl.g:152:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getFunctionLibraryPackageAccess().getFunctionLibraryPackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getFunctionLibraryPackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:162:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:163:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:163:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:164:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getNameQualifiedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_2_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryPackageAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:185:3: ( ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) | ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) )* |
| loop3: |
| do { |
| int alt3=3; |
| int LA3_0 = input.LA(1); |
| |
| if ( ((LA3_0>=16 && LA3_0<=22)) ) { |
| alt3=1; |
| } |
| else if ( (LA3_0==27) ) { |
| alt3=2; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:186:4: ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:186:4: ( ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) ) |
| // InternalFunctionLibraryDsl.g:187:5: ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) |
| { |
| // InternalFunctionLibraryDsl.g:187:5: ( (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) ) |
| // InternalFunctionLibraryDsl.g:188:6: (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) |
| { |
| // InternalFunctionLibraryDsl.g:188:6: (lv_groups_4_1= ruleFunctionLibraryGroup | lv_groups_4_2= ruleFunctionLibraryBlipGroup | lv_groups_4_3= ruleFunctionLibraryConverterGroup | lv_groups_4_4= ruleFunctionLibraryStatemachineGroup | lv_groups_4_5= ruleFunctionLibraryActionGroup | lv_groups_4_6= ruleFunctionLibraryValidationGroup | lv_groups_4_7= ruleFunctionLibraryDialogGroup ) |
| int alt2=7; |
| switch ( input.LA(1) ) { |
| case 16: |
| { |
| alt2=1; |
| } |
| break; |
| case 17: |
| { |
| alt2=2; |
| } |
| break; |
| case 22: |
| { |
| alt2=3; |
| } |
| break; |
| case 18: |
| { |
| alt2=4; |
| } |
| break; |
| case 21: |
| { |
| alt2=5; |
| } |
| break; |
| case 19: |
| { |
| alt2=6; |
| } |
| break; |
| case 20: |
| { |
| alt2=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 2, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt2) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:189:7: lv_groups_4_1= ruleFunctionLibraryGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryGroupParserRuleCall_4_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_1=ruleFunctionLibraryGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_1, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:205:7: lv_groups_4_2= ruleFunctionLibraryBlipGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryBlipGroupParserRuleCall_4_0_0_1()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_2=ruleFunctionLibraryBlipGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_2, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryBlipGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:221:7: lv_groups_4_3= ruleFunctionLibraryConverterGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryConverterGroupParserRuleCall_4_0_0_2()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_3=ruleFunctionLibraryConverterGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_3, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryConverterGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:237:7: lv_groups_4_4= ruleFunctionLibraryStatemachineGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryStatemachineGroupParserRuleCall_4_0_0_3()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_4=ruleFunctionLibraryStatemachineGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_4, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryStatemachineGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:253:7: lv_groups_4_5= ruleFunctionLibraryActionGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryActionGroupParserRuleCall_4_0_0_4()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_5=ruleFunctionLibraryActionGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_5, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryActionGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalFunctionLibraryDsl.g:269:7: lv_groups_4_6= ruleFunctionLibraryValidationGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryValidationGroupParserRuleCall_4_0_0_5()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_6=ruleFunctionLibraryValidationGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_6, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryValidationGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalFunctionLibraryDsl.g:285:7: lv_groups_4_7= ruleFunctionLibraryDialogGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getGroupsFunctionLibraryDialogGroupParserRuleCall_4_0_0_6()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_7=ruleFunctionLibraryDialogGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_7, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryDialogGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:304:4: ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) |
| { |
| // InternalFunctionLibraryDsl.g:304:4: ( (lv_ratings_5_0= ruleFunctionLibraryRating ) ) |
| // InternalFunctionLibraryDsl.g:305:5: (lv_ratings_5_0= ruleFunctionLibraryRating ) |
| { |
| // InternalFunctionLibraryDsl.g:305:5: (lv_ratings_5_0= ruleFunctionLibraryRating ) |
| // InternalFunctionLibraryDsl.g:306:6: lv_ratings_5_0= ruleFunctionLibraryRating |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryPackageAccess().getRatingsFunctionLibraryRatingParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_ratings_5_0=ruleFunctionLibraryRating(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryPackageRule()); |
| } |
| add( |
| current, |
| "ratings", |
| lv_ratings_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRating"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryPackageAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryPackage" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryGroup" |
| // InternalFunctionLibraryDsl.g:332:1: entryRuleFunctionLibraryGroup returns [EObject current=null] : iv_ruleFunctionLibraryGroup= ruleFunctionLibraryGroup EOF ; |
| public final EObject entryRuleFunctionLibraryGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:332:61: (iv_ruleFunctionLibraryGroup= ruleFunctionLibraryGroup EOF ) |
| // InternalFunctionLibraryDsl.g:333:2: iv_ruleFunctionLibraryGroup= ruleFunctionLibraryGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryGroup=ruleFunctionLibraryGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryGroup" |
| // InternalFunctionLibraryDsl.g:339:1: ruleFunctionLibraryGroup returns [EObject current=null] : (otherlv_0= 'group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) ; |
| public final EObject ruleFunctionLibraryGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_functions_3_0 = null; |
| |
| EObject lv_tests_4_0 = null; |
| |
| EObject lv_rates_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:345:2: ( (otherlv_0= 'group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) ) |
| // InternalFunctionLibraryDsl.g:346:2: (otherlv_0= 'group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:346:2: (otherlv_0= 'group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) |
| // InternalFunctionLibraryDsl.g:347:3: otherlv_0= 'group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' |
| { |
| otherlv_0=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryGroupAccess().getGroupKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:351:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:352:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:352:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:353:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:374:3: ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* |
| loop4: |
| do { |
| int alt4=4; |
| switch ( input.LA(1) ) { |
| case 28: |
| { |
| alt4=1; |
| } |
| break; |
| case 33: |
| { |
| alt4=2; |
| } |
| break; |
| case 34: |
| { |
| alt4=3; |
| } |
| break; |
| |
| } |
| |
| switch (alt4) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:375:4: ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) |
| { |
| // InternalFunctionLibraryDsl.g:375:4: ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) |
| // InternalFunctionLibraryDsl.g:376:5: (lv_functions_3_0= ruleFunctionLibraryFunction ) |
| { |
| // InternalFunctionLibraryDsl.g:376:5: (lv_functions_3_0= ruleFunctionLibraryFunction ) |
| // InternalFunctionLibraryDsl.g:377:6: lv_functions_3_0= ruleFunctionLibraryFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_functions_3_0=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| current, |
| "functions", |
| lv_functions_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:395:4: ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) |
| { |
| // InternalFunctionLibraryDsl.g:395:4: ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) |
| // InternalFunctionLibraryDsl.g:396:5: (lv_tests_4_0= ruleFunctionLibraryTest ) |
| { |
| // InternalFunctionLibraryDsl.g:396:5: (lv_tests_4_0= ruleFunctionLibraryTest ) |
| // InternalFunctionLibraryDsl.g:397:6: lv_tests_4_0= ruleFunctionLibraryTest |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getTestsFunctionLibraryTestParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_tests_4_0=ruleFunctionLibraryTest(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| current, |
| "tests", |
| lv_tests_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryTest"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:415:4: ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) |
| { |
| // InternalFunctionLibraryDsl.g:415:4: ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) |
| // InternalFunctionLibraryDsl.g:416:5: (lv_rates_5_0= ruleFunctionLibraryRate ) |
| { |
| // InternalFunctionLibraryDsl.g:416:5: (lv_rates_5_0= ruleFunctionLibraryRate ) |
| // InternalFunctionLibraryDsl.g:417:6: lv_rates_5_0= ruleFunctionLibraryRate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGroupAccess().getRatesFunctionLibraryRateParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_rates_5_0=ruleFunctionLibraryRate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGroupRule()); |
| } |
| add( |
| current, |
| "rates", |
| lv_rates_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRate"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop4; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryBlipGroup" |
| // InternalFunctionLibraryDsl.g:443:1: entryRuleFunctionLibraryBlipGroup returns [EObject current=null] : iv_ruleFunctionLibraryBlipGroup= ruleFunctionLibraryBlipGroup EOF ; |
| public final EObject entryRuleFunctionLibraryBlipGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryBlipGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:443:65: (iv_ruleFunctionLibraryBlipGroup= ruleFunctionLibraryBlipGroup EOF ) |
| // InternalFunctionLibraryDsl.g:444:2: iv_ruleFunctionLibraryBlipGroup= ruleFunctionLibraryBlipGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryBlipGroup=ruleFunctionLibraryBlipGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryBlipGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryBlipGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryBlipGroup" |
| // InternalFunctionLibraryDsl.g:450:1: ruleFunctionLibraryBlipGroup returns [EObject current=null] : (otherlv_0= 'blip-group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) ; |
| public final EObject ruleFunctionLibraryBlipGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_functions_3_0 = null; |
| |
| EObject lv_tests_4_0 = null; |
| |
| EObject lv_rates_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:456:2: ( (otherlv_0= 'blip-group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) ) |
| // InternalFunctionLibraryDsl.g:457:2: (otherlv_0= 'blip-group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:457:2: (otherlv_0= 'blip-group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' ) |
| // InternalFunctionLibraryDsl.g:458:3: otherlv_0= 'blip-group' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* otherlv_6= '}' |
| { |
| otherlv_0=(Token)match(input,17,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryBlipGroupAccess().getBlipGroupKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:462:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:463:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:463:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:464:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryBlipGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:485:3: ( ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) | ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) | ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) )* |
| loop5: |
| do { |
| int alt5=4; |
| switch ( input.LA(1) ) { |
| case 28: |
| { |
| alt5=1; |
| } |
| break; |
| case 33: |
| { |
| alt5=2; |
| } |
| break; |
| case 34: |
| { |
| alt5=3; |
| } |
| break; |
| |
| } |
| |
| switch (alt5) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:486:4: ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) |
| { |
| // InternalFunctionLibraryDsl.g:486:4: ( (lv_functions_3_0= ruleFunctionLibraryFunction ) ) |
| // InternalFunctionLibraryDsl.g:487:5: (lv_functions_3_0= ruleFunctionLibraryFunction ) |
| { |
| // InternalFunctionLibraryDsl.g:487:5: (lv_functions_3_0= ruleFunctionLibraryFunction ) |
| // InternalFunctionLibraryDsl.g:488:6: lv_functions_3_0= ruleFunctionLibraryFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_functions_3_0=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| current, |
| "functions", |
| lv_functions_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:506:4: ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) |
| { |
| // InternalFunctionLibraryDsl.g:506:4: ( (lv_tests_4_0= ruleFunctionLibraryTest ) ) |
| // InternalFunctionLibraryDsl.g:507:5: (lv_tests_4_0= ruleFunctionLibraryTest ) |
| { |
| // InternalFunctionLibraryDsl.g:507:5: (lv_tests_4_0= ruleFunctionLibraryTest ) |
| // InternalFunctionLibraryDsl.g:508:6: lv_tests_4_0= ruleFunctionLibraryTest |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getTestsFunctionLibraryTestParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_tests_4_0=ruleFunctionLibraryTest(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| current, |
| "tests", |
| lv_tests_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryTest"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:526:4: ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) |
| { |
| // InternalFunctionLibraryDsl.g:526:4: ( (lv_rates_5_0= ruleFunctionLibraryRate ) ) |
| // InternalFunctionLibraryDsl.g:527:5: (lv_rates_5_0= ruleFunctionLibraryRate ) |
| { |
| // InternalFunctionLibraryDsl.g:527:5: (lv_rates_5_0= ruleFunctionLibraryRate ) |
| // InternalFunctionLibraryDsl.g:528:6: lv_rates_5_0= ruleFunctionLibraryRate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryBlipGroupAccess().getRatesFunctionLibraryRateParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_rates_5_0=ruleFunctionLibraryRate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryBlipGroupRule()); |
| } |
| add( |
| current, |
| "rates", |
| lv_rates_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRate"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop5; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryBlipGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryBlipGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryStatemachineGroup" |
| // InternalFunctionLibraryDsl.g:554:1: entryRuleFunctionLibraryStatemachineGroup returns [EObject current=null] : iv_ruleFunctionLibraryStatemachineGroup= ruleFunctionLibraryStatemachineGroup EOF ; |
| public final EObject entryRuleFunctionLibraryStatemachineGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryStatemachineGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:554:73: (iv_ruleFunctionLibraryStatemachineGroup= ruleFunctionLibraryStatemachineGroup EOF ) |
| // InternalFunctionLibraryDsl.g:555:2: iv_ruleFunctionLibraryStatemachineGroup= ruleFunctionLibraryStatemachineGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryStatemachineGroup=ruleFunctionLibraryStatemachineGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryStatemachineGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryStatemachineGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryStatemachineGroup" |
| // InternalFunctionLibraryDsl.g:561:1: ruleFunctionLibraryStatemachineGroup returns [EObject current=null] : (otherlv_0= 'statemachine' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* otherlv_6= '}' ) ; |
| public final EObject ruleFunctionLibraryStatemachineGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_operations_3_0 = null; |
| |
| EObject lv_guards_4_0 = null; |
| |
| EObject lv_functions_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:567:2: ( (otherlv_0= 'statemachine' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* otherlv_6= '}' ) ) |
| // InternalFunctionLibraryDsl.g:568:2: (otherlv_0= 'statemachine' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* otherlv_6= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:568:2: (otherlv_0= 'statemachine' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* otherlv_6= '}' ) |
| // InternalFunctionLibraryDsl.g:569:3: otherlv_0= 'statemachine' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* otherlv_6= '}' |
| { |
| otherlv_0=(Token)match(input,18,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getStatemachineKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:573:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:574:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:574:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:575:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:596:3: ( ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) | ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) | ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) )* |
| loop6: |
| do { |
| int alt6=4; |
| switch ( input.LA(1) ) { |
| case 36: |
| { |
| alt6=1; |
| } |
| break; |
| case 35: |
| { |
| alt6=2; |
| } |
| break; |
| case 28: |
| { |
| alt6=3; |
| } |
| break; |
| |
| } |
| |
| switch (alt6) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:597:4: ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) |
| { |
| // InternalFunctionLibraryDsl.g:597:4: ( (lv_operations_3_0= ruleFunctionLibraryOperation ) ) |
| // InternalFunctionLibraryDsl.g:598:5: (lv_operations_3_0= ruleFunctionLibraryOperation ) |
| { |
| // InternalFunctionLibraryDsl.g:598:5: (lv_operations_3_0= ruleFunctionLibraryOperation ) |
| // InternalFunctionLibraryDsl.g:599:6: lv_operations_3_0= ruleFunctionLibraryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getOperationsFunctionLibraryOperationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_operations_3_0=ruleFunctionLibraryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| current, |
| "operations", |
| lv_operations_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:617:4: ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) |
| { |
| // InternalFunctionLibraryDsl.g:617:4: ( (lv_guards_4_0= ruleFunctionLibraryGuard ) ) |
| // InternalFunctionLibraryDsl.g:618:5: (lv_guards_4_0= ruleFunctionLibraryGuard ) |
| { |
| // InternalFunctionLibraryDsl.g:618:5: (lv_guards_4_0= ruleFunctionLibraryGuard ) |
| // InternalFunctionLibraryDsl.g:619:6: lv_guards_4_0= ruleFunctionLibraryGuard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getGuardsFunctionLibraryGuardParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_guards_4_0=ruleFunctionLibraryGuard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| current, |
| "guards", |
| lv_guards_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryGuard"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:637:4: ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) |
| { |
| // InternalFunctionLibraryDsl.g:637:4: ( (lv_functions_5_0= ruleFunctionLibraryFunction ) ) |
| // InternalFunctionLibraryDsl.g:638:5: (lv_functions_5_0= ruleFunctionLibraryFunction ) |
| { |
| // InternalFunctionLibraryDsl.g:638:5: (lv_functions_5_0= ruleFunctionLibraryFunction ) |
| // InternalFunctionLibraryDsl.g:639:6: lv_functions_5_0= ruleFunctionLibraryFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryStatemachineGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_functions_5_0=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryStatemachineGroupRule()); |
| } |
| add( |
| current, |
| "functions", |
| lv_functions_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop6; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryStatemachineGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryStatemachineGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryValidationGroup" |
| // InternalFunctionLibraryDsl.g:665:1: entryRuleFunctionLibraryValidationGroup returns [EObject current=null] : iv_ruleFunctionLibraryValidationGroup= ruleFunctionLibraryValidationGroup EOF ; |
| public final EObject entryRuleFunctionLibraryValidationGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryValidationGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:665:71: (iv_ruleFunctionLibraryValidationGroup= ruleFunctionLibraryValidationGroup EOF ) |
| // InternalFunctionLibraryDsl.g:666:2: iv_ruleFunctionLibraryValidationGroup= ruleFunctionLibraryValidationGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryValidationGroup=ruleFunctionLibraryValidationGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryValidationGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryValidationGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryValidationGroup" |
| // InternalFunctionLibraryDsl.g:672:1: ruleFunctionLibraryValidationGroup returns [EObject current=null] : (otherlv_0= 'validation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) ; |
| public final EObject ruleFunctionLibraryValidationGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_validators_3_0 = null; |
| |
| EObject lv_functions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:678:2: ( (otherlv_0= 'validation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) ) |
| // InternalFunctionLibraryDsl.g:679:2: (otherlv_0= 'validation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:679:2: (otherlv_0= 'validation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) |
| // InternalFunctionLibraryDsl.g:680:3: otherlv_0= 'validation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' |
| { |
| otherlv_0=(Token)match(input,19,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryValidationGroupAccess().getValidationKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:684:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:685:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:685:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:686:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryValidationGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:707:3: ( ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* |
| loop7: |
| do { |
| int alt7=3; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==37) ) { |
| alt7=1; |
| } |
| else if ( (LA7_0==28) ) { |
| alt7=2; |
| } |
| |
| |
| switch (alt7) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:708:4: ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) |
| { |
| // InternalFunctionLibraryDsl.g:708:4: ( (lv_validators_3_0= ruleFunctionLibraryValidation ) ) |
| // InternalFunctionLibraryDsl.g:709:5: (lv_validators_3_0= ruleFunctionLibraryValidation ) |
| { |
| // InternalFunctionLibraryDsl.g:709:5: (lv_validators_3_0= ruleFunctionLibraryValidation ) |
| // InternalFunctionLibraryDsl.g:710:6: lv_validators_3_0= ruleFunctionLibraryValidation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationGroupAccess().getValidatorsFunctionLibraryValidationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_validators_3_0=ruleFunctionLibraryValidation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationGroupRule()); |
| } |
| add( |
| current, |
| "validators", |
| lv_validators_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryValidation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:728:4: ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) |
| { |
| // InternalFunctionLibraryDsl.g:728:4: ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) |
| // InternalFunctionLibraryDsl.g:729:5: (lv_functions_4_0= ruleFunctionLibraryFunction ) |
| { |
| // InternalFunctionLibraryDsl.g:729:5: (lv_functions_4_0= ruleFunctionLibraryFunction ) |
| // InternalFunctionLibraryDsl.g:730:6: lv_functions_4_0= ruleFunctionLibraryFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_functions_4_0=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationGroupRule()); |
| } |
| add( |
| current, |
| "functions", |
| lv_functions_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop7; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryValidationGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryValidationGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryDialogGroup" |
| // InternalFunctionLibraryDsl.g:756:1: entryRuleFunctionLibraryDialogGroup returns [EObject current=null] : iv_ruleFunctionLibraryDialogGroup= ruleFunctionLibraryDialogGroup EOF ; |
| public final EObject entryRuleFunctionLibraryDialogGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryDialogGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:756:67: (iv_ruleFunctionLibraryDialogGroup= ruleFunctionLibraryDialogGroup EOF ) |
| // InternalFunctionLibraryDsl.g:757:2: iv_ruleFunctionLibraryDialogGroup= ruleFunctionLibraryDialogGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryDialogGroup=ruleFunctionLibraryDialogGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryDialogGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryDialogGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryDialogGroup" |
| // InternalFunctionLibraryDsl.g:763:1: ruleFunctionLibraryDialogGroup returns [EObject current=null] : (otherlv_0= 'dialog' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) ; |
| public final EObject ruleFunctionLibraryDialogGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_dialogHooks_3_0 = null; |
| |
| EObject lv_functions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:769:2: ( (otherlv_0= 'dialog' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) ) |
| // InternalFunctionLibraryDsl.g:770:2: (otherlv_0= 'dialog' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:770:2: (otherlv_0= 'dialog' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' ) |
| // InternalFunctionLibraryDsl.g:771:3: otherlv_0= 'dialog' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* otherlv_5= '}' |
| { |
| otherlv_0=(Token)match(input,20,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryDialogGroupAccess().getDialogKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:775:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:776:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:776:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:777:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryDialogGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:798:3: ( ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) | ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) )* |
| loop8: |
| do { |
| int alt8=3; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==38) ) { |
| alt8=1; |
| } |
| else if ( (LA8_0==28) ) { |
| alt8=2; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:799:4: ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) |
| { |
| // InternalFunctionLibraryDsl.g:799:4: ( (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) ) |
| // InternalFunctionLibraryDsl.g:800:5: (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) |
| { |
| // InternalFunctionLibraryDsl.g:800:5: (lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook ) |
| // InternalFunctionLibraryDsl.g:801:6: lv_dialogHooks_3_0= ruleFunctionLibraryDialogHook |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogGroupAccess().getDialogHooksFunctionLibraryDialogHookParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_10); |
| lv_dialogHooks_3_0=ruleFunctionLibraryDialogHook(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogGroupRule()); |
| } |
| add( |
| current, |
| "dialogHooks", |
| lv_dialogHooks_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryDialogHook"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:819:4: ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) |
| { |
| // InternalFunctionLibraryDsl.g:819:4: ( (lv_functions_4_0= ruleFunctionLibraryFunction ) ) |
| // InternalFunctionLibraryDsl.g:820:5: (lv_functions_4_0= ruleFunctionLibraryFunction ) |
| { |
| // InternalFunctionLibraryDsl.g:820:5: (lv_functions_4_0= ruleFunctionLibraryFunction ) |
| // InternalFunctionLibraryDsl.g:821:6: lv_functions_4_0= ruleFunctionLibraryFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogGroupAccess().getFunctionsFunctionLibraryFunctionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_10); |
| lv_functions_4_0=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogGroupRule()); |
| } |
| add( |
| current, |
| "functions", |
| lv_functions_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryDialogGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryDialogGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryActionGroup" |
| // InternalFunctionLibraryDsl.g:847:1: entryRuleFunctionLibraryActionGroup returns [EObject current=null] : iv_ruleFunctionLibraryActionGroup= ruleFunctionLibraryActionGroup EOF ; |
| public final EObject entryRuleFunctionLibraryActionGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryActionGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:847:67: (iv_ruleFunctionLibraryActionGroup= ruleFunctionLibraryActionGroup EOF ) |
| // InternalFunctionLibraryDsl.g:848:2: iv_ruleFunctionLibraryActionGroup= ruleFunctionLibraryActionGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryActionGroup=ruleFunctionLibraryActionGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryActionGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryActionGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryActionGroup" |
| // InternalFunctionLibraryDsl.g:854:1: ruleFunctionLibraryActionGroup returns [EObject current=null] : (otherlv_0= 'action' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* otherlv_5= '}' ) ; |
| public final EObject ruleFunctionLibraryActionGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_executes_3_0 = null; |
| |
| EObject lv_canExecutes_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:860:2: ( (otherlv_0= 'action' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* otherlv_5= '}' ) ) |
| // InternalFunctionLibraryDsl.g:861:2: (otherlv_0= 'action' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* otherlv_5= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:861:2: (otherlv_0= 'action' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* otherlv_5= '}' ) |
| // InternalFunctionLibraryDsl.g:862:3: otherlv_0= 'action' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* otherlv_5= '}' |
| { |
| otherlv_0=(Token)match(input,21,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryActionGroupAccess().getActionKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:866:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:867:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:867:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:868:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryActionGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:889:3: ( ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) | ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) )* |
| loop9: |
| do { |
| int alt9=3; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==39) ) { |
| alt9=1; |
| } |
| else if ( (LA9_0==40) ) { |
| alt9=2; |
| } |
| |
| |
| switch (alt9) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:890:4: ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) |
| { |
| // InternalFunctionLibraryDsl.g:890:4: ( (lv_executes_3_0= ruleFunctionLibraryExecute ) ) |
| // InternalFunctionLibraryDsl.g:891:5: (lv_executes_3_0= ruleFunctionLibraryExecute ) |
| { |
| // InternalFunctionLibraryDsl.g:891:5: (lv_executes_3_0= ruleFunctionLibraryExecute ) |
| // InternalFunctionLibraryDsl.g:892:6: lv_executes_3_0= ruleFunctionLibraryExecute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getExecutesFunctionLibraryExecuteParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_executes_3_0=ruleFunctionLibraryExecute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| add( |
| current, |
| "executes", |
| lv_executes_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryExecute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:910:4: ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) |
| { |
| // InternalFunctionLibraryDsl.g:910:4: ( (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) ) |
| // InternalFunctionLibraryDsl.g:911:5: (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) |
| { |
| // InternalFunctionLibraryDsl.g:911:5: (lv_canExecutes_4_0= ruleFunctionLibraryCanExecute ) |
| // InternalFunctionLibraryDsl.g:912:6: lv_canExecutes_4_0= ruleFunctionLibraryCanExecute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryActionGroupAccess().getCanExecutesFunctionLibraryCanExecuteParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_canExecutes_4_0=ruleFunctionLibraryCanExecute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryActionGroupRule()); |
| } |
| add( |
| current, |
| "canExecutes", |
| lv_canExecutes_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryCanExecute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop9; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryActionGroupAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryActionGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryConverterGroup" |
| // InternalFunctionLibraryDsl.g:938:1: entryRuleFunctionLibraryConverterGroup returns [EObject current=null] : iv_ruleFunctionLibraryConverterGroup= ruleFunctionLibraryConverterGroup EOF ; |
| public final EObject entryRuleFunctionLibraryConverterGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryConverterGroup = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:938:70: (iv_ruleFunctionLibraryConverterGroup= ruleFunctionLibraryConverterGroup EOF ) |
| // InternalFunctionLibraryDsl.g:939:2: iv_ruleFunctionLibraryConverterGroup= ruleFunctionLibraryConverterGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryConverterGroup=ruleFunctionLibraryConverterGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryConverterGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryConverterGroup" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryConverterGroup" |
| // InternalFunctionLibraryDsl.g:945:1: ruleFunctionLibraryConverterGroup returns [EObject current=null] : (otherlv_0= 'converter' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' otherlv_3= 'model-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) otherlv_5= 'presentation-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) otherlv_9= '}' ) ; |
| public final EObject ruleFunctionLibraryConverterGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_9=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_convertToModel_7_0 = null; |
| |
| EObject lv_convertToPresentation_8_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:951:2: ( (otherlv_0= 'converter' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' otherlv_3= 'model-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) otherlv_5= 'presentation-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) otherlv_9= '}' ) ) |
| // InternalFunctionLibraryDsl.g:952:2: (otherlv_0= 'converter' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' otherlv_3= 'model-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) otherlv_5= 'presentation-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) otherlv_9= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:952:2: (otherlv_0= 'converter' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' otherlv_3= 'model-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) otherlv_5= 'presentation-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) otherlv_9= '}' ) |
| // InternalFunctionLibraryDsl.g:953:3: otherlv_0= 'converter' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '{' otherlv_3= 'model-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) otherlv_5= 'presentation-datatype' ( ( ruleTYPE_CROSS_REFERENCE ) ) ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) otherlv_9= '}' |
| { |
| otherlv_0=(Token)match(input,22,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryConverterGroupAccess().getConverterKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:957:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:958:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:958:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:959:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryConverterGroupAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| otherlv_3=(Token)match(input,23,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryConverterGroupAccess().getModelDatatypeKeyword_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:984:3: ( ( ruleTYPE_CROSS_REFERENCE ) ) |
| // InternalFunctionLibraryDsl.g:985:4: ( ruleTYPE_CROSS_REFERENCE ) |
| { |
| // InternalFunctionLibraryDsl.g:985:4: ( ruleTYPE_CROSS_REFERENCE ) |
| // InternalFunctionLibraryDsl.g:986:5: ruleTYPE_CROSS_REFERENCE |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToModelDatatypeLDataTypeCrossReference_4_0()); |
| |
| } |
| pushFollow(FOLLOW_13); |
| ruleTYPE_CROSS_REFERENCE(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,24,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryConverterGroupAccess().getPresentationDatatypeKeyword_5()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1004:3: ( ( ruleTYPE_CROSS_REFERENCE ) ) |
| // InternalFunctionLibraryDsl.g:1005:4: ( ruleTYPE_CROSS_REFERENCE ) |
| { |
| // InternalFunctionLibraryDsl.g:1005:4: ( ruleTYPE_CROSS_REFERENCE ) |
| // InternalFunctionLibraryDsl.g:1006:5: ruleTYPE_CROSS_REFERENCE |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToPresentationDatatypeLDataTypeCrossReference_6_0()); |
| |
| } |
| pushFollow(FOLLOW_14); |
| ruleTYPE_CROSS_REFERENCE(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1020:3: ( (lv_convertToModel_7_0= ruleFunctionConvertToModel ) ) |
| // InternalFunctionLibraryDsl.g:1021:4: (lv_convertToModel_7_0= ruleFunctionConvertToModel ) |
| { |
| // InternalFunctionLibraryDsl.g:1021:4: (lv_convertToModel_7_0= ruleFunctionConvertToModel ) |
| // InternalFunctionLibraryDsl.g:1022:5: lv_convertToModel_7_0= ruleFunctionConvertToModel |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToModelFunctionConvertToModelParserRuleCall_7_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| lv_convertToModel_7_0=ruleFunctionConvertToModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| current, |
| "convertToModel", |
| lv_convertToModel_7_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionConvertToModel"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1039:3: ( (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) ) |
| // InternalFunctionLibraryDsl.g:1040:4: (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) |
| { |
| // InternalFunctionLibraryDsl.g:1040:4: (lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation ) |
| // InternalFunctionLibraryDsl.g:1041:5: lv_convertToPresentation_8_0= ruleFunctionConvertToPresentation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryConverterGroupAccess().getConvertToPresentationFunctionConvertToPresentationParserRuleCall_8_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_convertToPresentation_8_0=ruleFunctionConvertToPresentation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryConverterGroupRule()); |
| } |
| set( |
| current, |
| "convertToPresentation", |
| lv_convertToPresentation_8_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionConvertToPresentation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getFunctionLibraryConverterGroupAccess().getRightCurlyBracketKeyword_9()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryConverterGroup" |
| |
| |
| // $ANTLR start "entryRuleFunctionConvertToModel" |
| // InternalFunctionLibraryDsl.g:1066:1: entryRuleFunctionConvertToModel returns [EObject current=null] : iv_ruleFunctionConvertToModel= ruleFunctionConvertToModel EOF ; |
| public final EObject entryRuleFunctionConvertToModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionConvertToModel = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1066:63: (iv_ruleFunctionConvertToModel= ruleFunctionConvertToModel EOF ) |
| // InternalFunctionLibraryDsl.g:1067:2: iv_ruleFunctionConvertToModel= ruleFunctionConvertToModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionConvertToModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionConvertToModel=ruleFunctionConvertToModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionConvertToModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionConvertToModel" |
| |
| |
| // $ANTLR start "ruleFunctionConvertToModel" |
| // InternalFunctionLibraryDsl.g:1073:1: ruleFunctionConvertToModel returns [EObject current=null] : (otherlv_0= 'to-model' ( (lv_body_1_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionConvertToModel() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_body_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1079:2: ( (otherlv_0= 'to-model' ( (lv_body_1_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1080:2: (otherlv_0= 'to-model' ( (lv_body_1_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1080:2: (otherlv_0= 'to-model' ( (lv_body_1_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1081:3: otherlv_0= 'to-model' ( (lv_body_1_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionConvertToModelAccess().getToModelKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1085:3: ( (lv_body_1_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1086:4: (lv_body_1_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1086:4: (lv_body_1_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1087:5: lv_body_1_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionConvertToModelAccess().getBodyXBlockExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_1_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionConvertToModelRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionConvertToModel" |
| |
| |
| // $ANTLR start "entryRuleFunctionConvertToPresentation" |
| // InternalFunctionLibraryDsl.g:1108:1: entryRuleFunctionConvertToPresentation returns [EObject current=null] : iv_ruleFunctionConvertToPresentation= ruleFunctionConvertToPresentation EOF ; |
| public final EObject entryRuleFunctionConvertToPresentation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionConvertToPresentation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1108:70: (iv_ruleFunctionConvertToPresentation= ruleFunctionConvertToPresentation EOF ) |
| // InternalFunctionLibraryDsl.g:1109:2: iv_ruleFunctionConvertToPresentation= ruleFunctionConvertToPresentation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionConvertToPresentationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionConvertToPresentation=ruleFunctionConvertToPresentation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionConvertToPresentation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionConvertToPresentation" |
| |
| |
| // $ANTLR start "ruleFunctionConvertToPresentation" |
| // InternalFunctionLibraryDsl.g:1115:1: ruleFunctionConvertToPresentation returns [EObject current=null] : (otherlv_0= 'to-presentation' ( (lv_body_1_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionConvertToPresentation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_body_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1121:2: ( (otherlv_0= 'to-presentation' ( (lv_body_1_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1122:2: (otherlv_0= 'to-presentation' ( (lv_body_1_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1122:2: (otherlv_0= 'to-presentation' ( (lv_body_1_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1123:3: otherlv_0= 'to-presentation' ( (lv_body_1_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,26,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionConvertToPresentationAccess().getToPresentationKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1127:3: ( (lv_body_1_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1128:4: (lv_body_1_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1128:4: (lv_body_1_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1129:5: lv_body_1_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionConvertToPresentationAccess().getBodyXBlockExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_1_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionConvertToPresentationRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionConvertToPresentation" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryRating" |
| // InternalFunctionLibraryDsl.g:1150:1: entryRuleFunctionLibraryRating returns [EObject current=null] : iv_ruleFunctionLibraryRating= ruleFunctionLibraryRating EOF ; |
| public final EObject entryRuleFunctionLibraryRating() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryRating = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1150:62: (iv_ruleFunctionLibraryRating= ruleFunctionLibraryRating EOF ) |
| // InternalFunctionLibraryDsl.g:1151:2: iv_ruleFunctionLibraryRating= ruleFunctionLibraryRating EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryRating=ruleFunctionLibraryRating(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryRating; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryRating" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryRating" |
| // InternalFunctionLibraryDsl.g:1157:1: ruleFunctionLibraryRating returns [EObject current=null] : ( () otherlv_1= 'rating' ( (lv_name_2_0= ruleValidID ) ) otherlv_3= '{' ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* otherlv_5= '}' ) ; |
| public final EObject ruleFunctionLibraryRating() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_items_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1163:2: ( ( () otherlv_1= 'rating' ( (lv_name_2_0= ruleValidID ) ) otherlv_3= '{' ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* otherlv_5= '}' ) ) |
| // InternalFunctionLibraryDsl.g:1164:2: ( () otherlv_1= 'rating' ( (lv_name_2_0= ruleValidID ) ) otherlv_3= '{' ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* otherlv_5= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:1164:2: ( () otherlv_1= 'rating' ( (lv_name_2_0= ruleValidID ) ) otherlv_3= '{' ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* otherlv_5= '}' ) |
| // InternalFunctionLibraryDsl.g:1165:3: () otherlv_1= 'rating' ( (lv_name_2_0= ruleValidID ) ) otherlv_3= '{' ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* otherlv_5= '}' |
| { |
| // InternalFunctionLibraryDsl.g:1165:3: () |
| // InternalFunctionLibraryDsl.g:1166:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getFunctionLibraryRatingAccess().getFunctionLibraryRatingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,27,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getFunctionLibraryRatingAccess().getRatingKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1176:3: ( (lv_name_2_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1177:4: (lv_name_2_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1177:4: (lv_name_2_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1178:5: lv_name_2_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingAccess().getNameValidIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_2_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,14,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getFunctionLibraryRatingAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1199:3: ( (lv_items_4_0= ruleFunctionLibraryRatingItem ) )* |
| loop10: |
| do { |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==RULE_ID) ) { |
| alt10=1; |
| } |
| |
| |
| switch (alt10) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1200:4: (lv_items_4_0= ruleFunctionLibraryRatingItem ) |
| { |
| // InternalFunctionLibraryDsl.g:1200:4: (lv_items_4_0= ruleFunctionLibraryRatingItem ) |
| // InternalFunctionLibraryDsl.g:1201:5: lv_items_4_0= ruleFunctionLibraryRatingItem |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingAccess().getItemsFunctionLibraryRatingItemParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| lv_items_4_0=ruleFunctionLibraryRatingItem(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingRule()); |
| } |
| add( |
| current, |
| "items", |
| lv_items_4_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryRatingItem"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop10; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getFunctionLibraryRatingAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryRating" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryRatingItem" |
| // InternalFunctionLibraryDsl.g:1226:1: entryRuleFunctionLibraryRatingItem returns [EObject current=null] : iv_ruleFunctionLibraryRatingItem= ruleFunctionLibraryRatingItem EOF ; |
| public final EObject entryRuleFunctionLibraryRatingItem() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryRatingItem = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1226:66: (iv_ruleFunctionLibraryRatingItem= ruleFunctionLibraryRatingItem EOF ) |
| // InternalFunctionLibraryDsl.g:1227:2: iv_ruleFunctionLibraryRatingItem= ruleFunctionLibraryRatingItem EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingItemRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryRatingItem=ruleFunctionLibraryRatingItem(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryRatingItem; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryRatingItem" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryRatingItem" |
| // InternalFunctionLibraryDsl.g:1233:1: ruleFunctionLibraryRatingItem returns [EObject current=null] : ( (lv_name_0_0= ruleValidID ) ) ; |
| public final EObject ruleFunctionLibraryRatingItem() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1239:2: ( ( (lv_name_0_0= ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:1240:2: ( (lv_name_0_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1240:2: ( (lv_name_0_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1241:3: (lv_name_0_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1241:3: (lv_name_0_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1242:4: lv_name_0_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRatingItemAccess().getNameValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_0_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRatingItemRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryRatingItem" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryFunction" |
| // InternalFunctionLibraryDsl.g:1262:1: entryRuleFunctionLibraryFunction returns [EObject current=null] : iv_ruleFunctionLibraryFunction= ruleFunctionLibraryFunction EOF ; |
| public final EObject entryRuleFunctionLibraryFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryFunction = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1262:64: (iv_ruleFunctionLibraryFunction= ruleFunctionLibraryFunction EOF ) |
| // InternalFunctionLibraryDsl.g:1263:2: iv_ruleFunctionLibraryFunction= ruleFunctionLibraryFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryFunction=ruleFunctionLibraryFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryFunction" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryFunction" |
| // InternalFunctionLibraryDsl.g:1269:1: ruleFunctionLibraryFunction returns [EObject current=null] : (otherlv_0= 'function' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_oftype_8_0 = null; |
| |
| EObject lv_body_9_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1275:2: ( (otherlv_0= 'function' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1276:2: (otherlv_0= 'function' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1276:2: (otherlv_0= 'function' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1277:3: otherlv_0= 'function' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,28,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryFunctionAccess().getFunctionKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1281:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1282:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1282:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1283:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryFunctionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1304:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==RULE_ID||LA12_0==29||LA12_0==70) ) { |
| alt12=1; |
| } |
| switch (alt12) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1305:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1305:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1306:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1306:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1307:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1324:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop11: |
| do { |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==30) ) { |
| alt11=1; |
| } |
| |
| |
| switch (alt11) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1325:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryFunctionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1329:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1330:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1330:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1331:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop11; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryFunctionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| otherlv_7=(Token)match(input,32,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getFunctionLibraryFunctionAccess().getReturnsKeyword_5()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1358:3: ( (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:1359:4: (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:1359:4: (lv_oftype_8_0= ruleJvmParameterizedTypeReference ) |
| // InternalFunctionLibraryDsl.g:1360:5: lv_oftype_8_0= ruleJvmParameterizedTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getOftypeJvmParameterizedTypeReferenceParserRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_oftype_8_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| current, |
| "oftype", |
| lv_oftype_8_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1377:3: ( (lv_body_9_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1378:4: (lv_body_9_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1378:4: (lv_body_9_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1379:5: lv_body_9_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryFunctionAccess().getBodyXBlockExpressionParserRuleCall_7_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_9_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryFunctionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryFunction" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryTest" |
| // InternalFunctionLibraryDsl.g:1400:1: entryRuleFunctionLibraryTest returns [EObject current=null] : iv_ruleFunctionLibraryTest= ruleFunctionLibraryTest EOF ; |
| public final EObject entryRuleFunctionLibraryTest() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryTest = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1400:60: (iv_ruleFunctionLibraryTest= ruleFunctionLibraryTest EOF ) |
| // InternalFunctionLibraryDsl.g:1401:2: iv_ruleFunctionLibraryTest= ruleFunctionLibraryTest EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryTest=ruleFunctionLibraryTest(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryTest; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryTest" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryTest" |
| // InternalFunctionLibraryDsl.g:1407:1: ruleFunctionLibraryTest returns [EObject current=null] : (otherlv_0= 'test' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryTest() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1413:2: ( (otherlv_0= 'test' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1414:2: (otherlv_0= 'test' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1414:2: (otherlv_0= 'test' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1415:3: otherlv_0= 'test' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,33,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryTestAccess().getTestKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1419:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1420:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1420:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1421:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryTestAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1442:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==RULE_ID||LA14_0==29||LA14_0==70) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1443:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1443:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1444:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1444:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1445:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1462:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop13: |
| do { |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==30) ) { |
| alt13=1; |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1463:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryTestAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1467:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1468:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1468:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1469:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop13; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryTestAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1492:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1493:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1493:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1494:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryTestAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryTestRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryTest" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryRate" |
| // InternalFunctionLibraryDsl.g:1515:1: entryRuleFunctionLibraryRate returns [EObject current=null] : iv_ruleFunctionLibraryRate= ruleFunctionLibraryRate EOF ; |
| public final EObject entryRuleFunctionLibraryRate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryRate = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1515:60: (iv_ruleFunctionLibraryRate= ruleFunctionLibraryRate EOF ) |
| // InternalFunctionLibraryDsl.g:1516:2: iv_ruleFunctionLibraryRate= ruleFunctionLibraryRate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryRate=ruleFunctionLibraryRate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryRate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryRate" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryRate" |
| // InternalFunctionLibraryDsl.g:1522:1: ruleFunctionLibraryRate returns [EObject current=null] : (otherlv_0= 'rate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (otherlv_8= RULE_ID ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryRate() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_9_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1528:2: ( (otherlv_0= 'rate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (otherlv_8= RULE_ID ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1529:2: (otherlv_0= 'rate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (otherlv_8= RULE_ID ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1529:2: (otherlv_0= 'rate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (otherlv_8= RULE_ID ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1530:3: otherlv_0= 'rate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' otherlv_7= 'returns' ( (otherlv_8= RULE_ID ) ) ( (lv_body_9_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryRateAccess().getRateKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1534:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1535:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1535:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1536:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryRateAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1557:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==RULE_ID||LA16_0==29||LA16_0==70) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1558:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1558:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1559:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1559:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1560:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1577:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop15: |
| do { |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==30) ) { |
| alt15=1; |
| } |
| |
| |
| switch (alt15) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1578:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryRateAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1582:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1583:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1583:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1584:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop15; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryRateAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| otherlv_7=(Token)match(input,32,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getFunctionLibraryRateAccess().getReturnsKeyword_5()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1611:3: ( (otherlv_8= RULE_ID ) ) |
| // InternalFunctionLibraryDsl.g:1612:4: (otherlv_8= RULE_ID ) |
| { |
| // InternalFunctionLibraryDsl.g:1612:4: (otherlv_8= RULE_ID ) |
| // InternalFunctionLibraryDsl.g:1613:5: otherlv_8= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| |
| } |
| otherlv_8=(Token)match(input,RULE_ID,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getFunctionLibraryRateAccess().getOftypeFunctionLibraryRatingCrossReference_6_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1624:3: ( (lv_body_9_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1625:4: (lv_body_9_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1625:4: (lv_body_9_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1626:5: lv_body_9_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryRateAccess().getBodyXBlockExpressionParserRuleCall_7_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_9_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryRateRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryRate" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryGuard" |
| // InternalFunctionLibraryDsl.g:1647:1: entryRuleFunctionLibraryGuard returns [EObject current=null] : iv_ruleFunctionLibraryGuard= ruleFunctionLibraryGuard EOF ; |
| public final EObject entryRuleFunctionLibraryGuard() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryGuard = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1647:61: (iv_ruleFunctionLibraryGuard= ruleFunctionLibraryGuard EOF ) |
| // InternalFunctionLibraryDsl.g:1648:2: iv_ruleFunctionLibraryGuard= ruleFunctionLibraryGuard EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryGuard=ruleFunctionLibraryGuard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryGuard; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryGuard" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryGuard" |
| // InternalFunctionLibraryDsl.g:1654:1: ruleFunctionLibraryGuard returns [EObject current=null] : (otherlv_0= 'guard' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryGuard() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1660:2: ( (otherlv_0= 'guard' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1661:2: (otherlv_0= 'guard' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1661:2: (otherlv_0= 'guard' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1662:3: otherlv_0= 'guard' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,35,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryGuardAccess().getGuardKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1666:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1667:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1667:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1668:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryGuardAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1689:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==RULE_ID||LA18_0==29||LA18_0==70) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1690:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1690:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1691:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1691:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1692:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1709:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==30) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1710:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryGuardAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1714:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1715:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1715:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1716:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryGuardAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1739:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1740:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1740:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1741:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryGuardAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryGuardRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryGuard" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryOperation" |
| // InternalFunctionLibraryDsl.g:1762:1: entryRuleFunctionLibraryOperation returns [EObject current=null] : iv_ruleFunctionLibraryOperation= ruleFunctionLibraryOperation EOF ; |
| public final EObject entryRuleFunctionLibraryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryOperation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1762:65: (iv_ruleFunctionLibraryOperation= ruleFunctionLibraryOperation EOF ) |
| // InternalFunctionLibraryDsl.g:1763:2: iv_ruleFunctionLibraryOperation= ruleFunctionLibraryOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryOperation=ruleFunctionLibraryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryOperation" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryOperation" |
| // InternalFunctionLibraryDsl.g:1769:1: ruleFunctionLibraryOperation returns [EObject current=null] : (otherlv_0= 'operation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1775:2: ( (otherlv_0= 'operation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1776:2: (otherlv_0= 'operation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1776:2: (otherlv_0= 'operation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1777:3: otherlv_0= 'operation' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,36,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryOperationAccess().getOperationKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1781:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1782:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1782:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1783:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryOperationAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1804:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==RULE_ID||LA20_0==29||LA20_0==70) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1805:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1805:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1806:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1806:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1807:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1824:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop19: |
| do { |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==30) ) { |
| alt19=1; |
| } |
| |
| |
| switch (alt19) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1825:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryOperationAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1829:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1830:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1830:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1831:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop19; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryOperationAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1854:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1855:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1855:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1856:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryOperationAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryOperationRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryOperation" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryValidation" |
| // InternalFunctionLibraryDsl.g:1877:1: entryRuleFunctionLibraryValidation returns [EObject current=null] : iv_ruleFunctionLibraryValidation= ruleFunctionLibraryValidation EOF ; |
| public final EObject entryRuleFunctionLibraryValidation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryValidation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1877:66: (iv_ruleFunctionLibraryValidation= ruleFunctionLibraryValidation EOF ) |
| // InternalFunctionLibraryDsl.g:1878:2: iv_ruleFunctionLibraryValidation= ruleFunctionLibraryValidation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryValidation=ruleFunctionLibraryValidation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryValidation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryValidation" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryValidation" |
| // InternalFunctionLibraryDsl.g:1884:1: ruleFunctionLibraryValidation returns [EObject current=null] : (otherlv_0= 'validate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryValidation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1890:2: ( (otherlv_0= 'validate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:1891:2: (otherlv_0= 'validate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:1891:2: (otherlv_0= 'validate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:1892:3: otherlv_0= 'validate' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,37,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryValidationAccess().getValidateKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1896:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:1897:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:1897:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:1898:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryValidationAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1919:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==RULE_ID||LA22_0==29||LA22_0==70) ) { |
| alt22=1; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1920:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:1920:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1921:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1921:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1922:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:1939:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop21: |
| do { |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==30) ) { |
| alt21=1; |
| } |
| |
| |
| switch (alt21) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:1940:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryValidationAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1944:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:1945:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:1945:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:1946:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop21; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryValidationAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:1969:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:1970:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:1970:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:1971:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryValidationAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryValidationRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryValidation" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryDialogHook" |
| // InternalFunctionLibraryDsl.g:1992:1: entryRuleFunctionLibraryDialogHook returns [EObject current=null] : iv_ruleFunctionLibraryDialogHook= ruleFunctionLibraryDialogHook EOF ; |
| public final EObject entryRuleFunctionLibraryDialogHook() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryDialogHook = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:1992:66: (iv_ruleFunctionLibraryDialogHook= ruleFunctionLibraryDialogHook EOF ) |
| // InternalFunctionLibraryDsl.g:1993:2: iv_ruleFunctionLibraryDialogHook= ruleFunctionLibraryDialogHook EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogHookRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryDialogHook=ruleFunctionLibraryDialogHook(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryDialogHook; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryDialogHook" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryDialogHook" |
| // InternalFunctionLibraryDsl.g:1999:1: ruleFunctionLibraryDialogHook returns [EObject current=null] : (otherlv_0= 'hook' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryDialogHook() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2005:2: ( (otherlv_0= 'hook' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2006:2: (otherlv_0= 'hook' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2006:2: (otherlv_0= 'hook' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:2007:3: otherlv_0= 'hook' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,38,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryDialogHookAccess().getHookKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2011:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2012:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2012:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2013:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogHookAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogHookRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryDialogHookAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2034:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==RULE_ID||LA24_0==29||LA24_0==70) ) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2035:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:2035:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2036:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2036:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2037:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogHookAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogHookRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2054:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop23: |
| do { |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==30) ) { |
| alt23=1; |
| } |
| |
| |
| switch (alt23) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2055:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryDialogHookAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2059:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2060:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2060:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2061:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogHookAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogHookRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop23; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryDialogHookAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2084:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:2085:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2085:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:2086:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryDialogHookAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryDialogHookRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryDialogHook" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryExecute" |
| // InternalFunctionLibraryDsl.g:2107:1: entryRuleFunctionLibraryExecute returns [EObject current=null] : iv_ruleFunctionLibraryExecute= ruleFunctionLibraryExecute EOF ; |
| public final EObject entryRuleFunctionLibraryExecute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryExecute = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2107:63: (iv_ruleFunctionLibraryExecute= ruleFunctionLibraryExecute EOF ) |
| // InternalFunctionLibraryDsl.g:2108:2: iv_ruleFunctionLibraryExecute= ruleFunctionLibraryExecute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryExecute=ruleFunctionLibraryExecute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryExecute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryExecute" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryExecute" |
| // InternalFunctionLibraryDsl.g:2114:1: ruleFunctionLibraryExecute returns [EObject current=null] : (otherlv_0= 'execute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryExecute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2120:2: ( (otherlv_0= 'execute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2121:2: (otherlv_0= 'execute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2121:2: (otherlv_0= 'execute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:2122:3: otherlv_0= 'execute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,39,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryExecuteAccess().getExecuteKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2126:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2127:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2127:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2128:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryExecuteAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2149:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==RULE_ID||LA26_0==29||LA26_0==70) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2150:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:2150:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2151:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2151:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2152:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2169:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop25: |
| do { |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==30) ) { |
| alt25=1; |
| } |
| |
| |
| switch (alt25) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2170:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryExecuteAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2174:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2175:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2175:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2176:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop25; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryExecuteAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2199:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:2200:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2200:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:2201:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryExecuteAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryExecuteRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryExecute" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryCanExecute" |
| // InternalFunctionLibraryDsl.g:2222:1: entryRuleFunctionLibraryCanExecute returns [EObject current=null] : iv_ruleFunctionLibraryCanExecute= ruleFunctionLibraryCanExecute EOF ; |
| public final EObject entryRuleFunctionLibraryCanExecute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryCanExecute = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2222:66: (iv_ruleFunctionLibraryCanExecute= ruleFunctionLibraryCanExecute EOF ) |
| // InternalFunctionLibraryDsl.g:2223:2: iv_ruleFunctionLibraryCanExecute= ruleFunctionLibraryCanExecute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryCanExecute=ruleFunctionLibraryCanExecute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryCanExecute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryCanExecute" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryCanExecute" |
| // InternalFunctionLibraryDsl.g:2229:1: ruleFunctionLibraryCanExecute returns [EObject current=null] : (otherlv_0= 'canExecute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleFunctionLibraryCanExecute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_params_3_0 = null; |
| |
| EObject lv_params_5_0 = null; |
| |
| EObject lv_body_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2235:2: ( (otherlv_0= 'canExecute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2236:2: (otherlv_0= 'canExecute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2236:2: (otherlv_0= 'canExecute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:2237:3: otherlv_0= 'canExecute' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? otherlv_6= ')' ( (lv_body_7_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,40,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getFunctionLibraryCanExecuteAccess().getCanExecuteKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2241:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2242:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2242:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2243:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getFunctionLibraryCanExecuteAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2264:3: ( ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* )? |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==RULE_ID||LA28_0==29||LA28_0==70) ) { |
| alt28=1; |
| } |
| switch (alt28) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2265:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:2265:4: ( (lv_params_3_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2266:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2266:5: (lv_params_3_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2267:6: lv_params_3_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_3_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_3_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2284:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) )* |
| loop27: |
| do { |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==30) ) { |
| alt27=1; |
| } |
| |
| |
| switch (alt27) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2285:5: otherlv_4= ',' ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getFunctionLibraryCanExecuteAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2289:5: ( (lv_params_5_0= ruleFunctionLibraryParameter ) ) |
| // InternalFunctionLibraryDsl.g:2290:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:2290:6: (lv_params_5_0= ruleFunctionLibraryParameter ) |
| // InternalFunctionLibraryDsl.g:2291:7: lv_params_5_0= ruleFunctionLibraryParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getParamsFunctionLibraryParameterParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_params_5_0=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_5_0, |
| "org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDsl.FunctionLibraryParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop27; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getFunctionLibraryCanExecuteAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2314:3: ( (lv_body_7_0= ruleXBlockExpression ) ) |
| // InternalFunctionLibraryDsl.g:2315:4: (lv_body_7_0= ruleXBlockExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2315:4: (lv_body_7_0= ruleXBlockExpression ) |
| // InternalFunctionLibraryDsl.g:2316:5: lv_body_7_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryCanExecuteAccess().getBodyXBlockExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_7_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryCanExecuteRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryCanExecute" |
| |
| |
| // $ANTLR start "entryRuleFunctionLibraryParameter" |
| // InternalFunctionLibraryDsl.g:2337:1: entryRuleFunctionLibraryParameter returns [EObject current=null] : iv_ruleFunctionLibraryParameter= ruleFunctionLibraryParameter EOF ; |
| public final EObject entryRuleFunctionLibraryParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFunctionLibraryParameter = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2337:65: (iv_ruleFunctionLibraryParameter= ruleFunctionLibraryParameter EOF ) |
| // InternalFunctionLibraryDsl.g:2338:2: iv_ruleFunctionLibraryParameter= ruleFunctionLibraryParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFunctionLibraryParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFunctionLibraryParameter=ruleFunctionLibraryParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFunctionLibraryParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFunctionLibraryParameter" |
| |
| |
| // $ANTLR start "ruleFunctionLibraryParameter" |
| // InternalFunctionLibraryDsl.g:2344:1: ruleFunctionLibraryParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleFunctionLibraryParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2350:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2351:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2351:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:2352:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2352:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:2353:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:2353:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:2354:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2371:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2372:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2372:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2373:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFunctionLibraryParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFunctionLibraryParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionLibraryParameter" |
| |
| |
| // $ANTLR start "entryRuleTYPE_CROSS_REFERENCE" |
| // InternalFunctionLibraryDsl.g:2394:1: entryRuleTYPE_CROSS_REFERENCE returns [String current=null] : iv_ruleTYPE_CROSS_REFERENCE= ruleTYPE_CROSS_REFERENCE EOF ; |
| public final String entryRuleTYPE_CROSS_REFERENCE() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTYPE_CROSS_REFERENCE = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2394:60: (iv_ruleTYPE_CROSS_REFERENCE= ruleTYPE_CROSS_REFERENCE EOF ) |
| // InternalFunctionLibraryDsl.g:2395:2: iv_ruleTYPE_CROSS_REFERENCE= ruleTYPE_CROSS_REFERENCE EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTYPE_CROSS_REFERENCERule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTYPE_CROSS_REFERENCE=ruleTYPE_CROSS_REFERENCE(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTYPE_CROSS_REFERENCE.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTYPE_CROSS_REFERENCE" |
| |
| |
| // $ANTLR start "ruleTYPE_CROSS_REFERENCE" |
| // InternalFunctionLibraryDsl.g:2401:1: ruleTYPE_CROSS_REFERENCE returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleTYPE_CROSS_REFERENCE() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2407:2: (this_ID_0= RULE_ID ) |
| // InternalFunctionLibraryDsl.g:2408:2: this_ID_0= RULE_ID |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getTYPE_CROSS_REFERENCEAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTYPE_CROSS_REFERENCE" |
| |
| |
| // $ANTLR start "entryRuleXImportDeclaration" |
| // InternalFunctionLibraryDsl.g:2418:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2418:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalFunctionLibraryDsl.g:2419:2: iv_ruleXImportDeclaration= ruleXImportDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportDeclaration=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportDeclaration" |
| |
| |
| // $ANTLR start "ruleXImportDeclaration" |
| // InternalFunctionLibraryDsl.g:2425:1: ruleXImportDeclaration returns [EObject current=null] : ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ; |
| public final EObject ruleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_static_2_0=null; |
| Token lv_extension_3_0=null; |
| Token lv_wildcard_5_0=null; |
| Token lv_fqnImport_9_0=null; |
| Token otherlv_11=null; |
| AntlrDatatypeRuleToken lv_memberName_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedNamespace_8_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedFullyQualifiedName_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2431:2: ( ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ) |
| // InternalFunctionLibraryDsl.g:2432:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| { |
| // InternalFunctionLibraryDsl.g:2432:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| // InternalFunctionLibraryDsl.g:2433:3: () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? |
| { |
| // InternalFunctionLibraryDsl.g:2433:3: () |
| // InternalFunctionLibraryDsl.g:2434:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,41,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2444:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) |
| int alt31=4; |
| alt31 = dfa31.predict(input); |
| switch (alt31) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2445:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2445:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2446:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2446:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalFunctionLibraryDsl.g:2447:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalFunctionLibraryDsl.g:2447:6: (lv_static_2_0= 'static' ) |
| // InternalFunctionLibraryDsl.g:2448:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,42,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_static_2_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_2_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "static", true, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2460:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==43) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2461:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalFunctionLibraryDsl.g:2461:6: (lv_extension_3_0= 'extension' ) |
| // InternalFunctionLibraryDsl.g:2462:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,43,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_extension_3_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_2_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "extension", true, "extension"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2474:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalFunctionLibraryDsl.g:2475:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalFunctionLibraryDsl.g:2475:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalFunctionLibraryDsl.g:2476:7: ruleQualifiedNameInStaticImport |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2490:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==44) ) { |
| alt30=1; |
| } |
| else if ( (LA30_0==RULE_ID) ) { |
| alt30=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 30, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt30) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2491:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2491:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalFunctionLibraryDsl.g:2492:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalFunctionLibraryDsl.g:2492:7: (lv_wildcard_5_0= '*' ) |
| // InternalFunctionLibraryDsl.g:2493:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,44,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_wildcard_5_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_2_0_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "wildcard", true, "*"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:2506:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2506:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2507:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2507:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2508:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| lv_memberName_6_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "memberName", |
| lv_memberName_6_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:2528:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2528:4: ( ( ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:2529:5: ( ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:2529:5: ( ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:2530:6: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:2545:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2545:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalFunctionLibraryDsl.g:2546:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalFunctionLibraryDsl.g:2546:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalFunctionLibraryDsl.g:2547:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| lv_importedNamespace_8_0=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedNamespace", |
| lv_importedNamespace_8_0, |
| "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:2565:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2565:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalFunctionLibraryDsl.g:2566:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2566:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalFunctionLibraryDsl.g:2567:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalFunctionLibraryDsl.g:2567:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalFunctionLibraryDsl.g:2568:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,45,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fqnImport_9_0, grammarAccess.getXImportDeclarationAccess().getFqnImportNsKeyword_2_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "fqnImport", true, "ns"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2580:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:2581:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:2581:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:2582:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| lv_importedFullyQualifiedName_10_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedFullyQualifiedName", |
| lv_importedFullyQualifiedName_10_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2601:3: (otherlv_11= ';' )? |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==46) ) { |
| alt32=1; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2602:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,46,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXAnnotation" |
| // InternalFunctionLibraryDsl.g:2611:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2611:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalFunctionLibraryDsl.g:2612:2: iv_ruleXAnnotation= ruleXAnnotation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotation=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotation" |
| |
| |
| // $ANTLR start "ruleXAnnotation" |
| // InternalFunctionLibraryDsl.g:2618:1: ruleXAnnotation returns [EObject current=null] : ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ; |
| public final EObject ruleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_8=null; |
| EObject lv_elementValuePairs_4_0 = null; |
| |
| EObject lv_elementValuePairs_6_0 = null; |
| |
| EObject lv_value_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2624:2: ( ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ) |
| // InternalFunctionLibraryDsl.g:2625:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| { |
| // InternalFunctionLibraryDsl.g:2625:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| // InternalFunctionLibraryDsl.g:2626:3: () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| { |
| // InternalFunctionLibraryDsl.g:2626:3: () |
| // InternalFunctionLibraryDsl.g:2627:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,47,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2637:3: ( ( ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:2638:4: ( ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:2638:4: ( ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:2639:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getAnnotationTypeJvmAnnotationTypeCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2653:3: ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==29) && (synpred1_InternalFunctionLibraryDsl())) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2654:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalFunctionLibraryDsl.g:2654:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalFunctionLibraryDsl.g:2655:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,29,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2661:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt34=3; |
| alt34 = dfa34.predict(input); |
| switch (alt34) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2662:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:2662:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalFunctionLibraryDsl.g:2663:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:2663:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalFunctionLibraryDsl.g:2664:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalFunctionLibraryDsl.g:2673:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalFunctionLibraryDsl.g:2674:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_elementValuePairs_4_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_4_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2691:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop33: |
| do { |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==30) ) { |
| alt33=1; |
| } |
| |
| |
| switch (alt33) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2692:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,30,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2696:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalFunctionLibraryDsl.g:2697:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalFunctionLibraryDsl.g:2706:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalFunctionLibraryDsl.g:2707:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_elementValuePairs_6_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_6_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop33; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:2727:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2727:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalFunctionLibraryDsl.g:2728:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalFunctionLibraryDsl.g:2728:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalFunctionLibraryDsl.g:2729:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_value_7_0=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_7_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValueOrCommaList"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotation" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValuePair" |
| // InternalFunctionLibraryDsl.g:2756:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2756:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalFunctionLibraryDsl.g:2757:2: iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValuePair=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValuePair; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValuePair" |
| // InternalFunctionLibraryDsl.g:2763:1: ruleXAnnotationElementValuePair returns [EObject current=null] : ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ; |
| public final EObject ruleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_value_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2769:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalFunctionLibraryDsl.g:2770:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2770:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalFunctionLibraryDsl.g:2771:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2771:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalFunctionLibraryDsl.g:2772:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalFunctionLibraryDsl.g:2781:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalFunctionLibraryDsl.g:2782:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalFunctionLibraryDsl.g:2782:5: ( ( ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2783:6: ( ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2783:6: ( ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2784:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getElementJvmOperationCrossReference_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,48,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2804:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalFunctionLibraryDsl.g:2805:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalFunctionLibraryDsl.g:2805:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalFunctionLibraryDsl.g:2806:5: lv_value_2_0= ruleXAnnotationElementValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getValueXAnnotationElementValueParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_2_0=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValue"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValueOrCommaList" |
| // InternalFunctionLibraryDsl.g:2827:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2827:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalFunctionLibraryDsl.g:2828:2: iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValueOrCommaList=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValueOrCommaList; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValueOrCommaList" |
| // InternalFunctionLibraryDsl.g:2834:1: ruleXAnnotationElementValueOrCommaList returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ; |
| public final EObject ruleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_9=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| EObject lv_elements_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2840:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ) |
| // InternalFunctionLibraryDsl.g:2841:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| { |
| // InternalFunctionLibraryDsl.g:2841:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| int alt40=2; |
| alt40 = dfa40.predict(input); |
| switch (alt40) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2842:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalFunctionLibraryDsl.g:2842:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalFunctionLibraryDsl.g:2843:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalFunctionLibraryDsl.g:2843:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalFunctionLibraryDsl.g:2844:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:2851:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalFunctionLibraryDsl.g:2852:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalFunctionLibraryDsl.g:2852:6: () |
| // InternalFunctionLibraryDsl.g:2853:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,50,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2869:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( ((LA37_0>=RULE_ID && LA37_0<=RULE_DECIMAL)||LA37_0==14||LA37_0==29||(LA37_0>=41 && LA37_0<=43)||LA37_0==47||(LA37_0>=49 && LA37_0<=50)||LA37_0==57||(LA37_0>=73 && LA37_0<=74)||LA37_0==78||LA37_0==86||LA37_0==88||(LA37_0>=92 && LA37_0<=94)||(LA37_0>=97 && LA37_0<=106)||LA37_0==108) ) { |
| alt37=1; |
| } |
| switch (alt37) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2870:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:2870:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:2871:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2871:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalFunctionLibraryDsl.g:2872:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2889:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop36: |
| do { |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==30) ) { |
| alt36=1; |
| } |
| |
| |
| switch (alt36) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2890:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2894:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:2895:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2895:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalFunctionLibraryDsl.g:2896:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop36; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:2921:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalFunctionLibraryDsl.g:2921:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalFunctionLibraryDsl.g:2922:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_35); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2930:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==30) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2931:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalFunctionLibraryDsl.g:2931:5: () |
| // InternalFunctionLibraryDsl.g:2932:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:2938:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt38=0; |
| loop38: |
| do { |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==30) ) { |
| alt38=1; |
| } |
| |
| |
| switch (alt38) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2939:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:2943:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:2944:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2944:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalFunctionLibraryDsl.g:2945:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_35); |
| lv_elements_10_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_10_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt38 >= 1 ) break loop38; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(38, input); |
| throw eee; |
| } |
| cnt38++; |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValue" |
| // InternalFunctionLibraryDsl.g:2969:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2969:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalFunctionLibraryDsl.g:2970:2: iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValue=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValue" |
| // InternalFunctionLibraryDsl.g:2976:1: ruleXAnnotationElementValue returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ; |
| public final EObject ruleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:2982:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:2983:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:2983:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt43=2; |
| alt43 = dfa43.predict(input); |
| switch (alt43) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:2984:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalFunctionLibraryDsl.g:2984:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalFunctionLibraryDsl.g:2985:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalFunctionLibraryDsl.g:2985:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalFunctionLibraryDsl.g:2986:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:2993:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalFunctionLibraryDsl.g:2994:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalFunctionLibraryDsl.g:2994:6: () |
| // InternalFunctionLibraryDsl.g:2995:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,50,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3011:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( ((LA42_0>=RULE_ID && LA42_0<=RULE_DECIMAL)||LA42_0==14||LA42_0==29||(LA42_0>=41 && LA42_0<=43)||LA42_0==47||(LA42_0>=49 && LA42_0<=50)||LA42_0==57||(LA42_0>=73 && LA42_0<=74)||LA42_0==78||LA42_0==86||LA42_0==88||(LA42_0>=92 && LA42_0<=94)||(LA42_0>=97 && LA42_0<=106)||LA42_0==108) ) { |
| alt42=1; |
| } |
| switch (alt42) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3012:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:3012:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:3013:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3013:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalFunctionLibraryDsl.g:3014:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3031:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop41: |
| do { |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==30) ) { |
| alt41=1; |
| } |
| |
| |
| switch (alt41) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3032:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3036:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalFunctionLibraryDsl.g:3037:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3037:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalFunctionLibraryDsl.g:3038:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop41; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3063:3: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getXAnnotationOrExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationOrExpression" |
| // InternalFunctionLibraryDsl.g:3075:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3075:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3076:2: iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationOrExpression=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "ruleXAnnotationOrExpression" |
| // InternalFunctionLibraryDsl.g:3082:1: ruleXAnnotationOrExpression returns [EObject current=null] : (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAnnotation_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3088:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:3089:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3089:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==47) ) { |
| alt44=1; |
| } |
| else if ( ((LA44_0>=RULE_ID && LA44_0<=RULE_DECIMAL)||LA44_0==14||LA44_0==29||(LA44_0>=41 && LA44_0<=43)||(LA44_0>=49 && LA44_0<=50)||LA44_0==57||(LA44_0>=73 && LA44_0<=74)||LA44_0==78||LA44_0==86||LA44_0==88||(LA44_0>=92 && LA44_0<=94)||(LA44_0>=97 && LA44_0<=106)||LA44_0==108) ) { |
| alt44=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 44, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3090:3: this_XAnnotation_0= ruleXAnnotation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXAnnotationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotation_0=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3099:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpression" |
| // InternalFunctionLibraryDsl.g:3111:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3111:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3112:2: iv_ruleXExpression= ruleXExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpression=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpression" |
| |
| |
| // $ANTLR start "ruleXExpression" |
| // InternalFunctionLibraryDsl.g:3118:1: ruleXExpression returns [EObject current=null] : this_XAssignment_0= ruleXAssignment ; |
| public final EObject ruleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAssignment_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3124:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalFunctionLibraryDsl.g:3125:2: this_XAssignment_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAssignment_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAssignment_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpression" |
| |
| |
| // $ANTLR start "entryRuleXAssignment" |
| // InternalFunctionLibraryDsl.g:3136:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3136:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalFunctionLibraryDsl.g:3137:2: iv_ruleXAssignment= ruleXAssignment EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAssignmentRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAssignment=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAssignment; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAssignment" |
| |
| |
| // $ANTLR start "ruleXAssignment" |
| // InternalFunctionLibraryDsl.g:3143:1: ruleXAssignment returns [EObject current=null] : ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ; |
| public final EObject ruleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_value_3_0 = null; |
| |
| EObject this_XOrExpression_4 = null; |
| |
| EObject lv_rightOperand_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3149:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalFunctionLibraryDsl.g:3150:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3150:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt46=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA46_1 = input.LA(2); |
| |
| if ( (LA46_1==EOF||(LA46_1>=RULE_ID && LA46_1<=RULE_DECIMAL)||(LA46_1>=14 && LA46_1<=15)||(LA46_1>=29 && LA46_1<=31)||(LA46_1>=41 && LA46_1<=44)||LA46_1==46||(LA46_1>=49 && LA46_1<=84)||(LA46_1>=86 && LA46_1<=109)) ) { |
| alt46=2; |
| } |
| else if ( (LA46_1==48) ) { |
| alt46=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 97: |
| { |
| int LA46_2 = input.LA(2); |
| |
| if ( (LA46_2==EOF||(LA46_2>=RULE_ID && LA46_2<=RULE_DECIMAL)||(LA46_2>=14 && LA46_2<=15)||(LA46_2>=29 && LA46_2<=31)||(LA46_2>=41 && LA46_2<=44)||LA46_2==46||(LA46_2>=49 && LA46_2<=84)||(LA46_2>=86 && LA46_2<=109)) ) { |
| alt46=2; |
| } |
| else if ( (LA46_2==48) ) { |
| alt46=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 42: |
| { |
| int LA46_3 = input.LA(2); |
| |
| if ( (LA46_3==48) ) { |
| alt46=1; |
| } |
| else if ( (LA46_3==EOF||(LA46_3>=RULE_ID && LA46_3<=RULE_DECIMAL)||(LA46_3>=14 && LA46_3<=15)||(LA46_3>=29 && LA46_3<=31)||(LA46_3>=41 && LA46_3<=44)||LA46_3==46||(LA46_3>=49 && LA46_3<=84)||(LA46_3>=86 && LA46_3<=109)) ) { |
| alt46=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 41: |
| { |
| int LA46_4 = input.LA(2); |
| |
| if ( (LA46_4==48) ) { |
| alt46=1; |
| } |
| else if ( (LA46_4==EOF||(LA46_4>=RULE_ID && LA46_4<=RULE_DECIMAL)||(LA46_4>=14 && LA46_4<=15)||(LA46_4>=29 && LA46_4<=31)||(LA46_4>=41 && LA46_4<=44)||LA46_4==46||(LA46_4>=49 && LA46_4<=84)||(LA46_4>=86 && LA46_4<=109)) ) { |
| alt46=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 43: |
| { |
| int LA46_5 = input.LA(2); |
| |
| if ( (LA46_5==EOF||(LA46_5>=RULE_ID && LA46_5<=RULE_DECIMAL)||(LA46_5>=14 && LA46_5<=15)||(LA46_5>=29 && LA46_5<=31)||(LA46_5>=41 && LA46_5<=44)||LA46_5==46||(LA46_5>=49 && LA46_5<=84)||(LA46_5>=86 && LA46_5<=109)) ) { |
| alt46=2; |
| } |
| else if ( (LA46_5==48) ) { |
| alt46=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_HEX: |
| case RULE_INT: |
| case RULE_DECIMAL: |
| case 14: |
| case 29: |
| case 49: |
| case 50: |
| case 57: |
| case 73: |
| case 74: |
| case 78: |
| case 86: |
| case 88: |
| case 92: |
| case 93: |
| case 94: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| case 108: |
| { |
| alt46=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt46) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3151:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3151:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalFunctionLibraryDsl.g:3152:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3152:4: () |
| // InternalFunctionLibraryDsl.g:3153:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3159:4: ( ( ruleFeatureCallID ) ) |
| // InternalFunctionLibraryDsl.g:3160:5: ( ruleFeatureCallID ) |
| { |
| // InternalFunctionLibraryDsl.g:3160:5: ( ruleFeatureCallID ) |
| // InternalFunctionLibraryDsl.g:3161:6: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3182:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalFunctionLibraryDsl.g:3183:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalFunctionLibraryDsl.g:3183:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalFunctionLibraryDsl.g:3184:6: lv_value_3_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_3_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3203:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:3203:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalFunctionLibraryDsl.g:3204:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3212:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt45=2; |
| alt45 = dfa45.predict(input); |
| switch (alt45) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3213:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3213:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3214:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3224:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalFunctionLibraryDsl.g:3225:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3225:7: () |
| // InternalFunctionLibraryDsl.g:3226:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3232:7: ( ( ruleOpMultiAssign ) ) |
| // InternalFunctionLibraryDsl.g:3233:8: ( ruleOpMultiAssign ) |
| { |
| // InternalFunctionLibraryDsl.g:3233:8: ( ruleOpMultiAssign ) |
| // InternalFunctionLibraryDsl.g:3234:9: ruleOpMultiAssign |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3250:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalFunctionLibraryDsl.g:3251:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalFunctionLibraryDsl.g:3251:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalFunctionLibraryDsl.g:3252:7: lv_rightOperand_7_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_rightOperand_7_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAssignment" |
| |
| |
| // $ANTLR start "entryRuleOpSingleAssign" |
| // InternalFunctionLibraryDsl.g:3275:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3275:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalFunctionLibraryDsl.g:3276:2: iv_ruleOpSingleAssign= ruleOpSingleAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpSingleAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpSingleAssign=ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpSingleAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpSingleAssign" |
| |
| |
| // $ANTLR start "ruleOpSingleAssign" |
| // InternalFunctionLibraryDsl.g:3282:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3288:2: (kw= '=' ) |
| // InternalFunctionLibraryDsl.g:3289:2: kw= '=' |
| { |
| kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpSingleAssign" |
| |
| |
| // $ANTLR start "entryRuleOpMultiAssign" |
| // InternalFunctionLibraryDsl.g:3297:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3297:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalFunctionLibraryDsl.g:3298:2: iv_ruleOpMultiAssign= ruleOpMultiAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMultiAssign=ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMultiAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMultiAssign" |
| |
| |
| // $ANTLR start "ruleOpMultiAssign" |
| // InternalFunctionLibraryDsl.g:3304:1: ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ; |
| public final AntlrDatatypeRuleToken ruleOpMultiAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3310:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalFunctionLibraryDsl.g:3311:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3311:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt48=7; |
| switch ( input.LA(1) ) { |
| case 52: |
| { |
| alt48=1; |
| } |
| break; |
| case 53: |
| { |
| alt48=2; |
| } |
| break; |
| case 54: |
| { |
| alt48=3; |
| } |
| break; |
| case 55: |
| { |
| alt48=4; |
| } |
| break; |
| case 56: |
| { |
| alt48=5; |
| } |
| break; |
| case 57: |
| { |
| alt48=6; |
| } |
| break; |
| case 58: |
| { |
| alt48=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt48) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3312:3: kw= '+=' |
| { |
| kw=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3318:3: kw= '-=' |
| { |
| kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:3324:3: kw= '*=' |
| { |
| kw=(Token)match(input,54,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:3330:3: kw= '/=' |
| { |
| kw=(Token)match(input,55,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:3336:3: kw= '%=' |
| { |
| kw=(Token)match(input,56,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalFunctionLibraryDsl.g:3342:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalFunctionLibraryDsl.g:3342:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalFunctionLibraryDsl.g:3343:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,57,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,57,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalFunctionLibraryDsl.g:3360:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalFunctionLibraryDsl.g:3360:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalFunctionLibraryDsl.g:3361:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,58,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3366:4: (kw= '>' )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==58) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3367:5: kw= '>' |
| { |
| kw=(Token)match(input,58,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,59,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMultiAssign" |
| |
| |
| // $ANTLR start "entryRuleXOrExpression" |
| // InternalFunctionLibraryDsl.g:3383:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3383:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3384:2: iv_ruleXOrExpression= ruleXOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOrExpression=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOrExpression" |
| |
| |
| // $ANTLR start "ruleXOrExpression" |
| // InternalFunctionLibraryDsl.g:3390:1: ruleXOrExpression returns [EObject current=null] : (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ; |
| public final EObject ruleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAndExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3396:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:3397:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:3397:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:3398:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_40); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3406:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop49: |
| do { |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==60) ) { |
| int LA49_2 = input.LA(2); |
| |
| if ( (synpred8_InternalFunctionLibraryDsl()) ) { |
| alt49=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt49) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3407:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3407:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3408:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3418:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalFunctionLibraryDsl.g:3419:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3419:6: () |
| // InternalFunctionLibraryDsl.g:3420:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3426:6: ( ( ruleOpOr ) ) |
| // InternalFunctionLibraryDsl.g:3427:7: ( ruleOpOr ) |
| { |
| // InternalFunctionLibraryDsl.g:3427:7: ( ruleOpOr ) |
| // InternalFunctionLibraryDsl.g:3428:8: ruleOpOr |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOrExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3444:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalFunctionLibraryDsl.g:3445:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3445:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalFunctionLibraryDsl.g:3446:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_40); |
| lv_rightOperand_3_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAndExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop49; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalFunctionLibraryDsl.g:3468:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3468:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalFunctionLibraryDsl.g:3469:2: iv_ruleOpOr= ruleOpOr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOr=ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOr.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOr" |
| |
| |
| // $ANTLR start "ruleOpOr" |
| // InternalFunctionLibraryDsl.g:3475:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3481:2: (kw= '||' ) |
| // InternalFunctionLibraryDsl.g:3482:2: kw= '||' |
| { |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOr" |
| |
| |
| // $ANTLR start "entryRuleXAndExpression" |
| // InternalFunctionLibraryDsl.g:3490:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3490:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3491:2: iv_ruleXAndExpression= ruleXAndExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAndExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAndExpression=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAndExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAndExpression" |
| |
| |
| // $ANTLR start "ruleXAndExpression" |
| // InternalFunctionLibraryDsl.g:3497:1: ruleXAndExpression returns [EObject current=null] : (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ; |
| public final EObject ruleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XEqualityExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3503:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:3504:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:3504:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:3505:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3513:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop50: |
| do { |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==61) ) { |
| int LA50_2 = input.LA(2); |
| |
| if ( (synpred9_InternalFunctionLibraryDsl()) ) { |
| alt50=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt50) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3514:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3514:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3515:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3525:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalFunctionLibraryDsl.g:3526:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3526:6: () |
| // InternalFunctionLibraryDsl.g:3527:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3533:6: ( ( ruleOpAnd ) ) |
| // InternalFunctionLibraryDsl.g:3534:7: ( ruleOpAnd ) |
| { |
| // InternalFunctionLibraryDsl.g:3534:7: ( ruleOpAnd ) |
| // InternalFunctionLibraryDsl.g:3535:8: ruleOpAnd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAndExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3551:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalFunctionLibraryDsl.g:3552:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3552:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalFunctionLibraryDsl.g:3553:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_rightOperand_3_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop50; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalFunctionLibraryDsl.g:3575:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3575:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalFunctionLibraryDsl.g:3576:2: iv_ruleOpAnd= ruleOpAnd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAndRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAnd=ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAnd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAnd" |
| |
| |
| // $ANTLR start "ruleOpAnd" |
| // InternalFunctionLibraryDsl.g:3582:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3588:2: (kw= '&&' ) |
| // InternalFunctionLibraryDsl.g:3589:2: kw= '&&' |
| { |
| kw=(Token)match(input,61,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAnd" |
| |
| |
| // $ANTLR start "entryRuleXEqualityExpression" |
| // InternalFunctionLibraryDsl.g:3597:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3597:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3598:2: iv_ruleXEqualityExpression= ruleXEqualityExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXEqualityExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXEqualityExpression=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXEqualityExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXEqualityExpression" |
| |
| |
| // $ANTLR start "ruleXEqualityExpression" |
| // InternalFunctionLibraryDsl.g:3604:1: ruleXEqualityExpression returns [EObject current=null] : (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ; |
| public final EObject ruleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XRelationalExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3610:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:3611:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:3611:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:3612:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3620:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop51: |
| do { |
| int alt51=2; |
| switch ( input.LA(1) ) { |
| case 62: |
| { |
| int LA51_2 = input.LA(2); |
| |
| if ( (synpred10_InternalFunctionLibraryDsl()) ) { |
| alt51=1; |
| } |
| |
| |
| } |
| break; |
| case 63: |
| { |
| int LA51_3 = input.LA(2); |
| |
| if ( (synpred10_InternalFunctionLibraryDsl()) ) { |
| alt51=1; |
| } |
| |
| |
| } |
| break; |
| case 64: |
| { |
| int LA51_4 = input.LA(2); |
| |
| if ( (synpred10_InternalFunctionLibraryDsl()) ) { |
| alt51=1; |
| } |
| |
| |
| } |
| break; |
| case 65: |
| { |
| int LA51_5 = input.LA(2); |
| |
| if ( (synpred10_InternalFunctionLibraryDsl()) ) { |
| alt51=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt51) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3621:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3621:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3622:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3632:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalFunctionLibraryDsl.g:3633:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3633:6: () |
| // InternalFunctionLibraryDsl.g:3634:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3640:6: ( ( ruleOpEquality ) ) |
| // InternalFunctionLibraryDsl.g:3641:7: ( ruleOpEquality ) |
| { |
| // InternalFunctionLibraryDsl.g:3641:7: ( ruleOpEquality ) |
| // InternalFunctionLibraryDsl.g:3642:8: ruleOpEquality |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXEqualityExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3658:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalFunctionLibraryDsl.g:3659:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3659:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalFunctionLibraryDsl.g:3660:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| lv_rightOperand_3_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop51; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalFunctionLibraryDsl.g:3682:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3682:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalFunctionLibraryDsl.g:3683:2: iv_ruleOpEquality= ruleOpEquality EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpEqualityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpEquality=ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpEquality.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpEquality" |
| |
| |
| // $ANTLR start "ruleOpEquality" |
| // InternalFunctionLibraryDsl.g:3689:1: ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ; |
| public final AntlrDatatypeRuleToken ruleOpEquality() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3695:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalFunctionLibraryDsl.g:3696:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalFunctionLibraryDsl.g:3696:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt52=4; |
| switch ( input.LA(1) ) { |
| case 62: |
| { |
| alt52=1; |
| } |
| break; |
| case 63: |
| { |
| alt52=2; |
| } |
| break; |
| case 64: |
| { |
| alt52=3; |
| } |
| break; |
| case 65: |
| { |
| alt52=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 52, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt52) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3697:3: kw= '==' |
| { |
| kw=(Token)match(input,62,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3703:3: kw= '!=' |
| { |
| kw=(Token)match(input,63,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:3709:3: kw= '===' |
| { |
| kw=(Token)match(input,64,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:3715:3: kw= '!==' |
| { |
| kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpEquality" |
| |
| |
| // $ANTLR start "entryRuleXRelationalExpression" |
| // InternalFunctionLibraryDsl.g:3724:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3724:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3725:2: iv_ruleXRelationalExpression= ruleXRelationalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXRelationalExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXRelationalExpression=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXRelationalExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXRelationalExpression" |
| |
| |
| // $ANTLR start "ruleXRelationalExpression" |
| // InternalFunctionLibraryDsl.g:3731:1: ruleXRelationalExpression returns [EObject current=null] : (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ; |
| public final EObject ruleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XOtherOperatorExpression_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| EObject lv_rightOperand_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3737:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:3738:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:3738:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalFunctionLibraryDsl.g:3739:3: this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3747:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop53: |
| do { |
| int alt53=3; |
| switch ( input.LA(1) ) { |
| case 57: |
| { |
| int LA53_2 = input.LA(2); |
| |
| if ( (synpred12_InternalFunctionLibraryDsl()) ) { |
| alt53=2; |
| } |
| |
| |
| } |
| break; |
| case 58: |
| { |
| int LA53_3 = input.LA(2); |
| |
| if ( (synpred12_InternalFunctionLibraryDsl()) ) { |
| alt53=2; |
| } |
| |
| |
| } |
| break; |
| case 66: |
| { |
| int LA53_4 = input.LA(2); |
| |
| if ( (synpred11_InternalFunctionLibraryDsl()) ) { |
| alt53=1; |
| } |
| |
| |
| } |
| break; |
| case 59: |
| { |
| int LA53_5 = input.LA(2); |
| |
| if ( (synpred12_InternalFunctionLibraryDsl()) ) { |
| alt53=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt53) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3748:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3748:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:3749:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3749:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalFunctionLibraryDsl.g:3750:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalFunctionLibraryDsl.g:3756:6: ( () otherlv_2= 'instanceof' ) |
| // InternalFunctionLibraryDsl.g:3757:7: () otherlv_2= 'instanceof' |
| { |
| // InternalFunctionLibraryDsl.g:3757:7: () |
| // InternalFunctionLibraryDsl.g:3758:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,66,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3770:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:3771:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:3771:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:3772:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3791:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3791:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:3792:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3792:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3793:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3803:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalFunctionLibraryDsl.g:3804:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3804:7: () |
| // InternalFunctionLibraryDsl.g:3805:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3811:7: ( ( ruleOpCompare ) ) |
| // InternalFunctionLibraryDsl.g:3812:8: ( ruleOpCompare ) |
| { |
| // InternalFunctionLibraryDsl.g:3812:8: ( ruleOpCompare ) |
| // InternalFunctionLibraryDsl.g:3813:9: ruleOpCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXRelationalExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3829:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalFunctionLibraryDsl.g:3830:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3830:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalFunctionLibraryDsl.g:3831:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| lv_rightOperand_6_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop53; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalFunctionLibraryDsl.g:3854:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3854:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalFunctionLibraryDsl.g:3855:2: iv_ruleOpCompare= ruleOpCompare EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpCompareRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpCompare=ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpCompare.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpCompare" |
| |
| |
| // $ANTLR start "ruleOpCompare" |
| // InternalFunctionLibraryDsl.g:3861:1: ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ; |
| public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3867:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalFunctionLibraryDsl.g:3868:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalFunctionLibraryDsl.g:3868:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt54=4; |
| switch ( input.LA(1) ) { |
| case 59: |
| { |
| alt54=1; |
| } |
| break; |
| case 57: |
| { |
| int LA54_2 = input.LA(2); |
| |
| if ( (LA54_2==EOF||(LA54_2>=RULE_ID && LA54_2<=RULE_DECIMAL)||LA54_2==14||LA54_2==29||(LA54_2>=41 && LA54_2<=43)||(LA54_2>=49 && LA54_2<=50)||LA54_2==57||(LA54_2>=73 && LA54_2<=74)||LA54_2==78||LA54_2==86||LA54_2==88||(LA54_2>=92 && LA54_2<=94)||(LA54_2>=97 && LA54_2<=106)||LA54_2==108) ) { |
| alt54=4; |
| } |
| else if ( (LA54_2==48) ) { |
| alt54=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 54, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 58: |
| { |
| alt54=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 54, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt54) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3869:3: kw= '>=' |
| { |
| kw=(Token)match(input,59,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:3875:3: (kw= '<' kw= '=' ) |
| { |
| // InternalFunctionLibraryDsl.g:3875:3: (kw= '<' kw= '=' ) |
| // InternalFunctionLibraryDsl.g:3876:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,57,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:3888:3: kw= '>' |
| { |
| kw=(Token)match(input,58,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:3894:3: kw= '<' |
| { |
| kw=(Token)match(input,57,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpCompare" |
| |
| |
| // $ANTLR start "entryRuleXOtherOperatorExpression" |
| // InternalFunctionLibraryDsl.g:3903:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3903:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalFunctionLibraryDsl.g:3904:2: iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOtherOperatorExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "ruleXOtherOperatorExpression" |
| // InternalFunctionLibraryDsl.g:3910:1: ruleXOtherOperatorExpression returns [EObject current=null] : (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ; |
| public final EObject ruleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAdditiveExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3916:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:3917:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:3917:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:3918:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:3926:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop55: |
| do { |
| int alt55=2; |
| alt55 = dfa55.predict(input); |
| switch (alt55) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:3927:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3927:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3928:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3938:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalFunctionLibraryDsl.g:3939:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3939:6: () |
| // InternalFunctionLibraryDsl.g:3940:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3946:6: ( ( ruleOpOther ) ) |
| // InternalFunctionLibraryDsl.g:3947:7: ( ruleOpOther ) |
| { |
| // InternalFunctionLibraryDsl.g:3947:7: ( ruleOpOther ) |
| // InternalFunctionLibraryDsl.g:3948:8: ruleOpOther |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:3964:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalFunctionLibraryDsl.g:3965:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:3965:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalFunctionLibraryDsl.g:3966:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| lv_rightOperand_3_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop55; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalFunctionLibraryDsl.g:3988:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:3988:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalFunctionLibraryDsl.g:3989:2: iv_ruleOpOther= ruleOpOther EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOtherRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOther=ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOther.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOther" |
| |
| |
| // $ANTLR start "ruleOpOther" |
| // InternalFunctionLibraryDsl.g:3995:1: ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ; |
| public final AntlrDatatypeRuleToken ruleOpOther() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4001:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalFunctionLibraryDsl.g:4002:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalFunctionLibraryDsl.g:4002:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt58=9; |
| alt58 = dfa58.predict(input); |
| switch (alt58) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4003:3: kw= '->' |
| { |
| kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4009:3: kw= '..<' |
| { |
| kw=(Token)match(input,68,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4015:3: (kw= '>' kw= '..' ) |
| { |
| // InternalFunctionLibraryDsl.g:4015:3: (kw= '>' kw= '..' ) |
| // InternalFunctionLibraryDsl.g:4016:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,58,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,69,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:4028:3: kw= '..' |
| { |
| kw=(Token)match(input,69,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:4034:3: kw= '=>' |
| { |
| kw=(Token)match(input,70,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalFunctionLibraryDsl.g:4040:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4040:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalFunctionLibraryDsl.g:4041:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,58,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4046:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==58) ) { |
| int LA56_1 = input.LA(2); |
| |
| if ( (LA56_1==58) && (synpred14_InternalFunctionLibraryDsl())) { |
| alt56=1; |
| } |
| else if ( (LA56_1==EOF||(LA56_1>=RULE_ID && LA56_1<=RULE_DECIMAL)||LA56_1==14||LA56_1==29||(LA56_1>=41 && LA56_1<=43)||(LA56_1>=49 && LA56_1<=50)||LA56_1==57||(LA56_1>=73 && LA56_1<=74)||LA56_1==78||LA56_1==86||LA56_1==88||(LA56_1>=92 && LA56_1<=94)||(LA56_1>=97 && LA56_1<=106)||LA56_1==108) ) { |
| alt56=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 56, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 56, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4047:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4047:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalFunctionLibraryDsl.g:4048:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalFunctionLibraryDsl.g:4053:6: (kw= '>' kw= '>' ) |
| // InternalFunctionLibraryDsl.g:4054:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,58,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,58,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4067:5: kw= '>' |
| { |
| kw=(Token)match(input,58,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalFunctionLibraryDsl.g:4075:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4075:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalFunctionLibraryDsl.g:4076:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,57,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4081:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt57=3; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==57) ) { |
| int LA57_1 = input.LA(2); |
| |
| if ( (synpred15_InternalFunctionLibraryDsl()) ) { |
| alt57=1; |
| } |
| else if ( (true) ) { |
| alt57=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA57_0==70) ) { |
| alt57=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4082:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4082:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalFunctionLibraryDsl.g:4083:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalFunctionLibraryDsl.g:4088:6: (kw= '<' kw= '<' ) |
| // InternalFunctionLibraryDsl.g:4089:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,57,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,57,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4102:5: kw= '<' |
| { |
| kw=(Token)match(input,57,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4108:5: kw= '=>' |
| { |
| kw=(Token)match(input,70,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalFunctionLibraryDsl.g:4116:3: kw= '<>' |
| { |
| kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalFunctionLibraryDsl.g:4122:3: kw= '?:' |
| { |
| kw=(Token)match(input,72,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOther" |
| |
| |
| // $ANTLR start "entryRuleXAdditiveExpression" |
| // InternalFunctionLibraryDsl.g:4131:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4131:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalFunctionLibraryDsl.g:4132:2: iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAdditiveExpression=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAdditiveExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAdditiveExpression" |
| |
| |
| // $ANTLR start "ruleXAdditiveExpression" |
| // InternalFunctionLibraryDsl.g:4138:1: ruleXAdditiveExpression returns [EObject current=null] : (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ; |
| public final EObject ruleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMultiplicativeExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4144:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:4145:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:4145:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:4146:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4154:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop59: |
| do { |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==73) ) { |
| int LA59_2 = input.LA(2); |
| |
| if ( (synpred16_InternalFunctionLibraryDsl()) ) { |
| alt59=1; |
| } |
| |
| |
| } |
| else if ( (LA59_0==74) ) { |
| int LA59_3 = input.LA(2); |
| |
| if ( (synpred16_InternalFunctionLibraryDsl()) ) { |
| alt59=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt59) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4155:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4155:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4156:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4166:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalFunctionLibraryDsl.g:4167:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4167:6: () |
| // InternalFunctionLibraryDsl.g:4168:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4174:6: ( ( ruleOpAdd ) ) |
| // InternalFunctionLibraryDsl.g:4175:7: ( ruleOpAdd ) |
| { |
| // InternalFunctionLibraryDsl.g:4175:7: ( ruleOpAdd ) |
| // InternalFunctionLibraryDsl.g:4176:8: ruleOpAdd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4192:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalFunctionLibraryDsl.g:4193:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:4193:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalFunctionLibraryDsl.g:4194:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| lv_rightOperand_3_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop59; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalFunctionLibraryDsl.g:4216:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4216:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalFunctionLibraryDsl.g:4217:2: iv_ruleOpAdd= ruleOpAdd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAddRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAdd=ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAdd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAdd" |
| |
| |
| // $ANTLR start "ruleOpAdd" |
| // InternalFunctionLibraryDsl.g:4223:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4229:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalFunctionLibraryDsl.g:4230:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalFunctionLibraryDsl.g:4230:2: (kw= '+' | kw= '-' ) |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==73) ) { |
| alt60=1; |
| } |
| else if ( (LA60_0==74) ) { |
| alt60=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 60, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4231:3: kw= '+' |
| { |
| kw=(Token)match(input,73,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4237:3: kw= '-' |
| { |
| kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAdd" |
| |
| |
| // $ANTLR start "entryRuleXMultiplicativeExpression" |
| // InternalFunctionLibraryDsl.g:4246:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4246:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalFunctionLibraryDsl.g:4247:2: iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMultiplicativeExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "ruleXMultiplicativeExpression" |
| // InternalFunctionLibraryDsl.g:4253:1: ruleXMultiplicativeExpression returns [EObject current=null] : (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ; |
| public final EObject ruleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XUnaryOperation_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4259:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:4260:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:4260:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalFunctionLibraryDsl.g:4261:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4269:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop61: |
| do { |
| int alt61=2; |
| switch ( input.LA(1) ) { |
| case 44: |
| { |
| int LA61_2 = input.LA(2); |
| |
| if ( (synpred17_InternalFunctionLibraryDsl()) ) { |
| alt61=1; |
| } |
| |
| |
| } |
| break; |
| case 75: |
| { |
| int LA61_3 = input.LA(2); |
| |
| if ( (synpred17_InternalFunctionLibraryDsl()) ) { |
| alt61=1; |
| } |
| |
| |
| } |
| break; |
| case 76: |
| { |
| int LA61_4 = input.LA(2); |
| |
| if ( (synpred17_InternalFunctionLibraryDsl()) ) { |
| alt61=1; |
| } |
| |
| |
| } |
| break; |
| case 77: |
| { |
| int LA61_5 = input.LA(2); |
| |
| if ( (synpred17_InternalFunctionLibraryDsl()) ) { |
| alt61=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt61) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4270:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4270:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4271:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4281:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalFunctionLibraryDsl.g:4282:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4282:6: () |
| // InternalFunctionLibraryDsl.g:4283:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4289:6: ( ( ruleOpMulti ) ) |
| // InternalFunctionLibraryDsl.g:4290:7: ( ruleOpMulti ) |
| { |
| // InternalFunctionLibraryDsl.g:4290:7: ( ruleOpMulti ) |
| // InternalFunctionLibraryDsl.g:4291:8: ruleOpMulti |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4307:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalFunctionLibraryDsl.g:4308:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalFunctionLibraryDsl.g:4308:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalFunctionLibraryDsl.g:4309:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| lv_rightOperand_3_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop61; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalFunctionLibraryDsl.g:4331:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4331:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalFunctionLibraryDsl.g:4332:2: iv_ruleOpMulti= ruleOpMulti EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMulti=ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMulti.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMulti" |
| |
| |
| // $ANTLR start "ruleOpMulti" |
| // InternalFunctionLibraryDsl.g:4338:1: ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ; |
| public final AntlrDatatypeRuleToken ruleOpMulti() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4344:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalFunctionLibraryDsl.g:4345:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalFunctionLibraryDsl.g:4345:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt62=4; |
| switch ( input.LA(1) ) { |
| case 44: |
| { |
| alt62=1; |
| } |
| break; |
| case 75: |
| { |
| alt62=2; |
| } |
| break; |
| case 76: |
| { |
| alt62=3; |
| } |
| break; |
| case 77: |
| { |
| alt62=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 62, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt62) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4346:3: kw= '*' |
| { |
| kw=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4352:3: kw= '**' |
| { |
| kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4358:3: kw= '/' |
| { |
| kw=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:4364:3: kw= '%' |
| { |
| kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMulti" |
| |
| |
| // $ANTLR start "entryRuleXUnaryOperation" |
| // InternalFunctionLibraryDsl.g:4373:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4373:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalFunctionLibraryDsl.g:4374:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXUnaryOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXUnaryOperation=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXUnaryOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXUnaryOperation" |
| |
| |
| // $ANTLR start "ruleXUnaryOperation" |
| // InternalFunctionLibraryDsl.g:4380:1: ruleXUnaryOperation returns [EObject current=null] : ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ; |
| public final EObject ruleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_operand_2_0 = null; |
| |
| EObject this_XCastedExpression_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4386:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalFunctionLibraryDsl.g:4387:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:4387:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( ((LA63_0>=73 && LA63_0<=74)||LA63_0==78) ) { |
| alt63=1; |
| } |
| else if ( ((LA63_0>=RULE_ID && LA63_0<=RULE_DECIMAL)||LA63_0==14||LA63_0==29||(LA63_0>=41 && LA63_0<=43)||(LA63_0>=49 && LA63_0<=50)||LA63_0==57||LA63_0==86||LA63_0==88||(LA63_0>=92 && LA63_0<=94)||(LA63_0>=97 && LA63_0<=106)||LA63_0==108) ) { |
| alt63=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 63, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt63) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4388:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4388:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalFunctionLibraryDsl.g:4389:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4389:4: () |
| // InternalFunctionLibraryDsl.g:4390:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4396:4: ( ( ruleOpUnary ) ) |
| // InternalFunctionLibraryDsl.g:4397:5: ( ruleOpUnary ) |
| { |
| // InternalFunctionLibraryDsl.g:4397:5: ( ruleOpUnary ) |
| // InternalFunctionLibraryDsl.g:4398:6: ruleOpUnary |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXUnaryOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4412:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalFunctionLibraryDsl.g:4413:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalFunctionLibraryDsl.g:4413:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalFunctionLibraryDsl.g:4414:6: lv_operand_2_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_operand_2_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); |
| } |
| set( |
| current, |
| "operand", |
| lv_operand_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4433:3: this_XCastedExpression_3= ruleXCastedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCastedExpression_3=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCastedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXUnaryOperation" |
| |
| |
| // $ANTLR start "entryRuleOpUnary" |
| // InternalFunctionLibraryDsl.g:4445:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4445:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalFunctionLibraryDsl.g:4446:2: iv_ruleOpUnary= ruleOpUnary EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpUnaryRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpUnary=ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpUnary.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpUnary" |
| |
| |
| // $ANTLR start "ruleOpUnary" |
| // InternalFunctionLibraryDsl.g:4452:1: ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '!' | kw= '-' | kw= '+' ) ; |
| public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4458:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalFunctionLibraryDsl.g:4459:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalFunctionLibraryDsl.g:4459:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt64=3; |
| switch ( input.LA(1) ) { |
| case 78: |
| { |
| alt64=1; |
| } |
| break; |
| case 74: |
| { |
| alt64=2; |
| } |
| break; |
| case 73: |
| { |
| alt64=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 64, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt64) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4460:3: kw= '!' |
| { |
| kw=(Token)match(input,78,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4466:3: kw= '-' |
| { |
| kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4472:3: kw= '+' |
| { |
| kw=(Token)match(input,73,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpUnary" |
| |
| |
| // $ANTLR start "entryRuleXCastedExpression" |
| // InternalFunctionLibraryDsl.g:4481:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4481:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalFunctionLibraryDsl.g:4482:2: iv_ruleXCastedExpression= ruleXCastedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCastedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCastedExpression=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCastedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCastedExpression" |
| |
| |
| // $ANTLR start "ruleXCastedExpression" |
| // InternalFunctionLibraryDsl.g:4488:1: ruleXCastedExpression returns [EObject current=null] : (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ; |
| public final EObject ruleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XPostfixOperation_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4494:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalFunctionLibraryDsl.g:4495:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:4495:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalFunctionLibraryDsl.g:4496:3: this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4504:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop65: |
| do { |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==79) ) { |
| int LA65_2 = input.LA(2); |
| |
| if ( (synpred18_InternalFunctionLibraryDsl()) ) { |
| alt65=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt65) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4505:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4505:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalFunctionLibraryDsl.g:4506:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalFunctionLibraryDsl.g:4512:5: ( () otherlv_2= 'as' ) |
| // InternalFunctionLibraryDsl.g:4513:6: () otherlv_2= 'as' |
| { |
| // InternalFunctionLibraryDsl.g:4513:6: () |
| // InternalFunctionLibraryDsl.g:4514:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,79,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4526:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:4527:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:4527:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:4528:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop65; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalFunctionLibraryDsl.g:4550:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4550:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalFunctionLibraryDsl.g:4551:2: iv_ruleXPostfixOperation= ruleXPostfixOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPostfixOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPostfixOperation=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPostfixOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPostfixOperation" |
| |
| |
| // $ANTLR start "ruleXPostfixOperation" |
| // InternalFunctionLibraryDsl.g:4557:1: ruleXPostfixOperation returns [EObject current=null] : (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ; |
| public final EObject ruleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMemberFeatureCall_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4563:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalFunctionLibraryDsl.g:4564:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:4564:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalFunctionLibraryDsl.g:4565:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4573:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( (LA66_0==80) ) { |
| int LA66_1 = input.LA(2); |
| |
| if ( (synpred19_InternalFunctionLibraryDsl()) ) { |
| alt66=1; |
| } |
| } |
| else if ( (LA66_0==81) ) { |
| int LA66_2 = input.LA(2); |
| |
| if ( (synpred19_InternalFunctionLibraryDsl()) ) { |
| alt66=1; |
| } |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4574:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4584:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalFunctionLibraryDsl.g:4585:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4585:5: () |
| // InternalFunctionLibraryDsl.g:4586:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4592:5: ( ( ruleOpPostfix ) ) |
| // InternalFunctionLibraryDsl.g:4593:6: ( ruleOpPostfix ) |
| { |
| // InternalFunctionLibraryDsl.g:4593:6: ( ruleOpPostfix ) |
| // InternalFunctionLibraryDsl.g:4594:7: ruleOpPostfix |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXPostfixOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPostfixOperation" |
| |
| |
| // $ANTLR start "entryRuleOpPostfix" |
| // InternalFunctionLibraryDsl.g:4614:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4614:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalFunctionLibraryDsl.g:4615:2: iv_ruleOpPostfix= ruleOpPostfix EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpPostfixRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpPostfix=ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpPostfix.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpPostfix" |
| |
| |
| // $ANTLR start "ruleOpPostfix" |
| // InternalFunctionLibraryDsl.g:4621:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4627:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalFunctionLibraryDsl.g:4628:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalFunctionLibraryDsl.g:4628:2: (kw= '++' | kw= '--' ) |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( (LA67_0==80) ) { |
| alt67=1; |
| } |
| else if ( (LA67_0==81) ) { |
| alt67=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4629:3: kw= '++' |
| { |
| kw=(Token)match(input,80,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4635:3: kw= '--' |
| { |
| kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpPostfix" |
| |
| |
| // $ANTLR start "entryRuleXMemberFeatureCall" |
| // InternalFunctionLibraryDsl.g:4644:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4644:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalFunctionLibraryDsl.g:4645:2: iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMemberFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "ruleXMemberFeatureCall" |
| // InternalFunctionLibraryDsl.g:4651:1: ruleXMemberFeatureCall returns [EObject current=null] : (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ; |
| public final EObject ruleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitStatic_3_0=null; |
| Token otherlv_8=null; |
| Token lv_nullSafe_9_0=null; |
| Token lv_explicitStatic_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| Token lv_explicitOperationCall_17_0=null; |
| Token otherlv_20=null; |
| Token otherlv_22=null; |
| EObject this_XPrimaryExpression_0 = null; |
| |
| EObject lv_value_6_0 = null; |
| |
| EObject lv_typeArguments_12_0 = null; |
| |
| EObject lv_typeArguments_14_0 = null; |
| |
| EObject lv_memberCallArguments_18_0 = null; |
| |
| EObject lv_memberCallArguments_19_0 = null; |
| |
| EObject lv_memberCallArguments_21_0 = null; |
| |
| EObject lv_memberCallArguments_23_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:4657:2: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ) |
| // InternalFunctionLibraryDsl.g:4658:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:4658:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| // InternalFunctionLibraryDsl.g:4659:3: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4667:3: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| loop76: |
| do { |
| int alt76=3; |
| switch ( input.LA(1) ) { |
| case 82: |
| { |
| int LA76_2 = input.LA(2); |
| |
| if ( (synpred20_InternalFunctionLibraryDsl()) ) { |
| alt76=1; |
| } |
| else if ( (synpred21_InternalFunctionLibraryDsl()) ) { |
| alt76=2; |
| } |
| |
| |
| } |
| break; |
| case 83: |
| { |
| int LA76_3 = input.LA(2); |
| |
| if ( (synpred20_InternalFunctionLibraryDsl()) ) { |
| alt76=1; |
| } |
| else if ( (synpred21_InternalFunctionLibraryDsl()) ) { |
| alt76=2; |
| } |
| |
| |
| } |
| break; |
| case 84: |
| { |
| int LA76_4 = input.LA(2); |
| |
| if ( (synpred21_InternalFunctionLibraryDsl()) ) { |
| alt76=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt76) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4668:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4668:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalFunctionLibraryDsl.g:4669:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4669:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalFunctionLibraryDsl.g:4670:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalFunctionLibraryDsl.g:4690:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalFunctionLibraryDsl.g:4691:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalFunctionLibraryDsl.g:4691:7: () |
| // InternalFunctionLibraryDsl.g:4692:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4698:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==82) ) { |
| alt68=1; |
| } |
| else if ( (LA68_0==83) ) { |
| alt68=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4699:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,82,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4704:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4704:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalFunctionLibraryDsl.g:4705:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalFunctionLibraryDsl.g:4705:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalFunctionLibraryDsl.g:4706:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,83,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4719:7: ( ( ruleFeatureCallID ) ) |
| // InternalFunctionLibraryDsl.g:4720:8: ( ruleFeatureCallID ) |
| { |
| // InternalFunctionLibraryDsl.g:4720:8: ( ruleFeatureCallID ) |
| // InternalFunctionLibraryDsl.g:4721:9: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4744:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalFunctionLibraryDsl.g:4745:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalFunctionLibraryDsl.g:4745:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalFunctionLibraryDsl.g:4746:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| lv_value_6_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4765:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:4765:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| // InternalFunctionLibraryDsl.g:4766:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| { |
| // InternalFunctionLibraryDsl.g:4766:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4767:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4787:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4788:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4788:7: () |
| // InternalFunctionLibraryDsl.g:4789:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4795:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt69=3; |
| switch ( input.LA(1) ) { |
| case 82: |
| { |
| alt69=1; |
| } |
| break; |
| case 84: |
| { |
| alt69=2; |
| } |
| break; |
| case 83: |
| { |
| alt69=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 69, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt69) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4796:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,82,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4801:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4801:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalFunctionLibraryDsl.g:4802:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalFunctionLibraryDsl.g:4802:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalFunctionLibraryDsl.g:4803:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,84,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "nullSafe", true, "?."); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4816:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4816:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalFunctionLibraryDsl.g:4817:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalFunctionLibraryDsl.g:4817:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalFunctionLibraryDsl.g:4818:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,83,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4833:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==57) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4834:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,57,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4838:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:4839:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:4839:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:4840:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4857:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop70: |
| do { |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==30) ) { |
| alt70=1; |
| } |
| |
| |
| switch (alt70) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4858:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,30,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4862:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:4863:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:4863:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:4864:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_14_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_14_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop70; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,58,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4887:5: ( ( ruleIdOrSuper ) ) |
| // InternalFunctionLibraryDsl.g:4888:6: ( ruleIdOrSuper ) |
| { |
| // InternalFunctionLibraryDsl.g:4888:6: ( ruleIdOrSuper ) |
| // InternalFunctionLibraryDsl.g:4889:7: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_57); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4903:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? |
| int alt74=2; |
| alt74 = dfa74.predict(input); |
| switch (alt74) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4904:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' |
| { |
| // InternalFunctionLibraryDsl.g:4904:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalFunctionLibraryDsl.g:4905:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:4909:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalFunctionLibraryDsl.g:4910:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,29,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4922:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt73=3; |
| alt73 = dfa73.predict(input); |
| switch (alt73) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4923:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4923:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalFunctionLibraryDsl.g:4924:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:4949:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalFunctionLibraryDsl.g:4950:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_memberCallArguments_18_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_18_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4968:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:4968:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:4969:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:4969:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:4970:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:4970:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:4971:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_memberCallArguments_19_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_19_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4988:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop72: |
| do { |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( (LA72_0==30) ) { |
| alt72=1; |
| } |
| |
| |
| switch (alt72) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4989:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:4993:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:4994:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:4994:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:4995:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_memberCallArguments_21_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_21_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop72; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,31,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5020:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt75=2; |
| alt75 = dfa75.predict(input); |
| switch (alt75) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5021:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:5027:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalFunctionLibraryDsl.g:5028:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| lv_memberCallArguments_23_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_23_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop76; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalFunctionLibraryDsl.g:5051:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5051:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalFunctionLibraryDsl.g:5052:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPrimaryExpression=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPrimaryExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPrimaryExpression" |
| |
| |
| // $ANTLR start "ruleXPrimaryExpression" |
| // InternalFunctionLibraryDsl.g:5058:1: ruleXPrimaryExpression returns [EObject current=null] : (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ; |
| public final EObject ruleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XConstructorCall_0 = null; |
| |
| EObject this_XBlockExpression_1 = null; |
| |
| EObject this_XSwitchExpression_2 = null; |
| |
| EObject this_XSynchronizedExpression_3 = null; |
| |
| EObject this_XFeatureCall_4 = null; |
| |
| EObject this_XLiteral_5 = null; |
| |
| EObject this_XIfExpression_6 = null; |
| |
| EObject this_XForLoopExpression_7 = null; |
| |
| EObject this_XBasicForLoopExpression_8 = null; |
| |
| EObject this_XWhileExpression_9 = null; |
| |
| EObject this_XDoWhileExpression_10 = null; |
| |
| EObject this_XThrowExpression_11 = null; |
| |
| EObject this_XReturnExpression_12 = null; |
| |
| EObject this_XTryCatchFinallyExpression_13 = null; |
| |
| EObject this_XParenthesizedExpression_14 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5064:2: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ) |
| // InternalFunctionLibraryDsl.g:5065:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5065:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| int alt77=15; |
| alt77 = dfa77.predict(input); |
| switch (alt77) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5066:3: this_XConstructorCall_0= ruleXConstructorCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XConstructorCall_0=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XConstructorCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:5075:3: this_XBlockExpression_1= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBlockExpression_1=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBlockExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:5084:3: this_XSwitchExpression_2= ruleXSwitchExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSwitchExpression_2=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSwitchExpression_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:5093:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5093:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalFunctionLibraryDsl.g:5094:4: ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSynchronizedExpression_3=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSynchronizedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:5111:3: this_XFeatureCall_4= ruleXFeatureCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFeatureCall_4=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFeatureCall_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalFunctionLibraryDsl.g:5120:3: this_XLiteral_5= ruleXLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XLiteral_5=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalFunctionLibraryDsl.g:5129:3: this_XIfExpression_6= ruleXIfExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XIfExpression_6=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XIfExpression_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalFunctionLibraryDsl.g:5138:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5138:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalFunctionLibraryDsl.g:5139:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XForLoopExpression_7=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XForLoopExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalFunctionLibraryDsl.g:5162:3: this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBasicForLoopExpression_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalFunctionLibraryDsl.g:5171:3: this_XWhileExpression_9= ruleXWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XWhileExpression_9=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XWhileExpression_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalFunctionLibraryDsl.g:5180:3: this_XDoWhileExpression_10= ruleXDoWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XDoWhileExpression_10=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XDoWhileExpression_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalFunctionLibraryDsl.g:5189:3: this_XThrowExpression_11= ruleXThrowExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XThrowExpression_11=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XThrowExpression_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalFunctionLibraryDsl.g:5198:3: this_XReturnExpression_12= ruleXReturnExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XReturnExpression_12=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XReturnExpression_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalFunctionLibraryDsl.g:5207:3: this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTryCatchFinallyExpression_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 15 : |
| // InternalFunctionLibraryDsl.g:5216:3: this_XParenthesizedExpression_14= ruleXParenthesizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XParenthesizedExpression_14=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XParenthesizedExpression_14; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPrimaryExpression" |
| |
| |
| // $ANTLR start "entryRuleXLiteral" |
| // InternalFunctionLibraryDsl.g:5228:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5228:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:5229:2: iv_ruleXLiteral= ruleXLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXLiteral=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXLiteral" |
| |
| |
| // $ANTLR start "ruleXLiteral" |
| // InternalFunctionLibraryDsl.g:5235:1: ruleXLiteral returns [EObject current=null] : (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ; |
| public final EObject ruleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XCollectionLiteral_0 = null; |
| |
| EObject this_XClosure_1 = null; |
| |
| EObject this_XBooleanLiteral_2 = null; |
| |
| EObject this_XNumberLiteral_3 = null; |
| |
| EObject this_XNullLiteral_4 = null; |
| |
| EObject this_XStringLiteral_5 = null; |
| |
| EObject this_XTypeLiteral_6 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5241:2: ( (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ) |
| // InternalFunctionLibraryDsl.g:5242:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| { |
| // InternalFunctionLibraryDsl.g:5242:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| int alt78=7; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==49) ) { |
| alt78=1; |
| } |
| else if ( (LA78_0==50) && (synpred27_InternalFunctionLibraryDsl())) { |
| alt78=2; |
| } |
| else if ( ((LA78_0>=100 && LA78_0<=101)) ) { |
| alt78=3; |
| } |
| else if ( ((LA78_0>=RULE_HEX && LA78_0<=RULE_DECIMAL)) ) { |
| alt78=4; |
| } |
| else if ( (LA78_0==102) ) { |
| alt78=5; |
| } |
| else if ( (LA78_0==RULE_STRING) ) { |
| alt78=6; |
| } |
| else if ( (LA78_0==103) ) { |
| alt78=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 78, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5243:3: this_XCollectionLiteral_0= ruleXCollectionLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCollectionLiteral_0=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCollectionLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:5252:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:5252:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalFunctionLibraryDsl.g:5253:4: ( ( () '[' ) )=>this_XClosure_1= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XClosure_1=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XClosure_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:5269:3: this_XBooleanLiteral_2= ruleXBooleanLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBooleanLiteral_2=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBooleanLiteral_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:5278:3: this_XNumberLiteral_3= ruleXNumberLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNumberLiteral_3=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNumberLiteral_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:5287:3: this_XNullLiteral_4= ruleXNullLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNullLiteral_4=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNullLiteral_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalFunctionLibraryDsl.g:5296:3: this_XStringLiteral_5= ruleXStringLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XStringLiteral_5=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XStringLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalFunctionLibraryDsl.g:5305:3: this_XTypeLiteral_6= ruleXTypeLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTypeLiteral_6=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTypeLiteral_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXLiteral" |
| |
| |
| // $ANTLR start "entryRuleXCollectionLiteral" |
| // InternalFunctionLibraryDsl.g:5317:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5317:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:5318:2: iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCollectionLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCollectionLiteral=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCollectionLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCollectionLiteral" |
| |
| |
| // $ANTLR start "ruleXCollectionLiteral" |
| // InternalFunctionLibraryDsl.g:5324:1: ruleXCollectionLiteral returns [EObject current=null] : (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ; |
| public final EObject ruleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XSetLiteral_0 = null; |
| |
| EObject this_XListLiteral_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5330:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalFunctionLibraryDsl.g:5331:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalFunctionLibraryDsl.g:5331:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==49) ) { |
| int LA79_1 = input.LA(2); |
| |
| if ( (LA79_1==50) ) { |
| alt79=2; |
| } |
| else if ( (LA79_1==14) ) { |
| alt79=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 79, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 79, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5332:3: this_XSetLiteral_0= ruleXSetLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSetLiteral_0=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSetLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:5341:3: this_XListLiteral_1= ruleXListLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XListLiteral_1=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XListLiteral_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCollectionLiteral" |
| |
| |
| // $ANTLR start "entryRuleXSetLiteral" |
| // InternalFunctionLibraryDsl.g:5353:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5353:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:5354:2: iv_ruleXSetLiteral= ruleXSetLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSetLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSetLiteral=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSetLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSetLiteral" |
| |
| |
| // $ANTLR start "ruleXSetLiteral" |
| // InternalFunctionLibraryDsl.g:5360:1: ruleXSetLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ; |
| public final EObject ruleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5366:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalFunctionLibraryDsl.g:5367:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:5367:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalFunctionLibraryDsl.g:5368:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalFunctionLibraryDsl.g:5368:3: () |
| // InternalFunctionLibraryDsl.g:5369:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5383:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( ((LA81_0>=RULE_ID && LA81_0<=RULE_DECIMAL)||LA81_0==14||LA81_0==29||(LA81_0>=41 && LA81_0<=43)||(LA81_0>=49 && LA81_0<=50)||LA81_0==57||(LA81_0>=73 && LA81_0<=74)||LA81_0==78||LA81_0==86||LA81_0==88||(LA81_0>=92 && LA81_0<=94)||(LA81_0>=97 && LA81_0<=106)||LA81_0==108) ) { |
| alt81=1; |
| } |
| switch (alt81) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5384:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:5384:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5385:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5385:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5386:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5403:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop80: |
| do { |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==30) ) { |
| alt80=1; |
| } |
| |
| |
| switch (alt80) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5404:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5408:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5409:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5409:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5410:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop80; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSetLiteral" |
| |
| |
| // $ANTLR start "entryRuleXListLiteral" |
| // InternalFunctionLibraryDsl.g:5437:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5437:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:5438:2: iv_ruleXListLiteral= ruleXListLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXListLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXListLiteral=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXListLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXListLiteral" |
| |
| |
| // $ANTLR start "ruleXListLiteral" |
| // InternalFunctionLibraryDsl.g:5444:1: ruleXListLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ; |
| public final EObject ruleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5450:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalFunctionLibraryDsl.g:5451:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalFunctionLibraryDsl.g:5451:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalFunctionLibraryDsl.g:5452:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalFunctionLibraryDsl.g:5452:3: () |
| // InternalFunctionLibraryDsl.g:5453:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,50,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5467:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( ((LA83_0>=RULE_ID && LA83_0<=RULE_DECIMAL)||LA83_0==14||LA83_0==29||(LA83_0>=41 && LA83_0<=43)||(LA83_0>=49 && LA83_0<=50)||LA83_0==57||(LA83_0>=73 && LA83_0<=74)||LA83_0==78||LA83_0==86||LA83_0==88||(LA83_0>=92 && LA83_0<=94)||(LA83_0>=97 && LA83_0<=106)||LA83_0==108) ) { |
| alt83=1; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5468:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:5468:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5469:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5469:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5470:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5487:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop82: |
| do { |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==30) ) { |
| alt82=1; |
| } |
| |
| |
| switch (alt82) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5488:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5492:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5493:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5493:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5494:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop82; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXListLiteral" |
| |
| |
| // $ANTLR start "entryRuleXClosure" |
| // InternalFunctionLibraryDsl.g:5521:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5521:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalFunctionLibraryDsl.g:5522:2: iv_ruleXClosure= ruleXClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXClosure=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXClosure" |
| |
| |
| // $ANTLR start "ruleXClosure" |
| // InternalFunctionLibraryDsl.g:5528:1: ruleXClosure returns [EObject current=null] : ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ; |
| public final EObject ruleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_explicitSyntax_5_0=null; |
| Token otherlv_7=null; |
| EObject lv_declaredFormalParameters_2_0 = null; |
| |
| EObject lv_declaredFormalParameters_4_0 = null; |
| |
| EObject lv_expression_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5534:2: ( ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ) |
| // InternalFunctionLibraryDsl.g:5535:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| { |
| // InternalFunctionLibraryDsl.g:5535:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| // InternalFunctionLibraryDsl.g:5536:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' |
| { |
| // InternalFunctionLibraryDsl.g:5536:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalFunctionLibraryDsl.g:5537:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:5543:4: ( () otherlv_1= '[' ) |
| // InternalFunctionLibraryDsl.g:5544:5: () otherlv_1= '[' |
| { |
| // InternalFunctionLibraryDsl.g:5544:5: () |
| // InternalFunctionLibraryDsl.g:5545:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5557:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt86=2; |
| alt86 = dfa86.predict(input); |
| switch (alt86) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5558:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5581:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:5582:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5582:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==RULE_ID||LA85_0==29||LA85_0==70) ) { |
| alt85=1; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5583:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:5583:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5584:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5584:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5585:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| lv_declaredFormalParameters_2_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_2_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5602:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop84: |
| do { |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==30) ) { |
| alt84=1; |
| } |
| |
| |
| switch (alt84) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5603:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5607:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5608:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5608:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5609:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| lv_declaredFormalParameters_4_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_4_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop84; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5628:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalFunctionLibraryDsl.g:5629:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:5629:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalFunctionLibraryDsl.g:5630:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,85,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5644:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalFunctionLibraryDsl.g:5645:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:5645:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalFunctionLibraryDsl.g:5646:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_65); |
| lv_expression_6_0=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXClosure" |
| |
| |
| // $ANTLR start "entryRuleXExpressionInClosure" |
| // InternalFunctionLibraryDsl.g:5671:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5671:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalFunctionLibraryDsl.g:5672:2: iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionInClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionInClosure=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionInClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionInClosure" |
| |
| |
| // $ANTLR start "ruleXExpressionInClosure" |
| // InternalFunctionLibraryDsl.g:5678:1: ruleXExpressionInClosure returns [EObject current=null] : ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ; |
| public final EObject ruleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject lv_expressions_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5684:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalFunctionLibraryDsl.g:5685:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalFunctionLibraryDsl.g:5685:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalFunctionLibraryDsl.g:5686:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalFunctionLibraryDsl.g:5686:3: () |
| // InternalFunctionLibraryDsl.g:5687:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5693:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop88: |
| do { |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( ((LA88_0>=RULE_ID && LA88_0<=RULE_DECIMAL)||LA88_0==14||LA88_0==29||(LA88_0>=41 && LA88_0<=43)||(LA88_0>=49 && LA88_0<=50)||LA88_0==57||(LA88_0>=73 && LA88_0<=74)||LA88_0==78||LA88_0==86||LA88_0==88||(LA88_0>=92 && LA88_0<=106)||LA88_0==108) ) { |
| alt88=1; |
| } |
| |
| |
| switch (alt88) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5694:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalFunctionLibraryDsl.g:5694:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalFunctionLibraryDsl.g:5695:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalFunctionLibraryDsl.g:5695:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalFunctionLibraryDsl.g:5696:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_66); |
| lv_expressions_1_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5713:4: (otherlv_2= ';' )? |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==46) ) { |
| alt87=1; |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5714:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,46,FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop88; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalFunctionLibraryDsl.g:5724:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5724:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalFunctionLibraryDsl.g:5725:2: iv_ruleXShortClosure= ruleXShortClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXShortClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXShortClosure=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXShortClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXShortClosure" |
| |
| |
| // $ANTLR start "ruleXShortClosure" |
| // InternalFunctionLibraryDsl.g:5731:1: ruleXShortClosure returns [EObject current=null] : ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitSyntax_4_0=null; |
| EObject lv_declaredFormalParameters_1_0 = null; |
| |
| EObject lv_declaredFormalParameters_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5737:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:5738:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5738:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:5739:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5739:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:5740:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5765:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:5766:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5766:5: () |
| // InternalFunctionLibraryDsl.g:5767:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5773:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==RULE_ID||LA90_0==29||LA90_0==70) ) { |
| alt90=1; |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5774:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:5774:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5775:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5775:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5776:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| lv_declaredFormalParameters_1_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_1_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5793:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop89: |
| do { |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==30) ) { |
| alt89=1; |
| } |
| |
| |
| switch (alt89) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5794:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5798:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5799:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5799:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5800:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| lv_declaredFormalParameters_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop89; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5819:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalFunctionLibraryDsl.g:5820:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:5820:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalFunctionLibraryDsl.g:5821:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,85,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXShortClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5835:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5836:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5836:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5837:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXShortClosure" |
| |
| |
| // $ANTLR start "entryRuleXParenthesizedExpression" |
| // InternalFunctionLibraryDsl.g:5858:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5858:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalFunctionLibraryDsl.g:5859:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXParenthesizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "ruleXParenthesizedExpression" |
| // InternalFunctionLibraryDsl.g:5865:1: ruleXParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ; |
| public final EObject ruleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5871:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalFunctionLibraryDsl.g:5872:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalFunctionLibraryDsl.g:5872:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalFunctionLibraryDsl.g:5873:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,29,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_2=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXIfExpression" |
| // InternalFunctionLibraryDsl.g:5893:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5893:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalFunctionLibraryDsl.g:5894:2: iv_ruleXIfExpression= ruleXIfExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXIfExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXIfExpression=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXIfExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXIfExpression" |
| |
| |
| // $ANTLR start "ruleXIfExpression" |
| // InternalFunctionLibraryDsl.g:5900:1: ruleXIfExpression returns [EObject current=null] : ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_if_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| EObject lv_else_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5906:2: ( ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ) |
| // InternalFunctionLibraryDsl.g:5907:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:5907:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| // InternalFunctionLibraryDsl.g:5908:3: () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| { |
| // InternalFunctionLibraryDsl.g:5908:3: () |
| // InternalFunctionLibraryDsl.g:5909:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,86,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5923:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5924:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5924:4: (lv_if_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5925:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_if_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "if", |
| lv_if_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:5946:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5947:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5947:4: (lv_then_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5948:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5965:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==87) ) { |
| int LA91_1 = input.LA(2); |
| |
| if ( (synpred31_InternalFunctionLibraryDsl()) ) { |
| alt91=1; |
| } |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5966:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5966:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalFunctionLibraryDsl.g:5967:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,87,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5973:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:5974:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:5974:5: (lv_else_7_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:5975:6: lv_else_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_else_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "else", |
| lv_else_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXIfExpression" |
| |
| |
| // $ANTLR start "entryRuleXSwitchExpression" |
| // InternalFunctionLibraryDsl.g:5997:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:5997:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalFunctionLibraryDsl.g:5998:2: iv_ruleXSwitchExpression= ruleXSwitchExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSwitchExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSwitchExpression=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSwitchExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSwitchExpression" |
| |
| |
| // $ANTLR start "ruleXSwitchExpression" |
| // InternalFunctionLibraryDsl.g:6004:1: ruleXSwitchExpression returns [EObject current=null] : ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ; |
| public final EObject ruleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_switch_5_0 = null; |
| |
| EObject lv_declaredParam_7_0 = null; |
| |
| EObject lv_switch_9_0 = null; |
| |
| EObject lv_cases_11_0 = null; |
| |
| EObject lv_default_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6010:2: ( ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ) |
| // InternalFunctionLibraryDsl.g:6011:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:6011:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| // InternalFunctionLibraryDsl.g:6012:3: () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' |
| { |
| // InternalFunctionLibraryDsl.g:6012:3: () |
| // InternalFunctionLibraryDsl.g:6013:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,88,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6023:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) |
| int alt93=2; |
| alt93 = dfa93.predict(input); |
| switch (alt93) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6024:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalFunctionLibraryDsl.g:6024:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalFunctionLibraryDsl.g:6025:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalFunctionLibraryDsl.g:6025:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalFunctionLibraryDsl.g:6026:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:6036:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalFunctionLibraryDsl.g:6037:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,29,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6041:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:6042:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:6042:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:6043:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,89,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6066:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6067:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6067:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6068:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_switch_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:6091:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6091:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:6092:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6092:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt92=2; |
| alt92 = dfa92.predict(input); |
| switch (alt92) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6093:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:6102:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalFunctionLibraryDsl.g:6103:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalFunctionLibraryDsl.g:6103:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:6104:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:6104:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:6105:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| lv_declaredParam_7_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_7_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,89,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6128:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6129:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6129:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6130:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_switch_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,14,FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6153:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop94: |
| do { |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==RULE_ID||(LA94_0>=29 && LA94_0<=30)||LA94_0==70||LA94_0==89||LA94_0==91) ) { |
| alt94=1; |
| } |
| |
| |
| switch (alt94) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6154:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalFunctionLibraryDsl.g:6154:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalFunctionLibraryDsl.g:6155:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| lv_cases_11_0=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| add( |
| current, |
| "cases", |
| lv_cases_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XCasePart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop94; |
| } |
| } while (true); |
| |
| // InternalFunctionLibraryDsl.g:6172:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( (LA95_0==90) ) { |
| alt95=1; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6173:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,90,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,89,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6181:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6182:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6182:5: (lv_default_14_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6183:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_default_14_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "default", |
| lv_default_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSwitchExpression" |
| |
| |
| // $ANTLR start "entryRuleXCasePart" |
| // InternalFunctionLibraryDsl.g:6209:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6209:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalFunctionLibraryDsl.g:6210:2: iv_ruleXCasePart= ruleXCasePart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCasePartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCasePart=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCasePart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCasePart" |
| |
| |
| // $ANTLR start "ruleXCasePart" |
| // InternalFunctionLibraryDsl.g:6216:1: ruleXCasePart returns [EObject current=null] : ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ; |
| public final EObject ruleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token lv_fallThrough_6_0=null; |
| EObject lv_typeGuard_1_0 = null; |
| |
| EObject lv_case_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6222:2: ( ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6223:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6223:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6224:3: () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6224:3: () |
| // InternalFunctionLibraryDsl.g:6225:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6231:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt96=2; |
| int LA96_0 = input.LA(1); |
| |
| if ( (LA96_0==RULE_ID||LA96_0==29||LA96_0==70) ) { |
| alt96=1; |
| } |
| switch (alt96) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6232:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:6232:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:6233:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_typeGuard_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "typeGuard", |
| lv_typeGuard_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6250:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==91) ) { |
| alt97=1; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6251:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,91,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6255:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6256:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6256:5: (lv_case_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6257:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| lv_case_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "case", |
| lv_case_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6275:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( (LA98_0==89) ) { |
| alt98=1; |
| } |
| else if ( (LA98_0==30) ) { |
| alt98=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 98, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt98) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6276:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6276:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:6277:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,89,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6281:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6282:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6282:6: (lv_then_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6283:7: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:6302:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6302:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalFunctionLibraryDsl.g:6303:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalFunctionLibraryDsl.g:6303:5: (lv_fallThrough_6_0= ',' ) |
| // InternalFunctionLibraryDsl.g:6304:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXCasePartRule()); |
| } |
| setWithLastConsumed(current, "fallThrough", true, ","); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCasePart" |
| |
| |
| // $ANTLR start "entryRuleXForLoopExpression" |
| // InternalFunctionLibraryDsl.g:6321:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6321:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalFunctionLibraryDsl.g:6322:2: iv_ruleXForLoopExpression= ruleXForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXForLoopExpression=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXForLoopExpression" |
| // InternalFunctionLibraryDsl.g:6328:1: ruleXForLoopExpression returns [EObject current=null] : ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_forExpression_5_0 = null; |
| |
| EObject lv_eachExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6334:2: ( ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6335:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6335:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:6336:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6336:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalFunctionLibraryDsl.g:6337:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:6350:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalFunctionLibraryDsl.g:6351:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalFunctionLibraryDsl.g:6351:5: () |
| // InternalFunctionLibraryDsl.g:6352:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,92,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6366:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:6367:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:6367:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:6368:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,89,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6391:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6392:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6392:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6393:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_forExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "forExpression", |
| lv_forExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6414:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6415:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6415:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6416:5: lv_eachExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXBasicForLoopExpression" |
| // InternalFunctionLibraryDsl.g:6437:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6437:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalFunctionLibraryDsl.g:6438:2: iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBasicForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXBasicForLoopExpression" |
| // InternalFunctionLibraryDsl.g:6444:1: ruleXBasicForLoopExpression returns [EObject current=null] : ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_initExpressions_3_0 = null; |
| |
| EObject lv_initExpressions_5_0 = null; |
| |
| EObject lv_expression_7_0 = null; |
| |
| EObject lv_updateExpressions_9_0 = null; |
| |
| EObject lv_updateExpressions_11_0 = null; |
| |
| EObject lv_eachExpression_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6450:2: ( ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6451:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6451:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:6452:3: () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6452:3: () |
| // InternalFunctionLibraryDsl.g:6453:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,92,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6467:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( ((LA100_0>=RULE_ID && LA100_0<=RULE_DECIMAL)||LA100_0==14||LA100_0==29||(LA100_0>=41 && LA100_0<=43)||(LA100_0>=49 && LA100_0<=50)||LA100_0==57||(LA100_0>=73 && LA100_0<=74)||LA100_0==78||LA100_0==86||LA100_0==88||(LA100_0>=92 && LA100_0<=106)||LA100_0==108) ) { |
| alt100=1; |
| } |
| switch (alt100) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6468:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:6468:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalFunctionLibraryDsl.g:6469:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalFunctionLibraryDsl.g:6469:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalFunctionLibraryDsl.g:6470:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6487:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop99: |
| do { |
| int alt99=2; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==30) ) { |
| alt99=1; |
| } |
| |
| |
| switch (alt99) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6488:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6492:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalFunctionLibraryDsl.g:6493:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalFunctionLibraryDsl.g:6493:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalFunctionLibraryDsl.g:6494:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop99; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,46,FOLLOW_77); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6517:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( ((LA101_0>=RULE_ID && LA101_0<=RULE_DECIMAL)||LA101_0==14||LA101_0==29||(LA101_0>=41 && LA101_0<=43)||(LA101_0>=49 && LA101_0<=50)||LA101_0==57||(LA101_0>=73 && LA101_0<=74)||LA101_0==78||LA101_0==86||LA101_0==88||(LA101_0>=92 && LA101_0<=94)||(LA101_0>=97 && LA101_0<=106)||LA101_0==108) ) { |
| alt101=1; |
| } |
| switch (alt101) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6518:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6518:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6519:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| lv_expression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,46,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6540:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( ((LA103_0>=RULE_ID && LA103_0<=RULE_DECIMAL)||LA103_0==14||LA103_0==29||(LA103_0>=41 && LA103_0<=43)||(LA103_0>=49 && LA103_0<=50)||LA103_0==57||(LA103_0>=73 && LA103_0<=74)||LA103_0==78||LA103_0==86||LA103_0==88||(LA103_0>=92 && LA103_0<=94)||(LA103_0>=97 && LA103_0<=106)||LA103_0==108) ) { |
| alt103=1; |
| } |
| switch (alt103) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6541:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:6541:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6542:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6542:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6543:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_updateExpressions_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6560:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop102: |
| do { |
| int alt102=2; |
| int LA102_0 = input.LA(1); |
| |
| if ( (LA102_0==30) ) { |
| alt102=1; |
| } |
| |
| |
| switch (alt102) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6561:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6565:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6566:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6566:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6567:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_updateExpressions_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop102; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6590:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6591:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6591:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6592:5: lv_eachExpression_13_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_13_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXWhileExpression" |
| // InternalFunctionLibraryDsl.g:6613:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6613:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalFunctionLibraryDsl.g:6614:2: iv_ruleXWhileExpression= ruleXWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXWhileExpression=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXWhileExpression" |
| |
| |
| // $ANTLR start "ruleXWhileExpression" |
| // InternalFunctionLibraryDsl.g:6620:1: ruleXWhileExpression returns [EObject current=null] : ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_predicate_3_0 = null; |
| |
| EObject lv_body_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6626:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6627:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6627:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:6628:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6628:3: () |
| // InternalFunctionLibraryDsl.g:6629:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,93,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6643:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6644:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6644:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6645:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_predicate_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6666:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6667:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6667:4: (lv_body_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6668:5: lv_body_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXDoWhileExpression" |
| // InternalFunctionLibraryDsl.g:6689:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6689:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalFunctionLibraryDsl.g:6690:2: iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXDoWhileExpression=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXDoWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXDoWhileExpression" |
| |
| |
| // $ANTLR start "ruleXDoWhileExpression" |
| // InternalFunctionLibraryDsl.g:6696:1: ruleXDoWhileExpression returns [EObject current=null] : ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ; |
| public final EObject ruleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_body_2_0 = null; |
| |
| EObject lv_predicate_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6702:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalFunctionLibraryDsl.g:6703:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalFunctionLibraryDsl.g:6703:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalFunctionLibraryDsl.g:6704:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalFunctionLibraryDsl.g:6704:3: () |
| // InternalFunctionLibraryDsl.g:6705:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,94,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6715:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6716:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6716:4: (lv_body_2_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6717:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| lv_body_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,93,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,29,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6742:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6743:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6743:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6744:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_predicate_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXDoWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXBlockExpression" |
| // InternalFunctionLibraryDsl.g:6769:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6769:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalFunctionLibraryDsl.g:6770:2: iv_ruleXBlockExpression= ruleXBlockExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBlockExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBlockExpression=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBlockExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBlockExpression" |
| |
| |
| // $ANTLR start "ruleXBlockExpression" |
| // InternalFunctionLibraryDsl.g:6776:1: ruleXBlockExpression returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ; |
| public final EObject ruleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| EObject lv_expressions_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6782:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalFunctionLibraryDsl.g:6783:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalFunctionLibraryDsl.g:6783:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalFunctionLibraryDsl.g:6784:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalFunctionLibraryDsl.g:6784:3: () |
| // InternalFunctionLibraryDsl.g:6785:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6795:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop105: |
| do { |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( ((LA105_0>=RULE_ID && LA105_0<=RULE_DECIMAL)||LA105_0==14||LA105_0==29||(LA105_0>=41 && LA105_0<=43)||(LA105_0>=49 && LA105_0<=50)||LA105_0==57||(LA105_0>=73 && LA105_0<=74)||LA105_0==78||LA105_0==86||LA105_0==88||(LA105_0>=92 && LA105_0<=106)||LA105_0==108) ) { |
| alt105=1; |
| } |
| |
| |
| switch (alt105) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6796:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalFunctionLibraryDsl.g:6796:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalFunctionLibraryDsl.g:6797:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalFunctionLibraryDsl.g:6797:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalFunctionLibraryDsl.g:6798:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_expressions_2_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6815:4: (otherlv_3= ';' )? |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( (LA104_0==46) ) { |
| alt104=1; |
| } |
| switch (alt104) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6816:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,46,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop105; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBlockExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpressionOrVarDeclaration" |
| // InternalFunctionLibraryDsl.g:6830:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6830:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalFunctionLibraryDsl.g:6831:2: iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionOrVarDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "ruleXExpressionOrVarDeclaration" |
| // InternalFunctionLibraryDsl.g:6837:1: ruleXExpressionOrVarDeclaration returns [EObject current=null] : (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XVariableDeclaration_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6843:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6844:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6844:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( ((LA106_0>=95 && LA106_0<=96)) ) { |
| alt106=1; |
| } |
| else if ( ((LA106_0>=RULE_ID && LA106_0<=RULE_DECIMAL)||LA106_0==14||LA106_0==29||(LA106_0>=41 && LA106_0<=43)||(LA106_0>=49 && LA106_0<=50)||LA106_0==57||(LA106_0>=73 && LA106_0<=74)||LA106_0==78||LA106_0==86||LA106_0==88||(LA106_0>=92 && LA106_0<=94)||(LA106_0>=97 && LA106_0<=106)||LA106_0==108) ) { |
| alt106=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 106, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt106) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6845:3: this_XVariableDeclaration_0= ruleXVariableDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XVariableDeclaration_0=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XVariableDeclaration_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:6854:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXVariableDeclaration" |
| // InternalFunctionLibraryDsl.g:6866:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6866:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalFunctionLibraryDsl.g:6867:2: iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXVariableDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXVariableDeclaration=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXVariableDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXVariableDeclaration" |
| |
| |
| // $ANTLR start "ruleXVariableDeclaration" |
| // InternalFunctionLibraryDsl.g:6873:1: ruleXVariableDeclaration returns [EObject current=null] : ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_writeable_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| EObject lv_type_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_4_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_5_0 = null; |
| |
| EObject lv_right_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:6879:2: ( ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ) |
| // InternalFunctionLibraryDsl.g:6880:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:6880:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| // InternalFunctionLibraryDsl.g:6881:3: () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| { |
| // InternalFunctionLibraryDsl.g:6881:3: () |
| // InternalFunctionLibraryDsl.g:6882:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6888:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==95) ) { |
| alt107=1; |
| } |
| else if ( (LA107_0==96) ) { |
| alt107=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt107) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6889:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6889:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalFunctionLibraryDsl.g:6890:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalFunctionLibraryDsl.g:6890:5: (lv_writeable_1_0= 'var' ) |
| // InternalFunctionLibraryDsl.g:6891:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,95,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXVariableDeclarationRule()); |
| } |
| setWithLastConsumed(current, "writeable", true, "var"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:6904:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,96,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6909:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt108=2; |
| int LA108_0 = input.LA(1); |
| |
| if ( (LA108_0==RULE_ID) ) { |
| int LA108_1 = input.LA(2); |
| |
| if ( (synpred35_InternalFunctionLibraryDsl()) ) { |
| alt108=1; |
| } |
| else if ( (true) ) { |
| alt108=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA108_0==29) && (synpred35_InternalFunctionLibraryDsl())) { |
| alt108=1; |
| } |
| else if ( (LA108_0==70) && (synpred35_InternalFunctionLibraryDsl())) { |
| alt108=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt108) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6910:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6910:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6911:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6924:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:6925:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6925:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:6926:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:6926:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:6927:8: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6944:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:6945:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:6945:7: (lv_name_4_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:6946:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_name_4_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:6966:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6966:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:6967:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:6967:5: (lv_name_5_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:6968:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_name_5_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6986:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==48) ) { |
| alt109=1; |
| } |
| switch (alt109) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:6987:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,48,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:6991:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:6992:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:6992:5: (lv_right_7_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:6993:6: lv_right_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXVariableDeclaration" |
| |
| |
| // $ANTLR start "entryRuleJvmFormalParameter" |
| // InternalFunctionLibraryDsl.g:7015:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7015:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalFunctionLibraryDsl.g:7016:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmFormalParameter=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleJvmFormalParameter" |
| // InternalFunctionLibraryDsl.g:7022:1: ruleJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7028:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7029:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7029:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:7030:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7030:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==RULE_ID) ) { |
| int LA110_1 = input.LA(2); |
| |
| if ( (LA110_1==RULE_ID||LA110_1==50||LA110_1==57||LA110_1==82) ) { |
| alt110=1; |
| } |
| } |
| else if ( (LA110_0==29||LA110_0==70) ) { |
| alt110=1; |
| } |
| switch (alt110) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7031:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7031:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:7032:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7049:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:7050:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:7050:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:7051:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleFullJvmFormalParameter" |
| // InternalFunctionLibraryDsl.g:7072:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7072:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalFunctionLibraryDsl.g:7073:2: iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFullJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleFullJvmFormalParameter" |
| // InternalFunctionLibraryDsl.g:7079:1: ruleFullJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7085:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7086:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7086:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:7087:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7087:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:7088:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7088:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:7089:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7106:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:7107:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:7107:4: (lv_name_1_0= ruleValidID ) |
| // InternalFunctionLibraryDsl.g:7108:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleXFeatureCall" |
| // InternalFunctionLibraryDsl.g:7129:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7129:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalFunctionLibraryDsl.g:7130:2: iv_ruleXFeatureCall= ruleXFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFeatureCall=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFeatureCall" |
| |
| |
| // $ANTLR start "ruleXFeatureCall" |
| // InternalFunctionLibraryDsl.g:7136:1: ruleXFeatureCall returns [EObject current=null] : ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token lv_explicitOperationCall_7_0=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_typeArguments_2_0 = null; |
| |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_featureCallArguments_8_0 = null; |
| |
| EObject lv_featureCallArguments_9_0 = null; |
| |
| EObject lv_featureCallArguments_11_0 = null; |
| |
| EObject lv_featureCallArguments_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7142:2: ( ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ) |
| // InternalFunctionLibraryDsl.g:7143:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:7143:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| // InternalFunctionLibraryDsl.g:7144:3: () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| { |
| // InternalFunctionLibraryDsl.g:7144:3: () |
| // InternalFunctionLibraryDsl.g:7145:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7151:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( (LA112_0==57) ) { |
| alt112=1; |
| } |
| switch (alt112) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7152:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,57,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7156:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:7157:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7157:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:7158:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7175:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop111: |
| do { |
| int alt111=2; |
| int LA111_0 = input.LA(1); |
| |
| if ( (LA111_0==30) ) { |
| alt111=1; |
| } |
| |
| |
| switch (alt111) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7176:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,30,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7180:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:7181:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7181:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:7182:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop111; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,58,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7205:3: ( ( ruleIdOrSuper ) ) |
| // InternalFunctionLibraryDsl.g:7206:4: ( ruleIdOrSuper ) |
| { |
| // InternalFunctionLibraryDsl.g:7206:4: ( ruleIdOrSuper ) |
| // InternalFunctionLibraryDsl.g:7207:5: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7221:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? |
| int alt115=2; |
| alt115 = dfa115.predict(input); |
| switch (alt115) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7222:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' |
| { |
| // InternalFunctionLibraryDsl.g:7222:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalFunctionLibraryDsl.g:7223:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:7227:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalFunctionLibraryDsl.g:7228:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,29,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7240:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt114=3; |
| alt114 = dfa114.predict(input); |
| switch (alt114) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7241:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7241:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalFunctionLibraryDsl.g:7242:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:7267:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalFunctionLibraryDsl.g:7268:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_featureCallArguments_8_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_8_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:7286:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:7286:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:7287:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:7287:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:7288:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:7288:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:7289:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_featureCallArguments_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7306:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop113: |
| do { |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==30) ) { |
| alt113=1; |
| } |
| |
| |
| switch (alt113) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7307:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7311:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:7312:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:7312:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:7313:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_featureCallArguments_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop113; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,31,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7338:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt116=2; |
| alt116 = dfa116.predict(input); |
| switch (alt116) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7339:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:7345:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalFunctionLibraryDsl.g:7346:5: lv_featureCallArguments_13_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_featureCallArguments_13_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleFeatureCallID" |
| // InternalFunctionLibraryDsl.g:7367:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7367:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalFunctionLibraryDsl.g:7368:2: iv_ruleFeatureCallID= ruleFeatureCallID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFeatureCallIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFeatureCallID=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFeatureCallID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFeatureCallID" |
| |
| |
| // $ANTLR start "ruleFeatureCallID" |
| // InternalFunctionLibraryDsl.g:7374:1: ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ; |
| public final AntlrDatatypeRuleToken ruleFeatureCallID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7380:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalFunctionLibraryDsl.g:7381:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalFunctionLibraryDsl.g:7381:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt117=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt117=1; |
| } |
| break; |
| case 97: |
| { |
| alt117=2; |
| } |
| break; |
| case 42: |
| { |
| alt117=3; |
| } |
| break; |
| case 41: |
| { |
| alt117=4; |
| } |
| break; |
| case 43: |
| { |
| alt117=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 117, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt117) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7382:3: this_ValidID_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:7393:3: kw= 'extends' |
| { |
| kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:7399:3: kw= 'static' |
| { |
| kw=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalFunctionLibraryDsl.g:7405:3: kw= 'import' |
| { |
| kw=(Token)match(input,41,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalFunctionLibraryDsl.g:7411:3: kw= 'extension' |
| { |
| kw=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFeatureCallID" |
| |
| |
| // $ANTLR start "entryRuleIdOrSuper" |
| // InternalFunctionLibraryDsl.g:7420:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7420:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalFunctionLibraryDsl.g:7421:2: iv_ruleIdOrSuper= ruleIdOrSuper EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIdOrSuperRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIdOrSuper=ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIdOrSuper.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIdOrSuper" |
| |
| |
| // $ANTLR start "ruleIdOrSuper" |
| // InternalFunctionLibraryDsl.g:7427:1: ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ; |
| public final AntlrDatatypeRuleToken ruleIdOrSuper() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_FeatureCallID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7433:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalFunctionLibraryDsl.g:7434:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalFunctionLibraryDsl.g:7434:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==RULE_ID||(LA118_0>=41 && LA118_0<=43)||LA118_0==97) ) { |
| alt118=1; |
| } |
| else if ( (LA118_0==98) ) { |
| alt118=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 118, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7435:3: this_FeatureCallID_0= ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_FeatureCallID_0=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_FeatureCallID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:7446:3: kw= 'super' |
| { |
| kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIdOrSuper" |
| |
| |
| // $ANTLR start "entryRuleXConstructorCall" |
| // InternalFunctionLibraryDsl.g:7455:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7455:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalFunctionLibraryDsl.g:7456:2: iv_ruleXConstructorCall= ruleXConstructorCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXConstructorCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXConstructorCall=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXConstructorCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXConstructorCall" |
| |
| |
| // $ANTLR start "ruleXConstructorCall" |
| // InternalFunctionLibraryDsl.g:7462:1: ruleXConstructorCall returns [EObject current=null] : ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token lv_explicitConstructorCall_8_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_typeArguments_6_0 = null; |
| |
| EObject lv_arguments_9_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| EObject lv_arguments_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7468:2: ( ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ) |
| // InternalFunctionLibraryDsl.g:7469:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:7469:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| // InternalFunctionLibraryDsl.g:7470:3: () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| { |
| // InternalFunctionLibraryDsl.g:7470:3: () |
| // InternalFunctionLibraryDsl.g:7471:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,99,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7481:3: ( ( ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:7482:4: ( ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:7482:4: ( ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:7483:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_85); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7497:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt120=2; |
| alt120 = dfa120.predict(input); |
| switch (alt120) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7498:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalFunctionLibraryDsl.g:7498:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalFunctionLibraryDsl.g:7499:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,57,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7505:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:7506:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7506:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:7507:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7524:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop119: |
| do { |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==30) ) { |
| alt119=1; |
| } |
| |
| |
| switch (alt119) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7525:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,30,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7529:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:7530:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:7530:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:7531:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_typeArguments_6_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop119; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,58,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7554:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? |
| int alt123=2; |
| alt123 = dfa123.predict(input); |
| switch (alt123) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7555:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' |
| { |
| // InternalFunctionLibraryDsl.g:7555:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalFunctionLibraryDsl.g:7556:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:7560:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalFunctionLibraryDsl.g:7561:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,29,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| setWithLastConsumed(current, "explicitConstructorCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7573:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt122=3; |
| alt122 = dfa122.predict(input); |
| switch (alt122) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7574:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7574:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalFunctionLibraryDsl.g:7575:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:7600:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalFunctionLibraryDsl.g:7601:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_arguments_9_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:7619:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:7619:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalFunctionLibraryDsl.g:7620:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:7620:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:7621:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:7621:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:7622:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_arguments_10_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7639:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop121: |
| do { |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==30) ) { |
| alt121=1; |
| } |
| |
| |
| switch (alt121) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7640:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,30,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7644:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:7645:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:7645:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:7646:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_arguments_12_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop121; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,31,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7671:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt124=2; |
| alt124 = dfa124.predict(input); |
| switch (alt124) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7672:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalFunctionLibraryDsl.g:7678:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalFunctionLibraryDsl.g:7679:5: lv_arguments_14_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_arguments_14_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXConstructorCall" |
| |
| |
| // $ANTLR start "entryRuleXBooleanLiteral" |
| // InternalFunctionLibraryDsl.g:7700:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7700:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:7701:2: iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBooleanLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBooleanLiteral=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBooleanLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBooleanLiteral" |
| |
| |
| // $ANTLR start "ruleXBooleanLiteral" |
| // InternalFunctionLibraryDsl.g:7707:1: ruleXBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; |
| public final EObject ruleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_isTrue_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7713:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7714:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7714:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7715:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7715:3: () |
| // InternalFunctionLibraryDsl.g:7716:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7722:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==100) ) { |
| alt125=1; |
| } |
| else if ( (LA125_0==101) ) { |
| alt125=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 125, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt125) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7723:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,100,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:7728:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7728:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalFunctionLibraryDsl.g:7729:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalFunctionLibraryDsl.g:7729:5: (lv_isTrue_2_0= 'true' ) |
| // InternalFunctionLibraryDsl.g:7730:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,101,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXBooleanLiteralRule()); |
| } |
| setWithLastConsumed(current, "isTrue", true, "true"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBooleanLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNullLiteral" |
| // InternalFunctionLibraryDsl.g:7747:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7747:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:7748:2: iv_ruleXNullLiteral= ruleXNullLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNullLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNullLiteral=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNullLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNullLiteral" |
| |
| |
| // $ANTLR start "ruleXNullLiteral" |
| // InternalFunctionLibraryDsl.g:7754:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7760:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalFunctionLibraryDsl.g:7761:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalFunctionLibraryDsl.g:7761:2: ( () otherlv_1= 'null' ) |
| // InternalFunctionLibraryDsl.g:7762:3: () otherlv_1= 'null' |
| { |
| // InternalFunctionLibraryDsl.g:7762:3: () |
| // InternalFunctionLibraryDsl.g:7763:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,102,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNullLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNumberLiteral" |
| // InternalFunctionLibraryDsl.g:7777:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7777:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:7778:2: iv_ruleXNumberLiteral= ruleXNumberLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNumberLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNumberLiteral=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNumberLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNumberLiteral" |
| |
| |
| // $ANTLR start "ruleXNumberLiteral" |
| // InternalFunctionLibraryDsl.g:7784:1: ruleXNumberLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleNumber ) ) ) ; |
| public final EObject ruleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7790:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7791:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7791:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalFunctionLibraryDsl.g:7792:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7792:3: () |
| // InternalFunctionLibraryDsl.g:7793:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7799:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalFunctionLibraryDsl.g:7800:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalFunctionLibraryDsl.g:7800:4: (lv_value_1_0= ruleNumber ) |
| // InternalFunctionLibraryDsl.g:7801:5: lv_value_1_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_1_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNumberLiteral" |
| |
| |
| // $ANTLR start "entryRuleXStringLiteral" |
| // InternalFunctionLibraryDsl.g:7822:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7822:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:7823:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXStringLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXStringLiteral=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXStringLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXStringLiteral" |
| |
| |
| // $ANTLR start "ruleXStringLiteral" |
| // InternalFunctionLibraryDsl.g:7829:1: ruleXStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_value_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7835:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7836:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7836:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalFunctionLibraryDsl.g:7837:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7837:3: () |
| // InternalFunctionLibraryDsl.g:7838:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7844:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalFunctionLibraryDsl.g:7845:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalFunctionLibraryDsl.g:7845:4: (lv_value_1_0= RULE_STRING ) |
| // InternalFunctionLibraryDsl.g:7846:5: lv_value_1_0= RULE_STRING |
| { |
| lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXStringLiteralRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXStringLiteral" |
| |
| |
| // $ANTLR start "entryRuleXTypeLiteral" |
| // InternalFunctionLibraryDsl.g:7866:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7866:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalFunctionLibraryDsl.g:7867:2: iv_ruleXTypeLiteral= ruleXTypeLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTypeLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTypeLiteral=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTypeLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTypeLiteral" |
| |
| |
| // $ANTLR start "ruleXTypeLiteral" |
| // InternalFunctionLibraryDsl.g:7873:1: ruleXTypeLiteral returns [EObject current=null] : ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ; |
| public final EObject ruleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_arrayDimensions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7879:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalFunctionLibraryDsl.g:7880:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalFunctionLibraryDsl.g:7880:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalFunctionLibraryDsl.g:7881:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalFunctionLibraryDsl.g:7881:3: () |
| // InternalFunctionLibraryDsl.g:7882:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,103,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7896:3: ( ( ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:7897:4: ( ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:7897:4: ( ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:7898:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXTypeLiteralRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); |
| |
| } |
| pushFollow(FOLLOW_86); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7912:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop126: |
| do { |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==50) ) { |
| alt126=1; |
| } |
| |
| |
| switch (alt126) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7913:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalFunctionLibraryDsl.g:7913:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalFunctionLibraryDsl.g:7914:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_86); |
| lv_arrayDimensions_4_0=ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); |
| } |
| add( |
| current, |
| "arrayDimensions", |
| lv_arrayDimensions_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop126; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTypeLiteral" |
| |
| |
| // $ANTLR start "entryRuleXThrowExpression" |
| // InternalFunctionLibraryDsl.g:7939:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7939:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalFunctionLibraryDsl.g:7940:2: iv_ruleXThrowExpression= ruleXThrowExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXThrowExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXThrowExpression=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXThrowExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXThrowExpression" |
| |
| |
| // $ANTLR start "ruleXThrowExpression" |
| // InternalFunctionLibraryDsl.g:7946:1: ruleXThrowExpression returns [EObject current=null] : ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7952:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7953:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7953:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:7954:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7954:3: () |
| // InternalFunctionLibraryDsl.g:7955:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,104,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:7965:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:7966:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:7966:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:7967:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXThrowExpression" |
| |
| |
| // $ANTLR start "entryRuleXReturnExpression" |
| // InternalFunctionLibraryDsl.g:7988:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:7988:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalFunctionLibraryDsl.g:7989:2: iv_ruleXReturnExpression= ruleXReturnExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXReturnExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXReturnExpression=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXReturnExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXReturnExpression" |
| |
| |
| // $ANTLR start "ruleXReturnExpression" |
| // InternalFunctionLibraryDsl.g:7995:1: ruleXReturnExpression returns [EObject current=null] : ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ; |
| public final EObject ruleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8001:2: ( ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ) |
| // InternalFunctionLibraryDsl.g:8002:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:8002:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| // InternalFunctionLibraryDsl.g:8003:3: () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| { |
| // InternalFunctionLibraryDsl.g:8003:3: () |
| // InternalFunctionLibraryDsl.g:8004:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,105,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8014:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| int alt127=2; |
| alt127 = dfa127.predict(input); |
| switch (alt127) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8015:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8016:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8017:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXReturnExpression" |
| |
| |
| // $ANTLR start "entryRuleXTryCatchFinallyExpression" |
| // InternalFunctionLibraryDsl.g:8038:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8038:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalFunctionLibraryDsl.g:8039:2: iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTryCatchFinallyExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "ruleXTryCatchFinallyExpression" |
| // InternalFunctionLibraryDsl.g:8045:1: ruleXTryCatchFinallyExpression returns [EObject current=null] : ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ; |
| public final EObject ruleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_expression_2_0 = null; |
| |
| EObject lv_catchClauses_3_0 = null; |
| |
| EObject lv_finallyExpression_5_0 = null; |
| |
| EObject lv_finallyExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8051:2: ( ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8052:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8052:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8053:3: () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8053:3: () |
| // InternalFunctionLibraryDsl.g:8054:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,106,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8064:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8065:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8065:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8066:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8083:3: ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==109) ) { |
| alt130=1; |
| } |
| else if ( (LA130_0==107) ) { |
| alt130=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 130, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8084:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:8084:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalFunctionLibraryDsl.g:8085:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalFunctionLibraryDsl.g:8085:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt128=0; |
| loop128: |
| do { |
| int alt128=2; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==109) ) { |
| int LA128_2 = input.LA(2); |
| |
| if ( (synpred44_InternalFunctionLibraryDsl()) ) { |
| alt128=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt128) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8086:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalFunctionLibraryDsl.g:8087:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalFunctionLibraryDsl.g:8088:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| lv_catchClauses_3_0=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| add( |
| current, |
| "catchClauses", |
| lv_catchClauses_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XCatchClause"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt128 >= 1 ) break loop128; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(128, input); |
| throw eee; |
| } |
| cnt128++; |
| } while (true); |
| |
| // InternalFunctionLibraryDsl.g:8105:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==107) ) { |
| int LA129_1 = input.LA(2); |
| |
| if ( (synpred45_InternalFunctionLibraryDsl()) ) { |
| alt129=1; |
| } |
| } |
| switch (alt129) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8106:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8106:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalFunctionLibraryDsl.g:8107:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,107,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8113:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8114:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8114:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8115:8: lv_finallyExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8135:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8135:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:8136:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,107,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8140:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8141:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8141:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8142:7: lv_finallyExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "entryRuleXSynchronizedExpression" |
| // InternalFunctionLibraryDsl.g:8165:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8165:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalFunctionLibraryDsl.g:8166:2: iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSynchronizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "ruleXSynchronizedExpression" |
| // InternalFunctionLibraryDsl.g:8172:1: ruleXSynchronizedExpression returns [EObject current=null] : ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_param_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8178:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8179:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8179:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:8180:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8180:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalFunctionLibraryDsl.g:8181:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:8188:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalFunctionLibraryDsl.g:8189:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalFunctionLibraryDsl.g:8189:5: () |
| // InternalFunctionLibraryDsl.g:8190:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,108,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,29,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8206:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8207:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8207:4: (lv_param_3_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8208:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_param_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "param", |
| lv_param_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8229:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8230:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8230:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8231:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXCatchClause" |
| // InternalFunctionLibraryDsl.g:8252:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8252:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalFunctionLibraryDsl.g:8253:2: iv_ruleXCatchClause= ruleXCatchClause EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCatchClauseRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCatchClause=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCatchClause; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCatchClause" |
| |
| |
| // $ANTLR start "ruleXCatchClause" |
| // InternalFunctionLibraryDsl.g:8259:1: ruleXCatchClause returns [EObject current=null] : ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_declaredParam_2_0 = null; |
| |
| EObject lv_expression_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8265:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8266:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8266:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalFunctionLibraryDsl.g:8267:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8267:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalFunctionLibraryDsl.g:8268:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,109,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8278:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:8279:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:8279:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:8280:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_declaredParam_2_0=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_2_0, |
| "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,31,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8301:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalFunctionLibraryDsl.g:8302:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalFunctionLibraryDsl.g:8302:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalFunctionLibraryDsl.g:8303:5: lv_expression_4_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_4_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_4_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCatchClause" |
| |
| |
| // $ANTLR start "entryRuleQualifiedName" |
| // InternalFunctionLibraryDsl.g:8324:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8324:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalFunctionLibraryDsl.g:8325:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedName=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedName.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedName" |
| |
| |
| // $ANTLR start "ruleQualifiedName" |
| // InternalFunctionLibraryDsl.g:8331:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| AntlrDatatypeRuleToken this_ValidID_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8337:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalFunctionLibraryDsl.g:8338:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalFunctionLibraryDsl.g:8338:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalFunctionLibraryDsl.g:8339:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8349:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop131: |
| do { |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==82) ) { |
| int LA131_2 = input.LA(2); |
| |
| if ( (LA131_2==RULE_ID) ) { |
| int LA131_3 = input.LA(3); |
| |
| if ( (synpred48_InternalFunctionLibraryDsl()) ) { |
| alt131=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt131) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8350:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalFunctionLibraryDsl.g:8350:4: ( ( '.' )=>kw= '.' ) |
| // InternalFunctionLibraryDsl.g:8351:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,82,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_ValidID_2=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop131; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalFunctionLibraryDsl.g:8373:1: entryRuleNumber returns [String current=null] : iv_ruleNumber= ruleNumber EOF ; |
| public final String entryRuleNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleNumber = null; |
| |
| |
| |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8375:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalFunctionLibraryDsl.g:8376: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; |
| } |
| // $ANTLR end "entryRuleNumber" |
| |
| |
| // $ANTLR start "ruleNumber" |
| // InternalFunctionLibraryDsl.g:8385:1: ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ; |
| public final AntlrDatatypeRuleToken ruleNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_HEX_0=null; |
| Token this_INT_1=null; |
| Token this_DECIMAL_2=null; |
| Token kw=null; |
| Token this_INT_4=null; |
| Token this_DECIMAL_5=null; |
| |
| |
| enterRule(); |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8392:2: ( (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ) |
| // InternalFunctionLibraryDsl.g:8393:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8393:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==RULE_HEX) ) { |
| alt135=1; |
| } |
| else if ( ((LA135_0>=RULE_INT && LA135_0<=RULE_DECIMAL)) ) { |
| alt135=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 135, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt135) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8394:3: this_HEX_0= RULE_HEX |
| { |
| this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_HEX_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8402:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:8402:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalFunctionLibraryDsl.g:8403:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalFunctionLibraryDsl.g:8403:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==RULE_INT) ) { |
| alt132=1; |
| } |
| else if ( (LA132_0==RULE_DECIMAL) ) { |
| alt132=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8404:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8412:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8420:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==82) ) { |
| int LA134_1 = input.LA(2); |
| |
| if ( ((LA134_1>=RULE_INT && LA134_1<=RULE_DECIMAL)) ) { |
| alt134=1; |
| } |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8421:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,82,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8426:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==RULE_INT) ) { |
| alt133=1; |
| } |
| else if ( (LA133_0==RULE_DECIMAL) ) { |
| alt133=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 133, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8427:6: this_INT_4= RULE_INT |
| { |
| this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_4); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8435:6: this_DECIMAL_5= RULE_DECIMAL |
| { |
| this_DECIMAL_5=(Token)match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_5); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| |
| myHiddenTokenState.restore(); |
| |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumber" |
| |
| |
| // $ANTLR start "entryRuleJvmTypeReference" |
| // InternalFunctionLibraryDsl.g:8452:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8452:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalFunctionLibraryDsl.g:8453:2: iv_ruleJvmTypeReference= ruleJvmTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmTypeReference=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmTypeReference" |
| // InternalFunctionLibraryDsl.g:8459:1: ruleJvmTypeReference returns [EObject current=null] : ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ; |
| public final EObject ruleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmParameterizedTypeReference_0 = null; |
| |
| EObject this_XFunctionTypeRef_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8465:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalFunctionLibraryDsl.g:8466:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalFunctionLibraryDsl.g:8466:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==RULE_ID) ) { |
| alt137=1; |
| } |
| else if ( (LA137_0==29||LA137_0==70) ) { |
| alt137=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 137, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt137) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8467:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:8467:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalFunctionLibraryDsl.g:8468:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8476:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop136: |
| do { |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==50) ) { |
| int LA136_2 = input.LA(2); |
| |
| if ( (LA136_2==51) ) { |
| int LA136_3 = input.LA(3); |
| |
| if ( (synpred49_InternalFunctionLibraryDsl()) ) { |
| alt136=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt136) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8477:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalFunctionLibraryDsl.g:8483:5: ( () ruleArrayBrackets ) |
| // InternalFunctionLibraryDsl.g:8484:6: () ruleArrayBrackets |
| { |
| // InternalFunctionLibraryDsl.g:8484:6: () |
| // InternalFunctionLibraryDsl.g:8485:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop136; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8502:3: this_XFunctionTypeRef_3= ruleXFunctionTypeRef |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFunctionTypeRef_3=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFunctionTypeRef_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmTypeReference" |
| |
| |
| // $ANTLR start "entryRuleArrayBrackets" |
| // InternalFunctionLibraryDsl.g:8514:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8514:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalFunctionLibraryDsl.g:8515: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; |
| } |
| // $ANTLR end "entryRuleArrayBrackets" |
| |
| |
| // $ANTLR start "ruleArrayBrackets" |
| // InternalFunctionLibraryDsl.g:8521:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8527:2: ( (kw= '[' kw= ']' ) ) |
| // InternalFunctionLibraryDsl.g:8528:2: (kw= '[' kw= ']' ) |
| { |
| // InternalFunctionLibraryDsl.g:8528:2: (kw= '[' kw= ']' ) |
| // InternalFunctionLibraryDsl.g:8529:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,50,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleArrayBrackets" |
| |
| |
| // $ANTLR start "entryRuleXFunctionTypeRef" |
| // InternalFunctionLibraryDsl.g:8543:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8543:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalFunctionLibraryDsl.g:8544:2: iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFunctionTypeRef; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "ruleXFunctionTypeRef" |
| // InternalFunctionLibraryDsl.g:8550:1: ruleXFunctionTypeRef returns [EObject current=null] : ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject lv_paramTypes_1_0 = null; |
| |
| EObject lv_paramTypes_3_0 = null; |
| |
| EObject lv_returnType_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8556:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8557:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8557:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:8558:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8558:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==29) ) { |
| alt140=1; |
| } |
| switch (alt140) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8559:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8563:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==RULE_ID||LA139_0==29||LA139_0==70) ) { |
| alt139=1; |
| } |
| switch (alt139) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8564:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:8564:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8565:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8565:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:8566:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_paramTypes_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8583:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop138: |
| do { |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( (LA138_0==30) ) { |
| alt138=1; |
| } |
| |
| |
| switch (alt138) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8584:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,30,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8588:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8589:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8589:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:8590:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_20); |
| lv_paramTypes_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop138; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,31,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,70,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8618:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8619:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8619:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:8620:5: lv_returnType_6_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_returnType_6_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| set( |
| current, |
| "returnType", |
| lv_returnType_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "entryRuleJvmParameterizedTypeReference" |
| // InternalFunctionLibraryDsl.g:8641:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8641:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalFunctionLibraryDsl.g:8642:2: iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmParameterizedTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmParameterizedTypeReference" |
| // InternalFunctionLibraryDsl.g:8648:1: ruleJvmParameterizedTypeReference returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ; |
| public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_arguments_2_0 = null; |
| |
| EObject lv_arguments_4_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8654:2: ( ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ) |
| // InternalFunctionLibraryDsl.g:8655:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| { |
| // InternalFunctionLibraryDsl.g:8655:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| // InternalFunctionLibraryDsl.g:8656:3: ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| { |
| // InternalFunctionLibraryDsl.g:8656:3: ( ( ruleQualifiedName ) ) |
| // InternalFunctionLibraryDsl.g:8657:4: ( ruleQualifiedName ) |
| { |
| // InternalFunctionLibraryDsl.g:8657:4: ( ruleQualifiedName ) |
| // InternalFunctionLibraryDsl.g:8658:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8672:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| int alt145=2; |
| alt145 = dfa145.predict(input); |
| switch (alt145) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8673:4: ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| { |
| // InternalFunctionLibraryDsl.g:8673:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalFunctionLibraryDsl.g:8674:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,57,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8680:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8681:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8681:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:8682:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_arguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8699:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop141: |
| do { |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( (LA141_0==30) ) { |
| alt141=1; |
| } |
| |
| |
| switch (alt141) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8700:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,30,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8704:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8705:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8705:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:8706:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_arguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop141; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,58,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8728:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop144: |
| do { |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==82) ) { |
| int LA144_2 = input.LA(2); |
| |
| if ( (LA144_2==RULE_ID) ) { |
| int LA144_3 = input.LA(3); |
| |
| if ( (synpred51_InternalFunctionLibraryDsl()) ) { |
| alt144=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt144) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8729:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalFunctionLibraryDsl.g:8729:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalFunctionLibraryDsl.g:8730:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalFunctionLibraryDsl.g:8736:6: ( () otherlv_7= '.' ) |
| // InternalFunctionLibraryDsl.g:8737:7: () otherlv_7= '.' |
| { |
| // InternalFunctionLibraryDsl.g:8737:7: () |
| // InternalFunctionLibraryDsl.g:8738:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,82,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8750:5: ( ( ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:8751:6: ( ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:8751:6: ( ruleValidID ) |
| // InternalFunctionLibraryDsl.g:8752:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8766:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt143=2; |
| alt143 = dfa143.predict(input); |
| switch (alt143) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8767:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalFunctionLibraryDsl.g:8767:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalFunctionLibraryDsl.g:8768:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,57,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8774:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8775:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8775:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:8776:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_arguments_10_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8793:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop142: |
| do { |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==30) ) { |
| alt142=1; |
| } |
| |
| |
| switch (alt142) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8794:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,30,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8798:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8799:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8799:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalFunctionLibraryDsl.g:8800:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_arguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop142; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,58,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop144; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalFunctionLibraryDsl.g:8829:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8829:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalFunctionLibraryDsl.g:8830:2: iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmArgumentTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmArgumentTypeReference" |
| // InternalFunctionLibraryDsl.g:8836:1: ruleJvmArgumentTypeReference returns [EObject current=null] : (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ; |
| public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmTypeReference_0 = null; |
| |
| EObject this_JvmWildcardTypeReference_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8842:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8843:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8843:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==RULE_ID||LA146_0==29||LA146_0==70) ) { |
| alt146=1; |
| } |
| else if ( (LA146_0==110) ) { |
| alt146=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 146, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8844:3: this_JvmTypeReference_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmTypeReference_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8853:3: this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmWildcardTypeReference_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmWildcardTypeReference" |
| // InternalFunctionLibraryDsl.g:8865:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8865:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalFunctionLibraryDsl.g:8866:2: iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmWildcardTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmWildcardTypeReference" |
| // InternalFunctionLibraryDsl.g:8872:1: ruleJvmWildcardTypeReference returns [EObject current=null] : ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ; |
| public final EObject ruleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_constraints_2_0 = null; |
| |
| EObject lv_constraints_3_0 = null; |
| |
| EObject lv_constraints_4_0 = null; |
| |
| EObject lv_constraints_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8878:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalFunctionLibraryDsl.g:8879:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalFunctionLibraryDsl.g:8879:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalFunctionLibraryDsl.g:8880:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalFunctionLibraryDsl.g:8880:3: () |
| // InternalFunctionLibraryDsl.g:8881:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,110,FOLLOW_95); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8891:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt149=3; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==97) ) { |
| alt149=1; |
| } |
| else if ( (LA149_0==98) ) { |
| alt149=2; |
| } |
| switch (alt149) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8892:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:8892:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalFunctionLibraryDsl.g:8893:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalFunctionLibraryDsl.g:8893:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalFunctionLibraryDsl.g:8894:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalFunctionLibraryDsl.g:8894:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalFunctionLibraryDsl.g:8895:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_constraints_2_0=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8912:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop147: |
| do { |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==111) ) { |
| alt147=1; |
| } |
| |
| |
| switch (alt147) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8913:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalFunctionLibraryDsl.g:8913:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalFunctionLibraryDsl.g:8914:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_constraints_3_0=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop147; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:8933:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalFunctionLibraryDsl.g:8933:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalFunctionLibraryDsl.g:8934:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalFunctionLibraryDsl.g:8934:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalFunctionLibraryDsl.g:8935:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalFunctionLibraryDsl.g:8935:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalFunctionLibraryDsl.g:8936:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_constraints_4_0=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:8953:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop148: |
| do { |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==111) ) { |
| alt148=1; |
| } |
| |
| |
| switch (alt148) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:8954:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalFunctionLibraryDsl.g:8954:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalFunctionLibraryDsl.g:8955:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_constraints_5_0=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_5_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop148; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalFunctionLibraryDsl.g:8978:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8978:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalFunctionLibraryDsl.g:8979:2: iv_ruleJvmUpperBound= ruleJvmUpperBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBound=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBound" |
| |
| |
| // $ANTLR start "ruleJvmUpperBound" |
| // InternalFunctionLibraryDsl.g:8985:1: ruleJvmUpperBound returns [EObject current=null] : (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:8991:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalFunctionLibraryDsl.g:8992:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:8992:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:8993:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,97,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:8997:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:8998:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:8998:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:8999:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBound" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBoundAnded" |
| // InternalFunctionLibraryDsl.g:9020:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9020:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalFunctionLibraryDsl.g:9021:2: iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmUpperBoundAnded" |
| // InternalFunctionLibraryDsl.g:9027:1: ruleJvmUpperBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9033:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalFunctionLibraryDsl.g:9034:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:9034:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:9035:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,111,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:9039:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:9040:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:9040:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:9041:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBound" |
| // InternalFunctionLibraryDsl.g:9062:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9062:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalFunctionLibraryDsl.g:9063:2: iv_ruleJvmLowerBound= ruleJvmLowerBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBound=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBound" |
| |
| |
| // $ANTLR start "ruleJvmLowerBound" |
| // InternalFunctionLibraryDsl.g:9069:1: ruleJvmLowerBound returns [EObject current=null] : (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9075:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalFunctionLibraryDsl.g:9076:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:9076:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:9077:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,98,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:9081:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:9082:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:9082:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:9083:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBound" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBoundAnded" |
| // InternalFunctionLibraryDsl.g:9104:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9104:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalFunctionLibraryDsl.g:9105:2: iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmLowerBoundAnded" |
| // InternalFunctionLibraryDsl.g:9111:1: ruleJvmLowerBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9117:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalFunctionLibraryDsl.g:9118:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:9118:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalFunctionLibraryDsl.g:9119:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,111,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalFunctionLibraryDsl.g:9123:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:9124:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:9124:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:9125:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
| // InternalFunctionLibraryDsl.g:9146:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9146:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalFunctionLibraryDsl.g:9147:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameWithWildcard.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "ruleQualifiedNameWithWildcard" |
| // InternalFunctionLibraryDsl.g:9153:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_QualifiedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9159:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalFunctionLibraryDsl.g:9160:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalFunctionLibraryDsl.g:9160:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalFunctionLibraryDsl.g:9161:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| this_QualifiedName_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_QualifiedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,82,FOLLOW_98); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "entryRuleValidID" |
| // InternalFunctionLibraryDsl.g:9185:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9185:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalFunctionLibraryDsl.g:9186:2: iv_ruleValidID= ruleValidID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getValidIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleValidID=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleValidID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleValidID" |
| |
| |
| // $ANTLR start "ruleValidID" |
| // InternalFunctionLibraryDsl.g:9192:1: ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleValidID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9198:2: (this_ID_0= RULE_ID ) |
| // InternalFunctionLibraryDsl.g:9199:2: this_ID_0= RULE_ID |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleValidID" |
| |
| |
| // $ANTLR start "entryRuleXImportSection" |
| // InternalFunctionLibraryDsl.g:9209:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9209:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalFunctionLibraryDsl.g:9210:2: iv_ruleXImportSection= ruleXImportSection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportSectionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportSection=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportSection; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportSection" |
| |
| |
| // $ANTLR start "ruleXImportSection" |
| // InternalFunctionLibraryDsl.g:9216:1: ruleXImportSection returns [EObject current=null] : ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ; |
| public final EObject ruleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importDeclarations_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9222:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalFunctionLibraryDsl.g:9223:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalFunctionLibraryDsl.g:9223:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt150=0; |
| loop150: |
| do { |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==41) ) { |
| alt150=1; |
| } |
| |
| |
| switch (alt150) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:9224:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalFunctionLibraryDsl.g:9224:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalFunctionLibraryDsl.g:9225:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_99); |
| lv_importDeclarations_0_0=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportSectionRule()); |
| } |
| add( |
| current, |
| "importDeclarations", |
| lv_importDeclarations_0_0, |
| "org.eclipse.osbp.xtext.oxtype.OXtype.XImportDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt150 >= 1 ) break loop150; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(150, input); |
| throw eee; |
| } |
| cnt150++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalFunctionLibraryDsl.g:9245:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9245:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalFunctionLibraryDsl.g:9246:2: iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameInStaticImport.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleQualifiedNameInStaticImport" |
| // InternalFunctionLibraryDsl.g:9252:1: ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID kw= '.' )+ ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameInStaticImport() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalFunctionLibraryDsl.g:9258:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalFunctionLibraryDsl.g:9259:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalFunctionLibraryDsl.g:9259:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt151=0; |
| loop151: |
| do { |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( (LA151_0==RULE_ID) ) { |
| int LA151_2 = input.LA(2); |
| |
| if ( (LA151_2==82) ) { |
| alt151=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt151) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:9260:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,82,FOLLOW_100); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt151 >= 1 ) break loop151; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(151, input); |
| throw eee; |
| } |
| cnt151++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| // $ANTLR start synpred1_InternalFunctionLibraryDsl |
| public final void synpred1_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:2655:5: ( '(' ) |
| // InternalFunctionLibraryDsl.g:2655:6: '(' |
| { |
| match(input,29,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred2_InternalFunctionLibraryDsl |
| public final void synpred2_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:2664:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalFunctionLibraryDsl.g:2664:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalFunctionLibraryDsl.g:2664:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalFunctionLibraryDsl.g:2665:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalFunctionLibraryDsl.g:2665:8: ( ( ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:2666:9: ( ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:2666:9: ( ruleValidID ) |
| // InternalFunctionLibraryDsl.g:2667:10: ruleValidID |
| { |
| pushFollow(FOLLOW_30); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,48,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred5_InternalFunctionLibraryDsl |
| public final void synpred5_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:2844:5: ( ( () '#' '[' ) ) |
| // InternalFunctionLibraryDsl.g:2844:6: ( () '#' '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:2844:6: ( () '#' '[' ) |
| // InternalFunctionLibraryDsl.g:2845:6: () '#' '[' |
| { |
| // InternalFunctionLibraryDsl.g:2845:6: () |
| // InternalFunctionLibraryDsl.g:2846:6: |
| { |
| } |
| |
| match(input,49,FOLLOW_32); if (state.failed) return ; |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred6_InternalFunctionLibraryDsl |
| public final void synpred6_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:2986:5: ( ( () '#' '[' ) ) |
| // InternalFunctionLibraryDsl.g:2986:6: ( () '#' '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:2986:6: ( () '#' '[' ) |
| // InternalFunctionLibraryDsl.g:2987:6: () '#' '[' |
| { |
| // InternalFunctionLibraryDsl.g:2987:6: () |
| // InternalFunctionLibraryDsl.g:2988:6: |
| { |
| } |
| |
| match(input,49,FOLLOW_32); if (state.failed) return ; |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred7_InternalFunctionLibraryDsl |
| public final void synpred7_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3214:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3214:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3214:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalFunctionLibraryDsl.g:3215:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3215:7: () |
| // InternalFunctionLibraryDsl.g:3216:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3217:7: ( ( ruleOpMultiAssign ) ) |
| // InternalFunctionLibraryDsl.g:3218:8: ( ruleOpMultiAssign ) |
| { |
| // InternalFunctionLibraryDsl.g:3218:8: ( ruleOpMultiAssign ) |
| // InternalFunctionLibraryDsl.g:3219:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred8_InternalFunctionLibraryDsl |
| public final void synpred8_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3408:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3408:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3408:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalFunctionLibraryDsl.g:3409:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3409:6: () |
| // InternalFunctionLibraryDsl.g:3410:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3411:6: ( ( ruleOpOr ) ) |
| // InternalFunctionLibraryDsl.g:3412:7: ( ruleOpOr ) |
| { |
| // InternalFunctionLibraryDsl.g:3412:7: ( ruleOpOr ) |
| // InternalFunctionLibraryDsl.g:3413:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred9_InternalFunctionLibraryDsl |
| public final void synpred9_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3515:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3515:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3515:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalFunctionLibraryDsl.g:3516:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3516:6: () |
| // InternalFunctionLibraryDsl.g:3517:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3518:6: ( ( ruleOpAnd ) ) |
| // InternalFunctionLibraryDsl.g:3519:7: ( ruleOpAnd ) |
| { |
| // InternalFunctionLibraryDsl.g:3519:7: ( ruleOpAnd ) |
| // InternalFunctionLibraryDsl.g:3520:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred10_InternalFunctionLibraryDsl |
| public final void synpred10_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3622:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3622:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3622:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalFunctionLibraryDsl.g:3623:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3623:6: () |
| // InternalFunctionLibraryDsl.g:3624:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3625:6: ( ( ruleOpEquality ) ) |
| // InternalFunctionLibraryDsl.g:3626:7: ( ruleOpEquality ) |
| { |
| // InternalFunctionLibraryDsl.g:3626:7: ( ruleOpEquality ) |
| // InternalFunctionLibraryDsl.g:3627:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred11_InternalFunctionLibraryDsl |
| public final void synpred11_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3750:6: ( ( () 'instanceof' ) ) |
| // InternalFunctionLibraryDsl.g:3750:7: ( () 'instanceof' ) |
| { |
| // InternalFunctionLibraryDsl.g:3750:7: ( () 'instanceof' ) |
| // InternalFunctionLibraryDsl.g:3751:7: () 'instanceof' |
| { |
| // InternalFunctionLibraryDsl.g:3751:7: () |
| // InternalFunctionLibraryDsl.g:3752:7: |
| { |
| } |
| |
| match(input,66,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred12_InternalFunctionLibraryDsl |
| public final void synpred12_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3793:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3793:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3793:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalFunctionLibraryDsl.g:3794:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3794:7: () |
| // InternalFunctionLibraryDsl.g:3795:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3796:7: ( ( ruleOpCompare ) ) |
| // InternalFunctionLibraryDsl.g:3797:8: ( ruleOpCompare ) |
| { |
| // InternalFunctionLibraryDsl.g:3797:8: ( ruleOpCompare ) |
| // InternalFunctionLibraryDsl.g:3798:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred13_InternalFunctionLibraryDsl |
| public final void synpred13_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:3928:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalFunctionLibraryDsl.g:3928:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3928:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalFunctionLibraryDsl.g:3929:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalFunctionLibraryDsl.g:3929:6: () |
| // InternalFunctionLibraryDsl.g:3930:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:3931:6: ( ( ruleOpOther ) ) |
| // InternalFunctionLibraryDsl.g:3932:7: ( ruleOpOther ) |
| { |
| // InternalFunctionLibraryDsl.g:3932:7: ( ruleOpOther ) |
| // InternalFunctionLibraryDsl.g:3933:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred14_InternalFunctionLibraryDsl |
| public final void synpred14_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4048:6: ( ( '>' '>' ) ) |
| // InternalFunctionLibraryDsl.g:4048:7: ( '>' '>' ) |
| { |
| // InternalFunctionLibraryDsl.g:4048:7: ( '>' '>' ) |
| // InternalFunctionLibraryDsl.g:4049:7: '>' '>' |
| { |
| match(input,58,FOLLOW_46); if (state.failed) return ; |
| match(input,58,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred15_InternalFunctionLibraryDsl |
| public final void synpred15_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4083:6: ( ( '<' '<' ) ) |
| // InternalFunctionLibraryDsl.g:4083:7: ( '<' '<' ) |
| { |
| // InternalFunctionLibraryDsl.g:4083:7: ( '<' '<' ) |
| // InternalFunctionLibraryDsl.g:4084:7: '<' '<' |
| { |
| match(input,57,FOLLOW_37); if (state.failed) return ; |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred16_InternalFunctionLibraryDsl |
| public final void synpred16_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4156:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4156:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4156:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalFunctionLibraryDsl.g:4157:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4157:6: () |
| // InternalFunctionLibraryDsl.g:4158:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4159:6: ( ( ruleOpAdd ) ) |
| // InternalFunctionLibraryDsl.g:4160:7: ( ruleOpAdd ) |
| { |
| // InternalFunctionLibraryDsl.g:4160:7: ( ruleOpAdd ) |
| // InternalFunctionLibraryDsl.g:4161:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred17_InternalFunctionLibraryDsl |
| public final void synpred17_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4271:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4271:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4271:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalFunctionLibraryDsl.g:4272:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4272:6: () |
| // InternalFunctionLibraryDsl.g:4273:6: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4274:6: ( ( ruleOpMulti ) ) |
| // InternalFunctionLibraryDsl.g:4275:7: ( ruleOpMulti ) |
| { |
| // InternalFunctionLibraryDsl.g:4275:7: ( ruleOpMulti ) |
| // InternalFunctionLibraryDsl.g:4276:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred18_InternalFunctionLibraryDsl |
| public final void synpred18_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4506:5: ( ( () 'as' ) ) |
| // InternalFunctionLibraryDsl.g:4506:6: ( () 'as' ) |
| { |
| // InternalFunctionLibraryDsl.g:4506:6: ( () 'as' ) |
| // InternalFunctionLibraryDsl.g:4507:6: () 'as' |
| { |
| // InternalFunctionLibraryDsl.g:4507:6: () |
| // InternalFunctionLibraryDsl.g:4508:6: |
| { |
| } |
| |
| match(input,79,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred19_InternalFunctionLibraryDsl |
| public final void synpred19_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4574:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4574:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4574:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalFunctionLibraryDsl.g:4575:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4575:5: () |
| // InternalFunctionLibraryDsl.g:4576:5: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4577:5: ( ( ruleOpPostfix ) ) |
| // InternalFunctionLibraryDsl.g:4578:6: ( ruleOpPostfix ) |
| { |
| // InternalFunctionLibraryDsl.g:4578:6: ( ruleOpPostfix ) |
| // InternalFunctionLibraryDsl.g:4579:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred20_InternalFunctionLibraryDsl |
| public final void synpred20_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4670:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalFunctionLibraryDsl.g:4670:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalFunctionLibraryDsl.g:4670:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalFunctionLibraryDsl.g:4671:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalFunctionLibraryDsl.g:4671:7: () |
| // InternalFunctionLibraryDsl.g:4672:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4673:7: ( '.' | ( ( '::' ) ) ) |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==82) ) { |
| alt152=1; |
| } |
| else if ( (LA152_0==83) ) { |
| alt152=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 152, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt152) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4674:8: '.' |
| { |
| match(input,82,FOLLOW_53); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4676:8: ( ( '::' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4676:8: ( ( '::' ) ) |
| // InternalFunctionLibraryDsl.g:4677:9: ( '::' ) |
| { |
| // InternalFunctionLibraryDsl.g:4677:9: ( '::' ) |
| // InternalFunctionLibraryDsl.g:4678:10: '::' |
| { |
| match(input,83,FOLLOW_53); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4682:7: ( ( ruleFeatureCallID ) ) |
| // InternalFunctionLibraryDsl.g:4683:8: ( ruleFeatureCallID ) |
| { |
| // InternalFunctionLibraryDsl.g:4683:8: ( ruleFeatureCallID ) |
| // InternalFunctionLibraryDsl.g:4684:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_30); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred21_InternalFunctionLibraryDsl |
| public final void synpred21_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4767:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4767:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4767:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4768:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4768:7: () |
| // InternalFunctionLibraryDsl.g:4769:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4770:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt153=3; |
| switch ( input.LA(1) ) { |
| case 82: |
| { |
| alt153=1; |
| } |
| break; |
| case 84: |
| { |
| alt153=2; |
| } |
| break; |
| case 83: |
| { |
| alt153=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 153, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt153) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4771:8: '.' |
| { |
| match(input,82,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalFunctionLibraryDsl.g:4773:8: ( ( '?.' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4773:8: ( ( '?.' ) ) |
| // InternalFunctionLibraryDsl.g:4774:9: ( '?.' ) |
| { |
| // InternalFunctionLibraryDsl.g:4774:9: ( '?.' ) |
| // InternalFunctionLibraryDsl.g:4775:10: '?.' |
| { |
| match(input,84,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalFunctionLibraryDsl.g:4779:8: ( ( '::' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4779:8: ( ( '::' ) ) |
| // InternalFunctionLibraryDsl.g:4780:9: ( '::' ) |
| { |
| // InternalFunctionLibraryDsl.g:4780:9: ( '::' ) |
| // InternalFunctionLibraryDsl.g:4781:10: '::' |
| { |
| match(input,83,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred22_InternalFunctionLibraryDsl |
| public final void synpred22_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4905:7: ( ( '(' ) ) |
| // InternalFunctionLibraryDsl.g:4905:8: ( '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:4905:8: ( '(' ) |
| // InternalFunctionLibraryDsl.g:4906:8: '(' |
| { |
| match(input,29,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred23_InternalFunctionLibraryDsl |
| public final void synpred23_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:4924:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:4924:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4924:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:4925:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:4925:9: () |
| // InternalFunctionLibraryDsl.g:4926:9: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:4927:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==RULE_ID||LA155_0==29||LA155_0==70) ) { |
| alt155=1; |
| } |
| switch (alt155) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4928:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:4928:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:4929:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:4929:11: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:4930:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4933:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop154: |
| do { |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==30) ) { |
| alt154=1; |
| } |
| |
| |
| switch (alt154) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:4934:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,30,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:4935:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:4936:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:4936:12: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:4937:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop154; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:4942:9: ( ( '|' ) ) |
| // InternalFunctionLibraryDsl.g:4943:10: ( '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:4943:10: ( '|' ) |
| // InternalFunctionLibraryDsl.g:4944:11: '|' |
| { |
| match(input,85,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred24_InternalFunctionLibraryDsl |
| public final void synpred24_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5021:6: ( ( () '[' ) ) |
| // InternalFunctionLibraryDsl.g:5021:7: ( () '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:5021:7: ( () '[' ) |
| // InternalFunctionLibraryDsl.g:5022:7: () '[' |
| { |
| // InternalFunctionLibraryDsl.g:5022:7: () |
| // InternalFunctionLibraryDsl.g:5023:7: |
| { |
| } |
| |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred25_InternalFunctionLibraryDsl |
| public final void synpred25_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5094:4: ( ( () 'synchronized' '(' ) ) |
| // InternalFunctionLibraryDsl.g:5094:5: ( () 'synchronized' '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:5094:5: ( () 'synchronized' '(' ) |
| // InternalFunctionLibraryDsl.g:5095:5: () 'synchronized' '(' |
| { |
| // InternalFunctionLibraryDsl.g:5095:5: () |
| // InternalFunctionLibraryDsl.g:5096:5: |
| { |
| } |
| |
| match(input,108,FOLLOW_18); if (state.failed) return ; |
| match(input,29,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred26_InternalFunctionLibraryDsl |
| public final void synpred26_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5139:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalFunctionLibraryDsl.g:5139:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:5139:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalFunctionLibraryDsl.g:5140:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalFunctionLibraryDsl.g:5140:5: () |
| // InternalFunctionLibraryDsl.g:5141:5: |
| { |
| } |
| |
| match(input,92,FOLLOW_18); if (state.failed) return ; |
| match(input,29,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:5144:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5145:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5145:6: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5146:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_70); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,89,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred27_InternalFunctionLibraryDsl |
| public final void synpred27_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5253:4: ( ( () '[' ) ) |
| // InternalFunctionLibraryDsl.g:5253:5: ( () '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:5253:5: ( () '[' ) |
| // InternalFunctionLibraryDsl.g:5254:5: () '[' |
| { |
| // InternalFunctionLibraryDsl.g:5254:5: () |
| // InternalFunctionLibraryDsl.g:5255:5: |
| { |
| } |
| |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred29_InternalFunctionLibraryDsl |
| public final void synpred29_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5558:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:5558:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5558:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:5559:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:5559:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==RULE_ID||LA157_0==29||LA157_0==70) ) { |
| alt157=1; |
| } |
| switch (alt157) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5560:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:5560:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5561:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5561:7: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5562:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5565:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop156: |
| do { |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( (LA156_0==30) ) { |
| alt156=1; |
| } |
| |
| |
| switch (alt156) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:5566:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,30,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:5567:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:5568:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:5568:8: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:5569:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop156; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:5574:5: ( ( '|' ) ) |
| // InternalFunctionLibraryDsl.g:5575:6: ( '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:5575:6: ( '|' ) |
| // InternalFunctionLibraryDsl.g:5576:7: '|' |
| { |
| match(input,85,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred31_InternalFunctionLibraryDsl |
| public final void synpred31_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:5967:5: ( 'else' ) |
| // InternalFunctionLibraryDsl.g:5967:6: 'else' |
| { |
| match(input,87,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred32_InternalFunctionLibraryDsl |
| public final void synpred32_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:6026:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalFunctionLibraryDsl.g:6026:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:6026:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalFunctionLibraryDsl.g:6027:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,29,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:6028:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:6029:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:6029:8: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:6030:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_70); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,89,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred33_InternalFunctionLibraryDsl |
| public final void synpred33_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:6093:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalFunctionLibraryDsl.g:6093:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalFunctionLibraryDsl.g:6093:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalFunctionLibraryDsl.g:6094:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalFunctionLibraryDsl.g:6094:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:6095:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:6095:8: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:6096:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_70); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,89,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred35_InternalFunctionLibraryDsl |
| public final void synpred35_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:6911:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalFunctionLibraryDsl.g:6911:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6911:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalFunctionLibraryDsl.g:6912:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalFunctionLibraryDsl.g:6912:6: ( ( ruleJvmTypeReference ) ) |
| // InternalFunctionLibraryDsl.g:6913:7: ( ruleJvmTypeReference ) |
| { |
| // InternalFunctionLibraryDsl.g:6913:7: ( ruleJvmTypeReference ) |
| // InternalFunctionLibraryDsl.g:6914:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:6917:6: ( ( ruleValidID ) ) |
| // InternalFunctionLibraryDsl.g:6918:7: ( ruleValidID ) |
| { |
| // InternalFunctionLibraryDsl.g:6918:7: ( ruleValidID ) |
| // InternalFunctionLibraryDsl.g:6919:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred36_InternalFunctionLibraryDsl |
| public final void synpred36_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7223:5: ( ( '(' ) ) |
| // InternalFunctionLibraryDsl.g:7223:6: ( '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:7223:6: ( '(' ) |
| // InternalFunctionLibraryDsl.g:7224:6: '(' |
| { |
| match(input,29,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred37_InternalFunctionLibraryDsl |
| public final void synpred37_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7242:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7242:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7242:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:7243:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7243:7: () |
| // InternalFunctionLibraryDsl.g:7244:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:7245:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==RULE_ID||LA161_0==29||LA161_0==70) ) { |
| alt161=1; |
| } |
| switch (alt161) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7246:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:7246:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:7247:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:7247:9: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:7248:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7251:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop160: |
| do { |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==30) ) { |
| alt160=1; |
| } |
| |
| |
| switch (alt160) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7252:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,30,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:7253:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:7254:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:7254:10: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:7255:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop160; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7260:7: ( ( '|' ) ) |
| // InternalFunctionLibraryDsl.g:7261:8: ( '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:7261:8: ( '|' ) |
| // InternalFunctionLibraryDsl.g:7262:9: '|' |
| { |
| match(input,85,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred38_InternalFunctionLibraryDsl |
| public final void synpred38_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7339:4: ( ( () '[' ) ) |
| // InternalFunctionLibraryDsl.g:7339:5: ( () '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:7339:5: ( () '[' ) |
| // InternalFunctionLibraryDsl.g:7340:5: () '[' |
| { |
| // InternalFunctionLibraryDsl.g:7340:5: () |
| // InternalFunctionLibraryDsl.g:7341:5: |
| { |
| } |
| |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred39_InternalFunctionLibraryDsl |
| public final void synpred39_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7499:5: ( '<' ) |
| // InternalFunctionLibraryDsl.g:7499:6: '<' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred40_InternalFunctionLibraryDsl |
| public final void synpred40_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7556:5: ( ( '(' ) ) |
| // InternalFunctionLibraryDsl.g:7556:6: ( '(' ) |
| { |
| // InternalFunctionLibraryDsl.g:7556:6: ( '(' ) |
| // InternalFunctionLibraryDsl.g:7557:6: '(' |
| { |
| match(input,29,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred41_InternalFunctionLibraryDsl |
| public final void synpred41_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7575:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalFunctionLibraryDsl.g:7575:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7575:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalFunctionLibraryDsl.g:7576:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalFunctionLibraryDsl.g:7576:7: () |
| // InternalFunctionLibraryDsl.g:7577:7: |
| { |
| } |
| |
| // InternalFunctionLibraryDsl.g:7578:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==RULE_ID||LA163_0==29||LA163_0==70) ) { |
| alt163=1; |
| } |
| switch (alt163) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7579:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalFunctionLibraryDsl.g:7579:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:7580:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:7580:9: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:7581:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7584:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop162: |
| do { |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==30) ) { |
| alt162=1; |
| } |
| |
| |
| switch (alt162) { |
| case 1 : |
| // InternalFunctionLibraryDsl.g:7585:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,30,FOLLOW_21); if (state.failed) return ; |
| // InternalFunctionLibraryDsl.g:7586:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalFunctionLibraryDsl.g:7587:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalFunctionLibraryDsl.g:7587:10: ( ruleJvmFormalParameter ) |
| // InternalFunctionLibraryDsl.g:7588:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_63); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop162; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalFunctionLibraryDsl.g:7593:7: ( ( '|' ) ) |
| // InternalFunctionLibraryDsl.g:7594:8: ( '|' ) |
| { |
| // InternalFunctionLibraryDsl.g:7594:8: ( '|' ) |
| // InternalFunctionLibraryDsl.g:7595:9: '|' |
| { |
| match(input,85,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred42_InternalFunctionLibraryDsl |
| public final void synpred42_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:7672:4: ( ( () '[' ) ) |
| // InternalFunctionLibraryDsl.g:7672:5: ( () '[' ) |
| { |
| // InternalFunctionLibraryDsl.g:7672:5: ( () '[' ) |
| // InternalFunctionLibraryDsl.g:7673:5: () '[' |
| { |
| // InternalFunctionLibraryDsl.g:7673:5: () |
| // InternalFunctionLibraryDsl.g:7674:5: |
| { |
| } |
| |
| match(input,50,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred43_InternalFunctionLibraryDsl |
| public final void synpred43_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8015:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING ) |
| // InternalFunctionLibraryDsl.g: |
| { |
| if ( (input.LA(1)>=RULE_ID && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||input.LA(1)==29||(input.LA(1)>=41 && input.LA(1)<=43)||(input.LA(1)>=49 && input.LA(1)<=50)||input.LA(1)==57||(input.LA(1)>=73 && input.LA(1)<=74)||input.LA(1)==78||input.LA(1)==86||input.LA(1)==88||(input.LA(1)>=92 && input.LA(1)<=94)||(input.LA(1)>=97 && input.LA(1)<=106)||input.LA(1)==108 ) { |
| input.consume(); |
| state.errorRecovery=false;state.failed=false; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| MismatchedSetException mse = new MismatchedSetException(null,input); |
| throw mse; |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred43_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred44_InternalFunctionLibraryDsl |
| public final void synpred44_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8086:6: ( 'catch' ) |
| // InternalFunctionLibraryDsl.g:8086:7: 'catch' |
| { |
| match(input,109,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred45_InternalFunctionLibraryDsl |
| public final void synpred45_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8107:7: ( 'finally' ) |
| // InternalFunctionLibraryDsl.g:8107:8: 'finally' |
| { |
| match(input,107,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred48_InternalFunctionLibraryDsl |
| public final void synpred48_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8351:5: ( '.' ) |
| // InternalFunctionLibraryDsl.g:8351:6: '.' |
| { |
| match(input,82,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred49_InternalFunctionLibraryDsl |
| public final void synpred49_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8477:5: ( ( () ruleArrayBrackets ) ) |
| // InternalFunctionLibraryDsl.g:8477:6: ( () ruleArrayBrackets ) |
| { |
| // InternalFunctionLibraryDsl.g:8477:6: ( () ruleArrayBrackets ) |
| // InternalFunctionLibraryDsl.g:8478:6: () ruleArrayBrackets |
| { |
| // InternalFunctionLibraryDsl.g:8478:6: () |
| // InternalFunctionLibraryDsl.g:8479:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred50_InternalFunctionLibraryDsl |
| public final void synpred50_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8674:5: ( '<' ) |
| // InternalFunctionLibraryDsl.g:8674:6: '<' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred51_InternalFunctionLibraryDsl |
| public final void synpred51_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8730:6: ( ( () '.' ) ) |
| // InternalFunctionLibraryDsl.g:8730:7: ( () '.' ) |
| { |
| // InternalFunctionLibraryDsl.g:8730:7: ( () '.' ) |
| // InternalFunctionLibraryDsl.g:8731:7: () '.' |
| { |
| // InternalFunctionLibraryDsl.g:8731:7: () |
| // InternalFunctionLibraryDsl.g:8732:7: |
| { |
| } |
| |
| match(input,82,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalFunctionLibraryDsl |
| |
| // $ANTLR start synpred52_InternalFunctionLibraryDsl |
| public final void synpred52_InternalFunctionLibraryDsl_fragment() throws RecognitionException { |
| // InternalFunctionLibraryDsl.g:8768:7: ( '<' ) |
| // InternalFunctionLibraryDsl.g:8768:8: '<' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalFunctionLibraryDsl |
| |
| // Delegated rules |
| |
| public final boolean synpred6_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred12_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred16_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred23_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred27_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred38_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred51_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred40_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred45_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred49_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred2_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred5_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred33_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred37_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred15_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred22_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred26_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred41_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred44_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred48_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred52_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred9_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred11_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred1_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred14_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred25_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred19_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred32_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred36_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred43_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred10_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred18_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred21_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred8_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred35_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred24_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred7_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred13_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred50_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred29_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred42_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred31_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred39_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred17_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred20_InternalFunctionLibraryDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalFunctionLibraryDsl_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| |
| |
| protected DFA31 dfa31 = new DFA31(this); |
| protected DFA34 dfa34 = new DFA34(this); |
| protected DFA40 dfa40 = new DFA40(this); |
| protected DFA43 dfa43 = new DFA43(this); |
| protected DFA45 dfa45 = new DFA45(this); |
| protected DFA55 dfa55 = new DFA55(this); |
| protected DFA58 dfa58 = new DFA58(this); |
| protected DFA74 dfa74 = new DFA74(this); |
| protected DFA73 dfa73 = new DFA73(this); |
| protected DFA75 dfa75 = new DFA75(this); |
| protected DFA77 dfa77 = new DFA77(this); |
| protected DFA86 dfa86 = new DFA86(this); |
| protected DFA93 dfa93 = new DFA93(this); |
| protected DFA92 dfa92 = new DFA92(this); |
| protected DFA115 dfa115 = new DFA115(this); |
| protected DFA114 dfa114 = new DFA114(this); |
| protected DFA116 dfa116 = new DFA116(this); |
| protected DFA120 dfa120 = new DFA120(this); |
| protected DFA123 dfa123 = new DFA123(this); |
| protected DFA122 dfa122 = new DFA122(this); |
| protected DFA124 dfa124 = new DFA124(this); |
| protected DFA127 dfa127 = new DFA127(this); |
| protected DFA145 dfa145 = new DFA145(this); |
| protected DFA143 dfa143 = new DFA143(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\3\uffff\1\5\1\uffff"; |
| static final String dfa_3s = "\1\4\1\uffff\1\15\1\uffff\1\4\1\uffff\1\15\1\uffff"; |
| static final String dfa_4s = "\1\55\1\uffff\1\122\1\uffff\1\54\1\uffff\1\122\1\uffff"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\uffff\1\3"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\45\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\33\uffff\1\5\4\uffff\1\5\43\uffff\1\4", |
| "", |
| "\1\6\47\uffff\1\7", |
| "", |
| "\1\5\33\uffff\1\5\4\uffff\1\5\43\uffff\1\4", |
| "" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); |
| static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); |
| |
| class DFA31 extends DFA { |
| |
| public DFA31(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 31; |
| this.eot = dfa_1; |
| this.eof = dfa_2; |
| this.min = dfa_3; |
| this.max = dfa_4; |
| this.accept = dfa_5; |
| this.special = dfa_6; |
| this.transition = dfa_7; |
| } |
| public String getDescription() { |
| return "2444:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) )"; |
| } |
| } |
| static final String dfa_8s = "\44\uffff"; |
| static final String dfa_9s = "\1\4\1\0\42\uffff"; |
| static final String dfa_10s = "\1\154\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\1\1\4\2\5\uffff\1\2\16\uffff\1\2\1\uffff\1\42\11\uffff\3\2\3\uffff\1\2\1\uffff\2\2\6\uffff\1\2\17\uffff\2\2\3\uffff\1\2\7\uffff\1\2\1\uffff\1\2\3\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); |
| static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); |
| static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); |
| static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); |
| static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); |
| static final short[][] dfa_13 = unpackEncodedStringArray(dfa_13s); |
| |
| class DFA34 extends DFA { |
| |
| public DFA34(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 34; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_9; |
| this.max = dfa_10; |
| this.accept = dfa_11; |
| this.special = dfa_12; |
| this.transition = dfa_13; |
| } |
| public String getDescription() { |
| return "2661:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA34_1 = input.LA(1); |
| |
| |
| int index34_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalFunctionLibraryDsl()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index34_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 34, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_14s = "\43\uffff"; |
| static final String dfa_15s = "\1\4\1\0\41\uffff"; |
| static final String dfa_16s = "\1\154\1\0\41\uffff"; |
| static final String dfa_17s = "\2\uffff\1\2\37\uffff\1\1"; |
| static final String dfa_18s = "\1\uffff\1\0\41\uffff}>"; |
| static final String[] dfa_19s = { |
| "\5\2\5\uffff\1\2\16\uffff\1\2\13\uffff\3\2\3\uffff\1\2\1\uffff\1\1\1\2\6\uffff\1\2\17\uffff\2\2\3\uffff\1\2\7\uffff\1\2\1\uffff\1\2\3\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_14 = DFA.unpackEncodedString(dfa_14s); |
| static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); |
| static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); |
| static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); |
| static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); |
| static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); |
| |
| class DFA40 extends DFA { |
| |
| public DFA40(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 40; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "2841:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA40_1 = input.LA(1); |
| |
| |
| int index40_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalFunctionLibraryDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index40_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 40, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA43 extends DFA { |
| |
| public DFA43(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 43; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "2983:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA43_1 = input.LA(1); |
| |
| |
| int index43_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalFunctionLibraryDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index43_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 43, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_20s = "\12\uffff"; |
| static final String dfa_21s = "\1\10\11\uffff"; |
| static final String dfa_22s = "\1\4\7\0\2\uffff"; |
| static final String dfa_23s = "\1\155\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\2\1\3\1\4\1\5\1\6\1\0\1\1\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\15\uffff\3\10\11\uffff\4\10\1\uffff\1\10\2\uffff\3\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\32\10\1\uffff\30\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); |
| static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s); |
| static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); |
| static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s); |
| static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); |
| static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s); |
| static final short[][] dfa_26 = unpackEncodedStringArray(dfa_26s); |
| |
| class DFA45 extends DFA { |
| |
| public DFA45(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 45; |
| this.eot = dfa_20; |
| this.eof = dfa_21; |
| this.min = dfa_22; |
| this.max = dfa_23; |
| this.accept = dfa_24; |
| this.special = dfa_25; |
| this.transition = dfa_26; |
| } |
| public String getDescription() { |
| return "3212:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA45_6 = input.LA(1); |
| |
| |
| int index45_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_6); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA45_7 = input.LA(1); |
| |
| |
| int index45_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_7); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA45_1 = input.LA(1); |
| |
| |
| int index45_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_1); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA45_2 = input.LA(1); |
| |
| |
| int index45_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_2); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA45_3 = input.LA(1); |
| |
| |
| int index45_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_3); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA45_4 = input.LA(1); |
| |
| |
| int index45_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_4); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA45_5 = input.LA(1); |
| |
| |
| int index45_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalFunctionLibraryDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index45_5); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 45, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_27s = "\13\uffff"; |
| static final String dfa_28s = "\1\1\12\uffff"; |
| static final String dfa_29s = "\1\4\1\uffff\10\0\1\uffff"; |
| static final String dfa_30s = "\1\155\1\uffff\10\0\1\uffff"; |
| static final String dfa_31s = "\1\uffff\1\2\10\uffff\1\1"; |
| static final String dfa_32s = "\2\uffff\1\1\1\0\1\6\1\7\1\4\1\5\1\2\1\3\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\15\uffff\3\1\11\uffff\4\1\1\uffff\1\1\2\uffff\10\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\14\1\1\uffff\30\1", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "" |
| }; |
| |
| static final short[] dfa_27 = DFA.unpackEncodedString(dfa_27s); |
| static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s); |
| static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s); |
| static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s); |
| static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); |
| static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s); |
| static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s); |
| |
| class DFA55 extends DFA { |
| |
| public DFA55(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 55; |
| this.eot = dfa_27; |
| this.eof = dfa_28; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_32; |
| this.transition = dfa_33; |
| } |
| public String getDescription() { |
| return "()* loopback of 3926:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA55_3 = input.LA(1); |
| |
| |
| int index55_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_3); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA55_2 = input.LA(1); |
| |
| |
| int index55_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA55_8 = input.LA(1); |
| |
| |
| int index55_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_8); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA55_9 = input.LA(1); |
| |
| |
| int index55_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_9); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA55_6 = input.LA(1); |
| |
| |
| int index55_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_6); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA55_7 = input.LA(1); |
| |
| |
| int index55_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_7); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA55_4 = input.LA(1); |
| |
| |
| int index55_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_4); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA55_5 = input.LA(1); |
| |
| |
| int index55_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalFunctionLibraryDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index55_5); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 55, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\71\2\uffff\1\72\7\uffff"; |
| static final String dfa_35s = "\1\110\2\uffff\1\105\7\uffff"; |
| static final String dfa_36s = "\1\uffff\1\1\1\2\1\uffff\1\4\1\5\1\7\1\10\1\11\1\6\1\3"; |
| static final String dfa_37s = "\13\uffff}>"; |
| static final String[] dfa_38s = { |
| "\1\6\1\3\10\uffff\1\1\1\2\1\4\1\5\1\7\1\10", |
| "", |
| "", |
| "\1\11\12\uffff\1\12", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_34 = DFA.unpackEncodedStringToUnsignedChars(dfa_34s); |
| static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s); |
| static final short[] dfa_36 = DFA.unpackEncodedString(dfa_36s); |
| static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s); |
| static final short[][] dfa_38 = unpackEncodedStringArray(dfa_38s); |
| |
| class DFA58 extends DFA { |
| |
| public DFA58(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 58; |
| this.eot = dfa_27; |
| this.eof = dfa_27; |
| this.min = dfa_34; |
| this.max = dfa_35; |
| this.accept = dfa_36; |
| this.special = dfa_37; |
| this.transition = dfa_38; |
| } |
| public String getDescription() { |
| return "4002:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )"; |
| } |
| } |
| static final String dfa_39s = "\116\uffff"; |
| static final String dfa_40s = "\1\2\115\uffff"; |
| static final String dfa_41s = "\1\4\1\0\114\uffff"; |
| static final String dfa_42s = "\1\155\1\0\114\uffff"; |
| static final String dfa_43s = "\2\uffff\1\2\112\uffff\1\1"; |
| static final String dfa_44s = "\1\uffff\1\0\114\uffff}>"; |
| static final String[] dfa_45s = { |
| "\5\2\5\uffff\2\2\15\uffff\1\1\2\2\11\uffff\4\2\1\uffff\1\2\2\uffff\44\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_39 = DFA.unpackEncodedString(dfa_39s); |
| static final short[] dfa_40 = DFA.unpackEncodedString(dfa_40s); |
| static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s); |
| static final char[] dfa_42 = DFA.unpackEncodedStringToUnsignedChars(dfa_42s); |
| static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s); |
| static final short[] dfa_44 = DFA.unpackEncodedString(dfa_44s); |
| static final short[][] dfa_45 = unpackEncodedStringArray(dfa_45s); |
| |
| class DFA74 extends DFA { |
| |
| public DFA74(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 74; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "4903:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA74_1 = input.LA(1); |
| |
| |
| int index74_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index74_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 74, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\154\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\1\1\4\5\5\uffff\1\5\16\uffff\1\2\1\uffff\1\43\11\uffff\3\5\5\uffff\2\5\6\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\6\uffff\1\4\1\5\1\uffff\1\5\3\uffff\3\5\2\uffff\12\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s); |
| static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); |
| static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s); |
| static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); |
| static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s); |
| |
| class DFA73 extends DFA { |
| |
| public DFA73(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 73; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "4922:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA73_0 = input.LA(1); |
| |
| |
| int index73_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA73_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA73_0==29) ) {s = 2;} |
| |
| else if ( (LA73_0==70) && (synpred23_InternalFunctionLibraryDsl())) {s = 3;} |
| |
| else if ( (LA73_0==85) && (synpred23_InternalFunctionLibraryDsl())) {s = 4;} |
| |
| else if ( ((LA73_0>=RULE_STRING && LA73_0<=RULE_DECIMAL)||LA73_0==14||(LA73_0>=41 && LA73_0<=43)||(LA73_0>=49 && LA73_0<=50)||LA73_0==57||(LA73_0>=73 && LA73_0<=74)||LA73_0==78||LA73_0==86||LA73_0==88||(LA73_0>=92 && LA73_0<=94)||(LA73_0>=97 && LA73_0<=106)||LA73_0==108) ) {s = 5;} |
| |
| else if ( (LA73_0==31) ) {s = 35;} |
| |
| |
| input.seek(index73_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA73_1 = input.LA(1); |
| |
| |
| int index73_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index73_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA73_2 = input.LA(1); |
| |
| |
| int index73_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index73_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 73, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\5\uffff\2\2\15\uffff\3\2\11\uffff\4\2\1\uffff\1\2\2\uffff\1\2\1\1\42\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA75 extends DFA { |
| |
| public DFA75(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 75; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "5020:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA75_1 = input.LA(1); |
| |
| |
| int index75_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index75_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 75, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_52s = "\40\uffff"; |
| static final String dfa_53s = "\1\4\26\uffff\1\0\10\uffff"; |
| static final String dfa_54s = "\1\154\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\1\5\4\14\5\uffff\1\2\16\uffff\1\35\13\uffff\3\5\5\uffff\2\14\6\uffff\1\5\34\uffff\1\26\1\uffff\1\3\3\uffff\1\27\1\30\1\31\2\uffff\2\5\1\1\4\14\1\32\1\33\1\34\1\uffff\1\4", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); |
| static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); |
| static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); |
| static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); |
| static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); |
| static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); |
| |
| class DFA77 extends DFA { |
| |
| public DFA77(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 77; |
| this.eot = dfa_52; |
| this.eof = dfa_52; |
| this.min = dfa_53; |
| this.max = dfa_54; |
| this.accept = dfa_55; |
| this.special = dfa_56; |
| this.transition = dfa_57; |
| } |
| public String getDescription() { |
| return "5065:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA77_0 = input.LA(1); |
| |
| |
| int index77_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA77_0==99) ) {s = 1;} |
| |
| else if ( (LA77_0==14) ) {s = 2;} |
| |
| else if ( (LA77_0==88) ) {s = 3;} |
| |
| else if ( (LA77_0==108) && (synpred25_InternalFunctionLibraryDsl())) {s = 4;} |
| |
| else if ( (LA77_0==RULE_ID||(LA77_0>=41 && LA77_0<=43)||LA77_0==57||(LA77_0>=97 && LA77_0<=98)) ) {s = 5;} |
| |
| else if ( ((LA77_0>=RULE_STRING && LA77_0<=RULE_DECIMAL)||(LA77_0>=49 && LA77_0<=50)||(LA77_0>=100 && LA77_0<=103)) ) {s = 12;} |
| |
| else if ( (LA77_0==86) ) {s = 22;} |
| |
| else if ( (LA77_0==92) ) {s = 23;} |
| |
| else if ( (LA77_0==93) ) {s = 24;} |
| |
| else if ( (LA77_0==94) ) {s = 25;} |
| |
| else if ( (LA77_0==104) ) {s = 26;} |
| |
| else if ( (LA77_0==105) ) {s = 27;} |
| |
| else if ( (LA77_0==106) ) {s = 28;} |
| |
| else if ( (LA77_0==29) ) {s = 29;} |
| |
| |
| input.seek(index77_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA77_23 = input.LA(1); |
| |
| |
| int index77_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalFunctionLibraryDsl()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index77_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 77, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_58s = "\46\uffff"; |
| static final String dfa_59s = "\1\4\2\0\43\uffff"; |
| static final String dfa_60s = "\1\154\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\1\1\4\5\5\uffff\1\5\16\uffff\1\2\13\uffff\3\5\5\uffff\3\5\5\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\6\uffff\1\4\1\5\1\uffff\1\5\3\uffff\17\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_58 = DFA.unpackEncodedString(dfa_58s); |
| static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); |
| static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); |
| static final short[] dfa_61 = DFA.unpackEncodedString(dfa_61s); |
| static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); |
| static final short[][] dfa_63 = unpackEncodedStringArray(dfa_63s); |
| |
| class DFA86 extends DFA { |
| |
| public DFA86(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 86; |
| this.eot = dfa_58; |
| this.eof = dfa_58; |
| this.min = dfa_59; |
| this.max = dfa_60; |
| this.accept = dfa_61; |
| this.special = dfa_62; |
| this.transition = dfa_63; |
| } |
| public String getDescription() { |
| return "5557:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA86_0 = input.LA(1); |
| |
| |
| int index86_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA86_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA86_0==29) ) {s = 2;} |
| |
| else if ( (LA86_0==70) && (synpred29_InternalFunctionLibraryDsl())) {s = 3;} |
| |
| else if ( (LA86_0==85) && (synpred29_InternalFunctionLibraryDsl())) {s = 4;} |
| |
| else if ( ((LA86_0>=RULE_STRING && LA86_0<=RULE_DECIMAL)||LA86_0==14||(LA86_0>=41 && LA86_0<=43)||(LA86_0>=49 && LA86_0<=51)||LA86_0==57||(LA86_0>=73 && LA86_0<=74)||LA86_0==78||LA86_0==86||LA86_0==88||(LA86_0>=92 && LA86_0<=106)||LA86_0==108) ) {s = 5;} |
| |
| |
| input.seek(index86_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA86_1 = input.LA(1); |
| |
| |
| int index86_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index86_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA86_2 = input.LA(1); |
| |
| |
| int index86_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index86_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 86, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\16\uffff\1\1\13\uffff\3\2\5\uffff\2\2\6\uffff\1\2\14\uffff\1\2\2\uffff\2\2\3\uffff\1\2\7\uffff\1\2\1\uffff\1\2\3\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); |
| |
| class DFA93 extends DFA { |
| |
| public DFA93(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 93; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_64; |
| } |
| public String getDescription() { |
| return "6023:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA93_1 = input.LA(1); |
| |
| |
| int index93_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalFunctionLibraryDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index93_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 93, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_65s = "\42\uffff"; |
| static final String dfa_66s = "\1\4\2\0\37\uffff"; |
| static final String dfa_67s = "\1\154\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\1\1\4\4\5\uffff\1\4\16\uffff\1\2\13\uffff\3\4\5\uffff\2\4\6\uffff\1\4\14\uffff\1\3\2\uffff\2\4\3\uffff\1\4\7\uffff\1\4\1\uffff\1\4\3\uffff\3\4\2\uffff\12\4\1\uffff\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); |
| static final char[] dfa_66 = DFA.unpackEncodedStringToUnsignedChars(dfa_66s); |
| static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); |
| static final short[] dfa_68 = DFA.unpackEncodedString(dfa_68s); |
| static final short[] dfa_69 = DFA.unpackEncodedString(dfa_69s); |
| static final short[][] dfa_70 = unpackEncodedStringArray(dfa_70s); |
| |
| class DFA92 extends DFA { |
| |
| public DFA92(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 92; |
| this.eot = dfa_65; |
| this.eof = dfa_65; |
| this.min = dfa_66; |
| this.max = dfa_67; |
| this.accept = dfa_68; |
| this.special = dfa_69; |
| this.transition = dfa_70; |
| } |
| public String getDescription() { |
| return "6092:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA92_0 = input.LA(1); |
| |
| |
| int index92_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA92_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA92_0==29) ) {s = 2;} |
| |
| else if ( (LA92_0==70) && (synpred33_InternalFunctionLibraryDsl())) {s = 3;} |
| |
| else if ( ((LA92_0>=RULE_STRING && LA92_0<=RULE_DECIMAL)||LA92_0==14||(LA92_0>=41 && LA92_0<=43)||(LA92_0>=49 && LA92_0<=50)||LA92_0==57||(LA92_0>=73 && LA92_0<=74)||LA92_0==78||LA92_0==86||LA92_0==88||(LA92_0>=92 && LA92_0<=94)||(LA92_0>=97 && LA92_0<=106)||LA92_0==108) ) {s = 4;} |
| |
| |
| input.seek(index92_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA92_1 = input.LA(1); |
| |
| |
| int index92_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalFunctionLibraryDsl()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index92_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA92_2 = input.LA(1); |
| |
| |
| int index92_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalFunctionLibraryDsl()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index92_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 92, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA115 extends DFA { |
| |
| public DFA115(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 115; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "7221:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA115_1 = input.LA(1); |
| |
| |
| int index115_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index115_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 115, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA114 extends DFA { |
| |
| public DFA114(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 114; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "7240:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA114_0 = input.LA(1); |
| |
| |
| int index114_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA114_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA114_0==29) ) {s = 2;} |
| |
| else if ( (LA114_0==70) && (synpred37_InternalFunctionLibraryDsl())) {s = 3;} |
| |
| else if ( (LA114_0==85) && (synpred37_InternalFunctionLibraryDsl())) {s = 4;} |
| |
| else if ( ((LA114_0>=RULE_STRING && LA114_0<=RULE_DECIMAL)||LA114_0==14||(LA114_0>=41 && LA114_0<=43)||(LA114_0>=49 && LA114_0<=50)||LA114_0==57||(LA114_0>=73 && LA114_0<=74)||LA114_0==78||LA114_0==86||LA114_0==88||(LA114_0>=92 && LA114_0<=94)||(LA114_0>=97 && LA114_0<=106)||LA114_0==108) ) {s = 5;} |
| |
| else if ( (LA114_0==31) ) {s = 35;} |
| |
| |
| input.seek(index114_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA114_1 = input.LA(1); |
| |
| |
| int index114_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index114_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA114_2 = input.LA(1); |
| |
| |
| int index114_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index114_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 114, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA116 extends DFA { |
| |
| public DFA116(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 116; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "7338:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA116_1 = input.LA(1); |
| |
| |
| int index116_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index116_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 116, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\15\uffff\3\2\11\uffff\4\2\1\uffff\1\2\2\uffff\10\2\1\1\33\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA120 extends DFA { |
| |
| public DFA120(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 120; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_71; |
| } |
| public String getDescription() { |
| return "7497:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA120_1 = input.LA(1); |
| |
| |
| int index120_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index120_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 120, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA123 extends DFA { |
| |
| public DFA123(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 123; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "7554:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA123_1 = input.LA(1); |
| |
| |
| int index123_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index123_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 123, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA122 extends DFA { |
| |
| public DFA122(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 122; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "7573:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA122_0 = input.LA(1); |
| |
| |
| int index122_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA122_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA122_0==29) ) {s = 2;} |
| |
| else if ( (LA122_0==70) && (synpred41_InternalFunctionLibraryDsl())) {s = 3;} |
| |
| else if ( (LA122_0==85) && (synpred41_InternalFunctionLibraryDsl())) {s = 4;} |
| |
| else if ( ((LA122_0>=RULE_STRING && LA122_0<=RULE_DECIMAL)||LA122_0==14||(LA122_0>=41 && LA122_0<=43)||(LA122_0>=49 && LA122_0<=50)||LA122_0==57||(LA122_0>=73 && LA122_0<=74)||LA122_0==78||LA122_0==86||LA122_0==88||(LA122_0>=92 && LA122_0<=94)||(LA122_0>=97 && LA122_0<=106)||LA122_0==108) ) {s = 5;} |
| |
| else if ( (LA122_0==31) ) {s = 35;} |
| |
| |
| input.seek(index122_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA122_1 = input.LA(1); |
| |
| |
| int index122_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index122_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA122_2 = input.LA(1); |
| |
| |
| int index122_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalFunctionLibraryDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index122_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 122, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA124 extends DFA { |
| |
| public DFA124(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 124; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "7671:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA124_1 = input.LA(1); |
| |
| |
| int index124_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index124_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 124, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_72s = "\1\41\115\uffff"; |
| static final String dfa_73s = "\1\4\40\0\55\uffff"; |
| static final String dfa_74s = "\1\155\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\1\1\27\1\23\1\24\1\25\5\uffff\1\12\1\41\15\uffff\1\40\2\41\11\uffff\1\4\1\3\1\5\1\41\1\uffff\1\41\2\uffff\1\17\1\20\6\41\1\15\17\41\1\10\1\7\3\41\1\6\6\41\1\uffff\1\31\1\41\1\13\3\41\1\32\1\33\1\34\2\41\1\2\1\16\1\11\1\21\1\22\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_72 = DFA.unpackEncodedString(dfa_72s); |
| static final char[] dfa_73 = DFA.unpackEncodedStringToUnsignedChars(dfa_73s); |
| static final char[] dfa_74 = DFA.unpackEncodedStringToUnsignedChars(dfa_74s); |
| static final short[] dfa_75 = DFA.unpackEncodedString(dfa_75s); |
| static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); |
| static final short[][] dfa_77 = unpackEncodedStringArray(dfa_77s); |
| |
| class DFA127 extends DFA { |
| |
| public DFA127(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 127; |
| this.eot = dfa_39; |
| this.eof = dfa_72; |
| this.min = dfa_73; |
| this.max = dfa_74; |
| this.accept = dfa_75; |
| this.special = dfa_76; |
| this.transition = dfa_77; |
| } |
| public String getDescription() { |
| return "8014:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA127_1 = input.LA(1); |
| |
| |
| int index127_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA127_2 = input.LA(1); |
| |
| |
| int index127_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA127_3 = input.LA(1); |
| |
| |
| int index127_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA127_4 = input.LA(1); |
| |
| |
| int index127_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA127_5 = input.LA(1); |
| |
| |
| int index127_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA127_6 = input.LA(1); |
| |
| |
| int index127_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA127_7 = input.LA(1); |
| |
| |
| int index127_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA127_8 = input.LA(1); |
| |
| |
| int index127_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA127_9 = input.LA(1); |
| |
| |
| int index127_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA127_10 = input.LA(1); |
| |
| |
| int index127_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA127_11 = input.LA(1); |
| |
| |
| int index127_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA127_12 = input.LA(1); |
| |
| |
| int index127_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA127_13 = input.LA(1); |
| |
| |
| int index127_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA127_14 = input.LA(1); |
| |
| |
| int index127_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA127_15 = input.LA(1); |
| |
| |
| int index127_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA127_16 = input.LA(1); |
| |
| |
| int index127_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA127_17 = input.LA(1); |
| |
| |
| int index127_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA127_18 = input.LA(1); |
| |
| |
| int index127_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA127_19 = input.LA(1); |
| |
| |
| int index127_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA127_20 = input.LA(1); |
| |
| |
| int index127_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA127_21 = input.LA(1); |
| |
| |
| int index127_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA127_22 = input.LA(1); |
| |
| |
| int index127_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA127_23 = input.LA(1); |
| |
| |
| int index127_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA127_24 = input.LA(1); |
| |
| |
| int index127_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA127_25 = input.LA(1); |
| |
| |
| int index127_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA127_26 = input.LA(1); |
| |
| |
| int index127_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA127_27 = input.LA(1); |
| |
| |
| int index127_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA127_28 = input.LA(1); |
| |
| |
| int index127_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA127_29 = input.LA(1); |
| |
| |
| int index127_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA127_30 = input.LA(1); |
| |
| |
| int index127_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA127_31 = input.LA(1); |
| |
| |
| int index127_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA127_32 = input.LA(1); |
| |
| |
| int index127_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalFunctionLibraryDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index127_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 127, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_78s = "\117\uffff"; |
| static final String dfa_79s = "\1\2\116\uffff"; |
| static final String dfa_80s = "\1\4\1\0\115\uffff"; |
| static final String dfa_81s = "\1\157\1\0\115\uffff"; |
| static final String dfa_82s = "\2\uffff\1\2\113\uffff\1\1"; |
| static final String dfa_83s = "\1\uffff\1\0\115\uffff}>"; |
| static final String[] dfa_84s = { |
| "\5\2\5\uffff\2\2\15\uffff\3\2\11\uffff\4\2\1\uffff\1\2\2\uffff\10\2\1\1\33\2\1\uffff\30\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_78 = DFA.unpackEncodedString(dfa_78s); |
| static final short[] dfa_79 = DFA.unpackEncodedString(dfa_79s); |
| static final char[] dfa_80 = DFA.unpackEncodedStringToUnsignedChars(dfa_80s); |
| static final char[] dfa_81 = DFA.unpackEncodedStringToUnsignedChars(dfa_81s); |
| static final short[] dfa_82 = DFA.unpackEncodedString(dfa_82s); |
| static final short[] dfa_83 = DFA.unpackEncodedString(dfa_83s); |
| static final short[][] dfa_84 = unpackEncodedStringArray(dfa_84s); |
| |
| class DFA145 extends DFA { |
| |
| public DFA145(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 145; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "8672:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA145_1 = input.LA(1); |
| |
| |
| int index145_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalFunctionLibraryDsl()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index145_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 145, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA143 extends DFA { |
| |
| public DFA143(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 143; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "8766:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA143_1 = input.LA(1); |
| |
| |
| int index143_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalFunctionLibraryDsl()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index143_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 143, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
| public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
| public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000002000L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x00000000087F8000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000610008000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000001810008000L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000002010008000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000004010008000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000018000008000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000800000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001000000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000002000000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000004000000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000008010L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000020000000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x00000000A0000010L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x00000000C0000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000020000010L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000100000000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000240000000010L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000080000000010L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000100000000010L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000400000000002L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000020000002L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x02068E00A00041F0L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0001000000000000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x02068E00200041F0L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0004000000000000L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x020E8E00200041F0L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0008000040000000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000000040000002L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x07F0000000000002L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0200000000000000L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0C00000000000000L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0800000000000000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x1000000000000002L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x2000000000000002L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0xC000000000000002L,0x0000000000000003L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0E00000000000002L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0600000000000002L,0x00000000000001F8L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0400000000000000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0200000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000600L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000100000000002L,0x0000000000003800L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000002L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000000000002L,0x0000000000030000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000000000002L,0x00000000001C0000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x00000E0000000010L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x02000E0000000010L,0x0000000600000000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000020000010L,0x0000400000000040L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0400000040000000L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0004000020000002L,0x00000000001C0000L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x02068E00A00041F0L,0x000017FE71604640L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0004000000000002L,0x00000000001C0000L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x02068E002000C1F0L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000040008000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x020E8E00200041F0L,0x000017FFF1604640L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000040000000L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x020E8E00200041F0L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0008000000000000L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0206CE00200041F2L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x02068E00200041F2L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000002L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x02068E00200041F0L,0x000017FE71404640L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000000000L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000060008010L,0x000000000E000040L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000040000000L,0x000000000A000000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000040000000L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0206CE00200041F0L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000400040000000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x02068E00200041F0L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0206CE00200041F0L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000400000000000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000000L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x02068E002000C1F0L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0206CE002000C1F0L,0x000017FFF1404600L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0001000000000002L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0004000020000002L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0004000000000002L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0204000020000002L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0004000080000000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x02068E00200041F2L,0x000017FE71404600L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000000L,0x0000280000000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x0000280000000000L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000180L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0200000000000002L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0200000000000002L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0000000600000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0000800000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000100000000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000020000000002L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |