| package org.eclipse.osbp.xtext.perspective.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.emf.common.util.Enumerator; |
| 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.perspective.services.PerspectiveDslGrammarAccess; |
| |
| |
| |
| 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, 2016 - 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 v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| @SuppressWarnings("all") |
| public class InternalPerspectiveDslParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_INT", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'perspective'", "'describedBy'", "'process'", "'usertask'", "'iconURI'", "'accessibility'", "'toolbar'", "'sashContainer'", "'orientation'", "'selectedElement'", "'spaceVolume'", "'partStack'", "'part'", "'view'", "'isClosable'", "'select'", "'table'", "'grid'", "'bean'", "'chart'", "'report'", "'organigram'", "'topology'", "'dialog'", "'bpmn'", "'kanban'", "'of'", "'card'", "'welcome'", "'search'", "'in'", "'depth'", "'filterColumns'", "'dataInterchange'", "'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'", "'?'", "'&'", "'horizontal'", "'vertical'" |
| }; |
| public static final int RULE_HEX=7; |
| 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=6; |
| 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__125=125; |
| 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__122=122; |
| public static final int T__70=70; |
| public static final int T__121=121; |
| public static final int T__71=71; |
| public static final int T__124=124; |
| public static final int T__72=72; |
| public static final int T__123=123; |
| public static final int T__120=120; |
| 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__119=119; |
| public static final int T__78=78; |
| public static final int T__118=118; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int T__115=115; |
| public static final int EOF=-1; |
| public static final int T__74=74; |
| public static final int T__114=114; |
| public static final int T__75=75; |
| public static final int T__117=117; |
| public static final int T__76=76; |
| public static final int T__116=116; |
| 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__113=113; |
| public static final int T__83=83; |
| public static final int T__112=112; |
| 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 InternalPerspectiveDslParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalPerspectiveDslParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalPerspectiveDslParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalPerspectiveDsl.g"; } |
| |
| |
| |
| private PerspectiveDslGrammarAccess grammarAccess; |
| |
| public InternalPerspectiveDslParser(TokenStream input, PerspectiveDslGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "PerspectiveModel"; |
| } |
| |
| @Override |
| protected PerspectiveDslGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRulePerspectiveModel" |
| // InternalPerspectiveDsl.g:78:1: entryRulePerspectiveModel returns [EObject current=null] : iv_rulePerspectiveModel= rulePerspectiveModel EOF ; |
| public final EObject entryRulePerspectiveModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveModel = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:78:57: (iv_rulePerspectiveModel= rulePerspectiveModel EOF ) |
| // InternalPerspectiveDsl.g:79:2: iv_rulePerspectiveModel= rulePerspectiveModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveModel=rulePerspectiveModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveModel" |
| |
| |
| // $ANTLR start "rulePerspectiveModel" |
| // InternalPerspectiveDsl.g:85:1: rulePerspectiveModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= rulePerspectivePackage ) )* ) ; |
| public final EObject rulePerspectiveModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:91:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= rulePerspectivePackage ) )* ) ) |
| // InternalPerspectiveDsl.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= rulePerspectivePackage ) )* ) |
| { |
| // InternalPerspectiveDsl.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= rulePerspectivePackage ) )* ) |
| // InternalPerspectiveDsl.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= rulePerspectivePackage ) )* |
| { |
| // InternalPerspectiveDsl.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==50) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalPerspectiveDsl.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalPerspectiveDsl.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalPerspectiveDsl.g:95:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveModelAccess().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.getPerspectiveModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:112:3: ( (lv_packages_1_0= rulePerspectivePackage ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==13) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalPerspectiveDsl.g:113:4: (lv_packages_1_0= rulePerspectivePackage ) |
| { |
| // InternalPerspectiveDsl.g:113:4: (lv_packages_1_0= rulePerspectivePackage ) |
| // InternalPerspectiveDsl.g:114:5: lv_packages_1_0= rulePerspectivePackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveModelAccess().getPackagesPerspectivePackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_packages_1_0=rulePerspectivePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveModelRule()); |
| } |
| add( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.PerspectivePackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveModel" |
| |
| |
| // $ANTLR start "entryRulePerspectivePackage" |
| // InternalPerspectiveDsl.g:135:1: entryRulePerspectivePackage returns [EObject current=null] : iv_rulePerspectivePackage= rulePerspectivePackage EOF ; |
| public final EObject entryRulePerspectivePackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectivePackage = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:135:59: (iv_rulePerspectivePackage= rulePerspectivePackage EOF ) |
| // InternalPerspectiveDsl.g:136:2: iv_rulePerspectivePackage= rulePerspectivePackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectivePackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectivePackage=rulePerspectivePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectivePackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectivePackage" |
| |
| |
| // $ANTLR start "rulePerspectivePackage" |
| // InternalPerspectiveDsl.g:142:1: rulePerspectivePackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? ) ; |
| public final EObject rulePerspectivePackage() 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_perspectives_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:148:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? ) ) |
| // InternalPerspectiveDsl.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? ) |
| { |
| // InternalPerspectiveDsl.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? ) |
| // InternalPerspectiveDsl.g:150:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? |
| { |
| // InternalPerspectiveDsl.g:150:3: () |
| // InternalPerspectiveDsl.g:151:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectivePackageAccess().getPerspectivePackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectivePackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:161:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:163:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectivePackageAccess().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.getPerspectivePackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:180:3: (otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==14) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalPerspectiveDsl.g:181:4: otherlv_3= '{' ( (lv_perspectives_4_0= rulePerspective ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPerspectivePackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:185:4: ( (lv_perspectives_4_0= rulePerspective ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==16) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalPerspectiveDsl.g:186:5: (lv_perspectives_4_0= rulePerspective ) |
| { |
| // InternalPerspectiveDsl.g:186:5: (lv_perspectives_4_0= rulePerspective ) |
| // InternalPerspectiveDsl.g:187:6: lv_perspectives_4_0= rulePerspective |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectivePackageAccess().getPerspectivesPerspectiveParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_perspectives_4_0=rulePerspective(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectivePackageRule()); |
| } |
| add( |
| current, |
| "perspectives", |
| lv_perspectives_4_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.Perspective"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPerspectivePackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectivePackage" |
| |
| |
| // $ANTLR start "entryRulePerspective" |
| // InternalPerspectiveDsl.g:213:1: entryRulePerspective returns [EObject current=null] : iv_rulePerspective= rulePerspective EOF ; |
| public final EObject entryRulePerspective() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspective = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:213:52: (iv_rulePerspective= rulePerspective EOF ) |
| // InternalPerspectiveDsl.g:214:2: iv_rulePerspective= rulePerspective EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspective=rulePerspective(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspective; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspective" |
| |
| |
| // $ANTLR start "rulePerspective" |
| // InternalPerspectiveDsl.g:220:1: rulePerspective returns [EObject current=null] : ( () otherlv_1= 'perspective' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) otherlv_16= '{' ( (lv_elements_17_0= rulePerspectiveElement ) )* otherlv_18= '}' ) ; |
| public final EObject rulePerspective() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_description_3_0=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token lv_iconURI_11_0=null; |
| Token otherlv_12=null; |
| Token lv_accessibilityPhrase_13_0=null; |
| Token otherlv_14=null; |
| Token otherlv_15=null; |
| Token otherlv_16=null; |
| Token otherlv_18=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_descriptionValue_4_0 = null; |
| |
| EObject lv_elements_17_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:226:2: ( ( () otherlv_1= 'perspective' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) otherlv_16= '{' ( (lv_elements_17_0= rulePerspectiveElement ) )* otherlv_18= '}' ) ) |
| // InternalPerspectiveDsl.g:227:2: ( () otherlv_1= 'perspective' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) otherlv_16= '{' ( (lv_elements_17_0= rulePerspectiveElement ) )* otherlv_18= '}' ) |
| { |
| // InternalPerspectiveDsl.g:227:2: ( () otherlv_1= 'perspective' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) otherlv_16= '{' ( (lv_elements_17_0= rulePerspectiveElement ) )* otherlv_18= '}' ) |
| // InternalPerspectiveDsl.g:228:3: () otherlv_1= 'perspective' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) otherlv_16= '{' ( (lv_elements_17_0= rulePerspectiveElement ) )* otherlv_18= '}' |
| { |
| // InternalPerspectiveDsl.g:228:3: () |
| // InternalPerspectiveDsl.g:229:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveAccess().getPerspectiveAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveAccess().getPerspectiveKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:239:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalPerspectiveDsl.g:240:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalPerspectiveDsl.g:240:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalPerspectiveDsl.g:241:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_name_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:258:3: ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==17) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalPerspectiveDsl.g:259:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalPerspectiveDsl.g:259:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalPerspectiveDsl.g:260:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalPerspectiveDsl.g:260:5: (lv_description_3_0= 'describedBy' ) |
| // InternalPerspectiveDsl.g:261:6: lv_description_3_0= 'describedBy' |
| { |
| lv_description_3_0=(Token)match(input,17,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_description_3_0, grammarAccess.getPerspectiveAccess().getDescriptionDescribedByKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| setWithLastConsumed(current, "description", true, "describedBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:273:4: ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| // InternalPerspectiveDsl.g:274:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalPerspectiveDsl.g:274:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| // InternalPerspectiveDsl.g:275:6: lv_descriptionValue_4_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_descriptionValue_4_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveRule()); |
| } |
| set( |
| current, |
| "descriptionValue", |
| lv_descriptionValue_4_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:293:3: (otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) )? |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0==18) ) { |
| alt6=1; |
| } |
| switch (alt6) { |
| case 1 : |
| // InternalPerspectiveDsl.g:294:4: otherlv_5= 'process' ( (otherlv_6= RULE_ID ) ) otherlv_7= 'usertask' ( (otherlv_8= RULE_ID ) ) |
| { |
| otherlv_5=(Token)match(input,18,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPerspectiveAccess().getProcessKeyword_4_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:298:4: ( (otherlv_6= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:299:5: (otherlv_6= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:299:5: (otherlv_6= RULE_ID ) |
| // InternalPerspectiveDsl.g:300:6: otherlv_6= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| |
| } |
| otherlv_6=(Token)match(input,RULE_ID,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPerspectiveAccess().getProcessBlipCrossReference_4_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,19,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPerspectiveAccess().getUsertaskKeyword_4_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:315:4: ( (otherlv_8= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:316:5: (otherlv_8= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:316:5: (otherlv_8= RULE_ID ) |
| // InternalPerspectiveDsl.g:317:6: otherlv_8= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| |
| } |
| otherlv_8=(Token)match(input,RULE_ID,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPerspectiveAccess().getUserTaskBlipUserTaskCrossReference_4_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:329:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) ) |
| // InternalPerspectiveDsl.g:330:4: ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) |
| { |
| // InternalPerspectiveDsl.g:330:4: ( ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:331:5: ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5()); |
| // InternalPerspectiveDsl.g:334:5: ( ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* ) |
| // InternalPerspectiveDsl.g:335:6: ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* |
| { |
| // InternalPerspectiveDsl.g:335:6: ( ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) )* |
| loop7: |
| do { |
| int alt7=4; |
| int LA7_0 = input.LA(1); |
| |
| if ( LA7_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 0) ) { |
| alt7=1; |
| } |
| else if ( LA7_0 == 21 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 1) ) { |
| alt7=2; |
| } |
| else if ( LA7_0 == 22 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 2) ) { |
| alt7=3; |
| } |
| |
| |
| switch (alt7) { |
| case 1 : |
| // InternalPerspectiveDsl.g:336:4: ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:336:4: ({...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:337:5: {...}? => ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 0)"); |
| } |
| // InternalPerspectiveDsl.g:337:108: ( ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:338:6: ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 0); |
| // InternalPerspectiveDsl.g:341:9: ({...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:341:10: {...}? => (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "true"); |
| } |
| // InternalPerspectiveDsl.g:341:19: (otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:341:20: otherlv_10= 'iconURI' ( (lv_iconURI_11_0= RULE_STRING ) ) |
| { |
| otherlv_10=(Token)match(input,20,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPerspectiveAccess().getIconURIKeyword_5_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:345:9: ( (lv_iconURI_11_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:346:10: (lv_iconURI_11_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:346:10: (lv_iconURI_11_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:347:11: lv_iconURI_11_0= RULE_STRING |
| { |
| lv_iconURI_11_0=(Token)match(input,RULE_STRING,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_iconURI_11_0, grammarAccess.getPerspectiveAccess().getIconURISTRINGTerminalRuleCall_5_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "iconURI", |
| lv_iconURI_11_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:369:4: ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:369:4: ({...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:370:5: {...}? => ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 1)"); |
| } |
| // InternalPerspectiveDsl.g:370:108: ( ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:371:6: ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 1); |
| // InternalPerspectiveDsl.g:374:9: ({...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:374:10: {...}? => (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "true"); |
| } |
| // InternalPerspectiveDsl.g:374:19: (otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:374:20: otherlv_12= 'accessibility' ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) |
| { |
| otherlv_12=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getPerspectiveAccess().getAccessibilityKeyword_5_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:378:9: ( (lv_accessibilityPhrase_13_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:379:10: (lv_accessibilityPhrase_13_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:379:10: (lv_accessibilityPhrase_13_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:380:11: lv_accessibilityPhrase_13_0= RULE_STRING |
| { |
| lv_accessibilityPhrase_13_0=(Token)match(input,RULE_STRING,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_accessibilityPhrase_13_0, grammarAccess.getPerspectiveAccess().getAccessibilityPhraseSTRINGTerminalRuleCall_5_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "accessibilityPhrase", |
| lv_accessibilityPhrase_13_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:402:4: ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:402:4: ({...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:403:5: {...}? => ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 2)"); |
| } |
| // InternalPerspectiveDsl.g:403:108: ( ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) ) |
| // InternalPerspectiveDsl.g:404:6: ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5(), 2); |
| // InternalPerspectiveDsl.g:407:9: ({...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:407:10: {...}? => (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspective", "true"); |
| } |
| // InternalPerspectiveDsl.g:407:19: (otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:407:20: otherlv_14= 'toolbar' ( (otherlv_15= RULE_ID ) ) |
| { |
| otherlv_14=(Token)match(input,22,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getPerspectiveAccess().getToolbarKeyword_5_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:411:9: ( (otherlv_15= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:412:10: (otherlv_15= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:412:10: (otherlv_15= RULE_ID ) |
| // InternalPerspectiveDsl.g:413:11: otherlv_15= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveRule()); |
| } |
| |
| } |
| otherlv_15=(Token)match(input,RULE_ID,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getPerspectiveAccess().getToolbarActionToolbarCrossReference_5_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop7; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getPerspectiveAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| otherlv_16=(Token)match(input,14,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getPerspectiveAccess().getLeftCurlyBracketKeyword_6()); |
| |
| } |
| // InternalPerspectiveDsl.g:441:3: ( (lv_elements_17_0= rulePerspectiveElement ) )* |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==23||(LA8_0>=27 && LA8_0<=28)) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalPerspectiveDsl.g:442:4: (lv_elements_17_0= rulePerspectiveElement ) |
| { |
| // InternalPerspectiveDsl.g:442:4: (lv_elements_17_0= rulePerspectiveElement ) |
| // InternalPerspectiveDsl.g:443:5: lv_elements_17_0= rulePerspectiveElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveAccess().getElementsPerspectiveElementParserRuleCall_7_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_elements_17_0=rulePerspectiveElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_17_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.PerspectiveElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| otherlv_18=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getPerspectiveAccess().getRightCurlyBracketKeyword_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspective" |
| |
| |
| // $ANTLR start "entryRulePerspectiveElement" |
| // InternalPerspectiveDsl.g:468:1: entryRulePerspectiveElement returns [EObject current=null] : iv_rulePerspectiveElement= rulePerspectiveElement EOF ; |
| public final EObject entryRulePerspectiveElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveElement = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:468:59: (iv_rulePerspectiveElement= rulePerspectiveElement EOF ) |
| // InternalPerspectiveDsl.g:469:2: iv_rulePerspectiveElement= rulePerspectiveElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveElement=rulePerspectiveElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveElement" |
| |
| |
| // $ANTLR start "rulePerspectiveElement" |
| // InternalPerspectiveDsl.g:475:1: rulePerspectiveElement returns [EObject current=null] : (this_PerspectiveSashContainer_0= rulePerspectiveSashContainer | this_PerspectivePartStack_1= rulePerspectivePartStack | this_PerspectivePart_2= rulePerspectivePart ) ; |
| public final EObject rulePerspectiveElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PerspectiveSashContainer_0 = null; |
| |
| EObject this_PerspectivePartStack_1 = null; |
| |
| EObject this_PerspectivePart_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:481:2: ( (this_PerspectiveSashContainer_0= rulePerspectiveSashContainer | this_PerspectivePartStack_1= rulePerspectivePartStack | this_PerspectivePart_2= rulePerspectivePart ) ) |
| // InternalPerspectiveDsl.g:482:2: (this_PerspectiveSashContainer_0= rulePerspectiveSashContainer | this_PerspectivePartStack_1= rulePerspectivePartStack | this_PerspectivePart_2= rulePerspectivePart ) |
| { |
| // InternalPerspectiveDsl.g:482:2: (this_PerspectiveSashContainer_0= rulePerspectiveSashContainer | this_PerspectivePartStack_1= rulePerspectivePartStack | this_PerspectivePart_2= rulePerspectivePart ) |
| int alt9=3; |
| switch ( input.LA(1) ) { |
| case 23: |
| { |
| alt9=1; |
| } |
| break; |
| case 27: |
| { |
| alt9=2; |
| } |
| break; |
| case 28: |
| { |
| alt9=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 9, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt9) { |
| case 1 : |
| // InternalPerspectiveDsl.g:483:3: this_PerspectiveSashContainer_0= rulePerspectiveSashContainer |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveElementAccess().getPerspectiveSashContainerParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveSashContainer_0=rulePerspectiveSashContainer(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveSashContainer_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:492:3: this_PerspectivePartStack_1= rulePerspectivePartStack |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveElementAccess().getPerspectivePartStackParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectivePartStack_1=rulePerspectivePartStack(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectivePartStack_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:501:3: this_PerspectivePart_2= rulePerspectivePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveElementAccess().getPerspectivePartParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectivePart_2=rulePerspectivePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectivePart_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveElement" |
| |
| |
| // $ANTLR start "entryRulePerspectiveSashContainer" |
| // InternalPerspectiveDsl.g:513:1: entryRulePerspectiveSashContainer returns [EObject current=null] : iv_rulePerspectiveSashContainer= rulePerspectiveSashContainer EOF ; |
| public final EObject entryRulePerspectiveSashContainer() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveSashContainer = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:513:65: (iv_rulePerspectiveSashContainer= rulePerspectiveSashContainer EOF ) |
| // InternalPerspectiveDsl.g:514:2: iv_rulePerspectiveSashContainer= rulePerspectiveSashContainer EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveSashContainer=rulePerspectiveSashContainer(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveSashContainer; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveSashContainer" |
| |
| |
| // $ANTLR start "rulePerspectiveSashContainer" |
| // InternalPerspectiveDsl.g:520:1: rulePerspectiveSashContainer returns [EObject current=null] : ( () otherlv_1= 'sashContainer' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_12= '{' ( (lv_elements_13_0= rulePerspectiveElement ) )* otherlv_14= '}' ) ; |
| public final EObject rulePerspectiveSashContainer() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_elementId_2_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token lv_containerData_9_0=null; |
| Token otherlv_10=null; |
| Token lv_accessibilityPhrase_11_0=null; |
| Token otherlv_12=null; |
| Token otherlv_14=null; |
| Enumerator lv_orientation_5_0 = null; |
| |
| EObject lv_elements_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:526:2: ( ( () otherlv_1= 'sashContainer' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_12= '{' ( (lv_elements_13_0= rulePerspectiveElement ) )* otherlv_14= '}' ) ) |
| // InternalPerspectiveDsl.g:527:2: ( () otherlv_1= 'sashContainer' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_12= '{' ( (lv_elements_13_0= rulePerspectiveElement ) )* otherlv_14= '}' ) |
| { |
| // InternalPerspectiveDsl.g:527:2: ( () otherlv_1= 'sashContainer' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_12= '{' ( (lv_elements_13_0= rulePerspectiveElement ) )* otherlv_14= '}' ) |
| // InternalPerspectiveDsl.g:528:3: () otherlv_1= 'sashContainer' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_12= '{' ( (lv_elements_13_0= rulePerspectiveElement ) )* otherlv_14= '}' |
| { |
| // InternalPerspectiveDsl.g:528:3: () |
| // InternalPerspectiveDsl.g:529:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveSashContainerAccess().getPerspectiveSashContainerAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,23,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveSashContainerAccess().getSashContainerKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:539:3: ( (lv_elementId_2_0= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:540:4: (lv_elementId_2_0= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:540:4: (lv_elementId_2_0= RULE_ID ) |
| // InternalPerspectiveDsl.g:541:5: lv_elementId_2_0= RULE_ID |
| { |
| lv_elementId_2_0=(Token)match(input,RULE_ID,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementId_2_0, grammarAccess.getPerspectiveSashContainerAccess().getElementIdIDTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementId", |
| lv_elementId_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:557:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalPerspectiveDsl.g:558:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalPerspectiveDsl.g:558:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:559:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| // InternalPerspectiveDsl.g:562:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalPerspectiveDsl.g:563:6: ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalPerspectiveDsl.g:563:6: ( ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) )* |
| loop10: |
| do { |
| int alt10=5; |
| int LA10_0 = input.LA(1); |
| |
| if ( LA10_0 == 24 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 0) ) { |
| alt10=1; |
| } |
| else if ( LA10_0 == 25 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 1) ) { |
| alt10=2; |
| } |
| else if ( LA10_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 2) ) { |
| alt10=3; |
| } |
| else if ( LA10_0 == 21 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 3) ) { |
| alt10=4; |
| } |
| |
| |
| switch (alt10) { |
| case 1 : |
| // InternalPerspectiveDsl.g:564:4: ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:564:4: ({...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:565:5: {...}? => ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalPerspectiveDsl.g:565:121: ( ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) ) |
| // InternalPerspectiveDsl.g:566:6: ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 0); |
| // InternalPerspectiveDsl.g:569:9: ({...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) ) |
| // InternalPerspectiveDsl.g:569:10: {...}? => (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "true"); |
| } |
| // InternalPerspectiveDsl.g:569:19: (otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) ) |
| // InternalPerspectiveDsl.g:569:20: otherlv_4= 'orientation' ( (lv_orientation_5_0= ruleSashOrientation ) ) |
| { |
| otherlv_4=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPerspectiveSashContainerAccess().getOrientationKeyword_3_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:573:9: ( (lv_orientation_5_0= ruleSashOrientation ) ) |
| // InternalPerspectiveDsl.g:574:10: (lv_orientation_5_0= ruleSashOrientation ) |
| { |
| // InternalPerspectiveDsl.g:574:10: (lv_orientation_5_0= ruleSashOrientation ) |
| // InternalPerspectiveDsl.g:575:11: lv_orientation_5_0= ruleSashOrientation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveSashContainerAccess().getOrientationSashOrientationEnumRuleCall_3_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_13); |
| lv_orientation_5_0=ruleSashOrientation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| set( |
| current, |
| "orientation", |
| lv_orientation_5_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.SashOrientation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:598:4: ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:598:4: ({...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:599:5: {...}? => ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalPerspectiveDsl.g:599:121: ( ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) ) |
| // InternalPerspectiveDsl.g:600:6: ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 1); |
| // InternalPerspectiveDsl.g:603:9: ({...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:603:10: {...}? => (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "true"); |
| } |
| // InternalPerspectiveDsl.g:603:19: (otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:603:20: otherlv_6= 'selectedElement' ( (otherlv_7= RULE_ID ) ) |
| { |
| otherlv_6=(Token)match(input,25,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPerspectiveSashContainerAccess().getSelectedElementKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:607:9: ( (otherlv_7= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:608:10: (otherlv_7= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:608:10: (otherlv_7= RULE_ID ) |
| // InternalPerspectiveDsl.g:609:11: otherlv_7= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| |
| } |
| otherlv_7=(Token)match(input,RULE_ID,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPerspectiveSashContainerAccess().getSelectedElementPerspectiveElementCrossReference_3_1_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:626:4: ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:626:4: ({...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:627:5: {...}? => ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalPerspectiveDsl.g:627:121: ( ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:628:6: ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 2); |
| // InternalPerspectiveDsl.g:631:9: ({...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:631:10: {...}? => (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "true"); |
| } |
| // InternalPerspectiveDsl.g:631:19: (otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:631:20: otherlv_8= 'spaceVolume' ( (lv_containerData_9_0= RULE_STRING ) ) |
| { |
| otherlv_8=(Token)match(input,26,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPerspectiveSashContainerAccess().getSpaceVolumeKeyword_3_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:635:9: ( (lv_containerData_9_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:636:10: (lv_containerData_9_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:636:10: (lv_containerData_9_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:637:11: lv_containerData_9_0= RULE_STRING |
| { |
| lv_containerData_9_0=(Token)match(input,RULE_STRING,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_containerData_9_0, grammarAccess.getPerspectiveSashContainerAccess().getContainerDataSTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "containerData", |
| lv_containerData_9_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:659:4: ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:659:4: ({...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:660:5: {...}? => ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalPerspectiveDsl.g:660:121: ( ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:661:6: ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3(), 3); |
| // InternalPerspectiveDsl.g:664:9: ({...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:664:10: {...}? => (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSashContainer", "true"); |
| } |
| // InternalPerspectiveDsl.g:664:19: (otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:664:20: otherlv_10= 'accessibility' ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) |
| { |
| otherlv_10=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPerspectiveSashContainerAccess().getAccessibilityKeyword_3_3_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:668:9: ( (lv_accessibilityPhrase_11_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:669:10: (lv_accessibilityPhrase_11_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:669:10: (lv_accessibilityPhrase_11_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:670:11: lv_accessibilityPhrase_11_0= RULE_STRING |
| { |
| lv_accessibilityPhrase_11_0=(Token)match(input,RULE_STRING,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_accessibilityPhrase_11_0, grammarAccess.getPerspectiveSashContainerAccess().getAccessibilityPhraseSTRINGTerminalRuleCall_3_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "accessibilityPhrase", |
| lv_accessibilityPhrase_11_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop10; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getPerspectiveSashContainerAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| otherlv_12=(Token)match(input,14,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getPerspectiveSashContainerAccess().getLeftCurlyBracketKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:703:3: ( (lv_elements_13_0= rulePerspectiveElement ) )* |
| loop11: |
| do { |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==23||(LA11_0>=27 && LA11_0<=28)) ) { |
| alt11=1; |
| } |
| |
| |
| switch (alt11) { |
| case 1 : |
| // InternalPerspectiveDsl.g:704:4: (lv_elements_13_0= rulePerspectiveElement ) |
| { |
| // InternalPerspectiveDsl.g:704:4: (lv_elements_13_0= rulePerspectiveElement ) |
| // InternalPerspectiveDsl.g:705:5: lv_elements_13_0= rulePerspectiveElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveSashContainerAccess().getElementsPerspectiveElementParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_elements_13_0=rulePerspectiveElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectiveSashContainerRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_13_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.PerspectiveElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop11; |
| } |
| } while (true); |
| |
| otherlv_14=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getPerspectiveSashContainerAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveSashContainer" |
| |
| |
| // $ANTLR start "entryRulePerspectivePartStack" |
| // InternalPerspectiveDsl.g:730:1: entryRulePerspectivePartStack returns [EObject current=null] : iv_rulePerspectivePartStack= rulePerspectivePartStack EOF ; |
| public final EObject entryRulePerspectivePartStack() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectivePartStack = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:730:61: (iv_rulePerspectivePartStack= rulePerspectivePartStack EOF ) |
| // InternalPerspectiveDsl.g:731:2: iv_rulePerspectivePartStack= rulePerspectivePartStack EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectivePartStackRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectivePartStack=rulePerspectivePartStack(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectivePartStack; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectivePartStack" |
| |
| |
| // $ANTLR start "rulePerspectivePartStack" |
| // InternalPerspectiveDsl.g:737:1: rulePerspectivePartStack returns [EObject current=null] : ( () otherlv_1= 'partStack' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_10= '{' ( (lv_elements_11_0= rulePerspectiveElement ) )* otherlv_12= '}' ) ; |
| public final EObject rulePerspectivePartStack() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_elementId_2_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token lv_containerData_7_0=null; |
| Token otherlv_8=null; |
| Token lv_accessibilityPhrase_9_0=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_elements_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:743:2: ( ( () otherlv_1= 'partStack' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_10= '{' ( (lv_elements_11_0= rulePerspectiveElement ) )* otherlv_12= '}' ) ) |
| // InternalPerspectiveDsl.g:744:2: ( () otherlv_1= 'partStack' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_10= '{' ( (lv_elements_11_0= rulePerspectiveElement ) )* otherlv_12= '}' ) |
| { |
| // InternalPerspectiveDsl.g:744:2: ( () otherlv_1= 'partStack' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_10= '{' ( (lv_elements_11_0= rulePerspectiveElement ) )* otherlv_12= '}' ) |
| // InternalPerspectiveDsl.g:745:3: () otherlv_1= 'partStack' ( (lv_elementId_2_0= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_10= '{' ( (lv_elements_11_0= rulePerspectiveElement ) )* otherlv_12= '}' |
| { |
| // InternalPerspectiveDsl.g:745:3: () |
| // InternalPerspectiveDsl.g:746:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectivePartStackAccess().getPerspectivePartStackAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,27,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectivePartStackAccess().getPartStackKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:756:3: ( (lv_elementId_2_0= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:757:4: (lv_elementId_2_0= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:757:4: (lv_elementId_2_0= RULE_ID ) |
| // InternalPerspectiveDsl.g:758:5: lv_elementId_2_0= RULE_ID |
| { |
| lv_elementId_2_0=(Token)match(input,RULE_ID,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementId_2_0, grammarAccess.getPerspectivePartStackAccess().getElementIdIDTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartStackRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementId", |
| lv_elementId_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:774:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalPerspectiveDsl.g:775:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalPerspectiveDsl.g:775:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:776:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3()); |
| // InternalPerspectiveDsl.g:779:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalPerspectiveDsl.g:780:6: ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalPerspectiveDsl.g:780:6: ( ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) )* |
| loop12: |
| do { |
| int alt12=4; |
| int LA12_0 = input.LA(1); |
| |
| if ( LA12_0 == 25 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 0) ) { |
| alt12=1; |
| } |
| else if ( LA12_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 1) ) { |
| alt12=2; |
| } |
| else if ( LA12_0 == 21 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 2) ) { |
| alt12=3; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalPerspectiveDsl.g:781:4: ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:781:4: ({...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:782:5: {...}? => ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalPerspectiveDsl.g:782:117: ( ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) ) |
| // InternalPerspectiveDsl.g:783:6: ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 0); |
| // InternalPerspectiveDsl.g:786:9: ({...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:786:10: {...}? => (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "true"); |
| } |
| // InternalPerspectiveDsl.g:786:19: (otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:786:20: otherlv_4= 'selectedElement' ( (otherlv_5= RULE_ID ) ) |
| { |
| otherlv_4=(Token)match(input,25,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPerspectivePartStackAccess().getSelectedElementKeyword_3_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:790:9: ( (otherlv_5= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:791:10: (otherlv_5= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:791:10: (otherlv_5= RULE_ID ) |
| // InternalPerspectiveDsl.g:792:11: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartStackRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPerspectivePartStackAccess().getSelectedElementPerspectivePartCrossReference_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:809:4: ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:809:4: ({...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:810:5: {...}? => ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalPerspectiveDsl.g:810:117: ( ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:811:6: ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 1); |
| // InternalPerspectiveDsl.g:814:9: ({...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:814:10: {...}? => (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "true"); |
| } |
| // InternalPerspectiveDsl.g:814:19: (otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:814:20: otherlv_6= 'spaceVolume' ( (lv_containerData_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,26,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPerspectivePartStackAccess().getSpaceVolumeKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:818:9: ( (lv_containerData_7_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:819:10: (lv_containerData_7_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:819:10: (lv_containerData_7_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:820:11: lv_containerData_7_0= RULE_STRING |
| { |
| lv_containerData_7_0=(Token)match(input,RULE_STRING,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_containerData_7_0, grammarAccess.getPerspectivePartStackAccess().getContainerDataSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartStackRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "containerData", |
| lv_containerData_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:842:4: ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:842:4: ({...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:843:5: {...}? => ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalPerspectiveDsl.g:843:117: ( ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:844:6: ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3(), 2); |
| // InternalPerspectiveDsl.g:847:9: ({...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:847:10: {...}? => (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePartStack", "true"); |
| } |
| // InternalPerspectiveDsl.g:847:19: (otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:847:20: otherlv_8= 'accessibility' ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) |
| { |
| otherlv_8=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPerspectivePartStackAccess().getAccessibilityKeyword_3_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:851:9: ( (lv_accessibilityPhrase_9_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:852:10: (lv_accessibilityPhrase_9_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:852:10: (lv_accessibilityPhrase_9_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:853:11: lv_accessibilityPhrase_9_0= RULE_STRING |
| { |
| lv_accessibilityPhrase_9_0=(Token)match(input,RULE_STRING,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_accessibilityPhrase_9_0, grammarAccess.getPerspectivePartStackAccess().getAccessibilityPhraseSTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartStackRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "accessibilityPhrase", |
| lv_accessibilityPhrase_9_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop12; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getPerspectivePartStackAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| otherlv_10=(Token)match(input,14,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPerspectivePartStackAccess().getLeftCurlyBracketKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:886:3: ( (lv_elements_11_0= rulePerspectiveElement ) )* |
| loop13: |
| do { |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==23||(LA13_0>=27 && LA13_0<=28)) ) { |
| alt13=1; |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalPerspectiveDsl.g:887:4: (lv_elements_11_0= rulePerspectiveElement ) |
| { |
| // InternalPerspectiveDsl.g:887:4: (lv_elements_11_0= rulePerspectiveElement ) |
| // InternalPerspectiveDsl.g:888:5: lv_elements_11_0= rulePerspectiveElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectivePartStackAccess().getElementsPerspectiveElementParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_elements_11_0=rulePerspectiveElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectivePartStackRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_11_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.PerspectiveElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop13; |
| } |
| } while (true); |
| |
| otherlv_12=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getPerspectivePartStackAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectivePartStack" |
| |
| |
| // $ANTLR start "entryRulePerspectivePart" |
| // InternalPerspectiveDsl.g:913:1: entryRulePerspectivePart returns [EObject current=null] : iv_rulePerspectivePart= rulePerspectivePart EOF ; |
| public final EObject entryRulePerspectivePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectivePart = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:913:56: (iv_rulePerspectivePart= rulePerspectivePart EOF ) |
| // InternalPerspectiveDsl.g:914:2: iv_rulePerspectivePart= rulePerspectivePart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectivePartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectivePart=rulePerspectivePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectivePart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectivePart" |
| |
| |
| // $ANTLR start "rulePerspectivePart" |
| // InternalPerspectiveDsl.g:920:1: rulePerspectivePart returns [EObject current=null] : ( () otherlv_1= 'part' ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject rulePerspectivePart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token lv_containerData_5_0=null; |
| Token otherlv_6=null; |
| Token lv_accessibilityPhrase_7_0=null; |
| Token otherlv_8=null; |
| Token lv_iconURI_9_0=null; |
| Token otherlv_10=null; |
| Token lv_isClosable_12_0=null; |
| AntlrDatatypeRuleToken lv_elementId_2_0 = null; |
| |
| EObject lv_view_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:926:2: ( ( () otherlv_1= 'part' ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) ) ) |
| // InternalPerspectiveDsl.g:927:2: ( () otherlv_1= 'part' ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:927:2: ( () otherlv_1= 'part' ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) ) |
| // InternalPerspectiveDsl.g:928:3: () otherlv_1= 'part' ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) |
| { |
| // InternalPerspectiveDsl.g:928:3: () |
| // InternalPerspectiveDsl.g:929:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectivePartAccess().getPerspectivePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,28,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectivePartAccess().getPartKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:939:3: ( (lv_elementId_2_0= ruleTRANSLATABLEID ) ) |
| // InternalPerspectiveDsl.g:940:4: (lv_elementId_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalPerspectiveDsl.g:940:4: (lv_elementId_2_0= ruleTRANSLATABLEID ) |
| // InternalPerspectiveDsl.g:941:5: lv_elementId_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectivePartAccess().getElementIdTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_elementId_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectivePartRule()); |
| } |
| set( |
| current, |
| "elementId", |
| lv_elementId_2_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:958:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) ) |
| // InternalPerspectiveDsl.g:959:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) |
| { |
| // InternalPerspectiveDsl.g:959:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:960:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| // InternalPerspectiveDsl.g:963:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* ) |
| // InternalPerspectiveDsl.g:964:6: ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* |
| { |
| // InternalPerspectiveDsl.g:964:6: ( ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) )* |
| loop14: |
| do { |
| int alt14=6; |
| int LA14_0 = input.LA(1); |
| |
| if ( LA14_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 0) ) { |
| alt14=1; |
| } |
| else if ( LA14_0 == 21 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 1) ) { |
| alt14=2; |
| } |
| else if ( LA14_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 2) ) { |
| alt14=3; |
| } |
| else if ( LA14_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 3) ) { |
| alt14=4; |
| } |
| else if ( LA14_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 4) ) { |
| alt14=5; |
| } |
| |
| |
| switch (alt14) { |
| case 1 : |
| // InternalPerspectiveDsl.g:965:4: ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:965:4: ({...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:966:5: {...}? => ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalPerspectiveDsl.g:966:112: ( ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:967:6: ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 0); |
| // InternalPerspectiveDsl.g:970:9: ({...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:970:10: {...}? => (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "true"); |
| } |
| // InternalPerspectiveDsl.g:970:19: (otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:970:20: otherlv_4= 'spaceVolume' ( (lv_containerData_5_0= RULE_STRING ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPerspectivePartAccess().getSpaceVolumeKeyword_3_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:974:9: ( (lv_containerData_5_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:975:10: (lv_containerData_5_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:975:10: (lv_containerData_5_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:976:11: lv_containerData_5_0= RULE_STRING |
| { |
| lv_containerData_5_0=(Token)match(input,RULE_STRING,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_containerData_5_0, grammarAccess.getPerspectivePartAccess().getContainerDataSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "containerData", |
| lv_containerData_5_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:998:4: ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:998:4: ({...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:999:5: {...}? => ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalPerspectiveDsl.g:999:112: ( ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1000:6: ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 1); |
| // InternalPerspectiveDsl.g:1003:9: ({...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:1003:10: {...}? => (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "true"); |
| } |
| // InternalPerspectiveDsl.g:1003:19: (otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:1003:20: otherlv_6= 'accessibility' ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPerspectivePartAccess().getAccessibilityKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:1007:9: ( (lv_accessibilityPhrase_7_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:1008:10: (lv_accessibilityPhrase_7_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:1008:10: (lv_accessibilityPhrase_7_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:1009:11: lv_accessibilityPhrase_7_0= RULE_STRING |
| { |
| lv_accessibilityPhrase_7_0=(Token)match(input,RULE_STRING,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_accessibilityPhrase_7_0, grammarAccess.getPerspectivePartAccess().getAccessibilityPhraseSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "accessibilityPhrase", |
| lv_accessibilityPhrase_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:1031:4: ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1031:4: ({...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1032:5: {...}? => ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalPerspectiveDsl.g:1032:112: ( ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1033:6: ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 2); |
| // InternalPerspectiveDsl.g:1036:9: ({...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:1036:10: {...}? => (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "true"); |
| } |
| // InternalPerspectiveDsl.g:1036:19: (otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:1036:20: otherlv_8= 'iconURI' ( (lv_iconURI_9_0= RULE_STRING ) ) |
| { |
| otherlv_8=(Token)match(input,20,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPerspectivePartAccess().getIconURIKeyword_3_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:1040:9: ( (lv_iconURI_9_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:1041:10: (lv_iconURI_9_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:1041:10: (lv_iconURI_9_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:1042:11: lv_iconURI_9_0= RULE_STRING |
| { |
| lv_iconURI_9_0=(Token)match(input,RULE_STRING,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_iconURI_9_0, grammarAccess.getPerspectivePartAccess().getIconURISTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "iconURI", |
| lv_iconURI_9_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:1064:4: ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1064:4: ({...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1065:5: {...}? => ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalPerspectiveDsl.g:1065:112: ( ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1066:6: ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 3); |
| // InternalPerspectiveDsl.g:1069:9: ({...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) ) |
| // InternalPerspectiveDsl.g:1069:10: {...}? => (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "true"); |
| } |
| // InternalPerspectiveDsl.g:1069:19: (otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) ) |
| // InternalPerspectiveDsl.g:1069:20: otherlv_10= 'view' ( (lv_view_11_0= rulePerspectiveView ) ) |
| { |
| otherlv_10=(Token)match(input,29,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPerspectivePartAccess().getViewKeyword_3_3_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:1073:9: ( (lv_view_11_0= rulePerspectiveView ) ) |
| // InternalPerspectiveDsl.g:1074:10: (lv_view_11_0= rulePerspectiveView ) |
| { |
| // InternalPerspectiveDsl.g:1074:10: (lv_view_11_0= rulePerspectiveView ) |
| // InternalPerspectiveDsl.g:1075:11: lv_view_11_0= rulePerspectiveView |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectivePartAccess().getViewPerspectiveViewParserRuleCall_3_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_view_11_0=rulePerspectiveView(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPerspectivePartRule()); |
| } |
| set( |
| current, |
| "view", |
| lv_view_11_0, |
| "org.eclipse.osbp.xtext.perspective.PerspectiveDsl.PerspectiveView"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalPerspectiveDsl.g:1098:4: ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1098:4: ({...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1099:5: {...}? => ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 4)"); |
| } |
| // InternalPerspectiveDsl.g:1099:112: ( ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) ) |
| // InternalPerspectiveDsl.g:1100:6: ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3(), 4); |
| // InternalPerspectiveDsl.g:1103:9: ({...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) ) |
| // InternalPerspectiveDsl.g:1103:10: {...}? => ( (lv_isClosable_12_0= 'isClosable' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectivePart", "true"); |
| } |
| // InternalPerspectiveDsl.g:1103:19: ( (lv_isClosable_12_0= 'isClosable' ) ) |
| // InternalPerspectiveDsl.g:1103:20: (lv_isClosable_12_0= 'isClosable' ) |
| { |
| // InternalPerspectiveDsl.g:1103:20: (lv_isClosable_12_0= 'isClosable' ) |
| // InternalPerspectiveDsl.g:1104:10: lv_isClosable_12_0= 'isClosable' |
| { |
| lv_isClosable_12_0=(Token)match(input,30,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isClosable_12_0, grammarAccess.getPerspectivePartAccess().getIsClosableIsClosableKeyword_3_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectivePartRule()); |
| } |
| setWithLastConsumed(current, "isClosable", true, "isClosable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop14; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getPerspectivePartAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectivePart" |
| |
| |
| // $ANTLR start "entryRulePerspectiveView" |
| // InternalPerspectiveDsl.g:1132:1: entryRulePerspectiveView returns [EObject current=null] : iv_rulePerspectiveView= rulePerspectiveView EOF ; |
| public final EObject entryRulePerspectiveView() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveView = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1132:56: (iv_rulePerspectiveView= rulePerspectiveView EOF ) |
| // InternalPerspectiveDsl.g:1133:2: iv_rulePerspectiveView= rulePerspectiveView EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveViewRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveView=rulePerspectiveView(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveView; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveView" |
| |
| |
| // $ANTLR start "rulePerspectiveView" |
| // InternalPerspectiveDsl.g:1139:1: rulePerspectiveView returns [EObject current=null] : (this_PerspectiveSelection_0= rulePerspectiveSelection | this_PerspectiveTable_1= rulePerspectiveTable | this_PerspectiveChart_2= rulePerspectiveChart | this_PerspectiveBean_3= rulePerspectiveBean | this_PerspectiveReport_4= rulePerspectiveReport | this_PerspectiveOrganization_5= rulePerspectiveOrganization | this_PerspectiveTopology_6= rulePerspectiveTopology | this_PerspectiveDialog_7= rulePerspectiveDialog | this_PerspectiveBPMN_8= rulePerspectiveBPMN | this_PerspectiveGrid_9= rulePerspectiveGrid | this_PerspectiveWelcome_10= rulePerspectiveWelcome | this_PerspectiveSearch_11= rulePerspectiveSearch | this_PerspectiveDataInterchange_12= rulePerspectiveDataInterchange | this_PerspectiveKanban_13= rulePerspectiveKanban ) ; |
| public final EObject rulePerspectiveView() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PerspectiveSelection_0 = null; |
| |
| EObject this_PerspectiveTable_1 = null; |
| |
| EObject this_PerspectiveChart_2 = null; |
| |
| EObject this_PerspectiveBean_3 = null; |
| |
| EObject this_PerspectiveReport_4 = null; |
| |
| EObject this_PerspectiveOrganization_5 = null; |
| |
| EObject this_PerspectiveTopology_6 = null; |
| |
| EObject this_PerspectiveDialog_7 = null; |
| |
| EObject this_PerspectiveBPMN_8 = null; |
| |
| EObject this_PerspectiveGrid_9 = null; |
| |
| EObject this_PerspectiveWelcome_10 = null; |
| |
| EObject this_PerspectiveSearch_11 = null; |
| |
| EObject this_PerspectiveDataInterchange_12 = null; |
| |
| EObject this_PerspectiveKanban_13 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1145:2: ( (this_PerspectiveSelection_0= rulePerspectiveSelection | this_PerspectiveTable_1= rulePerspectiveTable | this_PerspectiveChart_2= rulePerspectiveChart | this_PerspectiveBean_3= rulePerspectiveBean | this_PerspectiveReport_4= rulePerspectiveReport | this_PerspectiveOrganization_5= rulePerspectiveOrganization | this_PerspectiveTopology_6= rulePerspectiveTopology | this_PerspectiveDialog_7= rulePerspectiveDialog | this_PerspectiveBPMN_8= rulePerspectiveBPMN | this_PerspectiveGrid_9= rulePerspectiveGrid | this_PerspectiveWelcome_10= rulePerspectiveWelcome | this_PerspectiveSearch_11= rulePerspectiveSearch | this_PerspectiveDataInterchange_12= rulePerspectiveDataInterchange | this_PerspectiveKanban_13= rulePerspectiveKanban ) ) |
| // InternalPerspectiveDsl.g:1146:2: (this_PerspectiveSelection_0= rulePerspectiveSelection | this_PerspectiveTable_1= rulePerspectiveTable | this_PerspectiveChart_2= rulePerspectiveChart | this_PerspectiveBean_3= rulePerspectiveBean | this_PerspectiveReport_4= rulePerspectiveReport | this_PerspectiveOrganization_5= rulePerspectiveOrganization | this_PerspectiveTopology_6= rulePerspectiveTopology | this_PerspectiveDialog_7= rulePerspectiveDialog | this_PerspectiveBPMN_8= rulePerspectiveBPMN | this_PerspectiveGrid_9= rulePerspectiveGrid | this_PerspectiveWelcome_10= rulePerspectiveWelcome | this_PerspectiveSearch_11= rulePerspectiveSearch | this_PerspectiveDataInterchange_12= rulePerspectiveDataInterchange | this_PerspectiveKanban_13= rulePerspectiveKanban ) |
| { |
| // InternalPerspectiveDsl.g:1146:2: (this_PerspectiveSelection_0= rulePerspectiveSelection | this_PerspectiveTable_1= rulePerspectiveTable | this_PerspectiveChart_2= rulePerspectiveChart | this_PerspectiveBean_3= rulePerspectiveBean | this_PerspectiveReport_4= rulePerspectiveReport | this_PerspectiveOrganization_5= rulePerspectiveOrganization | this_PerspectiveTopology_6= rulePerspectiveTopology | this_PerspectiveDialog_7= rulePerspectiveDialog | this_PerspectiveBPMN_8= rulePerspectiveBPMN | this_PerspectiveGrid_9= rulePerspectiveGrid | this_PerspectiveWelcome_10= rulePerspectiveWelcome | this_PerspectiveSearch_11= rulePerspectiveSearch | this_PerspectiveDataInterchange_12= rulePerspectiveDataInterchange | this_PerspectiveKanban_13= rulePerspectiveKanban ) |
| int alt15=14; |
| switch ( input.LA(1) ) { |
| case 31: |
| { |
| alt15=1; |
| } |
| break; |
| case 32: |
| { |
| alt15=2; |
| } |
| break; |
| case 35: |
| { |
| alt15=3; |
| } |
| break; |
| case 34: |
| { |
| alt15=4; |
| } |
| break; |
| case 36: |
| { |
| alt15=5; |
| } |
| break; |
| case 37: |
| { |
| alt15=6; |
| } |
| break; |
| case 38: |
| { |
| alt15=7; |
| } |
| break; |
| case 39: |
| { |
| alt15=8; |
| } |
| break; |
| case 40: |
| { |
| alt15=9; |
| } |
| break; |
| case 33: |
| { |
| alt15=10; |
| } |
| break; |
| case 44: |
| { |
| alt15=11; |
| } |
| break; |
| case 45: |
| { |
| alt15=12; |
| } |
| break; |
| case 49: |
| { |
| alt15=13; |
| } |
| break; |
| case 41: |
| { |
| alt15=14; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 15, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt15) { |
| case 1 : |
| // InternalPerspectiveDsl.g:1147:3: this_PerspectiveSelection_0= rulePerspectiveSelection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveSelectionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveSelection_0=rulePerspectiveSelection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveSelection_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:1156:3: this_PerspectiveTable_1= rulePerspectiveTable |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveTableParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveTable_1=rulePerspectiveTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveTable_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:1165:3: this_PerspectiveChart_2= rulePerspectiveChart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveChartParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveChart_2=rulePerspectiveChart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveChart_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:1174:3: this_PerspectiveBean_3= rulePerspectiveBean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveBeanParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveBean_3=rulePerspectiveBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveBean_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalPerspectiveDsl.g:1183:3: this_PerspectiveReport_4= rulePerspectiveReport |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveReportParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveReport_4=rulePerspectiveReport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveReport_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalPerspectiveDsl.g:1192:3: this_PerspectiveOrganization_5= rulePerspectiveOrganization |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveOrganizationParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveOrganization_5=rulePerspectiveOrganization(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveOrganization_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalPerspectiveDsl.g:1201:3: this_PerspectiveTopology_6= rulePerspectiveTopology |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveTopologyParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveTopology_6=rulePerspectiveTopology(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveTopology_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalPerspectiveDsl.g:1210:3: this_PerspectiveDialog_7= rulePerspectiveDialog |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveDialogParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveDialog_7=rulePerspectiveDialog(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveDialog_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalPerspectiveDsl.g:1219:3: this_PerspectiveBPMN_8= rulePerspectiveBPMN |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveBPMNParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveBPMN_8=rulePerspectiveBPMN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveBPMN_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalPerspectiveDsl.g:1228:3: this_PerspectiveGrid_9= rulePerspectiveGrid |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveGridParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveGrid_9=rulePerspectiveGrid(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveGrid_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalPerspectiveDsl.g:1237:3: this_PerspectiveWelcome_10= rulePerspectiveWelcome |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveWelcomeParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveWelcome_10=rulePerspectiveWelcome(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveWelcome_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalPerspectiveDsl.g:1246:3: this_PerspectiveSearch_11= rulePerspectiveSearch |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveSearchParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveSearch_11=rulePerspectiveSearch(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveSearch_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalPerspectiveDsl.g:1255:3: this_PerspectiveDataInterchange_12= rulePerspectiveDataInterchange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveDataInterchangeParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveDataInterchange_12=rulePerspectiveDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveDataInterchange_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalPerspectiveDsl.g:1264:3: this_PerspectiveKanban_13= rulePerspectiveKanban |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPerspectiveViewAccess().getPerspectiveKanbanParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PerspectiveKanban_13=rulePerspectiveKanban(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PerspectiveKanban_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveView" |
| |
| |
| // $ANTLR start "entryRulePerspectiveSelection" |
| // InternalPerspectiveDsl.g:1276:1: entryRulePerspectiveSelection returns [EObject current=null] : iv_rulePerspectiveSelection= rulePerspectiveSelection EOF ; |
| public final EObject entryRulePerspectiveSelection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveSelection = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1276:61: (iv_rulePerspectiveSelection= rulePerspectiveSelection EOF ) |
| // InternalPerspectiveDsl.g:1277:2: iv_rulePerspectiveSelection= rulePerspectiveSelection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveSelectionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveSelection=rulePerspectiveSelection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveSelection; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveSelection" |
| |
| |
| // $ANTLR start "rulePerspectiveSelection" |
| // InternalPerspectiveDsl.g:1283:1: rulePerspectiveSelection returns [EObject current=null] : ( () otherlv_1= 'select' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveSelection() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1289:2: ( ( () otherlv_1= 'select' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1290:2: ( () otherlv_1= 'select' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1290:2: ( () otherlv_1= 'select' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1291:3: () otherlv_1= 'select' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1291:3: () |
| // InternalPerspectiveDsl.g:1292:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveSelectionAccess().getPerspectiveSelectionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveSelectionAccess().getSelectKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1302:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1303:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1303:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1304:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSelectionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveSelectionAccess().getRefTableCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveSelection" |
| |
| |
| // $ANTLR start "entryRulePerspectiveTable" |
| // InternalPerspectiveDsl.g:1319:1: entryRulePerspectiveTable returns [EObject current=null] : iv_rulePerspectiveTable= rulePerspectiveTable EOF ; |
| public final EObject entryRulePerspectiveTable() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveTable = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1319:57: (iv_rulePerspectiveTable= rulePerspectiveTable EOF ) |
| // InternalPerspectiveDsl.g:1320:2: iv_rulePerspectiveTable= rulePerspectiveTable EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveTableRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveTable=rulePerspectiveTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveTable; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveTable" |
| |
| |
| // $ANTLR start "rulePerspectiveTable" |
| // InternalPerspectiveDsl.g:1326:1: rulePerspectiveTable returns [EObject current=null] : ( () otherlv_1= 'table' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveTable() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1332:2: ( ( () otherlv_1= 'table' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1333:2: ( () otherlv_1= 'table' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1333:2: ( () otherlv_1= 'table' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1334:3: () otherlv_1= 'table' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1334:3: () |
| // InternalPerspectiveDsl.g:1335:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveTableAccess().getPerspectiveTableAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,32,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveTableAccess().getTableKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1345:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1346:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1346:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1347:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveTableRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveTableAccess().getRefTableCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveTable" |
| |
| |
| // $ANTLR start "entryRulePerspectiveGrid" |
| // InternalPerspectiveDsl.g:1362:1: entryRulePerspectiveGrid returns [EObject current=null] : iv_rulePerspectiveGrid= rulePerspectiveGrid EOF ; |
| public final EObject entryRulePerspectiveGrid() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveGrid = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1362:56: (iv_rulePerspectiveGrid= rulePerspectiveGrid EOF ) |
| // InternalPerspectiveDsl.g:1363:2: iv_rulePerspectiveGrid= rulePerspectiveGrid EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveGridRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveGrid=rulePerspectiveGrid(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveGrid; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveGrid" |
| |
| |
| // $ANTLR start "rulePerspectiveGrid" |
| // InternalPerspectiveDsl.g:1369:1: rulePerspectiveGrid returns [EObject current=null] : ( () otherlv_1= 'grid' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveGrid() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1375:2: ( ( () otherlv_1= 'grid' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1376:2: ( () otherlv_1= 'grid' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1376:2: ( () otherlv_1= 'grid' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1377:3: () otherlv_1= 'grid' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1377:3: () |
| // InternalPerspectiveDsl.g:1378:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveGridAccess().getPerspectiveGridAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,33,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveGridAccess().getGridKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1388:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1389:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1389:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1390:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveGridRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveGridAccess().getRefTableCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveGrid" |
| |
| |
| // $ANTLR start "entryRulePerspectiveBean" |
| // InternalPerspectiveDsl.g:1405:1: entryRulePerspectiveBean returns [EObject current=null] : iv_rulePerspectiveBean= rulePerspectiveBean EOF ; |
| public final EObject entryRulePerspectiveBean() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveBean = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1405:56: (iv_rulePerspectiveBean= rulePerspectiveBean EOF ) |
| // InternalPerspectiveDsl.g:1406:2: iv_rulePerspectiveBean= rulePerspectiveBean EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveBeanRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveBean=rulePerspectiveBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveBean; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveBean" |
| |
| |
| // $ANTLR start "rulePerspectiveBean" |
| // InternalPerspectiveDsl.g:1412:1: rulePerspectiveBean returns [EObject current=null] : ( () otherlv_1= 'bean' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveBean() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1418:2: ( ( () otherlv_1= 'bean' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1419:2: ( () otherlv_1= 'bean' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1419:2: ( () otherlv_1= 'bean' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1420:3: () otherlv_1= 'bean' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1420:3: () |
| // InternalPerspectiveDsl.g:1421:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveBeanAccess().getPerspectiveBeanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveBeanAccess().getBeanKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1431:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1432:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1432:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1433:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveBeanRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveBeanAccess().getRefTableCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveBean" |
| |
| |
| // $ANTLR start "entryRulePerspectiveChart" |
| // InternalPerspectiveDsl.g:1448:1: entryRulePerspectiveChart returns [EObject current=null] : iv_rulePerspectiveChart= rulePerspectiveChart EOF ; |
| public final EObject entryRulePerspectiveChart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveChart = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1448:57: (iv_rulePerspectiveChart= rulePerspectiveChart EOF ) |
| // InternalPerspectiveDsl.g:1449:2: iv_rulePerspectiveChart= rulePerspectiveChart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveChartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveChart=rulePerspectiveChart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveChart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveChart" |
| |
| |
| // $ANTLR start "rulePerspectiveChart" |
| // InternalPerspectiveDsl.g:1455:1: rulePerspectiveChart returns [EObject current=null] : ( () otherlv_1= 'chart' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveChart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1461:2: ( ( () otherlv_1= 'chart' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1462:2: ( () otherlv_1= 'chart' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1462:2: ( () otherlv_1= 'chart' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1463:3: () otherlv_1= 'chart' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1463:3: () |
| // InternalPerspectiveDsl.g:1464:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveChartAccess().getPerspectiveChartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,35,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveChartAccess().getChartKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1474:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1475:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1475:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1476:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveChartRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveChartAccess().getRefChartCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveChart" |
| |
| |
| // $ANTLR start "entryRulePerspectiveReport" |
| // InternalPerspectiveDsl.g:1491:1: entryRulePerspectiveReport returns [EObject current=null] : iv_rulePerspectiveReport= rulePerspectiveReport EOF ; |
| public final EObject entryRulePerspectiveReport() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveReport = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1491:58: (iv_rulePerspectiveReport= rulePerspectiveReport EOF ) |
| // InternalPerspectiveDsl.g:1492:2: iv_rulePerspectiveReport= rulePerspectiveReport EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveReportRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveReport=rulePerspectiveReport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveReport; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveReport" |
| |
| |
| // $ANTLR start "rulePerspectiveReport" |
| // InternalPerspectiveDsl.g:1498:1: rulePerspectiveReport returns [EObject current=null] : ( () otherlv_1= 'report' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveReport() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1504:2: ( ( () otherlv_1= 'report' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1505:2: ( () otherlv_1= 'report' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1505:2: ( () otherlv_1= 'report' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1506:3: () otherlv_1= 'report' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1506:3: () |
| // InternalPerspectiveDsl.g:1507:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveReportAccess().getPerspectiveReportAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,36,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveReportAccess().getReportKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1517:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1518:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1518:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1519:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveReportRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveReportAccess().getRefReportCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveReport" |
| |
| |
| // $ANTLR start "entryRulePerspectiveOrganization" |
| // InternalPerspectiveDsl.g:1534:1: entryRulePerspectiveOrganization returns [EObject current=null] : iv_rulePerspectiveOrganization= rulePerspectiveOrganization EOF ; |
| public final EObject entryRulePerspectiveOrganization() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveOrganization = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1534:64: (iv_rulePerspectiveOrganization= rulePerspectiveOrganization EOF ) |
| // InternalPerspectiveDsl.g:1535:2: iv_rulePerspectiveOrganization= rulePerspectiveOrganization EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveOrganizationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveOrganization=rulePerspectiveOrganization(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveOrganization; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveOrganization" |
| |
| |
| // $ANTLR start "rulePerspectiveOrganization" |
| // InternalPerspectiveDsl.g:1541:1: rulePerspectiveOrganization returns [EObject current=null] : ( () otherlv_1= 'organigram' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveOrganization() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1547:2: ( ( () otherlv_1= 'organigram' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1548:2: ( () otherlv_1= 'organigram' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1548:2: ( () otherlv_1= 'organigram' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1549:3: () otherlv_1= 'organigram' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1549:3: () |
| // InternalPerspectiveDsl.g:1550:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveOrganizationAccess().getPerspectiveOrganizationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,37,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveOrganizationAccess().getOrganigramKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1560:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1561:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1561:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1562:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveOrganizationRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveOrganizationAccess().getRefOrganizationCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveOrganization" |
| |
| |
| // $ANTLR start "entryRulePerspectiveTopology" |
| // InternalPerspectiveDsl.g:1577:1: entryRulePerspectiveTopology returns [EObject current=null] : iv_rulePerspectiveTopology= rulePerspectiveTopology EOF ; |
| public final EObject entryRulePerspectiveTopology() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveTopology = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1577:60: (iv_rulePerspectiveTopology= rulePerspectiveTopology EOF ) |
| // InternalPerspectiveDsl.g:1578:2: iv_rulePerspectiveTopology= rulePerspectiveTopology EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveTopologyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveTopology=rulePerspectiveTopology(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveTopology; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveTopology" |
| |
| |
| // $ANTLR start "rulePerspectiveTopology" |
| // InternalPerspectiveDsl.g:1584:1: rulePerspectiveTopology returns [EObject current=null] : ( () otherlv_1= 'topology' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveTopology() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1590:2: ( ( () otherlv_1= 'topology' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1591:2: ( () otherlv_1= 'topology' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1591:2: ( () otherlv_1= 'topology' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1592:3: () otherlv_1= 'topology' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1592:3: () |
| // InternalPerspectiveDsl.g:1593:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveTopologyAccess().getPerspectiveTopologyAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,38,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveTopologyAccess().getTopologyKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1603:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1604:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1604:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1605:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveTopologyRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveTopologyAccess().getRefTopologyCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveTopology" |
| |
| |
| // $ANTLR start "entryRulePerspectiveDialog" |
| // InternalPerspectiveDsl.g:1620:1: entryRulePerspectiveDialog returns [EObject current=null] : iv_rulePerspectiveDialog= rulePerspectiveDialog EOF ; |
| public final EObject entryRulePerspectiveDialog() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveDialog = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1620:58: (iv_rulePerspectiveDialog= rulePerspectiveDialog EOF ) |
| // InternalPerspectiveDsl.g:1621:2: iv_rulePerspectiveDialog= rulePerspectiveDialog EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveDialogRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveDialog=rulePerspectiveDialog(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveDialog; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveDialog" |
| |
| |
| // $ANTLR start "rulePerspectiveDialog" |
| // InternalPerspectiveDsl.g:1627:1: rulePerspectiveDialog returns [EObject current=null] : ( () otherlv_1= 'dialog' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveDialog() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1633:2: ( ( () otherlv_1= 'dialog' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1634:2: ( () otherlv_1= 'dialog' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1634:2: ( () otherlv_1= 'dialog' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1635:3: () otherlv_1= 'dialog' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1635:3: () |
| // InternalPerspectiveDsl.g:1636:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveDialogAccess().getPerspectiveDialogAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,39,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveDialogAccess().getDialogKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1646:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1647:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1647:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1648:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveDialogRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveDialogAccess().getRefDialogCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveDialog" |
| |
| |
| // $ANTLR start "entryRulePerspectiveBPMN" |
| // InternalPerspectiveDsl.g:1663:1: entryRulePerspectiveBPMN returns [EObject current=null] : iv_rulePerspectiveBPMN= rulePerspectiveBPMN EOF ; |
| public final EObject entryRulePerspectiveBPMN() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveBPMN = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1663:56: (iv_rulePerspectiveBPMN= rulePerspectiveBPMN EOF ) |
| // InternalPerspectiveDsl.g:1664:2: iv_rulePerspectiveBPMN= rulePerspectiveBPMN EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveBPMNRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveBPMN=rulePerspectiveBPMN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveBPMN; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveBPMN" |
| |
| |
| // $ANTLR start "rulePerspectiveBPMN" |
| // InternalPerspectiveDsl.g:1670:1: rulePerspectiveBPMN returns [EObject current=null] : ( () otherlv_1= 'bpmn' ) ; |
| public final EObject rulePerspectiveBPMN() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1676:2: ( ( () otherlv_1= 'bpmn' ) ) |
| // InternalPerspectiveDsl.g:1677:2: ( () otherlv_1= 'bpmn' ) |
| { |
| // InternalPerspectiveDsl.g:1677:2: ( () otherlv_1= 'bpmn' ) |
| // InternalPerspectiveDsl.g:1678:3: () otherlv_1= 'bpmn' |
| { |
| // InternalPerspectiveDsl.g:1678:3: () |
| // InternalPerspectiveDsl.g:1679:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveBPMNAccess().getPerspectiveBPMNAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveBPMNAccess().getBpmnKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveBPMN" |
| |
| |
| // $ANTLR start "entryRulePerspectiveKanban" |
| // InternalPerspectiveDsl.g:1693:1: entryRulePerspectiveKanban returns [EObject current=null] : iv_rulePerspectiveKanban= rulePerspectiveKanban EOF ; |
| public final EObject entryRulePerspectiveKanban() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveKanban = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1693:58: (iv_rulePerspectiveKanban= rulePerspectiveKanban EOF ) |
| // InternalPerspectiveDsl.g:1694:2: iv_rulePerspectiveKanban= rulePerspectiveKanban EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveKanbanRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveKanban=rulePerspectiveKanban(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveKanban; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveKanban" |
| |
| |
| // $ANTLR start "rulePerspectiveKanban" |
| // InternalPerspectiveDsl.g:1700:1: rulePerspectiveKanban returns [EObject current=null] : ( () otherlv_1= 'kanban' otherlv_2= 'of' ( (otherlv_3= RULE_ID ) ) otherlv_4= 'card' ( (otherlv_5= RULE_ID ) ) otherlv_6= 'dialog' ( (otherlv_7= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveKanban() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1706:2: ( ( () otherlv_1= 'kanban' otherlv_2= 'of' ( (otherlv_3= RULE_ID ) ) otherlv_4= 'card' ( (otherlv_5= RULE_ID ) ) otherlv_6= 'dialog' ( (otherlv_7= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1707:2: ( () otherlv_1= 'kanban' otherlv_2= 'of' ( (otherlv_3= RULE_ID ) ) otherlv_4= 'card' ( (otherlv_5= RULE_ID ) ) otherlv_6= 'dialog' ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1707:2: ( () otherlv_1= 'kanban' otherlv_2= 'of' ( (otherlv_3= RULE_ID ) ) otherlv_4= 'card' ( (otherlv_5= RULE_ID ) ) otherlv_6= 'dialog' ( (otherlv_7= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1708:3: () otherlv_1= 'kanban' otherlv_2= 'of' ( (otherlv_3= RULE_ID ) ) otherlv_4= 'card' ( (otherlv_5= RULE_ID ) ) otherlv_6= 'dialog' ( (otherlv_7= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1708:3: () |
| // InternalPerspectiveDsl.g:1709:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveKanbanAccess().getPerspectiveKanbanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,41,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveKanbanAccess().getKanbanKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,42,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveKanbanAccess().getOfKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:1723:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1724:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1724:4: (otherlv_3= RULE_ID ) |
| // InternalPerspectiveDsl.g:1725:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveKanbanRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPerspectiveKanbanAccess().getDtoRefLDtoCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,43,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPerspectiveKanbanAccess().getCardKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:1740:3: ( (otherlv_5= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1741:4: (otherlv_5= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1741:4: (otherlv_5= RULE_ID ) |
| // InternalPerspectiveDsl.g:1742:5: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveKanbanRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPerspectiveKanbanAccess().getCardRefDialogCrossReference_5_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,39,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPerspectiveKanbanAccess().getDialogKeyword_6()); |
| |
| } |
| // InternalPerspectiveDsl.g:1757:3: ( (otherlv_7= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1758:4: (otherlv_7= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1758:4: (otherlv_7= RULE_ID ) |
| // InternalPerspectiveDsl.g:1759:5: otherlv_7= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveKanbanRule()); |
| } |
| |
| } |
| otherlv_7=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPerspectiveKanbanAccess().getDialogRefDialogCrossReference_7_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveKanban" |
| |
| |
| // $ANTLR start "entryRulePerspectiveWelcome" |
| // InternalPerspectiveDsl.g:1774:1: entryRulePerspectiveWelcome returns [EObject current=null] : iv_rulePerspectiveWelcome= rulePerspectiveWelcome EOF ; |
| public final EObject entryRulePerspectiveWelcome() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveWelcome = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1774:59: (iv_rulePerspectiveWelcome= rulePerspectiveWelcome EOF ) |
| // InternalPerspectiveDsl.g:1775:2: iv_rulePerspectiveWelcome= rulePerspectiveWelcome EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveWelcomeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveWelcome=rulePerspectiveWelcome(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveWelcome; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveWelcome" |
| |
| |
| // $ANTLR start "rulePerspectiveWelcome" |
| // InternalPerspectiveDsl.g:1781:1: rulePerspectiveWelcome returns [EObject current=null] : ( () otherlv_1= 'welcome' ) ; |
| public final EObject rulePerspectiveWelcome() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1787:2: ( ( () otherlv_1= 'welcome' ) ) |
| // InternalPerspectiveDsl.g:1788:2: ( () otherlv_1= 'welcome' ) |
| { |
| // InternalPerspectiveDsl.g:1788:2: ( () otherlv_1= 'welcome' ) |
| // InternalPerspectiveDsl.g:1789:3: () otherlv_1= 'welcome' |
| { |
| // InternalPerspectiveDsl.g:1789:3: () |
| // InternalPerspectiveDsl.g:1790:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveWelcomeAccess().getPerspectiveWelcomeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveWelcomeAccess().getWelcomeKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveWelcome" |
| |
| |
| // $ANTLR start "entryRulePerspectiveSearch" |
| // InternalPerspectiveDsl.g:1804:1: entryRulePerspectiveSearch returns [EObject current=null] : iv_rulePerspectiveSearch= rulePerspectiveSearch EOF ; |
| public final EObject entryRulePerspectiveSearch() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveSearch = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1804:58: (iv_rulePerspectiveSearch= rulePerspectiveSearch EOF ) |
| // InternalPerspectiveDsl.g:1805:2: iv_rulePerspectiveSearch= rulePerspectiveSearch EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveSearchRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveSearch=rulePerspectiveSearch(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveSearch; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveSearch" |
| |
| |
| // $ANTLR start "rulePerspectiveSearch" |
| // InternalPerspectiveDsl.g:1811:1: rulePerspectiveSearch returns [EObject current=null] : ( () otherlv_1= 'search' otherlv_2= 'in' ( (otherlv_3= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject rulePerspectiveSearch() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token lv_depth_6_0=null; |
| Token otherlv_7=null; |
| Token lv_filterCols_8_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1817:2: ( ( () otherlv_1= 'search' otherlv_2= 'in' ( (otherlv_3= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1818:2: ( () otherlv_1= 'search' otherlv_2= 'in' ( (otherlv_3= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1818:2: ( () otherlv_1= 'search' otherlv_2= 'in' ( (otherlv_3= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) ) |
| // InternalPerspectiveDsl.g:1819:3: () otherlv_1= 'search' otherlv_2= 'in' ( (otherlv_3= RULE_ID ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1819:3: () |
| // InternalPerspectiveDsl.g:1820:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveSearchAccess().getPerspectiveSearchAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,45,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveSearchAccess().getSearchKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,46,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveSearchAccess().getInKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:1834:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1835:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1835:4: (otherlv_3= RULE_ID ) |
| // InternalPerspectiveDsl.g:1836:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSearchRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPerspectiveSearchAccess().getDtoRefLDtoCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:1847:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) ) |
| // InternalPerspectiveDsl.g:1848:4: ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) |
| { |
| // InternalPerspectiveDsl.g:1848:4: ( ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:1849:5: ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4()); |
| // InternalPerspectiveDsl.g:1852:5: ( ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* ) |
| // InternalPerspectiveDsl.g:1853:6: ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* |
| { |
| // InternalPerspectiveDsl.g:1853:6: ( ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) )* |
| loop16: |
| do { |
| int alt16=3; |
| int LA16_0 = input.LA(1); |
| |
| if ( LA16_0 == 47 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 0) ) { |
| alt16=1; |
| } |
| else if ( LA16_0 == 48 && getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 1) ) { |
| alt16=2; |
| } |
| |
| |
| switch (alt16) { |
| case 1 : |
| // InternalPerspectiveDsl.g:1854:4: ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1854:4: ({...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1855:5: {...}? => ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSearch", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 0)"); |
| } |
| // InternalPerspectiveDsl.g:1855:114: ( ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1856:6: ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 0); |
| // InternalPerspectiveDsl.g:1859:9: ({...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) ) |
| // InternalPerspectiveDsl.g:1859:10: {...}? => (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSearch", "true"); |
| } |
| // InternalPerspectiveDsl.g:1859:19: (otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) ) |
| // InternalPerspectiveDsl.g:1859:20: otherlv_5= 'depth' ( (lv_depth_6_0= RULE_INT ) ) |
| { |
| otherlv_5=(Token)match(input,47,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPerspectiveSearchAccess().getDepthKeyword_4_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:1863:9: ( (lv_depth_6_0= RULE_INT ) ) |
| // InternalPerspectiveDsl.g:1864:10: (lv_depth_6_0= RULE_INT ) |
| { |
| // InternalPerspectiveDsl.g:1864:10: (lv_depth_6_0= RULE_INT ) |
| // InternalPerspectiveDsl.g:1865:11: lv_depth_6_0= RULE_INT |
| { |
| lv_depth_6_0=(Token)match(input,RULE_INT,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_depth_6_0, grammarAccess.getPerspectiveSearchAccess().getDepthINTTerminalRuleCall_4_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSearchRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "depth", |
| lv_depth_6_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:1887:4: ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1887:4: ({...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1888:5: {...}? => ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSearch", "getUnorderedGroupHelper().canSelect(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 1)"); |
| } |
| // InternalPerspectiveDsl.g:1888:114: ( ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) ) |
| // InternalPerspectiveDsl.g:1889:6: ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4(), 1); |
| // InternalPerspectiveDsl.g:1892:9: ({...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) ) |
| // InternalPerspectiveDsl.g:1892:10: {...}? => (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "rulePerspectiveSearch", "true"); |
| } |
| // InternalPerspectiveDsl.g:1892:19: (otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) ) |
| // InternalPerspectiveDsl.g:1892:20: otherlv_7= 'filterColumns' ( (lv_filterCols_8_0= RULE_INT ) ) |
| { |
| otherlv_7=(Token)match(input,48,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPerspectiveSearchAccess().getFilterColumnsKeyword_4_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:1896:9: ( (lv_filterCols_8_0= RULE_INT ) ) |
| // InternalPerspectiveDsl.g:1897:10: (lv_filterCols_8_0= RULE_INT ) |
| { |
| // InternalPerspectiveDsl.g:1897:10: (lv_filterCols_8_0= RULE_INT ) |
| // InternalPerspectiveDsl.g:1898:11: lv_filterCols_8_0= RULE_INT |
| { |
| lv_filterCols_8_0=(Token)match(input,RULE_INT,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filterCols_8_0, grammarAccess.getPerspectiveSearchAccess().getFilterColsINTTerminalRuleCall_4_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveSearchRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "filterCols", |
| lv_filterCols_8_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop16; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getPerspectiveSearchAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveSearch" |
| |
| |
| // $ANTLR start "entryRulePerspectiveDataInterchange" |
| // InternalPerspectiveDsl.g:1931:1: entryRulePerspectiveDataInterchange returns [EObject current=null] : iv_rulePerspectiveDataInterchange= rulePerspectiveDataInterchange EOF ; |
| public final EObject entryRulePerspectiveDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePerspectiveDataInterchange = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1931:67: (iv_rulePerspectiveDataInterchange= rulePerspectiveDataInterchange EOF ) |
| // InternalPerspectiveDsl.g:1932:2: iv_rulePerspectiveDataInterchange= rulePerspectiveDataInterchange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPerspectiveDataInterchangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePerspectiveDataInterchange=rulePerspectiveDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePerspectiveDataInterchange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePerspectiveDataInterchange" |
| |
| |
| // $ANTLR start "rulePerspectiveDataInterchange" |
| // InternalPerspectiveDsl.g:1938:1: rulePerspectiveDataInterchange returns [EObject current=null] : ( () otherlv_1= 'dataInterchange' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject rulePerspectiveDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1944:2: ( ( () otherlv_1= 'dataInterchange' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalPerspectiveDsl.g:1945:2: ( () otherlv_1= 'dataInterchange' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:1945:2: ( () otherlv_1= 'dataInterchange' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalPerspectiveDsl.g:1946:3: () otherlv_1= 'dataInterchange' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalPerspectiveDsl.g:1946:3: () |
| // InternalPerspectiveDsl.g:1947:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPerspectiveDataInterchangeAccess().getPerspectiveDataInterchangeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPerspectiveDataInterchangeAccess().getDataInterchangeKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:1957:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalPerspectiveDsl.g:1958:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalPerspectiveDsl.g:1958:4: (otherlv_2= RULE_ID ) |
| // InternalPerspectiveDsl.g:1959:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPerspectiveDataInterchangeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPerspectiveDataInterchangeAccess().getRefDataInterchangePackageCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePerspectiveDataInterchange" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLEID" |
| // InternalPerspectiveDsl.g:1974:1: entryRuleTRANSLATABLEID returns [String current=null] : iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ; |
| public final String entryRuleTRANSLATABLEID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLEID = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1974:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ) |
| // InternalPerspectiveDsl.g:1975:2: iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTRANSLATABLEIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTRANSLATABLEID=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTRANSLATABLEID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTRANSLATABLEID" |
| |
| |
| // $ANTLR start "ruleTRANSLATABLEID" |
| // InternalPerspectiveDsl.g:1981:1: ruleTRANSLATABLEID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleTRANSLATABLEID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:1987:2: (this_ID_0= RULE_ID ) |
| // InternalPerspectiveDsl.g:1988: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.getTRANSLATABLEIDAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTRANSLATABLEID" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLESTRING" |
| // InternalPerspectiveDsl.g:1998:1: entryRuleTRANSLATABLESTRING returns [String current=null] : iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ; |
| public final String entryRuleTRANSLATABLESTRING() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLESTRING = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:1998:58: (iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ) |
| // InternalPerspectiveDsl.g:1999:2: iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTRANSLATABLESTRINGRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTRANSLATABLESTRING=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTRANSLATABLESTRING.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "ruleTRANSLATABLESTRING" |
| // InternalPerspectiveDsl.g:2005:1: ruleTRANSLATABLESTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; |
| public final AntlrDatatypeRuleToken ruleTRANSLATABLESTRING() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:2011:2: (this_STRING_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:2012:2: this_STRING_0= RULE_STRING |
| { |
| this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_STRING_0, grammarAccess.getTRANSLATABLESTRINGAccess().getSTRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "entryRuleXImportDeclaration" |
| // InternalPerspectiveDsl.g:2022:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2022:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalPerspectiveDsl.g:2023: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" |
| // InternalPerspectiveDsl.g:2029: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 { |
| // InternalPerspectiveDsl.g:2035: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= ';' )? ) ) |
| // InternalPerspectiveDsl.g:2036: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= ';' )? ) |
| { |
| // InternalPerspectiveDsl.g:2036: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= ';' )? ) |
| // InternalPerspectiveDsl.g:2037: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= ';' )? |
| { |
| // InternalPerspectiveDsl.g:2037:3: () |
| // InternalPerspectiveDsl.g:2038:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:2048: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 alt19=4; |
| alt19 = dfa19.predict(input); |
| switch (alt19) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2049:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2049:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalPerspectiveDsl.g:2050:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2050:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalPerspectiveDsl.g:2051:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalPerspectiveDsl.g:2051:6: (lv_static_2_0= 'static' ) |
| // InternalPerspectiveDsl.g:2052:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,51,FOLLOW_25); 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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2064:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==52) ) { |
| alt17=1; |
| } |
| switch (alt17) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2065:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalPerspectiveDsl.g:2065:6: (lv_extension_3_0= 'extension' ) |
| // InternalPerspectiveDsl.g:2066:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,52,FOLLOW_25); 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2078:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalPerspectiveDsl.g:2079:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalPerspectiveDsl.g:2079:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalPerspectiveDsl.g:2080: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_26); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2094:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==53) ) { |
| alt18=1; |
| } |
| else if ( (LA18_0==RULE_ID) ) { |
| alt18=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 18, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2095:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalPerspectiveDsl.g:2095:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalPerspectiveDsl.g:2096:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalPerspectiveDsl.g:2096:7: (lv_wildcard_5_0= '*' ) |
| // InternalPerspectiveDsl.g:2097:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,53,FOLLOW_27); 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 : |
| // InternalPerspectiveDsl.g:2110:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:2110:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalPerspectiveDsl.g:2111:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:2111:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalPerspectiveDsl.g:2112:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| 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 : |
| // InternalPerspectiveDsl.g:2132:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalPerspectiveDsl.g:2132:4: ( ( ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:2133:5: ( ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:2133:5: ( ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:2134: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_27); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:2149:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalPerspectiveDsl.g:2149:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalPerspectiveDsl.g:2150:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalPerspectiveDsl.g:2150:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalPerspectiveDsl.g:2151:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| 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 : |
| // InternalPerspectiveDsl.g:2169:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2169:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalPerspectiveDsl.g:2170:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalPerspectiveDsl.g:2170:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalPerspectiveDsl.g:2171:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalPerspectiveDsl.g:2171:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalPerspectiveDsl.g:2172:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,54,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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2184:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:2185:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:2185:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:2186:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2205:3: (otherlv_11= ';' )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==55) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2206:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,55,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" |
| // InternalPerspectiveDsl.g:2215:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2215:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalPerspectiveDsl.g:2216: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" |
| // InternalPerspectiveDsl.g:2222: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 { |
| // InternalPerspectiveDsl.g:2228: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= ')' )? ) ) |
| // InternalPerspectiveDsl.g:2229: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= ')' )? ) |
| { |
| // InternalPerspectiveDsl.g:2229: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= ')' )? ) |
| // InternalPerspectiveDsl.g:2230: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= ')' )? |
| { |
| // InternalPerspectiveDsl.g:2230:3: () |
| // InternalPerspectiveDsl.g:2231:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,56,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:2241:3: ( ( ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:2242:4: ( ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:2242:4: ( ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:2243: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_28); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2257: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 alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==57) && (synpred1_InternalPerspectiveDsl())) { |
| alt23=1; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2258:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalPerspectiveDsl.g:2258:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalPerspectiveDsl.g:2259:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,57,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2265:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt22=3; |
| alt22 = dfa22.predict(input); |
| switch (alt22) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2266:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:2266:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalPerspectiveDsl.g:2267:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalPerspectiveDsl.g:2267:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalPerspectiveDsl.g:2268:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalPerspectiveDsl.g:2277:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalPerspectiveDsl.g:2278:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2295:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop21: |
| do { |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==58) ) { |
| alt21=1; |
| } |
| |
| |
| switch (alt21) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2296:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,58,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:2300:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalPerspectiveDsl.g:2301:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalPerspectiveDsl.g:2310:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalPerspectiveDsl.g:2311:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop21; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:2331:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalPerspectiveDsl.g:2331:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalPerspectiveDsl.g:2332:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalPerspectiveDsl.g:2332:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalPerspectiveDsl.g:2333:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,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" |
| // InternalPerspectiveDsl.g:2360:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2360:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalPerspectiveDsl.g:2361: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" |
| // InternalPerspectiveDsl.g:2367: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 { |
| // InternalPerspectiveDsl.g:2373:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalPerspectiveDsl.g:2374:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2374:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalPerspectiveDsl.g:2375:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalPerspectiveDsl.g:2375:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalPerspectiveDsl.g:2376:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalPerspectiveDsl.g:2385:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalPerspectiveDsl.g:2386:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalPerspectiveDsl.g:2386:5: ( ( ruleValidID ) ) |
| // InternalPerspectiveDsl.g:2387:6: ( ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:2387:6: ( ruleValidID ) |
| // InternalPerspectiveDsl.g:2388: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_32); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,60,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2408:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalPerspectiveDsl.g:2409:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalPerspectiveDsl.g:2409:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalPerspectiveDsl.g:2410: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" |
| // InternalPerspectiveDsl.g:2431:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2431:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalPerspectiveDsl.g:2432: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" |
| // InternalPerspectiveDsl.g:2438: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 { |
| // InternalPerspectiveDsl.g:2444: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 ) ) )+ )? ) ) ) |
| // InternalPerspectiveDsl.g:2445: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 ) ) )+ )? ) ) |
| { |
| // InternalPerspectiveDsl.g:2445: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 alt28=2; |
| alt28 = dfa28.predict(input); |
| switch (alt28) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2446:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalPerspectiveDsl.g:2446:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalPerspectiveDsl.g:2447:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalPerspectiveDsl.g:2447:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalPerspectiveDsl.g:2448:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalPerspectiveDsl.g:2455:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalPerspectiveDsl.g:2456:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalPerspectiveDsl.g:2456:6: () |
| // InternalPerspectiveDsl.g:2457:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,62,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2473:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( ((LA25_0>=RULE_ID && LA25_0<=RULE_DECIMAL)||LA25_0==14||(LA25_0>=50 && LA25_0<=52)||(LA25_0>=56 && LA25_0<=57)||(LA25_0>=61 && LA25_0<=62)||LA25_0==69||(LA25_0>=85 && LA25_0<=86)||LA25_0==90||LA25_0==98||LA25_0==100||(LA25_0>=104 && LA25_0<=106)||(LA25_0>=109 && LA25_0<=118)||LA25_0==120) ) { |
| alt25=1; |
| } |
| switch (alt25) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2474:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:2474:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2475:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2475:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalPerspectiveDsl.g:2476:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2493:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop24: |
| do { |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==58) ) { |
| alt24=1; |
| } |
| |
| |
| switch (alt24) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2494:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:2498:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2499:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2499:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalPerspectiveDsl.g:2500:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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 loop24; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,63,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:2525:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalPerspectiveDsl.g:2525:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalPerspectiveDsl.g:2526:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:2534:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==58) ) { |
| alt27=1; |
| } |
| switch (alt27) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2535:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalPerspectiveDsl.g:2535:5: () |
| // InternalPerspectiveDsl.g:2536:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2542:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt26=0; |
| loop26: |
| do { |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==58) ) { |
| alt26=1; |
| } |
| |
| |
| switch (alt26) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2543:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:2547:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2548:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2548:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalPerspectiveDsl.g:2549:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| 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 ( cnt26 >= 1 ) break loop26; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(26, input); |
| throw eee; |
| } |
| cnt26++; |
| } 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" |
| // InternalPerspectiveDsl.g:2573:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2573:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalPerspectiveDsl.g:2574: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" |
| // InternalPerspectiveDsl.g:2580: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 { |
| // InternalPerspectiveDsl.g:2586:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2587:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2587:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt31=2; |
| alt31 = dfa31.predict(input); |
| switch (alt31) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2588:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalPerspectiveDsl.g:2588:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalPerspectiveDsl.g:2589:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalPerspectiveDsl.g:2589:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalPerspectiveDsl.g:2590:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalPerspectiveDsl.g:2597:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalPerspectiveDsl.g:2598:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalPerspectiveDsl.g:2598:6: () |
| // InternalPerspectiveDsl.g:2599:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,62,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2615:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( ((LA30_0>=RULE_ID && LA30_0<=RULE_DECIMAL)||LA30_0==14||(LA30_0>=50 && LA30_0<=52)||(LA30_0>=56 && LA30_0<=57)||(LA30_0>=61 && LA30_0<=62)||LA30_0==69||(LA30_0>=85 && LA30_0<=86)||LA30_0==90||LA30_0==98||LA30_0==100||(LA30_0>=104 && LA30_0<=106)||(LA30_0>=109 && LA30_0<=118)||LA30_0==120) ) { |
| alt30=1; |
| } |
| switch (alt30) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2616:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:2616:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2617:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2617:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalPerspectiveDsl.g:2618:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2635:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop29: |
| do { |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==58) ) { |
| alt29=1; |
| } |
| |
| |
| switch (alt29) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2636:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:2640:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalPerspectiveDsl.g:2641:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalPerspectiveDsl.g:2641:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalPerspectiveDsl.g:2642:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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 loop29; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,63,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:2667: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" |
| // InternalPerspectiveDsl.g:2679:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2679:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalPerspectiveDsl.g:2680: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" |
| // InternalPerspectiveDsl.g:2686: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 { |
| // InternalPerspectiveDsl.g:2692:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:2693:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:2693:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==56) ) { |
| alt32=1; |
| } |
| else if ( ((LA32_0>=RULE_ID && LA32_0<=RULE_DECIMAL)||LA32_0==14||(LA32_0>=50 && LA32_0<=52)||LA32_0==57||(LA32_0>=61 && LA32_0<=62)||LA32_0==69||(LA32_0>=85 && LA32_0<=86)||LA32_0==90||LA32_0==98||LA32_0==100||(LA32_0>=104 && LA32_0<=106)||(LA32_0>=109 && LA32_0<=118)||LA32_0==120) ) { |
| alt32=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 32, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2694: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 : |
| // InternalPerspectiveDsl.g:2703: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" |
| // InternalPerspectiveDsl.g:2715:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2715:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalPerspectiveDsl.g:2716: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" |
| // InternalPerspectiveDsl.g:2722: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 { |
| // InternalPerspectiveDsl.g:2728:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalPerspectiveDsl.g:2729: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" |
| // InternalPerspectiveDsl.g:2740:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2740:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalPerspectiveDsl.g:2741: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" |
| // InternalPerspectiveDsl.g:2747: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 { |
| // InternalPerspectiveDsl.g:2753:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalPerspectiveDsl.g:2754:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalPerspectiveDsl.g:2754:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt34=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA34_1 = input.LA(2); |
| |
| if ( (LA34_1==60) ) { |
| alt34=1; |
| } |
| else if ( (LA34_1==EOF||(LA34_1>=RULE_ID && LA34_1<=RULE_DECIMAL)||(LA34_1>=14 && LA34_1<=15)||(LA34_1>=50 && LA34_1<=53)||LA34_1==55||(LA34_1>=57 && LA34_1<=59)||(LA34_1>=61 && LA34_1<=96)||(LA34_1>=98 && LA34_1<=121)) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 109: |
| { |
| int LA34_2 = input.LA(2); |
| |
| if ( (LA34_2==60) ) { |
| alt34=1; |
| } |
| else if ( (LA34_2==EOF||(LA34_2>=RULE_ID && LA34_2<=RULE_DECIMAL)||(LA34_2>=14 && LA34_2<=15)||(LA34_2>=50 && LA34_2<=53)||LA34_2==55||(LA34_2>=57 && LA34_2<=59)||(LA34_2>=61 && LA34_2<=96)||(LA34_2>=98 && LA34_2<=121)) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 51: |
| { |
| int LA34_3 = input.LA(2); |
| |
| if ( (LA34_3==60) ) { |
| alt34=1; |
| } |
| else if ( (LA34_3==EOF||(LA34_3>=RULE_ID && LA34_3<=RULE_DECIMAL)||(LA34_3>=14 && LA34_3<=15)||(LA34_3>=50 && LA34_3<=53)||LA34_3==55||(LA34_3>=57 && LA34_3<=59)||(LA34_3>=61 && LA34_3<=96)||(LA34_3>=98 && LA34_3<=121)) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 50: |
| { |
| int LA34_4 = input.LA(2); |
| |
| if ( (LA34_4==60) ) { |
| alt34=1; |
| } |
| else if ( (LA34_4==EOF||(LA34_4>=RULE_ID && LA34_4<=RULE_DECIMAL)||(LA34_4>=14 && LA34_4<=15)||(LA34_4>=50 && LA34_4<=53)||LA34_4==55||(LA34_4>=57 && LA34_4<=59)||(LA34_4>=61 && LA34_4<=96)||(LA34_4>=98 && LA34_4<=121)) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 52: |
| { |
| int LA34_5 = input.LA(2); |
| |
| if ( (LA34_5==60) ) { |
| alt34=1; |
| } |
| else if ( (LA34_5==EOF||(LA34_5>=RULE_ID && LA34_5<=RULE_DECIMAL)||(LA34_5>=14 && LA34_5<=15)||(LA34_5>=50 && LA34_5<=53)||LA34_5==55||(LA34_5>=57 && LA34_5<=59)||(LA34_5>=61 && LA34_5<=96)||(LA34_5>=98 && LA34_5<=121)) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 57: |
| case 61: |
| case 62: |
| case 69: |
| case 85: |
| case 86: |
| case 90: |
| case 98: |
| case 100: |
| case 104: |
| case 105: |
| case 106: |
| case 110: |
| case 111: |
| case 112: |
| case 113: |
| case 114: |
| case 115: |
| case 116: |
| case 117: |
| case 118: |
| case 120: |
| { |
| alt34=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt34) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2755:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2755:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalPerspectiveDsl.g:2756:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalPerspectiveDsl.g:2756:4: () |
| // InternalPerspectiveDsl.g:2757:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2763:4: ( ( ruleFeatureCallID ) ) |
| // InternalPerspectiveDsl.g:2764:5: ( ruleFeatureCallID ) |
| { |
| // InternalPerspectiveDsl.g:2764:5: ( ruleFeatureCallID ) |
| // InternalPerspectiveDsl.g:2765: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_32); |
| 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_33); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:2786:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalPerspectiveDsl.g:2787:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalPerspectiveDsl.g:2787:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalPerspectiveDsl.g:2788: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 : |
| // InternalPerspectiveDsl.g:2807:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalPerspectiveDsl.g:2807:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalPerspectiveDsl.g:2808:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:2816:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt33=2; |
| alt33 = dfa33.predict(input); |
| switch (alt33) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2817:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalPerspectiveDsl.g:2817:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalPerspectiveDsl.g:2818:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2828:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalPerspectiveDsl.g:2829:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalPerspectiveDsl.g:2829:7: () |
| // InternalPerspectiveDsl.g:2830:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2836:7: ( ( ruleOpMultiAssign ) ) |
| // InternalPerspectiveDsl.g:2837:8: ( ruleOpMultiAssign ) |
| { |
| // InternalPerspectiveDsl.g:2837:8: ( ruleOpMultiAssign ) |
| // InternalPerspectiveDsl.g:2838: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_33); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:2854:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalPerspectiveDsl.g:2855:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalPerspectiveDsl.g:2855:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalPerspectiveDsl.g:2856: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" |
| // InternalPerspectiveDsl.g:2879:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2879:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalPerspectiveDsl.g:2880: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" |
| // InternalPerspectiveDsl.g:2886:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:2892:2: (kw= '=' ) |
| // InternalPerspectiveDsl.g:2893:2: kw= '=' |
| { |
| kw=(Token)match(input,60,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" |
| // InternalPerspectiveDsl.g:2901:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2901:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalPerspectiveDsl.g:2902: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" |
| // InternalPerspectiveDsl.g:2908: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 { |
| // InternalPerspectiveDsl.g:2914:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalPerspectiveDsl.g:2915:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalPerspectiveDsl.g:2915:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt36=7; |
| switch ( input.LA(1) ) { |
| case 64: |
| { |
| alt36=1; |
| } |
| break; |
| case 65: |
| { |
| alt36=2; |
| } |
| break; |
| case 66: |
| { |
| alt36=3; |
| } |
| break; |
| case 67: |
| { |
| alt36=4; |
| } |
| break; |
| case 68: |
| { |
| alt36=5; |
| } |
| break; |
| case 69: |
| { |
| alt36=6; |
| } |
| break; |
| case 70: |
| { |
| alt36=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt36) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2916:3: kw= '+=' |
| { |
| kw=(Token)match(input,64,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:2922:3: kw= '-=' |
| { |
| kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:2928:3: kw= '*=' |
| { |
| kw=(Token)match(input,66,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:2934:3: kw= '/=' |
| { |
| kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalPerspectiveDsl.g:2940:3: kw= '%=' |
| { |
| kw=(Token)match(input,68,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalPerspectiveDsl.g:2946:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalPerspectiveDsl.g:2946:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalPerspectiveDsl.g:2947:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,69,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,69,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalPerspectiveDsl.g:2964:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalPerspectiveDsl.g:2964:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalPerspectiveDsl.g:2965:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,70,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:2970:4: (kw= '>' )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==70) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalPerspectiveDsl.g:2971:5: kw= '>' |
| { |
| kw=(Token)match(input,70,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,71,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" |
| // InternalPerspectiveDsl.g:2987:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:2987:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalPerspectiveDsl.g:2988: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" |
| // InternalPerspectiveDsl.g:2994: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 { |
| // InternalPerspectiveDsl.g:3000:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3001:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3001:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:3002:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3010:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop37: |
| do { |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==72) ) { |
| int LA37_2 = input.LA(2); |
| |
| if ( (synpred8_InternalPerspectiveDsl()) ) { |
| alt37=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt37) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3011:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3011:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalPerspectiveDsl.g:3012:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3022:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalPerspectiveDsl.g:3023:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalPerspectiveDsl.g:3023:6: () |
| // InternalPerspectiveDsl.g:3024:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3030:6: ( ( ruleOpOr ) ) |
| // InternalPerspectiveDsl.g:3031:7: ( ruleOpOr ) |
| { |
| // InternalPerspectiveDsl.g:3031:7: ( ruleOpOr ) |
| // InternalPerspectiveDsl.g:3032: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_33); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3048:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalPerspectiveDsl.g:3049:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalPerspectiveDsl.g:3049:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalPerspectiveDsl.g:3050:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| 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 loop37; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalPerspectiveDsl.g:3072:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3072:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalPerspectiveDsl.g:3073: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" |
| // InternalPerspectiveDsl.g:3079:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:3085:2: (kw= '||' ) |
| // InternalPerspectiveDsl.g:3086:2: kw= '||' |
| { |
| kw=(Token)match(input,72,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" |
| // InternalPerspectiveDsl.g:3094:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3094:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalPerspectiveDsl.g:3095: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" |
| // InternalPerspectiveDsl.g:3101: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 { |
| // InternalPerspectiveDsl.g:3107:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3108:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3108:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:3109:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3117:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop38: |
| do { |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==73) ) { |
| int LA38_2 = input.LA(2); |
| |
| if ( (synpred9_InternalPerspectiveDsl()) ) { |
| alt38=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt38) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3118:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3118:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalPerspectiveDsl.g:3119:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3129:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalPerspectiveDsl.g:3130:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalPerspectiveDsl.g:3130:6: () |
| // InternalPerspectiveDsl.g:3131:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3137:6: ( ( ruleOpAnd ) ) |
| // InternalPerspectiveDsl.g:3138:7: ( ruleOpAnd ) |
| { |
| // InternalPerspectiveDsl.g:3138:7: ( ruleOpAnd ) |
| // InternalPerspectiveDsl.g:3139: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_33); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3155:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalPerspectiveDsl.g:3156:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalPerspectiveDsl.g:3156:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalPerspectiveDsl.g:3157:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| 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 loop38; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalPerspectiveDsl.g:3179:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3179:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalPerspectiveDsl.g:3180: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" |
| // InternalPerspectiveDsl.g:3186:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:3192:2: (kw= '&&' ) |
| // InternalPerspectiveDsl.g:3193:2: kw= '&&' |
| { |
| kw=(Token)match(input,73,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" |
| // InternalPerspectiveDsl.g:3201:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3201:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalPerspectiveDsl.g:3202: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" |
| // InternalPerspectiveDsl.g:3208: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 { |
| // InternalPerspectiveDsl.g:3214:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3215:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3215:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:3216:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3224:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop39: |
| do { |
| int alt39=2; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| int LA39_2 = input.LA(2); |
| |
| if ( (synpred10_InternalPerspectiveDsl()) ) { |
| alt39=1; |
| } |
| |
| |
| } |
| break; |
| case 75: |
| { |
| int LA39_3 = input.LA(2); |
| |
| if ( (synpred10_InternalPerspectiveDsl()) ) { |
| alt39=1; |
| } |
| |
| |
| } |
| break; |
| case 76: |
| { |
| int LA39_4 = input.LA(2); |
| |
| if ( (synpred10_InternalPerspectiveDsl()) ) { |
| alt39=1; |
| } |
| |
| |
| } |
| break; |
| case 77: |
| { |
| int LA39_5 = input.LA(2); |
| |
| if ( (synpred10_InternalPerspectiveDsl()) ) { |
| alt39=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt39) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3225:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3225:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalPerspectiveDsl.g:3226:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3236:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalPerspectiveDsl.g:3237:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalPerspectiveDsl.g:3237:6: () |
| // InternalPerspectiveDsl.g:3238:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3244:6: ( ( ruleOpEquality ) ) |
| // InternalPerspectiveDsl.g:3245:7: ( ruleOpEquality ) |
| { |
| // InternalPerspectiveDsl.g:3245:7: ( ruleOpEquality ) |
| // InternalPerspectiveDsl.g:3246: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_33); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3262:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalPerspectiveDsl.g:3263:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalPerspectiveDsl.g:3263:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalPerspectiveDsl.g:3264:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| 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 loop39; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalPerspectiveDsl.g:3286:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3286:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalPerspectiveDsl.g:3287: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" |
| // InternalPerspectiveDsl.g:3293: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 { |
| // InternalPerspectiveDsl.g:3299:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalPerspectiveDsl.g:3300:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalPerspectiveDsl.g:3300:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt40=4; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| alt40=1; |
| } |
| break; |
| case 75: |
| { |
| alt40=2; |
| } |
| break; |
| case 76: |
| { |
| alt40=3; |
| } |
| break; |
| case 77: |
| { |
| alt40=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 40, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt40) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3301:3: kw= '==' |
| { |
| kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:3307:3: kw= '!=' |
| { |
| kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:3313:3: kw= '===' |
| { |
| kw=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:3319:3: kw= '!==' |
| { |
| kw=(Token)match(input,77,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" |
| // InternalPerspectiveDsl.g:3328:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3328:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalPerspectiveDsl.g:3329: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" |
| // InternalPerspectiveDsl.g:3335: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 { |
| // InternalPerspectiveDsl.g:3341:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3342:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3342:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalPerspectiveDsl.g:3343: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_45); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3351:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop41: |
| do { |
| int alt41=3; |
| switch ( input.LA(1) ) { |
| case 69: |
| { |
| int LA41_2 = input.LA(2); |
| |
| if ( (synpred12_InternalPerspectiveDsl()) ) { |
| alt41=2; |
| } |
| |
| |
| } |
| break; |
| case 70: |
| { |
| int LA41_3 = input.LA(2); |
| |
| if ( (synpred12_InternalPerspectiveDsl()) ) { |
| alt41=2; |
| } |
| |
| |
| } |
| break; |
| case 78: |
| { |
| int LA41_4 = input.LA(2); |
| |
| if ( (synpred11_InternalPerspectiveDsl()) ) { |
| alt41=1; |
| } |
| |
| |
| } |
| break; |
| case 71: |
| { |
| int LA41_5 = input.LA(2); |
| |
| if ( (synpred12_InternalPerspectiveDsl()) ) { |
| alt41=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt41) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3352:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3352:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:3353:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalPerspectiveDsl.g:3353:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalPerspectiveDsl.g:3354:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalPerspectiveDsl.g:3360:6: ( () otherlv_2= 'instanceof' ) |
| // InternalPerspectiveDsl.g:3361:7: () otherlv_2= 'instanceof' |
| { |
| // InternalPerspectiveDsl.g:3361:7: () |
| // InternalPerspectiveDsl.g:3362:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,78,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3374:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:3375:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:3375:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:3376:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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 : |
| // InternalPerspectiveDsl.g:3395:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3395:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalPerspectiveDsl.g:3396:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3396:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalPerspectiveDsl.g:3397:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3407:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalPerspectiveDsl.g:3408:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalPerspectiveDsl.g:3408:7: () |
| // InternalPerspectiveDsl.g:3409:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3415:7: ( ( ruleOpCompare ) ) |
| // InternalPerspectiveDsl.g:3416:8: ( ruleOpCompare ) |
| { |
| // InternalPerspectiveDsl.g:3416:8: ( ruleOpCompare ) |
| // InternalPerspectiveDsl.g:3417: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_33); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3433:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalPerspectiveDsl.g:3434:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalPerspectiveDsl.g:3434:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalPerspectiveDsl.g:3435:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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 loop41; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalPerspectiveDsl.g:3458:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3458:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalPerspectiveDsl.g:3459: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" |
| // InternalPerspectiveDsl.g:3465: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 { |
| // InternalPerspectiveDsl.g:3471:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalPerspectiveDsl.g:3472:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalPerspectiveDsl.g:3472:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt42=4; |
| switch ( input.LA(1) ) { |
| case 71: |
| { |
| alt42=1; |
| } |
| break; |
| case 69: |
| { |
| int LA42_2 = input.LA(2); |
| |
| if ( (LA42_2==60) ) { |
| alt42=2; |
| } |
| else if ( (LA42_2==EOF||(LA42_2>=RULE_ID && LA42_2<=RULE_DECIMAL)||LA42_2==14||(LA42_2>=50 && LA42_2<=52)||LA42_2==57||(LA42_2>=61 && LA42_2<=62)||LA42_2==69||(LA42_2>=85 && LA42_2<=86)||LA42_2==90||LA42_2==98||LA42_2==100||(LA42_2>=104 && LA42_2<=106)||(LA42_2>=109 && LA42_2<=118)||LA42_2==120) ) { |
| alt42=4; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 42, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 70: |
| { |
| alt42=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 42, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt42) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3473:3: kw= '>=' |
| { |
| kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:3479:3: (kw= '<' kw= '=' ) |
| { |
| // InternalPerspectiveDsl.g:3479:3: (kw= '<' kw= '=' ) |
| // InternalPerspectiveDsl.g:3480:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,69,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:3492:3: kw= '>' |
| { |
| kw=(Token)match(input,70,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:3498:3: kw= '<' |
| { |
| kw=(Token)match(input,69,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" |
| // InternalPerspectiveDsl.g:3507:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3507:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalPerspectiveDsl.g:3508: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" |
| // InternalPerspectiveDsl.g:3514: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 { |
| // InternalPerspectiveDsl.g:3520:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3521:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3521:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:3522:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3530:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop43: |
| do { |
| int alt43=2; |
| alt43 = dfa43.predict(input); |
| switch (alt43) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3531:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3531:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalPerspectiveDsl.g:3532:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3542:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalPerspectiveDsl.g:3543:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalPerspectiveDsl.g:3543:6: () |
| // InternalPerspectiveDsl.g:3544:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3550:6: ( ( ruleOpOther ) ) |
| // InternalPerspectiveDsl.g:3551:7: ( ruleOpOther ) |
| { |
| // InternalPerspectiveDsl.g:3551:7: ( ruleOpOther ) |
| // InternalPerspectiveDsl.g:3552: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_33); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3568:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalPerspectiveDsl.g:3569:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalPerspectiveDsl.g:3569:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalPerspectiveDsl.g:3570:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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 loop43; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalPerspectiveDsl.g:3592:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3592:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalPerspectiveDsl.g:3593: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" |
| // InternalPerspectiveDsl.g:3599: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 { |
| // InternalPerspectiveDsl.g:3605:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalPerspectiveDsl.g:3606:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalPerspectiveDsl.g:3606:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt46=9; |
| alt46 = dfa46.predict(input); |
| switch (alt46) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3607:3: kw= '->' |
| { |
| kw=(Token)match(input,79,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:3613:3: kw= '..<' |
| { |
| kw=(Token)match(input,80,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:3619:3: (kw= '>' kw= '..' ) |
| { |
| // InternalPerspectiveDsl.g:3619:3: (kw= '>' kw= '..' ) |
| // InternalPerspectiveDsl.g:3620:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,70,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:3632:3: kw= '..' |
| { |
| kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalPerspectiveDsl.g:3638:3: kw= '=>' |
| { |
| kw=(Token)match(input,82,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalPerspectiveDsl.g:3644:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalPerspectiveDsl.g:3644:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalPerspectiveDsl.g:3645:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,70,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:3650:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==70) ) { |
| int LA44_1 = input.LA(2); |
| |
| if ( (LA44_1==EOF||(LA44_1>=RULE_ID && LA44_1<=RULE_DECIMAL)||LA44_1==14||(LA44_1>=50 && LA44_1<=52)||LA44_1==57||(LA44_1>=61 && LA44_1<=62)||LA44_1==69||(LA44_1>=85 && LA44_1<=86)||LA44_1==90||LA44_1==98||LA44_1==100||(LA44_1>=104 && LA44_1<=106)||(LA44_1>=109 && LA44_1<=118)||LA44_1==120) ) { |
| alt44=2; |
| } |
| else if ( (LA44_1==70) && (synpred14_InternalPerspectiveDsl())) { |
| alt44=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 44, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 44, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3651:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalPerspectiveDsl.g:3651:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalPerspectiveDsl.g:3652:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalPerspectiveDsl.g:3657:6: (kw= '>' kw= '>' ) |
| // InternalPerspectiveDsl.g:3658:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,70,FOLLOW_49); 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,70,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 : |
| // InternalPerspectiveDsl.g:3671: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().getGreaterThanSignKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalPerspectiveDsl.g:3679:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalPerspectiveDsl.g:3679:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalPerspectiveDsl.g:3680:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,69,FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:3685:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt45=3; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==69) ) { |
| int LA45_1 = input.LA(2); |
| |
| if ( (synpred15_InternalPerspectiveDsl()) ) { |
| alt45=1; |
| } |
| else if ( (true) ) { |
| alt45=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 45, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA45_0==82) ) { |
| alt45=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 45, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3686:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalPerspectiveDsl.g:3686:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalPerspectiveDsl.g:3687:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalPerspectiveDsl.g:3692:6: (kw= '<' kw= '<' ) |
| // InternalPerspectiveDsl.g:3693:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,69,FOLLOW_39); 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,69,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 : |
| // InternalPerspectiveDsl.g:3706:5: kw= '<' |
| { |
| kw=(Token)match(input,69,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 : |
| // InternalPerspectiveDsl.g:3712:5: kw= '=>' |
| { |
| kw=(Token)match(input,82,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 : |
| // InternalPerspectiveDsl.g:3720:3: kw= '<>' |
| { |
| kw=(Token)match(input,83,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalPerspectiveDsl.g:3726:3: kw= '?:' |
| { |
| kw=(Token)match(input,84,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" |
| // InternalPerspectiveDsl.g:3735:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3735:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalPerspectiveDsl.g:3736: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" |
| // InternalPerspectiveDsl.g:3742: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 { |
| // InternalPerspectiveDsl.g:3748:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3749:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3749:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:3750:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3758:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop47: |
| do { |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==85) ) { |
| int LA47_2 = input.LA(2); |
| |
| if ( (synpred16_InternalPerspectiveDsl()) ) { |
| alt47=1; |
| } |
| |
| |
| } |
| else if ( (LA47_0==86) ) { |
| int LA47_3 = input.LA(2); |
| |
| if ( (synpred16_InternalPerspectiveDsl()) ) { |
| alt47=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt47) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3759:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:3759:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalPerspectiveDsl.g:3760:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3770:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalPerspectiveDsl.g:3771:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalPerspectiveDsl.g:3771:6: () |
| // InternalPerspectiveDsl.g:3772:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3778:6: ( ( ruleOpAdd ) ) |
| // InternalPerspectiveDsl.g:3779:7: ( ruleOpAdd ) |
| { |
| // InternalPerspectiveDsl.g:3779:7: ( ruleOpAdd ) |
| // InternalPerspectiveDsl.g:3780: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_33); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3796:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalPerspectiveDsl.g:3797:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalPerspectiveDsl.g:3797:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalPerspectiveDsl.g:3798:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| 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 loop47; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalPerspectiveDsl.g:3820:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3820:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalPerspectiveDsl.g:3821: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" |
| // InternalPerspectiveDsl.g:3827:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:3833:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalPerspectiveDsl.g:3834:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalPerspectiveDsl.g:3834:2: (kw= '+' | kw= '-' ) |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==85) ) { |
| alt48=1; |
| } |
| else if ( (LA48_0==86) ) { |
| alt48=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3835:3: kw= '+' |
| { |
| kw=(Token)match(input,85,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:3841:3: kw= '-' |
| { |
| kw=(Token)match(input,86,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" |
| // InternalPerspectiveDsl.g:3850:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3850:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalPerspectiveDsl.g:3851: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" |
| // InternalPerspectiveDsl.g:3857: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 { |
| // InternalPerspectiveDsl.g:3863:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalPerspectiveDsl.g:3864:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:3864:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalPerspectiveDsl.g:3865:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:3873:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop49: |
| do { |
| int alt49=2; |
| switch ( input.LA(1) ) { |
| case 53: |
| { |
| int LA49_2 = input.LA(2); |
| |
| if ( (synpred17_InternalPerspectiveDsl()) ) { |
| alt49=1; |
| } |
| |
| |
| } |
| break; |
| case 87: |
| { |
| int LA49_3 = input.LA(2); |
| |
| if ( (synpred17_InternalPerspectiveDsl()) ) { |
| alt49=1; |
| } |
| |
| |
| } |
| break; |
| case 88: |
| { |
| int LA49_4 = input.LA(2); |
| |
| if ( (synpred17_InternalPerspectiveDsl()) ) { |
| alt49=1; |
| } |
| |
| |
| } |
| break; |
| case 89: |
| { |
| int LA49_5 = input.LA(2); |
| |
| if ( (synpred17_InternalPerspectiveDsl()) ) { |
| alt49=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt49) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3874:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalPerspectiveDsl.g:3874:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalPerspectiveDsl.g:3875:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3885:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalPerspectiveDsl.g:3886:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalPerspectiveDsl.g:3886:6: () |
| // InternalPerspectiveDsl.g:3887:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3893:6: ( ( ruleOpMulti ) ) |
| // InternalPerspectiveDsl.g:3894:7: ( ruleOpMulti ) |
| { |
| // InternalPerspectiveDsl.g:3894:7: ( ruleOpMulti ) |
| // InternalPerspectiveDsl.g:3895: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_33); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:3911:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalPerspectiveDsl.g:3912:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalPerspectiveDsl.g:3912:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalPerspectiveDsl.g:3913:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| 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 loop49; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalPerspectiveDsl.g:3935:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3935:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalPerspectiveDsl.g:3936: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" |
| // InternalPerspectiveDsl.g:3942: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 { |
| // InternalPerspectiveDsl.g:3948:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalPerspectiveDsl.g:3949:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalPerspectiveDsl.g:3949:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt50=4; |
| switch ( input.LA(1) ) { |
| case 53: |
| { |
| alt50=1; |
| } |
| break; |
| case 87: |
| { |
| alt50=2; |
| } |
| break; |
| case 88: |
| { |
| alt50=3; |
| } |
| break; |
| case 89: |
| { |
| alt50=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 50, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt50) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3950:3: kw= '*' |
| { |
| kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:3956:3: kw= '**' |
| { |
| kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:3962:3: kw= '/' |
| { |
| kw=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:3968:3: kw= '%' |
| { |
| kw=(Token)match(input,89,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" |
| // InternalPerspectiveDsl.g:3977:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:3977:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalPerspectiveDsl.g:3978: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" |
| // InternalPerspectiveDsl.g:3984: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 { |
| // InternalPerspectiveDsl.g:3990:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalPerspectiveDsl.g:3991:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalPerspectiveDsl.g:3991:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( ((LA51_0>=85 && LA51_0<=86)||LA51_0==90) ) { |
| alt51=1; |
| } |
| else if ( ((LA51_0>=RULE_ID && LA51_0<=RULE_DECIMAL)||LA51_0==14||(LA51_0>=50 && LA51_0<=52)||LA51_0==57||(LA51_0>=61 && LA51_0<=62)||LA51_0==69||LA51_0==98||LA51_0==100||(LA51_0>=104 && LA51_0<=106)||(LA51_0>=109 && LA51_0<=118)||LA51_0==120) ) { |
| alt51=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 51, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalPerspectiveDsl.g:3992:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3992:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalPerspectiveDsl.g:3993:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalPerspectiveDsl.g:3993:4: () |
| // InternalPerspectiveDsl.g:3994:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4000:4: ( ( ruleOpUnary ) ) |
| // InternalPerspectiveDsl.g:4001:5: ( ruleOpUnary ) |
| { |
| // InternalPerspectiveDsl.g:4001:5: ( ruleOpUnary ) |
| // InternalPerspectiveDsl.g:4002: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_33); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4016:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalPerspectiveDsl.g:4017:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalPerspectiveDsl.g:4017:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalPerspectiveDsl.g:4018: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 : |
| // InternalPerspectiveDsl.g:4037: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" |
| // InternalPerspectiveDsl.g:4049:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4049:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalPerspectiveDsl.g:4050: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" |
| // InternalPerspectiveDsl.g:4056: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 { |
| // InternalPerspectiveDsl.g:4062:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalPerspectiveDsl.g:4063:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalPerspectiveDsl.g:4063:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt52=3; |
| switch ( input.LA(1) ) { |
| case 90: |
| { |
| alt52=1; |
| } |
| break; |
| case 86: |
| { |
| alt52=2; |
| } |
| break; |
| case 85: |
| { |
| alt52=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 52, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt52) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4064:3: kw= '!' |
| { |
| kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4070:3: kw= '-' |
| { |
| kw=(Token)match(input,86,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:4076:3: kw= '+' |
| { |
| kw=(Token)match(input,85,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" |
| // InternalPerspectiveDsl.g:4085:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4085:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalPerspectiveDsl.g:4086: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" |
| // InternalPerspectiveDsl.g:4092: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 { |
| // InternalPerspectiveDsl.g:4098:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalPerspectiveDsl.g:4099:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:4099:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalPerspectiveDsl.g:4100: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_53); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:4108:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop53: |
| do { |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==91) ) { |
| int LA53_2 = input.LA(2); |
| |
| if ( (synpred18_InternalPerspectiveDsl()) ) { |
| alt53=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt53) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4109:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalPerspectiveDsl.g:4109:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalPerspectiveDsl.g:4110:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalPerspectiveDsl.g:4116:5: ( () otherlv_2= 'as' ) |
| // InternalPerspectiveDsl.g:4117:6: () otherlv_2= 'as' |
| { |
| // InternalPerspectiveDsl.g:4117:6: () |
| // InternalPerspectiveDsl.g:4118:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,91,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4130:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:4131:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:4131:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:4132:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_53); |
| 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 loop53; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalPerspectiveDsl.g:4154:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4154:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalPerspectiveDsl.g:4155: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" |
| // InternalPerspectiveDsl.g:4161: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 { |
| // InternalPerspectiveDsl.g:4167:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalPerspectiveDsl.g:4168:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalPerspectiveDsl.g:4168:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalPerspectiveDsl.g:4169:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:4177:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==92) ) { |
| int LA54_1 = input.LA(2); |
| |
| if ( (synpred19_InternalPerspectiveDsl()) ) { |
| alt54=1; |
| } |
| } |
| else if ( (LA54_0==93) ) { |
| int LA54_2 = input.LA(2); |
| |
| if ( (synpred19_InternalPerspectiveDsl()) ) { |
| alt54=1; |
| } |
| } |
| switch (alt54) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4178:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4188:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalPerspectiveDsl.g:4189:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalPerspectiveDsl.g:4189:5: () |
| // InternalPerspectiveDsl.g:4190:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4196:5: ( ( ruleOpPostfix ) ) |
| // InternalPerspectiveDsl.g:4197:6: ( ruleOpPostfix ) |
| { |
| // InternalPerspectiveDsl.g:4197:6: ( ruleOpPostfix ) |
| // InternalPerspectiveDsl.g:4198: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" |
| // InternalPerspectiveDsl.g:4218:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4218:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalPerspectiveDsl.g:4219: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" |
| // InternalPerspectiveDsl.g:4225:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:4231:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalPerspectiveDsl.g:4232:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalPerspectiveDsl.g:4232:2: (kw= '++' | kw= '--' ) |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==92) ) { |
| alt55=1; |
| } |
| else if ( (LA55_0==93) ) { |
| alt55=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 55, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt55) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4233:3: kw= '++' |
| { |
| kw=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4239:3: kw= '--' |
| { |
| kw=(Token)match(input,93,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" |
| // InternalPerspectiveDsl.g:4248:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4248:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalPerspectiveDsl.g:4249: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" |
| // InternalPerspectiveDsl.g:4255: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 { |
| // InternalPerspectiveDsl.g:4261: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 ) )? ) )* ) ) |
| // InternalPerspectiveDsl.g:4262: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 ) )? ) )* ) |
| { |
| // InternalPerspectiveDsl.g:4262: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 ) )? ) )* ) |
| // InternalPerspectiveDsl.g:4263: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_55); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:4271: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 ) )? ) )* |
| loop64: |
| do { |
| int alt64=3; |
| switch ( input.LA(1) ) { |
| case 94: |
| { |
| int LA64_2 = input.LA(2); |
| |
| if ( (synpred20_InternalPerspectiveDsl()) ) { |
| alt64=1; |
| } |
| else if ( (synpred21_InternalPerspectiveDsl()) ) { |
| alt64=2; |
| } |
| |
| |
| } |
| break; |
| case 95: |
| { |
| int LA64_3 = input.LA(2); |
| |
| if ( (synpred20_InternalPerspectiveDsl()) ) { |
| alt64=1; |
| } |
| else if ( (synpred21_InternalPerspectiveDsl()) ) { |
| alt64=2; |
| } |
| |
| |
| } |
| break; |
| case 96: |
| { |
| int LA64_4 = input.LA(2); |
| |
| if ( (synpred21_InternalPerspectiveDsl()) ) { |
| alt64=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt64) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4272:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4272:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalPerspectiveDsl.g:4273:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalPerspectiveDsl.g:4273:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalPerspectiveDsl.g:4274:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalPerspectiveDsl.g:4294:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalPerspectiveDsl.g:4295:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalPerspectiveDsl.g:4295:7: () |
| // InternalPerspectiveDsl.g:4296:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4302:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==94) ) { |
| alt56=1; |
| } |
| else if ( (LA56_0==95) ) { |
| alt56=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 56, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4303:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,94,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4308:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalPerspectiveDsl.g:4308:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalPerspectiveDsl.g:4309:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalPerspectiveDsl.g:4309:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalPerspectiveDsl.g:4310:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,95,FOLLOW_56); 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4323:7: ( ( ruleFeatureCallID ) ) |
| // InternalPerspectiveDsl.g:4324:8: ( ruleFeatureCallID ) |
| { |
| // InternalPerspectiveDsl.g:4324:8: ( ruleFeatureCallID ) |
| // InternalPerspectiveDsl.g:4325: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_32); |
| 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_33); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4348:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalPerspectiveDsl.g:4349:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalPerspectiveDsl.g:4349:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalPerspectiveDsl.g:4350:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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 : |
| // InternalPerspectiveDsl.g:4369: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 ) )? ) |
| { |
| // InternalPerspectiveDsl.g:4369: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 ) )? ) |
| // InternalPerspectiveDsl.g:4370: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 ) )? |
| { |
| // InternalPerspectiveDsl.g:4370:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalPerspectiveDsl.g:4371:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4391:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalPerspectiveDsl.g:4392:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4392:7: () |
| // InternalPerspectiveDsl.g:4393:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4399:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt57=3; |
| switch ( input.LA(1) ) { |
| case 94: |
| { |
| alt57=1; |
| } |
| break; |
| case 96: |
| { |
| alt57=2; |
| } |
| break; |
| case 95: |
| { |
| alt57=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt57) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4400:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,94,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4405:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalPerspectiveDsl.g:4405:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalPerspectiveDsl.g:4406:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalPerspectiveDsl.g:4406:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalPerspectiveDsl.g:4407:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,96,FOLLOW_57); 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 : |
| // InternalPerspectiveDsl.g:4420:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalPerspectiveDsl.g:4420:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalPerspectiveDsl.g:4421:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalPerspectiveDsl.g:4421:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalPerspectiveDsl.g:4422:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,95,FOLLOW_57); 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; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4437:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==69) ) { |
| alt59=1; |
| } |
| switch (alt59) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4438:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,69,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:4442:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:4443:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:4443:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:4444:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4461:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop58: |
| do { |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==58) ) { |
| alt58=1; |
| } |
| |
| |
| switch (alt58) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4462:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,58,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:4466:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:4467:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:4467:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:4468:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop58; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,70,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4491:5: ( ( ruleIdOrSuper ) ) |
| // InternalPerspectiveDsl.g:4492:6: ( ruleIdOrSuper ) |
| { |
| // InternalPerspectiveDsl.g:4492:6: ( ruleIdOrSuper ) |
| // InternalPerspectiveDsl.g:4493: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_60); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4507: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 alt62=2; |
| alt62 = dfa62.predict(input); |
| switch (alt62) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4508: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= ')' |
| { |
| // InternalPerspectiveDsl.g:4508:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalPerspectiveDsl.g:4509:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalPerspectiveDsl.g:4513:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalPerspectiveDsl.g:4514:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,57,FOLLOW_61); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4526:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt61=3; |
| alt61 = dfa61.predict(input); |
| switch (alt61) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4527:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalPerspectiveDsl.g:4527:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalPerspectiveDsl.g:4528:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalPerspectiveDsl.g:4553:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalPerspectiveDsl.g:4554:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 : |
| // InternalPerspectiveDsl.g:4572:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:4572:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:4573:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:4573:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:4574:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:4574:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:4575:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4592:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop60: |
| do { |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==58) ) { |
| alt60=1; |
| } |
| |
| |
| switch (alt60) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4593:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:4597:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:4598:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:4598:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:4599:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop60; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,59,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4624:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt63=2; |
| alt63 = dfa63.predict(input); |
| switch (alt63) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4625:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalPerspectiveDsl.g:4631:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalPerspectiveDsl.g:4632:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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 loop64; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalPerspectiveDsl.g:4655:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4655:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalPerspectiveDsl.g:4656: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" |
| // InternalPerspectiveDsl.g:4662: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 { |
| // InternalPerspectiveDsl.g:4668: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 ) ) |
| // InternalPerspectiveDsl.g:4669: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 ) |
| { |
| // InternalPerspectiveDsl.g:4669: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 alt65=15; |
| alt65 = dfa65.predict(input); |
| switch (alt65) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4670: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 : |
| // InternalPerspectiveDsl.g:4679: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 : |
| // InternalPerspectiveDsl.g:4688: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 : |
| // InternalPerspectiveDsl.g:4697:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalPerspectiveDsl.g:4697:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalPerspectiveDsl.g:4698: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 : |
| // InternalPerspectiveDsl.g:4715: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 : |
| // InternalPerspectiveDsl.g:4724: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 : |
| // InternalPerspectiveDsl.g:4733: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 : |
| // InternalPerspectiveDsl.g:4742:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalPerspectiveDsl.g:4742:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalPerspectiveDsl.g:4743: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 : |
| // InternalPerspectiveDsl.g:4766: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 : |
| // InternalPerspectiveDsl.g:4775: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 : |
| // InternalPerspectiveDsl.g:4784: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 : |
| // InternalPerspectiveDsl.g:4793: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 : |
| // InternalPerspectiveDsl.g:4802: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 : |
| // InternalPerspectiveDsl.g:4811: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 : |
| // InternalPerspectiveDsl.g:4820: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" |
| // InternalPerspectiveDsl.g:4832:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4832:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalPerspectiveDsl.g:4833: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" |
| // InternalPerspectiveDsl.g:4839: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 { |
| // InternalPerspectiveDsl.g:4845: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 ) ) |
| // InternalPerspectiveDsl.g:4846: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 ) |
| { |
| // InternalPerspectiveDsl.g:4846: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 alt66=7; |
| int LA66_0 = input.LA(1); |
| |
| if ( (LA66_0==61) ) { |
| alt66=1; |
| } |
| else if ( (LA66_0==62) && (synpred27_InternalPerspectiveDsl())) { |
| alt66=2; |
| } |
| else if ( ((LA66_0>=112 && LA66_0<=113)) ) { |
| alt66=3; |
| } |
| else if ( ((LA66_0>=RULE_INT && LA66_0<=RULE_DECIMAL)) ) { |
| alt66=4; |
| } |
| else if ( (LA66_0==114) ) { |
| alt66=5; |
| } |
| else if ( (LA66_0==RULE_STRING) ) { |
| alt66=6; |
| } |
| else if ( (LA66_0==115) ) { |
| alt66=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 66, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4847: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 : |
| // InternalPerspectiveDsl.g:4856:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalPerspectiveDsl.g:4856:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalPerspectiveDsl.g:4857: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 : |
| // InternalPerspectiveDsl.g:4873: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 : |
| // InternalPerspectiveDsl.g:4882: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 : |
| // InternalPerspectiveDsl.g:4891: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 : |
| // InternalPerspectiveDsl.g:4900: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 : |
| // InternalPerspectiveDsl.g:4909: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" |
| // InternalPerspectiveDsl.g:4921:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4921:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalPerspectiveDsl.g:4922: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" |
| // InternalPerspectiveDsl.g:4928: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 { |
| // InternalPerspectiveDsl.g:4934:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalPerspectiveDsl.g:4935:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalPerspectiveDsl.g:4935:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( (LA67_0==61) ) { |
| int LA67_1 = input.LA(2); |
| |
| if ( (LA67_1==62) ) { |
| alt67=2; |
| } |
| else if ( (LA67_1==14) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4936: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 : |
| // InternalPerspectiveDsl.g:4945: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" |
| // InternalPerspectiveDsl.g:4957:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:4957:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalPerspectiveDsl.g:4958: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" |
| // InternalPerspectiveDsl.g:4964: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 { |
| // InternalPerspectiveDsl.g:4970:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalPerspectiveDsl.g:4971:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalPerspectiveDsl.g:4971:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalPerspectiveDsl.g:4972:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalPerspectiveDsl.g:4972:3: () |
| // InternalPerspectiveDsl.g:4973:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:4987:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( ((LA69_0>=RULE_ID && LA69_0<=RULE_DECIMAL)||LA69_0==14||(LA69_0>=50 && LA69_0<=52)||LA69_0==57||(LA69_0>=61 && LA69_0<=62)||LA69_0==69||(LA69_0>=85 && LA69_0<=86)||LA69_0==90||LA69_0==98||LA69_0==100||(LA69_0>=104 && LA69_0<=106)||(LA69_0>=109 && LA69_0<=118)||LA69_0==120) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4988:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:4988:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:4989:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:4989:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:4990:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_65); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5007:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop68: |
| do { |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==58) ) { |
| alt68=1; |
| } |
| |
| |
| switch (alt68) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5008:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5012:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5013:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5013:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5014:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_65); |
| 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 loop68; |
| } |
| } 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" |
| // InternalPerspectiveDsl.g:5041:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5041:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalPerspectiveDsl.g:5042: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" |
| // InternalPerspectiveDsl.g:5048: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 { |
| // InternalPerspectiveDsl.g:5054:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalPerspectiveDsl.g:5055:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalPerspectiveDsl.g:5055:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalPerspectiveDsl.g:5056:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalPerspectiveDsl.g:5056:3: () |
| // InternalPerspectiveDsl.g:5057:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,62,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:5071:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( ((LA71_0>=RULE_ID && LA71_0<=RULE_DECIMAL)||LA71_0==14||(LA71_0>=50 && LA71_0<=52)||LA71_0==57||(LA71_0>=61 && LA71_0<=62)||LA71_0==69||(LA71_0>=85 && LA71_0<=86)||LA71_0==90||LA71_0==98||LA71_0==100||(LA71_0>=104 && LA71_0<=106)||(LA71_0>=109 && LA71_0<=118)||LA71_0==120) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5072:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:5072:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5073:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5073:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5074:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5091:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop70: |
| do { |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==58) ) { |
| alt70=1; |
| } |
| |
| |
| switch (alt70) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5092:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5096:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5097:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5097:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5098:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| 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 loop70; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,63,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" |
| // InternalPerspectiveDsl.g:5125:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5125:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalPerspectiveDsl.g:5126: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" |
| // InternalPerspectiveDsl.g:5132: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 { |
| // InternalPerspectiveDsl.g:5138: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= ']' ) ) |
| // InternalPerspectiveDsl.g:5139: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= ']' ) |
| { |
| // InternalPerspectiveDsl.g:5139: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= ']' ) |
| // InternalPerspectiveDsl.g:5140: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= ']' |
| { |
| // InternalPerspectiveDsl.g:5140:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalPerspectiveDsl.g:5141:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalPerspectiveDsl.g:5147:4: ( () otherlv_1= '[' ) |
| // InternalPerspectiveDsl.g:5148:5: () otherlv_1= '[' |
| { |
| // InternalPerspectiveDsl.g:5148:5: () |
| // InternalPerspectiveDsl.g:5149:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,62,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5161:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt74=2; |
| alt74 = dfa74.predict(input); |
| switch (alt74) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5162:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5185:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalPerspectiveDsl.g:5186:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:5186:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==RULE_ID||LA73_0==57||LA73_0==82) ) { |
| alt73=1; |
| } |
| switch (alt73) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5187:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:5187:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5188:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5188:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5189:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5206:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop72: |
| do { |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( (LA72_0==58) ) { |
| alt72=1; |
| } |
| |
| |
| switch (alt72) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5207:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,58,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5211:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5212:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5212:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5213:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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 loop72; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5232:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalPerspectiveDsl.g:5233:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalPerspectiveDsl.g:5233:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalPerspectiveDsl.g:5234:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,97,FOLLOW_68); 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5248:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalPerspectiveDsl.g:5249:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalPerspectiveDsl.g:5249:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalPerspectiveDsl.g:5250:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_69); |
| 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,63,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" |
| // InternalPerspectiveDsl.g:5275:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5275:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalPerspectiveDsl.g:5276: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" |
| // InternalPerspectiveDsl.g:5282: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 { |
| // InternalPerspectiveDsl.g:5288:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalPerspectiveDsl.g:5289:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalPerspectiveDsl.g:5289:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalPerspectiveDsl.g:5290:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalPerspectiveDsl.g:5290:3: () |
| // InternalPerspectiveDsl.g:5291:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5297:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop76: |
| do { |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( ((LA76_0>=RULE_ID && LA76_0<=RULE_DECIMAL)||LA76_0==14||(LA76_0>=50 && LA76_0<=52)||LA76_0==57||(LA76_0>=61 && LA76_0<=62)||LA76_0==69||(LA76_0>=85 && LA76_0<=86)||LA76_0==90||LA76_0==98||LA76_0==100||(LA76_0>=104 && LA76_0<=118)||LA76_0==120) ) { |
| alt76=1; |
| } |
| |
| |
| switch (alt76) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5298:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalPerspectiveDsl.g:5298:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalPerspectiveDsl.g:5299:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalPerspectiveDsl.g:5299:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalPerspectiveDsl.g:5300:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5317:4: (otherlv_2= ';' )? |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==55) ) { |
| alt75=1; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5318:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,55,FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop76; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalPerspectiveDsl.g:5328:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5328:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalPerspectiveDsl.g:5329: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" |
| // InternalPerspectiveDsl.g:5335: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 { |
| // InternalPerspectiveDsl.g:5341:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalPerspectiveDsl.g:5342:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5342:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:5343:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:5343:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalPerspectiveDsl.g:5344:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5369:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalPerspectiveDsl.g:5370:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:5370:5: () |
| // InternalPerspectiveDsl.g:5371:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5377:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==RULE_ID||LA78_0==57||LA78_0==82) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5378:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:5378:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5379:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5379:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5380:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5397:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop77: |
| do { |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==58) ) { |
| alt77=1; |
| } |
| |
| |
| switch (alt77) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5398:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,58,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5402:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5403:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5403:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5404:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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 loop77; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5423:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalPerspectiveDsl.g:5424:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalPerspectiveDsl.g:5424:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalPerspectiveDsl.g:5425:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,97,FOLLOW_33); 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, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5439:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5440:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5440:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5441: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" |
| // InternalPerspectiveDsl.g:5462:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5462:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalPerspectiveDsl.g:5463: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" |
| // InternalPerspectiveDsl.g:5469: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 { |
| // InternalPerspectiveDsl.g:5475:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalPerspectiveDsl.g:5476:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalPerspectiveDsl.g:5476:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalPerspectiveDsl.g:5477:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,57,FOLLOW_33); 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_31); |
| 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,59,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" |
| // InternalPerspectiveDsl.g:5497:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5497:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalPerspectiveDsl.g:5498: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" |
| // InternalPerspectiveDsl.g:5504: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 { |
| // InternalPerspectiveDsl.g:5510: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 ) ) )? ) ) |
| // InternalPerspectiveDsl.g:5511: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 ) ) )? ) |
| { |
| // InternalPerspectiveDsl.g:5511: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 ) ) )? ) |
| // InternalPerspectiveDsl.g:5512: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 ) ) )? |
| { |
| // InternalPerspectiveDsl.g:5512:3: () |
| // InternalPerspectiveDsl.g:5513:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,98,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:5527:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5528:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5528:4: (lv_if_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5529:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:5550:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5551:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5551:4: (lv_then_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5552:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5569:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==99) ) { |
| int LA79_1 = input.LA(2); |
| |
| if ( (synpred31_InternalPerspectiveDsl()) ) { |
| alt79=1; |
| } |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5570:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:5570:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalPerspectiveDsl.g:5571:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,99,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5577:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5578:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5578:5: (lv_else_7_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5579: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" |
| // InternalPerspectiveDsl.g:5601:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5601:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalPerspectiveDsl.g:5602: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" |
| // InternalPerspectiveDsl.g:5608: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 { |
| // InternalPerspectiveDsl.g:5614: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= '}' ) ) |
| // InternalPerspectiveDsl.g:5615: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= '}' ) |
| { |
| // InternalPerspectiveDsl.g:5615: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= '}' ) |
| // InternalPerspectiveDsl.g:5616: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= '}' |
| { |
| // InternalPerspectiveDsl.g:5616:3: () |
| // InternalPerspectiveDsl.g:5617:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,100,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:5627: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 alt81=2; |
| alt81 = dfa81.predict(input); |
| switch (alt81) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5628:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalPerspectiveDsl.g:5628:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalPerspectiveDsl.g:5629:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalPerspectiveDsl.g:5629:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalPerspectiveDsl.g:5630:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalPerspectiveDsl.g:5640:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalPerspectiveDsl.g:5641:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,57,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5645:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5646:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5646:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5647:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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,101,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5670:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5671:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5671:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5672:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:5695:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5695:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:5696:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:5696:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt80=2; |
| alt80 = dfa80.predict(input); |
| switch (alt80) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5697:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalPerspectiveDsl.g:5706:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalPerspectiveDsl.g:5707:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalPerspectiveDsl.g:5707:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5708:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5708:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5709:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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,101,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5732:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5733:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5733:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5734:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| 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_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalPerspectiveDsl.g:5757:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop82: |
| do { |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==RULE_ID||(LA82_0>=57 && LA82_0<=58)||LA82_0==82||LA82_0==101||LA82_0==103) ) { |
| alt82=1; |
| } |
| |
| |
| switch (alt82) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5758:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalPerspectiveDsl.g:5758:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalPerspectiveDsl.g:5759:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| 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 loop82; |
| } |
| } while (true); |
| |
| // InternalPerspectiveDsl.g:5776:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==102) ) { |
| alt83=1; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5777:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,102,FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,101,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:5785:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5786:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5786:5: (lv_default_14_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5787:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| 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" |
| // InternalPerspectiveDsl.g:5813:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5813:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalPerspectiveDsl.g:5814: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" |
| // InternalPerspectiveDsl.g:5820: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 { |
| // InternalPerspectiveDsl.g:5826: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= ',' ) ) ) ) ) |
| // InternalPerspectiveDsl.g:5827: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= ',' ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5827: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= ',' ) ) ) ) |
| // InternalPerspectiveDsl.g:5828: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= ',' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5828:3: () |
| // InternalPerspectiveDsl.g:5829:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5835:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==RULE_ID||LA84_0==57||LA84_0==82) ) { |
| alt84=1; |
| } |
| switch (alt84) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5836:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:5836:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:5837:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5854:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==103) ) { |
| alt85=1; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5855:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,103,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5859:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5860:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5860:5: (lv_case_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5861:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5879:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==101) ) { |
| alt86=1; |
| } |
| else if ( (LA86_0==58) ) { |
| alt86=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 86, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt86) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5880:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5880:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:5881:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,101,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:5885:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5886:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5886:6: (lv_then_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5887: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 : |
| // InternalPerspectiveDsl.g:5906:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalPerspectiveDsl.g:5906:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalPerspectiveDsl.g:5907:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalPerspectiveDsl.g:5907:5: (lv_fallThrough_6_0= ',' ) |
| // InternalPerspectiveDsl.g:5908:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,58,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" |
| // InternalPerspectiveDsl.g:5925:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:5925:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalPerspectiveDsl.g:5926: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" |
| // InternalPerspectiveDsl.g:5932: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 { |
| // InternalPerspectiveDsl.g:5938: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 ) ) ) ) |
| // InternalPerspectiveDsl.g:5939: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 ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5939: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 ) ) ) |
| // InternalPerspectiveDsl.g:5940: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 ) ) |
| { |
| // InternalPerspectiveDsl.g:5940:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalPerspectiveDsl.g:5941:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalPerspectiveDsl.g:5954:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalPerspectiveDsl.g:5955:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalPerspectiveDsl.g:5955:5: () |
| // InternalPerspectiveDsl.g:5956:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,104,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:5970:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5971:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5971:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5972:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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,101,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5995:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:5996:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:5996:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:5997:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:6018:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6019:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6019:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6020: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" |
| // InternalPerspectiveDsl.g:6041:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6041:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalPerspectiveDsl.g:6042: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" |
| // InternalPerspectiveDsl.g:6048: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 { |
| // InternalPerspectiveDsl.g:6054: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 ) ) ) ) |
| // InternalPerspectiveDsl.g:6055: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 ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6055: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 ) ) ) |
| // InternalPerspectiveDsl.g:6056: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 ) ) |
| { |
| // InternalPerspectiveDsl.g:6056:3: () |
| // InternalPerspectiveDsl.g:6057:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,104,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:6071:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( ((LA88_0>=RULE_ID && LA88_0<=RULE_DECIMAL)||LA88_0==14||(LA88_0>=50 && LA88_0<=52)||LA88_0==57||(LA88_0>=61 && LA88_0<=62)||LA88_0==69||(LA88_0>=85 && LA88_0<=86)||LA88_0==90||LA88_0==98||LA88_0==100||(LA88_0>=104 && LA88_0<=118)||LA88_0==120) ) { |
| alt88=1; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6072:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalPerspectiveDsl.g:6072:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalPerspectiveDsl.g:6073:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalPerspectiveDsl.g:6073:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalPerspectiveDsl.g:6074:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6091:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop87: |
| do { |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==58) ) { |
| alt87=1; |
| } |
| |
| |
| switch (alt87) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6092:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,58,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6096:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalPerspectiveDsl.g:6097:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalPerspectiveDsl.g:6097:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalPerspectiveDsl.g:6098:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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 loop87; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,55,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:6121:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( ((LA89_0>=RULE_ID && LA89_0<=RULE_DECIMAL)||LA89_0==14||(LA89_0>=50 && LA89_0<=52)||LA89_0==57||(LA89_0>=61 && LA89_0<=62)||LA89_0==69||(LA89_0>=85 && LA89_0<=86)||LA89_0==90||LA89_0==98||LA89_0==100||(LA89_0>=104 && LA89_0<=106)||(LA89_0>=109 && LA89_0<=118)||LA89_0==120) ) { |
| alt89=1; |
| } |
| switch (alt89) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6122:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6122:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6123:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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,55,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalPerspectiveDsl.g:6144:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( ((LA91_0>=RULE_ID && LA91_0<=RULE_DECIMAL)||LA91_0==14||(LA91_0>=50 && LA91_0<=52)||LA91_0==57||(LA91_0>=61 && LA91_0<=62)||LA91_0==69||(LA91_0>=85 && LA91_0<=86)||LA91_0==90||LA91_0==98||LA91_0==100||(LA91_0>=104 && LA91_0<=106)||(LA91_0>=109 && LA91_0<=118)||LA91_0==120) ) { |
| alt91=1; |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6145:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:6145:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6146:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6146:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6147:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6164:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop90: |
| do { |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==58) ) { |
| alt90=1; |
| } |
| |
| |
| switch (alt90) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6165:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6169:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6170:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6170:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6171:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop90; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalPerspectiveDsl.g:6194:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6195:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6195:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6196: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" |
| // InternalPerspectiveDsl.g:6217:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6217:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalPerspectiveDsl.g:6218: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" |
| // InternalPerspectiveDsl.g:6224: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 { |
| // InternalPerspectiveDsl.g:6230:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalPerspectiveDsl.g:6231:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6231:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:6232:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:6232:3: () |
| // InternalPerspectiveDsl.g:6233:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,105,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:6247:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6248:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6248:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6249:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:6270:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6271:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6271:4: (lv_body_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6272: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" |
| // InternalPerspectiveDsl.g:6293:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6293:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalPerspectiveDsl.g:6294: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" |
| // InternalPerspectiveDsl.g:6300: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 { |
| // InternalPerspectiveDsl.g:6306:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalPerspectiveDsl.g:6307:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalPerspectiveDsl.g:6307:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalPerspectiveDsl.g:6308:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalPerspectiveDsl.g:6308:3: () |
| // InternalPerspectiveDsl.g:6309:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,106,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:6319:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6320:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6320:4: (lv_body_2_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6321:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_85); |
| 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,105,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,57,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalPerspectiveDsl.g:6346:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6347:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6347:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6348:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,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" |
| // InternalPerspectiveDsl.g:6373:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6373:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalPerspectiveDsl.g:6374: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" |
| // InternalPerspectiveDsl.g:6380: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 { |
| // InternalPerspectiveDsl.g:6386:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalPerspectiveDsl.g:6387:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalPerspectiveDsl.g:6387:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalPerspectiveDsl.g:6388:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalPerspectiveDsl.g:6388:3: () |
| // InternalPerspectiveDsl.g:6389:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:6399:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop93: |
| do { |
| int alt93=2; |
| int LA93_0 = input.LA(1); |
| |
| if ( ((LA93_0>=RULE_ID && LA93_0<=RULE_DECIMAL)||LA93_0==14||(LA93_0>=50 && LA93_0<=52)||LA93_0==57||(LA93_0>=61 && LA93_0<=62)||LA93_0==69||(LA93_0>=85 && LA93_0<=86)||LA93_0==90||LA93_0==98||LA93_0==100||(LA93_0>=104 && LA93_0<=118)||LA93_0==120) ) { |
| alt93=1; |
| } |
| |
| |
| switch (alt93) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6400:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalPerspectiveDsl.g:6400:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalPerspectiveDsl.g:6401:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalPerspectiveDsl.g:6401:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalPerspectiveDsl.g:6402:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6419:4: (otherlv_3= ';' )? |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==55) ) { |
| alt92=1; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6420:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,55,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop93; |
| } |
| } 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" |
| // InternalPerspectiveDsl.g:6434:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6434:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalPerspectiveDsl.g:6435: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" |
| // InternalPerspectiveDsl.g:6441: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 { |
| // InternalPerspectiveDsl.g:6447:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6448:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6448:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( ((LA94_0>=107 && LA94_0<=108)) ) { |
| alt94=1; |
| } |
| else if ( ((LA94_0>=RULE_ID && LA94_0<=RULE_DECIMAL)||LA94_0==14||(LA94_0>=50 && LA94_0<=52)||LA94_0==57||(LA94_0>=61 && LA94_0<=62)||LA94_0==69||(LA94_0>=85 && LA94_0<=86)||LA94_0==90||LA94_0==98||LA94_0==100||(LA94_0>=104 && LA94_0<=106)||(LA94_0>=109 && LA94_0<=118)||LA94_0==120) ) { |
| alt94=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 94, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt94) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6449: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 : |
| // InternalPerspectiveDsl.g:6458: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" |
| // InternalPerspectiveDsl.g:6470:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6470:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalPerspectiveDsl.g:6471: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" |
| // InternalPerspectiveDsl.g:6477: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 { |
| // InternalPerspectiveDsl.g:6483: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 ) ) )? ) ) |
| // InternalPerspectiveDsl.g:6484: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 ) ) )? ) |
| { |
| // InternalPerspectiveDsl.g:6484: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 ) ) )? ) |
| // InternalPerspectiveDsl.g:6485: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 ) ) )? |
| { |
| // InternalPerspectiveDsl.g:6485:3: () |
| // InternalPerspectiveDsl.g:6486:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6492:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( (LA95_0==107) ) { |
| alt95=1; |
| } |
| else if ( (LA95_0==108) ) { |
| alt95=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 95, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6493:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalPerspectiveDsl.g:6493:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalPerspectiveDsl.g:6494:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalPerspectiveDsl.g:6494:5: (lv_writeable_1_0= 'var' ) |
| // InternalPerspectiveDsl.g:6495:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,107,FOLLOW_46); 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 : |
| // InternalPerspectiveDsl.g:6508:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,108,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6513:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt96=2; |
| int LA96_0 = input.LA(1); |
| |
| if ( (LA96_0==RULE_ID) ) { |
| int LA96_1 = input.LA(2); |
| |
| if ( (synpred35_InternalPerspectiveDsl()) ) { |
| alt96=1; |
| } |
| else if ( (true) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA96_0==57) && (synpred35_InternalPerspectiveDsl())) { |
| alt96=1; |
| } |
| else if ( (LA96_0==82) && (synpred35_InternalPerspectiveDsl())) { |
| alt96=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt96) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6514:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6514:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalPerspectiveDsl.g:6515:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6528:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalPerspectiveDsl.g:6529:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:6529:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:6530:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6530:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:6531: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6548:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalPerspectiveDsl.g:6549:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:6549:7: (lv_name_4_0= ruleValidID ) |
| // InternalPerspectiveDsl.g:6550:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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 : |
| // InternalPerspectiveDsl.g:6570:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:6570:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalPerspectiveDsl.g:6571:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:6571:5: (lv_name_5_0= ruleValidID ) |
| // InternalPerspectiveDsl.g:6572:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6590:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==60) ) { |
| alt97=1; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6591:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,60,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6595:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6596:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6596:5: (lv_right_7_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6597: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" |
| // InternalPerspectiveDsl.g:6619:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6619:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalPerspectiveDsl.g:6620: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" |
| // InternalPerspectiveDsl.g:6626: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 { |
| // InternalPerspectiveDsl.g:6632:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalPerspectiveDsl.g:6633:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6633:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalPerspectiveDsl.g:6634:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:6634:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( (LA98_0==RULE_ID) ) { |
| int LA98_1 = input.LA(2); |
| |
| if ( (LA98_1==RULE_ID||LA98_1==62||LA98_1==69||LA98_1==94) ) { |
| alt98=1; |
| } |
| } |
| else if ( (LA98_0==57||LA98_0==82) ) { |
| alt98=1; |
| } |
| switch (alt98) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6635:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6635:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:6636: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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6653:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalPerspectiveDsl.g:6654:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:6654:4: (lv_name_1_0= ruleValidID ) |
| // InternalPerspectiveDsl.g:6655: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" |
| // InternalPerspectiveDsl.g:6676:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6676:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalPerspectiveDsl.g:6677: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" |
| // InternalPerspectiveDsl.g:6683: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 { |
| // InternalPerspectiveDsl.g:6689:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalPerspectiveDsl.g:6690:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6690:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalPerspectiveDsl.g:6691:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:6691:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:6692:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6692:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:6693: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6710:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalPerspectiveDsl.g:6711:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:6711:4: (lv_name_1_0= ruleValidID ) |
| // InternalPerspectiveDsl.g:6712: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" |
| // InternalPerspectiveDsl.g:6733:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6733:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalPerspectiveDsl.g:6734: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" |
| // InternalPerspectiveDsl.g:6740: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 { |
| // InternalPerspectiveDsl.g:6746: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 ) )? ) ) |
| // InternalPerspectiveDsl.g:6747: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 ) )? ) |
| { |
| // InternalPerspectiveDsl.g:6747: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 ) )? ) |
| // InternalPerspectiveDsl.g:6748: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 ) )? |
| { |
| // InternalPerspectiveDsl.g:6748:3: () |
| // InternalPerspectiveDsl.g:6749:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6755:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==69) ) { |
| alt100=1; |
| } |
| switch (alt100) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6756:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,69,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6760:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:6761:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6761:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:6762:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6779:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop99: |
| do { |
| int alt99=2; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==58) ) { |
| alt99=1; |
| } |
| |
| |
| switch (alt99) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6780:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,58,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6784:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:6785:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6785:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:6786:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop99; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,70,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6809:3: ( ( ruleIdOrSuper ) ) |
| // InternalPerspectiveDsl.g:6810:4: ( ruleIdOrSuper ) |
| { |
| // InternalPerspectiveDsl.g:6810:4: ( ruleIdOrSuper ) |
| // InternalPerspectiveDsl.g:6811: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_89); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6825: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 alt103=2; |
| alt103 = dfa103.predict(input); |
| switch (alt103) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6826: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= ')' |
| { |
| // InternalPerspectiveDsl.g:6826:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalPerspectiveDsl.g:6827:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalPerspectiveDsl.g:6831:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalPerspectiveDsl.g:6832:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,57,FOLLOW_61); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6844:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt102=3; |
| alt102 = dfa102.predict(input); |
| switch (alt102) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6845:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalPerspectiveDsl.g:6845:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalPerspectiveDsl.g:6846:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalPerspectiveDsl.g:6871:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalPerspectiveDsl.g:6872:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 : |
| // InternalPerspectiveDsl.g:6890:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:6890:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:6891:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:6891:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6892:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6892:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6893:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6910:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop101: |
| do { |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==58) ) { |
| alt101=1; |
| } |
| |
| |
| switch (alt101) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6911:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:6915:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:6916:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:6916:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:6917:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop101; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,59,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6942:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt104=2; |
| alt104 = dfa104.predict(input); |
| switch (alt104) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6943:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalPerspectiveDsl.g:6949:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalPerspectiveDsl.g:6950: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" |
| // InternalPerspectiveDsl.g:6971:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:6971:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalPerspectiveDsl.g:6972: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" |
| // InternalPerspectiveDsl.g:6978: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 { |
| // InternalPerspectiveDsl.g:6984:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalPerspectiveDsl.g:6985:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalPerspectiveDsl.g:6985:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt105=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt105=1; |
| } |
| break; |
| case 109: |
| { |
| alt105=2; |
| } |
| break; |
| case 51: |
| { |
| alt105=3; |
| } |
| break; |
| case 50: |
| { |
| alt105=4; |
| } |
| break; |
| case 52: |
| { |
| alt105=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 105, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt105) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6986: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 : |
| // InternalPerspectiveDsl.g:6997:3: kw= 'extends' |
| { |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:7003:3: kw= 'static' |
| { |
| kw=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalPerspectiveDsl.g:7009:3: kw= 'import' |
| { |
| kw=(Token)match(input,50,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalPerspectiveDsl.g:7015:3: kw= 'extension' |
| { |
| kw=(Token)match(input,52,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" |
| // InternalPerspectiveDsl.g:7024:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7024:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalPerspectiveDsl.g:7025: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" |
| // InternalPerspectiveDsl.g:7031: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 { |
| // InternalPerspectiveDsl.g:7037:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalPerspectiveDsl.g:7038:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalPerspectiveDsl.g:7038:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==RULE_ID||(LA106_0>=50 && LA106_0<=52)||LA106_0==109) ) { |
| alt106=1; |
| } |
| else if ( (LA106_0==110) ) { |
| 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 : |
| // InternalPerspectiveDsl.g:7039: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 : |
| // InternalPerspectiveDsl.g:7050:3: kw= 'super' |
| { |
| kw=(Token)match(input,110,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" |
| // InternalPerspectiveDsl.g:7059:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7059:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalPerspectiveDsl.g:7060: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" |
| // InternalPerspectiveDsl.g:7066: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 { |
| // InternalPerspectiveDsl.g:7072: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 ) )? ) ) |
| // InternalPerspectiveDsl.g:7073: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 ) )? ) |
| { |
| // InternalPerspectiveDsl.g:7073: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 ) )? ) |
| // InternalPerspectiveDsl.g:7074: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 ) )? |
| { |
| // InternalPerspectiveDsl.g:7074:3: () |
| // InternalPerspectiveDsl.g:7075:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,111,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:7085:3: ( ( ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:7086:4: ( ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:7086:4: ( ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:7087: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_91); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7101:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt108=2; |
| alt108 = dfa108.predict(input); |
| switch (alt108) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7102:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalPerspectiveDsl.g:7102:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalPerspectiveDsl.g:7103:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,69,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7109:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:7110:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:7110:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:7111:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7128:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop107: |
| do { |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==58) ) { |
| alt107=1; |
| } |
| |
| |
| switch (alt107) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7129:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,58,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:7133:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:7134:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:7134:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:7135:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop107; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,70,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7158: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 alt111=2; |
| alt111 = dfa111.predict(input); |
| switch (alt111) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7159: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= ')' |
| { |
| // InternalPerspectiveDsl.g:7159:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalPerspectiveDsl.g:7160:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalPerspectiveDsl.g:7164:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalPerspectiveDsl.g:7165:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,57,FOLLOW_61); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7177:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt110=3; |
| alt110 = dfa110.predict(input); |
| switch (alt110) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7178:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalPerspectiveDsl.g:7178:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalPerspectiveDsl.g:7179:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalPerspectiveDsl.g:7204:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalPerspectiveDsl.g:7205:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 : |
| // InternalPerspectiveDsl.g:7223:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalPerspectiveDsl.g:7223:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalPerspectiveDsl.g:7224:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalPerspectiveDsl.g:7224:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7225:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7225:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7226:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7243:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop109: |
| do { |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==58) ) { |
| alt109=1; |
| } |
| |
| |
| switch (alt109) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7244:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,58,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:7248:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7249:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7249:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7250:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop109; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,59,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7275:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt112=2; |
| alt112 = dfa112.predict(input); |
| switch (alt112) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7276:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalPerspectiveDsl.g:7282:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalPerspectiveDsl.g:7283: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" |
| // InternalPerspectiveDsl.g:7304:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7304:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalPerspectiveDsl.g:7305: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" |
| // InternalPerspectiveDsl.g:7311: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 { |
| // InternalPerspectiveDsl.g:7317:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalPerspectiveDsl.g:7318:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7318:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalPerspectiveDsl.g:7319:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7319:3: () |
| // InternalPerspectiveDsl.g:7320:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7326:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==112) ) { |
| alt113=1; |
| } |
| else if ( (LA113_0==113) ) { |
| alt113=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 113, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7327:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,112,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:7332:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalPerspectiveDsl.g:7332:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalPerspectiveDsl.g:7333:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalPerspectiveDsl.g:7333:5: (lv_isTrue_2_0= 'true' ) |
| // InternalPerspectiveDsl.g:7334:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,113,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" |
| // InternalPerspectiveDsl.g:7351:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7351:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalPerspectiveDsl.g:7352: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" |
| // InternalPerspectiveDsl.g:7358:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:7364:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalPerspectiveDsl.g:7365:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalPerspectiveDsl.g:7365:2: ( () otherlv_1= 'null' ) |
| // InternalPerspectiveDsl.g:7366:3: () otherlv_1= 'null' |
| { |
| // InternalPerspectiveDsl.g:7366:3: () |
| // InternalPerspectiveDsl.g:7367:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,114,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" |
| // InternalPerspectiveDsl.g:7381:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7381:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalPerspectiveDsl.g:7382: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" |
| // InternalPerspectiveDsl.g:7388: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 { |
| // InternalPerspectiveDsl.g:7394:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalPerspectiveDsl.g:7395:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7395:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalPerspectiveDsl.g:7396:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalPerspectiveDsl.g:7396:3: () |
| // InternalPerspectiveDsl.g:7397:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7403:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalPerspectiveDsl.g:7404:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalPerspectiveDsl.g:7404:4: (lv_value_1_0= ruleNumber ) |
| // InternalPerspectiveDsl.g:7405: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" |
| // InternalPerspectiveDsl.g:7426:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7426:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalPerspectiveDsl.g:7427: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" |
| // InternalPerspectiveDsl.g:7433: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 { |
| // InternalPerspectiveDsl.g:7439:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalPerspectiveDsl.g:7440:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7440:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalPerspectiveDsl.g:7441:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalPerspectiveDsl.g:7441:3: () |
| // InternalPerspectiveDsl.g:7442:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7448:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalPerspectiveDsl.g:7449:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalPerspectiveDsl.g:7449:4: (lv_value_1_0= RULE_STRING ) |
| // InternalPerspectiveDsl.g:7450: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" |
| // InternalPerspectiveDsl.g:7470:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7470:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalPerspectiveDsl.g:7471: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" |
| // InternalPerspectiveDsl.g:7477: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 { |
| // InternalPerspectiveDsl.g:7483:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalPerspectiveDsl.g:7484:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalPerspectiveDsl.g:7484:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalPerspectiveDsl.g:7485:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalPerspectiveDsl.g:7485:3: () |
| // InternalPerspectiveDsl.g:7486:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,115,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:7500:3: ( ( ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:7501:4: ( ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:7501:4: ( ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:7502: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_92); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7516:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop114: |
| do { |
| int alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==62) ) { |
| alt114=1; |
| } |
| |
| |
| switch (alt114) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7517:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalPerspectiveDsl.g:7517:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalPerspectiveDsl.g:7518:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| 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 loop114; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,59,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" |
| // InternalPerspectiveDsl.g:7543:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7543:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalPerspectiveDsl.g:7544: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" |
| // InternalPerspectiveDsl.g:7550: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 { |
| // InternalPerspectiveDsl.g:7556:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalPerspectiveDsl.g:7557:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7557:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:7558:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:7558:3: () |
| // InternalPerspectiveDsl.g:7559:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,116,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:7569:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7570:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7570:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7571: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" |
| // InternalPerspectiveDsl.g:7592:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7592:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalPerspectiveDsl.g:7593: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" |
| // InternalPerspectiveDsl.g:7599: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 { |
| // InternalPerspectiveDsl.g:7605: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 ) )? ) ) |
| // InternalPerspectiveDsl.g:7606: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 ) )? ) |
| { |
| // InternalPerspectiveDsl.g:7606: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 ) )? ) |
| // InternalPerspectiveDsl.g:7607: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 ) )? |
| { |
| // InternalPerspectiveDsl.g:7607:3: () |
| // InternalPerspectiveDsl.g:7608:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,117,FOLLOW_93); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:7618: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 alt115=2; |
| alt115 = dfa115.predict(input); |
| switch (alt115) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7619: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 ) |
| { |
| // InternalPerspectiveDsl.g:7620:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7621: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" |
| // InternalPerspectiveDsl.g:7642:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7642:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalPerspectiveDsl.g:7643: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" |
| // InternalPerspectiveDsl.g:7649: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 { |
| // InternalPerspectiveDsl.g:7655: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 ) ) ) ) ) ) |
| // InternalPerspectiveDsl.g:7656: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 ) ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7656: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 ) ) ) ) ) |
| // InternalPerspectiveDsl.g:7657: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 ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7657:3: () |
| // InternalPerspectiveDsl.g:7658:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,118,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:7668:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7669:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7669:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7670:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7687: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 alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==121) ) { |
| alt118=1; |
| } |
| else if ( (LA118_0==119) ) { |
| 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 : |
| // InternalPerspectiveDsl.g:7688:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalPerspectiveDsl.g:7688:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalPerspectiveDsl.g:7689:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalPerspectiveDsl.g:7689:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt116=0; |
| loop116: |
| do { |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( (LA116_0==121) ) { |
| int LA116_2 = input.LA(2); |
| |
| if ( (synpred44_InternalPerspectiveDsl()) ) { |
| alt116=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt116) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7690:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalPerspectiveDsl.g:7691:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalPerspectiveDsl.g:7692:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| 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 ( cnt116 >= 1 ) break loop116; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(116, input); |
| throw eee; |
| } |
| cnt116++; |
| } while (true); |
| |
| // InternalPerspectiveDsl.g:7709:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==119) ) { |
| int LA117_1 = input.LA(2); |
| |
| if ( (synpred45_InternalPerspectiveDsl()) ) { |
| alt117=1; |
| } |
| } |
| switch (alt117) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7710:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:7710:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalPerspectiveDsl.g:7711:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,119,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7717:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7718:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7718:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7719: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 : |
| // InternalPerspectiveDsl.g:7739:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7739:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:7740:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,119,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:7744:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7745:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7745:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7746: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" |
| // InternalPerspectiveDsl.g:7769:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7769:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalPerspectiveDsl.g:7770: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" |
| // InternalPerspectiveDsl.g:7776: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 { |
| // InternalPerspectiveDsl.g:7782:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalPerspectiveDsl.g:7783:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7783:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:7784:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:7784:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalPerspectiveDsl.g:7785:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalPerspectiveDsl.g:7792:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalPerspectiveDsl.g:7793:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalPerspectiveDsl.g:7793:5: () |
| // InternalPerspectiveDsl.g:7794:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,120,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,57,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7810:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7811:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7811:4: (lv_param_3_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7812:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalPerspectiveDsl.g:7833:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7834:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7834:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7835: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" |
| // InternalPerspectiveDsl.g:7856:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7856:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalPerspectiveDsl.g:7857: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" |
| // InternalPerspectiveDsl.g:7863: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 { |
| // InternalPerspectiveDsl.g:7869:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalPerspectiveDsl.g:7870:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7870:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalPerspectiveDsl.g:7871:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalPerspectiveDsl.g:7871:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalPerspectiveDsl.g:7872:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,121,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,57,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:7882:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:7883:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:7883:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:7884:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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,59,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalPerspectiveDsl.g:7905:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalPerspectiveDsl.g:7906:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalPerspectiveDsl.g:7906:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalPerspectiveDsl.g:7907: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" |
| // InternalPerspectiveDsl.g:7928:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:7928:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalPerspectiveDsl.g:7929: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" |
| // InternalPerspectiveDsl.g:7935: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 { |
| // InternalPerspectiveDsl.g:7941:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalPerspectiveDsl.g:7942:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalPerspectiveDsl.g:7942:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalPerspectiveDsl.g:7943:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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(); |
| |
| } |
| // InternalPerspectiveDsl.g:7953:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop119: |
| do { |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==94) ) { |
| int LA119_2 = input.LA(2); |
| |
| if ( (LA119_2==RULE_ID) ) { |
| int LA119_3 = input.LA(3); |
| |
| if ( (synpred48_InternalPerspectiveDsl()) ) { |
| alt119=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt119) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7954:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalPerspectiveDsl.g:7954:4: ( ( '.' )=>kw= '.' ) |
| // InternalPerspectiveDsl.g:7955:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,94,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_96); |
| 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 loop119; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalPerspectiveDsl.g:7977: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 { |
| // InternalPerspectiveDsl.g:7979:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalPerspectiveDsl.g:7980: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" |
| // InternalPerspectiveDsl.g:7989: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 { |
| // InternalPerspectiveDsl.g:7996: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 ) )? ) ) ) |
| // InternalPerspectiveDsl.g:7997: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 ) )? ) ) |
| { |
| // InternalPerspectiveDsl.g:7997: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 alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==RULE_HEX) ) { |
| alt123=1; |
| } |
| else if ( (LA123_0==RULE_INT||LA123_0==RULE_DECIMAL) ) { |
| alt123=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 123, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt123) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7998: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 : |
| // InternalPerspectiveDsl.g:8006:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalPerspectiveDsl.g:8006:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalPerspectiveDsl.g:8007:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalPerspectiveDsl.g:8007:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==RULE_INT) ) { |
| alt120=1; |
| } |
| else if ( (LA120_0==RULE_DECIMAL) ) { |
| alt120=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 120, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt120) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8008:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_96); 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 : |
| // InternalPerspectiveDsl.g:8016:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_96); 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; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8024:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==94) ) { |
| int LA122_1 = input.LA(2); |
| |
| if ( (LA122_1==RULE_INT||LA122_1==RULE_DECIMAL) ) { |
| alt122=1; |
| } |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8025:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,94,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8030:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==RULE_INT) ) { |
| alt121=1; |
| } |
| else if ( (LA121_0==RULE_DECIMAL) ) { |
| alt121=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 121, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt121) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8031: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 : |
| // InternalPerspectiveDsl.g:8039: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" |
| // InternalPerspectiveDsl.g:8056:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8056:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalPerspectiveDsl.g:8057: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" |
| // InternalPerspectiveDsl.g:8063: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 { |
| // InternalPerspectiveDsl.g:8069:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalPerspectiveDsl.g:8070:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalPerspectiveDsl.g:8070:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==RULE_ID) ) { |
| alt125=1; |
| } |
| else if ( (LA125_0==57||LA125_0==82) ) { |
| 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 : |
| // InternalPerspectiveDsl.g:8071:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalPerspectiveDsl.g:8071:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalPerspectiveDsl.g:8072:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalPerspectiveDsl.g:8080:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop124: |
| do { |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( (LA124_0==62) ) { |
| int LA124_2 = input.LA(2); |
| |
| if ( (LA124_2==63) ) { |
| int LA124_3 = input.LA(3); |
| |
| if ( (synpred49_InternalPerspectiveDsl()) ) { |
| alt124=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt124) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8081:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalPerspectiveDsl.g:8087:5: ( () ruleArrayBrackets ) |
| // InternalPerspectiveDsl.g:8088:6: () ruleArrayBrackets |
| { |
| // InternalPerspectiveDsl.g:8088:6: () |
| // InternalPerspectiveDsl.g:8089: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_90); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop124; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:8106: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" |
| // InternalPerspectiveDsl.g:8118:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8118:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalPerspectiveDsl.g:8119: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" |
| // InternalPerspectiveDsl.g:8125:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:8131:2: ( (kw= '[' kw= ']' ) ) |
| // InternalPerspectiveDsl.g:8132:2: (kw= '[' kw= ']' ) |
| { |
| // InternalPerspectiveDsl.g:8132:2: (kw= '[' kw= ']' ) |
| // InternalPerspectiveDsl.g:8133:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,62,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,63,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" |
| // InternalPerspectiveDsl.g:8147:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8147:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalPerspectiveDsl.g:8148: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" |
| // InternalPerspectiveDsl.g:8154: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 { |
| // InternalPerspectiveDsl.g:8160:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalPerspectiveDsl.g:8161:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:8161:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:8162:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalPerspectiveDsl.g:8162:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt128=2; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==57) ) { |
| alt128=1; |
| } |
| switch (alt128) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8163:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,57,FOLLOW_98); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8167:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt127=2; |
| int LA127_0 = input.LA(1); |
| |
| if ( (LA127_0==RULE_ID||LA127_0==57||LA127_0==82) ) { |
| alt127=1; |
| } |
| switch (alt127) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8168:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalPerspectiveDsl.g:8168:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8169:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8169:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8170:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8187:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop126: |
| do { |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==58) ) { |
| alt126=1; |
| } |
| |
| |
| switch (alt126) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8188:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,58,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8192:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8193:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8193:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8194:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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 loop126; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,59,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,82,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:8222:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8223:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8223:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8224: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" |
| // InternalPerspectiveDsl.g:8245:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8245:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalPerspectiveDsl.g:8246: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" |
| // InternalPerspectiveDsl.g:8252: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 { |
| // InternalPerspectiveDsl.g:8258: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= '>' )? )* )? ) ) |
| // InternalPerspectiveDsl.g:8259: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= '>' )? )* )? ) |
| { |
| // InternalPerspectiveDsl.g:8259: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= '>' )? )* )? ) |
| // InternalPerspectiveDsl.g:8260: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= '>' )? )* )? |
| { |
| // InternalPerspectiveDsl.g:8260:3: ( ( ruleQualifiedName ) ) |
| // InternalPerspectiveDsl.g:8261:4: ( ruleQualifiedName ) |
| { |
| // InternalPerspectiveDsl.g:8261:4: ( ruleQualifiedName ) |
| // InternalPerspectiveDsl.g:8262: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_100); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8276: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 alt133=2; |
| alt133 = dfa133.predict(input); |
| switch (alt133) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8277: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= '>' )? )* |
| { |
| // InternalPerspectiveDsl.g:8277:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalPerspectiveDsl.g:8278:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,69,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8284:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:8285:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8285:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:8286:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8303:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop129: |
| do { |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==58) ) { |
| alt129=1; |
| } |
| |
| |
| switch (alt129) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8304:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,58,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8308:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:8309:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8309:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:8310:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop129; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,70,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalPerspectiveDsl.g:8332:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop132: |
| do { |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==94) ) { |
| int LA132_2 = input.LA(2); |
| |
| if ( (LA132_2==RULE_ID) ) { |
| int LA132_3 = input.LA(3); |
| |
| if ( (synpred51_InternalPerspectiveDsl()) ) { |
| alt132=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt132) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8333:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalPerspectiveDsl.g:8333:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalPerspectiveDsl.g:8334:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalPerspectiveDsl.g:8340:6: ( () otherlv_7= '.' ) |
| // InternalPerspectiveDsl.g:8341:7: () otherlv_7= '.' |
| { |
| // InternalPerspectiveDsl.g:8341:7: () |
| // InternalPerspectiveDsl.g:8342:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,94,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8354:5: ( ( ruleValidID ) ) |
| // InternalPerspectiveDsl.g:8355:6: ( ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:8355:6: ( ruleValidID ) |
| // InternalPerspectiveDsl.g:8356: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_101); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8370:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt131=2; |
| alt131 = dfa131.predict(input); |
| switch (alt131) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8371:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalPerspectiveDsl.g:8371:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalPerspectiveDsl.g:8372:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,69,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8378:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:8379:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8379:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:8380:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8397:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop130: |
| do { |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==58) ) { |
| alt130=1; |
| } |
| |
| |
| switch (alt130) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8398:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,58,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8402:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalPerspectiveDsl.g:8403:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8403:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalPerspectiveDsl.g:8404:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop130; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,70,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop132; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalPerspectiveDsl.g:8433:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8433:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalPerspectiveDsl.g:8434: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" |
| // InternalPerspectiveDsl.g:8440: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 { |
| // InternalPerspectiveDsl.g:8446:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalPerspectiveDsl.g:8447:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8447:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==RULE_ID||LA134_0==57||LA134_0==82) ) { |
| alt134=1; |
| } |
| else if ( (LA134_0==122) ) { |
| alt134=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 134, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8448: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 : |
| // InternalPerspectiveDsl.g:8457: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" |
| // InternalPerspectiveDsl.g:8469:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8469:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalPerspectiveDsl.g:8470: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" |
| // InternalPerspectiveDsl.g:8476: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 { |
| // InternalPerspectiveDsl.g:8482:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalPerspectiveDsl.g:8483:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalPerspectiveDsl.g:8483:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalPerspectiveDsl.g:8484:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalPerspectiveDsl.g:8484:3: () |
| // InternalPerspectiveDsl.g:8485:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,122,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalPerspectiveDsl.g:8495:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt137=3; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==109) ) { |
| alt137=1; |
| } |
| else if ( (LA137_0==110) ) { |
| alt137=2; |
| } |
| switch (alt137) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8496:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalPerspectiveDsl.g:8496:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalPerspectiveDsl.g:8497:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalPerspectiveDsl.g:8497:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalPerspectiveDsl.g:8498:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalPerspectiveDsl.g:8498:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalPerspectiveDsl.g:8499:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8516:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop135: |
| do { |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==123) ) { |
| alt135=1; |
| } |
| |
| |
| switch (alt135) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8517:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalPerspectiveDsl.g:8517:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalPerspectiveDsl.g:8518:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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 loop135; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:8537:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalPerspectiveDsl.g:8537:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalPerspectiveDsl.g:8538:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalPerspectiveDsl.g:8538:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalPerspectiveDsl.g:8539:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalPerspectiveDsl.g:8539:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalPerspectiveDsl.g:8540:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:8557:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop136: |
| do { |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==123) ) { |
| alt136=1; |
| } |
| |
| |
| switch (alt136) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8558:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalPerspectiveDsl.g:8558:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalPerspectiveDsl.g:8559:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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 loop136; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalPerspectiveDsl.g:8582:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8582:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalPerspectiveDsl.g:8583: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" |
| // InternalPerspectiveDsl.g:8589: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 { |
| // InternalPerspectiveDsl.g:8595:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalPerspectiveDsl.g:8596:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:8596:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:8597:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,109,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8601:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8602:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8602:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8603: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" |
| // InternalPerspectiveDsl.g:8624:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8624:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalPerspectiveDsl.g:8625: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" |
| // InternalPerspectiveDsl.g:8631: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 { |
| // InternalPerspectiveDsl.g:8637:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalPerspectiveDsl.g:8638:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:8638:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:8639:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,123,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8643:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8644:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8644:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8645: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" |
| // InternalPerspectiveDsl.g:8666:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8666:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalPerspectiveDsl.g:8667: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" |
| // InternalPerspectiveDsl.g:8673: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 { |
| // InternalPerspectiveDsl.g:8679:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalPerspectiveDsl.g:8680:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:8680:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:8681:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,110,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8685:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8686:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8686:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8687: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" |
| // InternalPerspectiveDsl.g:8708:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8708:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalPerspectiveDsl.g:8709: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" |
| // InternalPerspectiveDsl.g:8715: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 { |
| // InternalPerspectiveDsl.g:8721:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalPerspectiveDsl.g:8722:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalPerspectiveDsl.g:8722:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalPerspectiveDsl.g:8723:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,123,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalPerspectiveDsl.g:8727:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:8728:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:8728:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:8729: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" |
| // InternalPerspectiveDsl.g:8750:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8750:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalPerspectiveDsl.g:8751: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" |
| // InternalPerspectiveDsl.g:8757: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 { |
| // InternalPerspectiveDsl.g:8763:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalPerspectiveDsl.g:8764:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalPerspectiveDsl.g:8764:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalPerspectiveDsl.g:8765:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| 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,94,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,53,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" |
| // InternalPerspectiveDsl.g:8789:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8789:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalPerspectiveDsl.g:8790: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" |
| // InternalPerspectiveDsl.g:8796: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 { |
| // InternalPerspectiveDsl.g:8802:2: (this_ID_0= RULE_ID ) |
| // InternalPerspectiveDsl.g:8803: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" |
| // InternalPerspectiveDsl.g:8813:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8813:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalPerspectiveDsl.g:8814: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" |
| // InternalPerspectiveDsl.g:8820: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 { |
| // InternalPerspectiveDsl.g:8826:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalPerspectiveDsl.g:8827:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalPerspectiveDsl.g:8827:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt138=0; |
| loop138: |
| do { |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( (LA138_0==50) ) { |
| alt138=1; |
| } |
| |
| |
| switch (alt138) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8828:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalPerspectiveDsl.g:8828:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalPerspectiveDsl.g:8829:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 ( cnt138 >= 1 ) break loop138; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(138, input); |
| throw eee; |
| } |
| cnt138++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalPerspectiveDsl.g:8849:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalPerspectiveDsl.g:8849:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalPerspectiveDsl.g:8850: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" |
| // InternalPerspectiveDsl.g:8856: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 { |
| // InternalPerspectiveDsl.g:8862:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalPerspectiveDsl.g:8863:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalPerspectiveDsl.g:8863:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt139=0; |
| loop139: |
| do { |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==RULE_ID) ) { |
| int LA139_2 = input.LA(2); |
| |
| if ( (LA139_2==94) ) { |
| alt139=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt139) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8864:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| 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,94,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt139 >= 1 ) break loop139; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(139, input); |
| throw eee; |
| } |
| cnt139++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleSashOrientation" |
| // InternalPerspectiveDsl.g:8883:1: ruleSashOrientation returns [Enumerator current=null] : ( (enumLiteral_0= 'horizontal' ) | (enumLiteral_1= 'vertical' ) ) ; |
| public final Enumerator ruleSashOrientation() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalPerspectiveDsl.g:8889:2: ( ( (enumLiteral_0= 'horizontal' ) | (enumLiteral_1= 'vertical' ) ) ) |
| // InternalPerspectiveDsl.g:8890:2: ( (enumLiteral_0= 'horizontal' ) | (enumLiteral_1= 'vertical' ) ) |
| { |
| // InternalPerspectiveDsl.g:8890:2: ( (enumLiteral_0= 'horizontal' ) | (enumLiteral_1= 'vertical' ) ) |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==124) ) { |
| alt140=1; |
| } |
| else if ( (LA140_0==125) ) { |
| alt140=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 140, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt140) { |
| case 1 : |
| // InternalPerspectiveDsl.g:8891:3: (enumLiteral_0= 'horizontal' ) |
| { |
| // InternalPerspectiveDsl.g:8891:3: (enumLiteral_0= 'horizontal' ) |
| // InternalPerspectiveDsl.g:8892:4: enumLiteral_0= 'horizontal' |
| { |
| enumLiteral_0=(Token)match(input,124,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSashOrientationAccess().getHORIZONTALEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSashOrientationAccess().getHORIZONTALEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:8899:3: (enumLiteral_1= 'vertical' ) |
| { |
| // InternalPerspectiveDsl.g:8899:3: (enumLiteral_1= 'vertical' ) |
| // InternalPerspectiveDsl.g:8900:4: enumLiteral_1= 'vertical' |
| { |
| enumLiteral_1=(Token)match(input,125,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSashOrientationAccess().getVERTICALEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSashOrientationAccess().getVERTICALEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSashOrientation" |
| |
| // $ANTLR start synpred1_InternalPerspectiveDsl |
| public final void synpred1_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:2259:5: ( '(' ) |
| // InternalPerspectiveDsl.g:2259:6: '(' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred2_InternalPerspectiveDsl |
| public final void synpred2_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:2268:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalPerspectiveDsl.g:2268:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalPerspectiveDsl.g:2268:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalPerspectiveDsl.g:2269:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalPerspectiveDsl.g:2269:8: ( ( ruleValidID ) ) |
| // InternalPerspectiveDsl.g:2270:9: ( ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:2270:9: ( ruleValidID ) |
| // InternalPerspectiveDsl.g:2271:10: ruleValidID |
| { |
| pushFollow(FOLLOW_32); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,60,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred5_InternalPerspectiveDsl |
| public final void synpred5_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:2448:5: ( ( () '#' '[' ) ) |
| // InternalPerspectiveDsl.g:2448:6: ( () '#' '[' ) |
| { |
| // InternalPerspectiveDsl.g:2448:6: ( () '#' '[' ) |
| // InternalPerspectiveDsl.g:2449:6: () '#' '[' |
| { |
| // InternalPerspectiveDsl.g:2449:6: () |
| // InternalPerspectiveDsl.g:2450:6: |
| { |
| } |
| |
| match(input,61,FOLLOW_34); if (state.failed) return ; |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred6_InternalPerspectiveDsl |
| public final void synpred6_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:2590:5: ( ( () '#' '[' ) ) |
| // InternalPerspectiveDsl.g:2590:6: ( () '#' '[' ) |
| { |
| // InternalPerspectiveDsl.g:2590:6: ( () '#' '[' ) |
| // InternalPerspectiveDsl.g:2591:6: () '#' '[' |
| { |
| // InternalPerspectiveDsl.g:2591:6: () |
| // InternalPerspectiveDsl.g:2592:6: |
| { |
| } |
| |
| match(input,61,FOLLOW_34); if (state.failed) return ; |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred7_InternalPerspectiveDsl |
| public final void synpred7_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:2818:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalPerspectiveDsl.g:2818:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalPerspectiveDsl.g:2818:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalPerspectiveDsl.g:2819:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalPerspectiveDsl.g:2819:7: () |
| // InternalPerspectiveDsl.g:2820:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:2821:7: ( ( ruleOpMultiAssign ) ) |
| // InternalPerspectiveDsl.g:2822:8: ( ruleOpMultiAssign ) |
| { |
| // InternalPerspectiveDsl.g:2822:8: ( ruleOpMultiAssign ) |
| // InternalPerspectiveDsl.g:2823:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred8_InternalPerspectiveDsl |
| public final void synpred8_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3012:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalPerspectiveDsl.g:3012:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3012:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalPerspectiveDsl.g:3013:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalPerspectiveDsl.g:3013:6: () |
| // InternalPerspectiveDsl.g:3014:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3015:6: ( ( ruleOpOr ) ) |
| // InternalPerspectiveDsl.g:3016:7: ( ruleOpOr ) |
| { |
| // InternalPerspectiveDsl.g:3016:7: ( ruleOpOr ) |
| // InternalPerspectiveDsl.g:3017:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred9_InternalPerspectiveDsl |
| public final void synpred9_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3119:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalPerspectiveDsl.g:3119:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3119:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalPerspectiveDsl.g:3120:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalPerspectiveDsl.g:3120:6: () |
| // InternalPerspectiveDsl.g:3121:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3122:6: ( ( ruleOpAnd ) ) |
| // InternalPerspectiveDsl.g:3123:7: ( ruleOpAnd ) |
| { |
| // InternalPerspectiveDsl.g:3123:7: ( ruleOpAnd ) |
| // InternalPerspectiveDsl.g:3124:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred10_InternalPerspectiveDsl |
| public final void synpred10_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3226:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalPerspectiveDsl.g:3226:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3226:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalPerspectiveDsl.g:3227:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalPerspectiveDsl.g:3227:6: () |
| // InternalPerspectiveDsl.g:3228:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3229:6: ( ( ruleOpEquality ) ) |
| // InternalPerspectiveDsl.g:3230:7: ( ruleOpEquality ) |
| { |
| // InternalPerspectiveDsl.g:3230:7: ( ruleOpEquality ) |
| // InternalPerspectiveDsl.g:3231:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred11_InternalPerspectiveDsl |
| public final void synpred11_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3354:6: ( ( () 'instanceof' ) ) |
| // InternalPerspectiveDsl.g:3354:7: ( () 'instanceof' ) |
| { |
| // InternalPerspectiveDsl.g:3354:7: ( () 'instanceof' ) |
| // InternalPerspectiveDsl.g:3355:7: () 'instanceof' |
| { |
| // InternalPerspectiveDsl.g:3355:7: () |
| // InternalPerspectiveDsl.g:3356:7: |
| { |
| } |
| |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred12_InternalPerspectiveDsl |
| public final void synpred12_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3397:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalPerspectiveDsl.g:3397:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3397:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalPerspectiveDsl.g:3398:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalPerspectiveDsl.g:3398:7: () |
| // InternalPerspectiveDsl.g:3399:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3400:7: ( ( ruleOpCompare ) ) |
| // InternalPerspectiveDsl.g:3401:8: ( ruleOpCompare ) |
| { |
| // InternalPerspectiveDsl.g:3401:8: ( ruleOpCompare ) |
| // InternalPerspectiveDsl.g:3402:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred13_InternalPerspectiveDsl |
| public final void synpred13_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3532:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalPerspectiveDsl.g:3532:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3532:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalPerspectiveDsl.g:3533:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalPerspectiveDsl.g:3533:6: () |
| // InternalPerspectiveDsl.g:3534:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3535:6: ( ( ruleOpOther ) ) |
| // InternalPerspectiveDsl.g:3536:7: ( ruleOpOther ) |
| { |
| // InternalPerspectiveDsl.g:3536:7: ( ruleOpOther ) |
| // InternalPerspectiveDsl.g:3537:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred14_InternalPerspectiveDsl |
| public final void synpred14_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3652:6: ( ( '>' '>' ) ) |
| // InternalPerspectiveDsl.g:3652:7: ( '>' '>' ) |
| { |
| // InternalPerspectiveDsl.g:3652:7: ( '>' '>' ) |
| // InternalPerspectiveDsl.g:3653:7: '>' '>' |
| { |
| match(input,70,FOLLOW_49); if (state.failed) return ; |
| match(input,70,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred15_InternalPerspectiveDsl |
| public final void synpred15_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3687:6: ( ( '<' '<' ) ) |
| // InternalPerspectiveDsl.g:3687:7: ( '<' '<' ) |
| { |
| // InternalPerspectiveDsl.g:3687:7: ( '<' '<' ) |
| // InternalPerspectiveDsl.g:3688:7: '<' '<' |
| { |
| match(input,69,FOLLOW_39); if (state.failed) return ; |
| match(input,69,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred16_InternalPerspectiveDsl |
| public final void synpred16_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3760:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalPerspectiveDsl.g:3760:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3760:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalPerspectiveDsl.g:3761:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalPerspectiveDsl.g:3761:6: () |
| // InternalPerspectiveDsl.g:3762:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3763:6: ( ( ruleOpAdd ) ) |
| // InternalPerspectiveDsl.g:3764:7: ( ruleOpAdd ) |
| { |
| // InternalPerspectiveDsl.g:3764:7: ( ruleOpAdd ) |
| // InternalPerspectiveDsl.g:3765:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred17_InternalPerspectiveDsl |
| public final void synpred17_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:3875:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalPerspectiveDsl.g:3875:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalPerspectiveDsl.g:3875:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalPerspectiveDsl.g:3876:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalPerspectiveDsl.g:3876:6: () |
| // InternalPerspectiveDsl.g:3877:6: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:3878:6: ( ( ruleOpMulti ) ) |
| // InternalPerspectiveDsl.g:3879:7: ( ruleOpMulti ) |
| { |
| // InternalPerspectiveDsl.g:3879:7: ( ruleOpMulti ) |
| // InternalPerspectiveDsl.g:3880:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred18_InternalPerspectiveDsl |
| public final void synpred18_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4110:5: ( ( () 'as' ) ) |
| // InternalPerspectiveDsl.g:4110:6: ( () 'as' ) |
| { |
| // InternalPerspectiveDsl.g:4110:6: ( () 'as' ) |
| // InternalPerspectiveDsl.g:4111:6: () 'as' |
| { |
| // InternalPerspectiveDsl.g:4111:6: () |
| // InternalPerspectiveDsl.g:4112:6: |
| { |
| } |
| |
| match(input,91,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred19_InternalPerspectiveDsl |
| public final void synpred19_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4178:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalPerspectiveDsl.g:4178:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4178:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalPerspectiveDsl.g:4179:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalPerspectiveDsl.g:4179:5: () |
| // InternalPerspectiveDsl.g:4180:5: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:4181:5: ( ( ruleOpPostfix ) ) |
| // InternalPerspectiveDsl.g:4182:6: ( ruleOpPostfix ) |
| { |
| // InternalPerspectiveDsl.g:4182:6: ( ruleOpPostfix ) |
| // InternalPerspectiveDsl.g:4183:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred20_InternalPerspectiveDsl |
| public final void synpred20_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4274:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalPerspectiveDsl.g:4274:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalPerspectiveDsl.g:4274:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalPerspectiveDsl.g:4275:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalPerspectiveDsl.g:4275:7: () |
| // InternalPerspectiveDsl.g:4276:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:4277:7: ( '.' | ( ( '::' ) ) ) |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( (LA141_0==94) ) { |
| alt141=1; |
| } |
| else if ( (LA141_0==95) ) { |
| alt141=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 141, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt141) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4278:8: '.' |
| { |
| match(input,94,FOLLOW_56); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4280:8: ( ( '::' ) ) |
| { |
| // InternalPerspectiveDsl.g:4280:8: ( ( '::' ) ) |
| // InternalPerspectiveDsl.g:4281:9: ( '::' ) |
| { |
| // InternalPerspectiveDsl.g:4281:9: ( '::' ) |
| // InternalPerspectiveDsl.g:4282:10: '::' |
| { |
| match(input,95,FOLLOW_56); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4286:7: ( ( ruleFeatureCallID ) ) |
| // InternalPerspectiveDsl.g:4287:8: ( ruleFeatureCallID ) |
| { |
| // InternalPerspectiveDsl.g:4287:8: ( ruleFeatureCallID ) |
| // InternalPerspectiveDsl.g:4288:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_32); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred21_InternalPerspectiveDsl |
| public final void synpred21_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4371:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalPerspectiveDsl.g:4371:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4371:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalPerspectiveDsl.g:4372:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4372:7: () |
| // InternalPerspectiveDsl.g:4373:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:4374:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt142=3; |
| switch ( input.LA(1) ) { |
| case 94: |
| { |
| alt142=1; |
| } |
| break; |
| case 96: |
| { |
| alt142=2; |
| } |
| break; |
| case 95: |
| { |
| alt142=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 142, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt142) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4375:8: '.' |
| { |
| match(input,94,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalPerspectiveDsl.g:4377:8: ( ( '?.' ) ) |
| { |
| // InternalPerspectiveDsl.g:4377:8: ( ( '?.' ) ) |
| // InternalPerspectiveDsl.g:4378:9: ( '?.' ) |
| { |
| // InternalPerspectiveDsl.g:4378:9: ( '?.' ) |
| // InternalPerspectiveDsl.g:4379:10: '?.' |
| { |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalPerspectiveDsl.g:4383:8: ( ( '::' ) ) |
| { |
| // InternalPerspectiveDsl.g:4383:8: ( ( '::' ) ) |
| // InternalPerspectiveDsl.g:4384:9: ( '::' ) |
| { |
| // InternalPerspectiveDsl.g:4384:9: ( '::' ) |
| // InternalPerspectiveDsl.g:4385:10: '::' |
| { |
| match(input,95,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred22_InternalPerspectiveDsl |
| public final void synpred22_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4509:7: ( ( '(' ) ) |
| // InternalPerspectiveDsl.g:4509:8: ( '(' ) |
| { |
| // InternalPerspectiveDsl.g:4509:8: ( '(' ) |
| // InternalPerspectiveDsl.g:4510:8: '(' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred23_InternalPerspectiveDsl |
| public final void synpred23_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4528:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalPerspectiveDsl.g:4528:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:4528:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalPerspectiveDsl.g:4529:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:4529:9: () |
| // InternalPerspectiveDsl.g:4530:9: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:4531:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==RULE_ID||LA144_0==57||LA144_0==82) ) { |
| alt144=1; |
| } |
| switch (alt144) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4532:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:4532:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:4533:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:4533:11: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:4534:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4537:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop143: |
| do { |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==58) ) { |
| alt143=1; |
| } |
| |
| |
| switch (alt143) { |
| case 1 : |
| // InternalPerspectiveDsl.g:4538:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,58,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:4539:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:4540:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:4540:12: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:4541:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop143; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:4546:9: ( ( '|' ) ) |
| // InternalPerspectiveDsl.g:4547:10: ( '|' ) |
| { |
| // InternalPerspectiveDsl.g:4547:10: ( '|' ) |
| // InternalPerspectiveDsl.g:4548:11: '|' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred24_InternalPerspectiveDsl |
| public final void synpred24_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4625:6: ( ( () '[' ) ) |
| // InternalPerspectiveDsl.g:4625:7: ( () '[' ) |
| { |
| // InternalPerspectiveDsl.g:4625:7: ( () '[' ) |
| // InternalPerspectiveDsl.g:4626:7: () '[' |
| { |
| // InternalPerspectiveDsl.g:4626:7: () |
| // InternalPerspectiveDsl.g:4627:7: |
| { |
| } |
| |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred25_InternalPerspectiveDsl |
| public final void synpred25_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4698:4: ( ( () 'synchronized' '(' ) ) |
| // InternalPerspectiveDsl.g:4698:5: ( () 'synchronized' '(' ) |
| { |
| // InternalPerspectiveDsl.g:4698:5: ( () 'synchronized' '(' ) |
| // InternalPerspectiveDsl.g:4699:5: () 'synchronized' '(' |
| { |
| // InternalPerspectiveDsl.g:4699:5: () |
| // InternalPerspectiveDsl.g:4700:5: |
| { |
| } |
| |
| match(input,120,FOLLOW_72); if (state.failed) return ; |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred26_InternalPerspectiveDsl |
| public final void synpred26_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4743:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalPerspectiveDsl.g:4743:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalPerspectiveDsl.g:4743:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalPerspectiveDsl.g:4744:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalPerspectiveDsl.g:4744:5: () |
| // InternalPerspectiveDsl.g:4745:5: |
| { |
| } |
| |
| match(input,104,FOLLOW_72); if (state.failed) return ; |
| match(input,57,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:4748:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:4749:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:4749:6: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:4750:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_75); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,101,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred27_InternalPerspectiveDsl |
| public final void synpred27_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:4857:4: ( ( () '[' ) ) |
| // InternalPerspectiveDsl.g:4857:5: ( () '[' ) |
| { |
| // InternalPerspectiveDsl.g:4857:5: ( () '[' ) |
| // InternalPerspectiveDsl.g:4858:5: () '[' |
| { |
| // InternalPerspectiveDsl.g:4858:5: () |
| // InternalPerspectiveDsl.g:4859:5: |
| { |
| } |
| |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred29_InternalPerspectiveDsl |
| public final void synpred29_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:5162:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalPerspectiveDsl.g:5162:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:5162:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalPerspectiveDsl.g:5163:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:5163:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==RULE_ID||LA146_0==57||LA146_0==82) ) { |
| alt146=1; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5164:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:5164:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5165:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5165:7: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5166:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5169:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop145: |
| do { |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==58) ) { |
| alt145=1; |
| } |
| |
| |
| switch (alt145) { |
| case 1 : |
| // InternalPerspectiveDsl.g:5170:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,58,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:5171:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5172:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5172:8: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5173:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop145; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:5178:5: ( ( '|' ) ) |
| // InternalPerspectiveDsl.g:5179:6: ( '|' ) |
| { |
| // InternalPerspectiveDsl.g:5179:6: ( '|' ) |
| // InternalPerspectiveDsl.g:5180:7: '|' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred31_InternalPerspectiveDsl |
| public final void synpred31_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:5571:5: ( 'else' ) |
| // InternalPerspectiveDsl.g:5571:6: 'else' |
| { |
| match(input,99,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred32_InternalPerspectiveDsl |
| public final void synpred32_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:5630:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalPerspectiveDsl.g:5630:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalPerspectiveDsl.g:5630:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalPerspectiveDsl.g:5631:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,57,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:5632:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5633:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5633:8: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5634:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_75); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,101,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred33_InternalPerspectiveDsl |
| public final void synpred33_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:5697:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalPerspectiveDsl.g:5697:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalPerspectiveDsl.g:5697:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalPerspectiveDsl.g:5698:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalPerspectiveDsl.g:5698:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:5699:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:5699:8: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:5700:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_75); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,101,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred35_InternalPerspectiveDsl |
| public final void synpred35_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:6515:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalPerspectiveDsl.g:6515:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6515:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalPerspectiveDsl.g:6516:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalPerspectiveDsl.g:6516:6: ( ( ruleJvmTypeReference ) ) |
| // InternalPerspectiveDsl.g:6517:7: ( ruleJvmTypeReference ) |
| { |
| // InternalPerspectiveDsl.g:6517:7: ( ruleJvmTypeReference ) |
| // InternalPerspectiveDsl.g:6518:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6521:6: ( ( ruleValidID ) ) |
| // InternalPerspectiveDsl.g:6522:7: ( ruleValidID ) |
| { |
| // InternalPerspectiveDsl.g:6522:7: ( ruleValidID ) |
| // InternalPerspectiveDsl.g:6523:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred36_InternalPerspectiveDsl |
| public final void synpred36_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:6827:5: ( ( '(' ) ) |
| // InternalPerspectiveDsl.g:6827:6: ( '(' ) |
| { |
| // InternalPerspectiveDsl.g:6827:6: ( '(' ) |
| // InternalPerspectiveDsl.g:6828:6: '(' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred37_InternalPerspectiveDsl |
| public final void synpred37_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:6846:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalPerspectiveDsl.g:6846:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:6846:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalPerspectiveDsl.g:6847:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:6847:7: () |
| // InternalPerspectiveDsl.g:6848:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:6849:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==RULE_ID||LA150_0==57||LA150_0==82) ) { |
| alt150=1; |
| } |
| switch (alt150) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6850:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:6850:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:6851:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:6851:9: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:6852:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6855:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop149: |
| do { |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==58) ) { |
| alt149=1; |
| } |
| |
| |
| switch (alt149) { |
| case 1 : |
| // InternalPerspectiveDsl.g:6856:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,58,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:6857:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:6858:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:6858:10: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:6859:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop149; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:6864:7: ( ( '|' ) ) |
| // InternalPerspectiveDsl.g:6865:8: ( '|' ) |
| { |
| // InternalPerspectiveDsl.g:6865:8: ( '|' ) |
| // InternalPerspectiveDsl.g:6866:9: '|' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred38_InternalPerspectiveDsl |
| public final void synpred38_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:6943:4: ( ( () '[' ) ) |
| // InternalPerspectiveDsl.g:6943:5: ( () '[' ) |
| { |
| // InternalPerspectiveDsl.g:6943:5: ( () '[' ) |
| // InternalPerspectiveDsl.g:6944:5: () '[' |
| { |
| // InternalPerspectiveDsl.g:6944:5: () |
| // InternalPerspectiveDsl.g:6945:5: |
| { |
| } |
| |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred39_InternalPerspectiveDsl |
| public final void synpred39_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7103:5: ( '<' ) |
| // InternalPerspectiveDsl.g:7103:6: '<' |
| { |
| match(input,69,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred40_InternalPerspectiveDsl |
| public final void synpred40_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7160:5: ( ( '(' ) ) |
| // InternalPerspectiveDsl.g:7160:6: ( '(' ) |
| { |
| // InternalPerspectiveDsl.g:7160:6: ( '(' ) |
| // InternalPerspectiveDsl.g:7161:6: '(' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred41_InternalPerspectiveDsl |
| public final void synpred41_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7179:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalPerspectiveDsl.g:7179:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalPerspectiveDsl.g:7179:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalPerspectiveDsl.g:7180:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalPerspectiveDsl.g:7180:7: () |
| // InternalPerspectiveDsl.g:7181:7: |
| { |
| } |
| |
| // InternalPerspectiveDsl.g:7182:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==RULE_ID||LA152_0==57||LA152_0==82) ) { |
| alt152=1; |
| } |
| switch (alt152) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7183:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalPerspectiveDsl.g:7183:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:7184:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:7184:9: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:7185:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7188:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop151: |
| do { |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( (LA151_0==58) ) { |
| alt151=1; |
| } |
| |
| |
| switch (alt151) { |
| case 1 : |
| // InternalPerspectiveDsl.g:7189:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,58,FOLLOW_46); if (state.failed) return ; |
| // InternalPerspectiveDsl.g:7190:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalPerspectiveDsl.g:7191:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalPerspectiveDsl.g:7191:10: ( ruleJvmFormalParameter ) |
| // InternalPerspectiveDsl.g:7192:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_67); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop151; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalPerspectiveDsl.g:7197:7: ( ( '|' ) ) |
| // InternalPerspectiveDsl.g:7198:8: ( '|' ) |
| { |
| // InternalPerspectiveDsl.g:7198:8: ( '|' ) |
| // InternalPerspectiveDsl.g:7199:9: '|' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred42_InternalPerspectiveDsl |
| public final void synpred42_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7276:4: ( ( () '[' ) ) |
| // InternalPerspectiveDsl.g:7276:5: ( () '[' ) |
| { |
| // InternalPerspectiveDsl.g:7276:5: ( () '[' ) |
| // InternalPerspectiveDsl.g:7277:5: () '[' |
| { |
| // InternalPerspectiveDsl.g:7277:5: () |
| // InternalPerspectiveDsl.g:7278:5: |
| { |
| } |
| |
| match(input,62,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred43_InternalPerspectiveDsl |
| public final void synpred43_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7619: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 ) |
| // InternalPerspectiveDsl.g: |
| { |
| if ( (input.LA(1)>=RULE_ID && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||(input.LA(1)>=50 && input.LA(1)<=52)||input.LA(1)==57||(input.LA(1)>=61 && input.LA(1)<=62)||input.LA(1)==69||(input.LA(1)>=85 && input.LA(1)<=86)||input.LA(1)==90||input.LA(1)==98||input.LA(1)==100||(input.LA(1)>=104 && input.LA(1)<=106)||(input.LA(1)>=109 && input.LA(1)<=118)||input.LA(1)==120 ) { |
| 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_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred44_InternalPerspectiveDsl |
| public final void synpred44_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7690:6: ( 'catch' ) |
| // InternalPerspectiveDsl.g:7690:7: 'catch' |
| { |
| match(input,121,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred45_InternalPerspectiveDsl |
| public final void synpred45_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7711:7: ( 'finally' ) |
| // InternalPerspectiveDsl.g:7711:8: 'finally' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred48_InternalPerspectiveDsl |
| public final void synpred48_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:7955:5: ( '.' ) |
| // InternalPerspectiveDsl.g:7955:6: '.' |
| { |
| match(input,94,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred49_InternalPerspectiveDsl |
| public final void synpred49_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:8081:5: ( ( () ruleArrayBrackets ) ) |
| // InternalPerspectiveDsl.g:8081:6: ( () ruleArrayBrackets ) |
| { |
| // InternalPerspectiveDsl.g:8081:6: ( () ruleArrayBrackets ) |
| // InternalPerspectiveDsl.g:8082:6: () ruleArrayBrackets |
| { |
| // InternalPerspectiveDsl.g:8082:6: () |
| // InternalPerspectiveDsl.g:8083:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred50_InternalPerspectiveDsl |
| public final void synpred50_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:8278:5: ( '<' ) |
| // InternalPerspectiveDsl.g:8278:6: '<' |
| { |
| match(input,69,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred51_InternalPerspectiveDsl |
| public final void synpred51_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:8334:6: ( ( () '.' ) ) |
| // InternalPerspectiveDsl.g:8334:7: ( () '.' ) |
| { |
| // InternalPerspectiveDsl.g:8334:7: ( () '.' ) |
| // InternalPerspectiveDsl.g:8335:7: () '.' |
| { |
| // InternalPerspectiveDsl.g:8335:7: () |
| // InternalPerspectiveDsl.g:8336:7: |
| { |
| } |
| |
| match(input,94,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalPerspectiveDsl |
| |
| // $ANTLR start synpred52_InternalPerspectiveDsl |
| public final void synpred52_InternalPerspectiveDsl_fragment() throws RecognitionException { |
| // InternalPerspectiveDsl.g:8372:7: ( '<' ) |
| // InternalPerspectiveDsl.g:8372:8: '<' |
| { |
| match(input,69,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalPerspectiveDsl |
| |
| // Delegated rules |
| |
| public final boolean synpred33_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalPerspectiveDsl_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 synpred6_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalPerspectiveDsl_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_InternalPerspectiveDsl() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalPerspectiveDsl_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 DFA19 dfa19 = new DFA19(this); |
| protected DFA22 dfa22 = new DFA22(this); |
| protected DFA28 dfa28 = new DFA28(this); |
| protected DFA31 dfa31 = new DFA31(this); |
| protected DFA33 dfa33 = new DFA33(this); |
| protected DFA43 dfa43 = new DFA43(this); |
| protected DFA46 dfa46 = new DFA46(this); |
| protected DFA62 dfa62 = new DFA62(this); |
| protected DFA61 dfa61 = new DFA61(this); |
| protected DFA63 dfa63 = new DFA63(this); |
| protected DFA65 dfa65 = new DFA65(this); |
| protected DFA74 dfa74 = new DFA74(this); |
| protected DFA81 dfa81 = new DFA81(this); |
| protected DFA80 dfa80 = new DFA80(this); |
| protected DFA103 dfa103 = new DFA103(this); |
| protected DFA102 dfa102 = new DFA102(this); |
| protected DFA104 dfa104 = new DFA104(this); |
| protected DFA108 dfa108 = new DFA108(this); |
| protected DFA111 dfa111 = new DFA111(this); |
| protected DFA110 dfa110 = new DFA110(this); |
| protected DFA112 dfa112 = new DFA112(this); |
| protected DFA115 dfa115 = new DFA115(this); |
| protected DFA133 dfa133 = new DFA133(this); |
| protected DFA131 dfa131 = new DFA131(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\66\1\uffff\1\136\1\uffff\1\65\1\uffff\1\136\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\56\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\44\uffff\1\5\4\uffff\1\5\46\uffff\1\4", |
| "", |
| "\1\6\60\uffff\1\7", |
| "", |
| "\1\5\44\uffff\1\5\4\uffff\1\5\46\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 DFA19 extends DFA { |
| |
| public DFA19(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 19; |
| 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 "2048: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\170\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\43\uffff\3\2\3\uffff\2\2\1\uffff\1\42\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 DFA22 extends DFA { |
| |
| public DFA22(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 22; |
| 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 "2265: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 LA22_1 = input.LA(1); |
| |
| |
| int index22_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalPerspectiveDsl()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index22_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 22, _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\170\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\43\uffff\3\2\3\uffff\2\2\3\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 DFA28 extends DFA { |
| |
| public DFA28(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 28; |
| 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 "2445: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 LA28_1 = input.LA(1); |
| |
| |
| int index28_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalPerspectiveDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index28_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 28, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA31 extends DFA { |
| |
| public DFA31(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 31; |
| 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 "2587: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 LA31_1 = input.LA(1); |
| |
| |
| int index31_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalPerspectiveDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index31_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 31, _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\171\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\1\0\1\6\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\42\uffff\4\10\1\uffff\1\10\1\uffff\3\10\1\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 DFA33 extends DFA { |
| |
| public DFA33(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 33; |
| 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 "2816: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 LA33_6 = input.LA(1); |
| |
| |
| int index33_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_6); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA33_1 = input.LA(1); |
| |
| |
| int index33_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA33_2 = input.LA(1); |
| |
| |
| int index33_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_2); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA33_3 = input.LA(1); |
| |
| |
| int index33_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_3); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA33_4 = input.LA(1); |
| |
| |
| int index33_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_4); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA33_5 = input.LA(1); |
| |
| |
| int index33_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_5); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA33_7 = input.LA(1); |
| |
| |
| int index33_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalPerspectiveDsl()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index33_7); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 33, _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\171\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\3\1\4\1\6\1\7\1\5\1\0\1\1\1\2\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\42\uffff\4\1\1\uffff\1\1\1\uffff\3\1\1\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 DFA43 extends DFA { |
| |
| public DFA43(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 43; |
| 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 3530: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 LA43_7 = input.LA(1); |
| |
| |
| int index43_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_7); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA43_8 = input.LA(1); |
| |
| |
| int index43_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_8); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA43_9 = input.LA(1); |
| |
| |
| int index43_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_9); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA43_2 = input.LA(1); |
| |
| |
| int index43_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_2); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA43_3 = input.LA(1); |
| |
| |
| int index43_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_3); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA43_6 = input.LA(1); |
| |
| |
| int index43_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA43_4 = input.LA(1); |
| |
| |
| int index43_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_4); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA43_5 = input.LA(1); |
| |
| |
| int index43_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalPerspectiveDsl()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index43_5); |
| 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_34s = "\1\105\2\uffff\1\106\7\uffff"; |
| static final String dfa_35s = "\1\124\2\uffff\1\121\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\3\1\6"; |
| 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\12\12\uffff\1\11", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| 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 DFA46 extends DFA { |
| |
| public DFA46(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 46; |
| 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 "3606: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\171\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\42\uffff\4\2\1\uffff\1\2\1\uffff\1\1\2\2\1\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 DFA62 extends DFA { |
| |
| public DFA62(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 62; |
| 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 "4507: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 LA62_1 = input.LA(1); |
| |
| |
| int index62_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index62_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 62, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\170\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\43\uffff\3\5\4\uffff\1\2\1\uffff\1\43\1\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 DFA61 extends DFA { |
| |
| public DFA61(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 61; |
| 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 "4526: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 LA61_0 = input.LA(1); |
| |
| |
| int index61_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA61_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA61_0==57) ) {s = 2;} |
| |
| else if ( (LA61_0==82) && (synpred23_InternalPerspectiveDsl())) {s = 3;} |
| |
| else if ( (LA61_0==97) && (synpred23_InternalPerspectiveDsl())) {s = 4;} |
| |
| else if ( ((LA61_0>=RULE_STRING && LA61_0<=RULE_DECIMAL)||LA61_0==14||(LA61_0>=50 && LA61_0<=52)||(LA61_0>=61 && LA61_0<=62)||LA61_0==69||(LA61_0>=85 && LA61_0<=86)||LA61_0==90||LA61_0==98||LA61_0==100||(LA61_0>=104 && LA61_0<=106)||(LA61_0>=109 && LA61_0<=118)||LA61_0==120) ) {s = 5;} |
| |
| else if ( (LA61_0==59) ) {s = 35;} |
| |
| |
| input.seek(index61_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA61_1 = input.LA(1); |
| |
| |
| int index61_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index61_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA61_2 = input.LA(1); |
| |
| |
| int index61_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index61_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 61, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\5\uffff\2\2\42\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\1\2\1\1\42\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA63 extends DFA { |
| |
| public DFA63(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 63; |
| 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 "4624: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 LA63_1 = input.LA(1); |
| |
| |
| int index63_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index63_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 63, _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\170\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\43\uffff\3\5\4\uffff\1\35\3\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 DFA65 extends DFA { |
| |
| public DFA65(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 65; |
| 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 "4669: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 LA65_0 = input.LA(1); |
| |
| |
| int index65_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA65_0==111) ) {s = 1;} |
| |
| else if ( (LA65_0==14) ) {s = 2;} |
| |
| else if ( (LA65_0==100) ) {s = 3;} |
| |
| else if ( (LA65_0==120) && (synpred25_InternalPerspectiveDsl())) {s = 4;} |
| |
| else if ( (LA65_0==RULE_ID||(LA65_0>=50 && LA65_0<=52)||LA65_0==69||(LA65_0>=109 && LA65_0<=110)) ) {s = 5;} |
| |
| else if ( ((LA65_0>=RULE_STRING && LA65_0<=RULE_DECIMAL)||(LA65_0>=61 && LA65_0<=62)||(LA65_0>=112 && LA65_0<=115)) ) {s = 12;} |
| |
| else if ( (LA65_0==98) ) {s = 22;} |
| |
| else if ( (LA65_0==104) ) {s = 23;} |
| |
| else if ( (LA65_0==105) ) {s = 24;} |
| |
| else if ( (LA65_0==106) ) {s = 25;} |
| |
| else if ( (LA65_0==116) ) {s = 26;} |
| |
| else if ( (LA65_0==117) ) {s = 27;} |
| |
| else if ( (LA65_0==118) ) {s = 28;} |
| |
| else if ( (LA65_0==57) ) {s = 29;} |
| |
| |
| input.seek(index65_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA65_23 = input.LA(1); |
| |
| |
| int index65_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalPerspectiveDsl()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index65_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 65, _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\170\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\43\uffff\3\5\4\uffff\1\2\3\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 DFA74 extends DFA { |
| |
| public DFA74(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 74; |
| 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 "5161: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 LA74_0 = input.LA(1); |
| |
| |
| int index74_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA74_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA74_0==57) ) {s = 2;} |
| |
| else if ( (LA74_0==82) && (synpred29_InternalPerspectiveDsl())) {s = 3;} |
| |
| else if ( (LA74_0==97) && (synpred29_InternalPerspectiveDsl())) {s = 4;} |
| |
| else if ( ((LA74_0>=RULE_STRING && LA74_0<=RULE_DECIMAL)||LA74_0==14||(LA74_0>=50 && LA74_0<=52)||(LA74_0>=61 && LA74_0<=63)||LA74_0==69||(LA74_0>=85 && LA74_0<=86)||LA74_0==90||LA74_0==98||LA74_0==100||(LA74_0>=104 && LA74_0<=118)||LA74_0==120) ) {s = 5;} |
| |
| |
| input.seek(index74_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA74_1 = input.LA(1); |
| |
| |
| int index74_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index74_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA74_2 = input.LA(1); |
| |
| |
| int index74_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index74_2); |
| 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_64s = { |
| "\5\2\5\uffff\1\2\43\uffff\3\2\4\uffff\1\1\3\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 DFA81 extends DFA { |
| |
| public DFA81(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 81; |
| 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 "5627: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 LA81_1 = input.LA(1); |
| |
| |
| int index81_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalPerspectiveDsl()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index81_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 81, _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\170\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\43\uffff\3\4\4\uffff\1\2\3\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 DFA80 extends DFA { |
| |
| public DFA80(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 80; |
| 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 "5696: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 LA80_0 = input.LA(1); |
| |
| |
| int index80_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA80_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA80_0==57) ) {s = 2;} |
| |
| else if ( (LA80_0==82) && (synpred33_InternalPerspectiveDsl())) {s = 3;} |
| |
| else if ( ((LA80_0>=RULE_STRING && LA80_0<=RULE_DECIMAL)||LA80_0==14||(LA80_0>=50 && LA80_0<=52)||(LA80_0>=61 && LA80_0<=62)||LA80_0==69||(LA80_0>=85 && LA80_0<=86)||LA80_0==90||LA80_0==98||LA80_0==100||(LA80_0>=104 && LA80_0<=106)||(LA80_0>=109 && LA80_0<=118)||LA80_0==120) ) {s = 4;} |
| |
| |
| input.seek(index80_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA80_1 = input.LA(1); |
| |
| |
| int index80_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalPerspectiveDsl()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index80_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA80_2 = input.LA(1); |
| |
| |
| int index80_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalPerspectiveDsl()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index80_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 80, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA103 extends DFA { |
| |
| public DFA103(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 103; |
| 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 "6825: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 LA103_1 = input.LA(1); |
| |
| |
| int index103_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index103_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 103, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA102 extends DFA { |
| |
| public DFA102(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 102; |
| 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 "6844: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 LA102_0 = input.LA(1); |
| |
| |
| int index102_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA102_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA102_0==57) ) {s = 2;} |
| |
| else if ( (LA102_0==82) && (synpred37_InternalPerspectiveDsl())) {s = 3;} |
| |
| else if ( (LA102_0==97) && (synpred37_InternalPerspectiveDsl())) {s = 4;} |
| |
| else if ( ((LA102_0>=RULE_STRING && LA102_0<=RULE_DECIMAL)||LA102_0==14||(LA102_0>=50 && LA102_0<=52)||(LA102_0>=61 && LA102_0<=62)||LA102_0==69||(LA102_0>=85 && LA102_0<=86)||LA102_0==90||LA102_0==98||LA102_0==100||(LA102_0>=104 && LA102_0<=106)||(LA102_0>=109 && LA102_0<=118)||LA102_0==120) ) {s = 5;} |
| |
| else if ( (LA102_0==59) ) {s = 35;} |
| |
| |
| input.seek(index102_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA102_1 = input.LA(1); |
| |
| |
| int index102_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index102_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA102_2 = input.LA(1); |
| |
| |
| int index102_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index102_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 102, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA104 extends DFA { |
| |
| public DFA104(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 104; |
| 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 "6942: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 LA104_1 = input.LA(1); |
| |
| |
| int index104_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index104_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 104, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\42\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\10\2\1\1\33\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA108 extends DFA { |
| |
| public DFA108(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 108; |
| 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 "7101: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 LA108_1 = input.LA(1); |
| |
| |
| int index108_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index108_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 108, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA111 extends DFA { |
| |
| public DFA111(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 111; |
| 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 "7158: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 LA111_1 = input.LA(1); |
| |
| |
| int index111_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index111_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 111, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA110 extends DFA { |
| |
| public DFA110(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 110; |
| 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 "7177: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 LA110_0 = input.LA(1); |
| |
| |
| int index110_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA110_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA110_0==57) ) {s = 2;} |
| |
| else if ( (LA110_0==82) && (synpred41_InternalPerspectiveDsl())) {s = 3;} |
| |
| else if ( (LA110_0==97) && (synpred41_InternalPerspectiveDsl())) {s = 4;} |
| |
| else if ( ((LA110_0>=RULE_STRING && LA110_0<=RULE_DECIMAL)||LA110_0==14||(LA110_0>=50 && LA110_0<=52)||(LA110_0>=61 && LA110_0<=62)||LA110_0==69||(LA110_0>=85 && LA110_0<=86)||LA110_0==90||LA110_0==98||LA110_0==100||(LA110_0>=104 && LA110_0<=106)||(LA110_0>=109 && LA110_0<=118)||LA110_0==120) ) {s = 5;} |
| |
| else if ( (LA110_0==59) ) {s = 35;} |
| |
| |
| input.seek(index110_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA110_1 = input.LA(1); |
| |
| |
| int index110_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index110_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA110_2 = input.LA(1); |
| |
| |
| int index110_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalPerspectiveDsl()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index110_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 110, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA112 extends DFA { |
| |
| public DFA112(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 112; |
| 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 "7275: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 LA112_1 = input.LA(1); |
| |
| |
| int index112_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index112_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 112, _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\171\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\24\1\23\1\25\5\uffff\1\12\1\41\42\uffff\1\4\1\3\1\5\1\41\1\uffff\1\41\1\uffff\1\40\2\41\1\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 DFA115 extends DFA { |
| |
| public DFA115(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 115; |
| 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 "7618: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 LA115_1 = input.LA(1); |
| |
| |
| int index115_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA115_2 = input.LA(1); |
| |
| |
| int index115_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA115_3 = input.LA(1); |
| |
| |
| int index115_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA115_4 = input.LA(1); |
| |
| |
| int index115_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA115_5 = input.LA(1); |
| |
| |
| int index115_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA115_6 = input.LA(1); |
| |
| |
| int index115_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA115_7 = input.LA(1); |
| |
| |
| int index115_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA115_8 = input.LA(1); |
| |
| |
| int index115_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA115_9 = input.LA(1); |
| |
| |
| int index115_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA115_10 = input.LA(1); |
| |
| |
| int index115_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA115_11 = input.LA(1); |
| |
| |
| int index115_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA115_12 = input.LA(1); |
| |
| |
| int index115_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA115_13 = input.LA(1); |
| |
| |
| int index115_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA115_14 = input.LA(1); |
| |
| |
| int index115_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA115_15 = input.LA(1); |
| |
| |
| int index115_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA115_16 = input.LA(1); |
| |
| |
| int index115_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA115_17 = input.LA(1); |
| |
| |
| int index115_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA115_18 = input.LA(1); |
| |
| |
| int index115_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA115_19 = input.LA(1); |
| |
| |
| int index115_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA115_20 = input.LA(1); |
| |
| |
| int index115_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA115_21 = input.LA(1); |
| |
| |
| int index115_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA115_22 = input.LA(1); |
| |
| |
| int index115_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA115_23 = input.LA(1); |
| |
| |
| int index115_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA115_24 = input.LA(1); |
| |
| |
| int index115_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA115_25 = input.LA(1); |
| |
| |
| int index115_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA115_26 = input.LA(1); |
| |
| |
| int index115_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA115_27 = input.LA(1); |
| |
| |
| int index115_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA115_28 = input.LA(1); |
| |
| |
| int index115_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA115_29 = input.LA(1); |
| |
| |
| int index115_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA115_30 = input.LA(1); |
| |
| |
| int index115_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA115_31 = input.LA(1); |
| |
| |
| int index115_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA115_32 = input.LA(1); |
| |
| |
| int index115_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalPerspectiveDsl()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index115_32); |
| 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; |
| } |
| } |
| 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\173\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\42\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\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 DFA133 extends DFA { |
| |
| public DFA133(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 133; |
| 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 "8276: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 LA133_1 = input.LA(1); |
| |
| |
| int index133_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalPerspectiveDsl()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index133_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 133, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA131 extends DFA { |
| |
| public DFA131(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 131; |
| 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 "8370: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 LA131_1 = input.LA(1); |
| |
| |
| int index131_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalPerspectiveDsl()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index131_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 131, _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[]{0x0000000000002002L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000018000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000764000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000744000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000080000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000704000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000018808000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000007204000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000000000L,0x3000000000000000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000006204000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000064300002L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x000233FF80000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000040000000000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000080000000000L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000008000000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000400000000000L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0001800000000002L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0048000000000010L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0010000000000010L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0020000000000010L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0080000000000002L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0200000000000002L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x6B1C0000000041F0L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0C00000000000000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0800000000000000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x1000000000000000L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x631C0000000041F0L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x4000000000000000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0xE31C0000000041F0L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x8400000000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0400000000000002L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000000000002L,0x000000000000007FL}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000000000L,0x00000000000000C0L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000080L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000000002L,0x0000000000003C00L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000000000002L,0x00000000000040E0L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0200000000000010L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000000002L,0x00000000001F8060L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040020L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000000000002L,0x0000000000600000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0020000000000002L,0x0000000003800000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0000000000000002L,0x0000000008000000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000002L,0x0000000030000000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000002L,0x00000001C0000000L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x001C000000000010L,0x0000200000000000L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x001C000000000010L,0x0000600000000020L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0200000000000010L,0x0400000000040000L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0400000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x4200000000000002L,0x00000001C0000000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x6B1C0000000041F0L,0x017FE71604640020L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x4000000000000002L,0x00000001C0000000L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x631C00000000C1F0L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0400000000008000L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0xE31C0000000041F0L,0x017FFF1604640020L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0400000000000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0xE31C0000000041F0L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x8000000000000000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x639C0000000041F2L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x631C0000000041F2L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0200000000000000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000002L,0x0000000800000000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x631C0000000041F0L,0x017FE71404640020L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0600000000008010L,0x000000E000040000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0400000000000000L,0x000000A000000000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0400000000000000L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x639C0000000041F0L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0480000000000000L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x631C0000000041F0L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x639C0000000041F0L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0080000000000000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x631C00000000C1F0L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x639C00000000C1F0L,0x017FFF1404600020L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x1000000000000002L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x4200000000000002L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x4000000000000002L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x4200000000000002L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x4800000000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x631C0000000041F2L,0x017FE71404600020L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000000L,0x0280000000000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0280000000000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000140L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0A00000000000010L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0000000040000020L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000002L,0x0000600000000000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000002L,0x0800000000000000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0020000000000000L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0004000000000002L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |