| package org.eclipse.qvtd.xtext.qvtbase.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.qvtd.xtext.qvtbase.services.QVTbaseGrammarAccess; |
| |
| |
| |
| 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, 2020 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| *******************************************************************************/ |
| @SuppressWarnings("all") |
| public class InternalQVTbaseParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_SINGLE_QUOTED_STRING", "RULE_UNQUOTED_STRING", "RULE_INT", "RULE_SIMPLE_ID", "RULE_ESCAPED_ID", "RULE_ESCAPED_CHARACTER", "RULE_LETTER_CHARACTER", "RULE_DOUBLE_QUOTED_STRING", "RULE_ML_SINGLE_QUOTED_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'static'", "'definition'", "'attribute'", "':'", "'='", "'{'", "'derived'", "'!derived'", "'id'", "'!id'", "'ordered'", "'!ordered'", "'readonly'", "'!readonly'", "'transient'", "'!transient'", "'unique'", "'!unique'", "'unsettable'", "'!unsettable'", "'volatile'", "'!volatile'", "','", "'}'", "'initial'", "';'", "'derivation'", "'primitive'", "'datatype'", "'serializable'", "'!serializable'", "'enum'", "'literal'", "'operation'", "'('", "')'", "'throws'", "'body'", "'property'", "'#'", "'composes'", "'!composes'", "'resolve'", "'!resolve'", "'input'", "'output'", "'via'", "'iterates'", "'abstract'", "'class'", "'extends'", "'interface'", "'-'", "'not'", "'not2'", "'*'", "'/'", "'+'", "'>'", "'<'", "'>='", "'<='", "'<>'", "'and'", "'and2'", "'implies'", "'implies2'", "'or'", "'or2'", "'xor'", "'xor2'", "'.'", "'->'", "'?.'", "'?->'", "'Map'", "'Tuple'", "'Boolean'", "'Integer'", "'Real'", "'String'", "'UnlimitedNatural'", "'OclAny'", "'OclInvalid'", "'OclVoid'", "'Set'", "'Bag'", "'Sequence'", "'Collection'", "'OrderedSet'", "'..'", "'++'", "'Lambda'", "'<-'", "'true'", "'false'", "'invalid'", "'null'", "'@'", "'pre'", "'['", "']'", "'in'", "'|'", "'if'", "'then'", "'else'", "'endif'", "'elseif'", "'let'", "'self'", "'|?'", "'|1'", "'?'", "'::'", "'&&'" |
| }; |
| 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__132=132; |
| public static final int T__60=60; |
| public static final int T__61=61; |
| public static final int T__131=131; |
| public static final int T__130=130; |
| public static final int RULE_INT=6; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=13; |
| public static final int T__67=67; |
| public static final int T__129=129; |
| 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__126=126; |
| 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__128=128; |
| public static final int T__65=65; |
| public static final int T__127=127; |
| 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 RULE_SINGLE_QUOTED_STRING=4; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int RULE_DOUBLE_QUOTED_STRING=11; |
| 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 RULE_ESCAPED_ID=8; |
| 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 RULE_LETTER_CHARACTER=10; |
| public static final int T__19=19; |
| 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 RULE_ESCAPED_CHARACTER=9; |
| public static final int T__95=95; |
| public static final int RULE_ML_SINGLE_QUOTED_STRING=12; |
| 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 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_UNQUOTED_STRING=5; |
| public static final int RULE_SL_COMMENT=14; |
| 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 RULE_SIMPLE_ID=7; |
| public static final int T__83=83; |
| public static final int T__112=112; |
| public static final int RULE_WS=15; |
| public static final int RULE_ANY_OTHER=16; |
| 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 InternalQVTbaseParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalQVTbaseParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalQVTbaseParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalQVTbase.g"; } |
| |
| |
| |
| /* |
| This grammar contains a lot of empty actions to work around a bug in ANTLR. |
| Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases. |
| */ |
| |
| private QVTbaseGrammarAccess grammarAccess; |
| |
| public InternalQVTbaseParser(TokenStream input, QVTbaseGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "AttributeCS"; |
| } |
| |
| @Override |
| protected QVTbaseGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleAttributeCS" |
| // InternalQVTbase.g:79:1: entryRuleAttributeCS returns [EObject current=null] : iv_ruleAttributeCS= ruleAttributeCS EOF ; |
| public final EObject entryRuleAttributeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleAttributeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:79:52: (iv_ruleAttributeCS= ruleAttributeCS EOF ) |
| // InternalQVTbase.g:80:2: iv_ruleAttributeCS= ruleAttributeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getAttributeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleAttributeCS=ruleAttributeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleAttributeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleAttributeCS" |
| |
| |
| // $ANTLR start "ruleAttributeCS" |
| // InternalQVTbase.g:86:1: ruleAttributeCS returns [EObject current=null] : ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'attribute' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) ) ; |
| public final EObject ruleAttributeCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_qualifiers_0_0=null; |
| Token lv_qualifiers_1_0=null; |
| Token lv_qualifiers_2_0=null; |
| Token lv_qualifiers_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token lv_default_9_0=null; |
| Token otherlv_10=null; |
| Token lv_qualifiers_11_0=null; |
| Token lv_qualifiers_12_0=null; |
| Token lv_qualifiers_13_0=null; |
| Token lv_qualifiers_14_0=null; |
| Token lv_qualifiers_15_0=null; |
| Token lv_qualifiers_16_0=null; |
| Token lv_qualifiers_17_0=null; |
| Token lv_qualifiers_18_0=null; |
| Token lv_qualifiers_19_0=null; |
| Token lv_qualifiers_20_0=null; |
| Token lv_qualifiers_21_0=null; |
| Token lv_qualifiers_22_0=null; |
| Token lv_qualifiers_23_0=null; |
| Token lv_qualifiers_24_0=null; |
| Token lv_qualifiers_25_0=null; |
| Token lv_qualifiers_26_0=null; |
| Token otherlv_27=null; |
| Token otherlv_28=null; |
| Token otherlv_29=null; |
| Token otherlv_30=null; |
| Token otherlv_32=null; |
| Token otherlv_34=null; |
| Token otherlv_35=null; |
| Token otherlv_37=null; |
| Token otherlv_39=null; |
| Token otherlv_40=null; |
| Token otherlv_41=null; |
| AntlrDatatypeRuleToken lv_name_5_0 = null; |
| |
| EObject lv_ownedType_7_0 = null; |
| |
| EObject lv_ownedDefaultExpressions_33_0 = null; |
| |
| EObject lv_ownedDefaultExpressions_38_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:92:2: ( ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'attribute' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) ) ) |
| // InternalQVTbase.g:93:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'attribute' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) ) |
| { |
| // InternalQVTbase.g:93:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'attribute' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) ) |
| // InternalQVTbase.g:94:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'attribute' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) |
| { |
| // InternalQVTbase.g:94:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? |
| int alt3=3; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==17) ) { |
| alt3=1; |
| } |
| else if ( (LA3_0==18) ) { |
| alt3=2; |
| } |
| switch (alt3) { |
| case 1 : |
| // InternalQVTbase.g:95:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| { |
| // InternalQVTbase.g:95:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| // InternalQVTbase.g:96:5: ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? |
| { |
| // InternalQVTbase.g:96:5: ( (lv_qualifiers_0_0= 'static' ) ) |
| // InternalQVTbase.g:97:6: (lv_qualifiers_0_0= 'static' ) |
| { |
| // InternalQVTbase.g:97:6: (lv_qualifiers_0_0= 'static' ) |
| // InternalQVTbase.g:98:7: lv_qualifiers_0_0= 'static' |
| { |
| lv_qualifiers_0_0=(Token)match(input,17,FollowSets000.FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_0_0, grammarAccess.getAttributeCSAccess().getQualifiersStaticKeyword_0_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_0_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:110:5: ( (lv_qualifiers_1_0= 'definition' ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==18) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalQVTbase.g:111:6: (lv_qualifiers_1_0= 'definition' ) |
| { |
| // InternalQVTbase.g:111:6: (lv_qualifiers_1_0= 'definition' ) |
| // InternalQVTbase.g:112:7: lv_qualifiers_1_0= 'definition' |
| { |
| lv_qualifiers_1_0=(Token)match(input,18,FollowSets000.FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_1_0, grammarAccess.getAttributeCSAccess().getQualifiersDefinitionKeyword_0_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_1_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:126:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| { |
| // InternalQVTbase.g:126:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| // InternalQVTbase.g:127:5: ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? |
| { |
| // InternalQVTbase.g:127:5: ( (lv_qualifiers_2_0= 'definition' ) ) |
| // InternalQVTbase.g:128:6: (lv_qualifiers_2_0= 'definition' ) |
| { |
| // InternalQVTbase.g:128:6: (lv_qualifiers_2_0= 'definition' ) |
| // InternalQVTbase.g:129:7: lv_qualifiers_2_0= 'definition' |
| { |
| lv_qualifiers_2_0=(Token)match(input,18,FollowSets000.FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_2_0, grammarAccess.getAttributeCSAccess().getQualifiersDefinitionKeyword_0_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_2_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:141:5: ( (lv_qualifiers_3_0= 'static' ) )? |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==17) ) { |
| alt2=1; |
| } |
| switch (alt2) { |
| case 1 : |
| // InternalQVTbase.g:142:6: (lv_qualifiers_3_0= 'static' ) |
| { |
| // InternalQVTbase.g:142:6: (lv_qualifiers_3_0= 'static' ) |
| // InternalQVTbase.g:143:7: lv_qualifiers_3_0= 'static' |
| { |
| lv_qualifiers_3_0=(Token)match(input,17,FollowSets000.FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_3_0, grammarAccess.getAttributeCSAccess().getQualifiersStaticKeyword_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_3_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,19,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getAttributeCSAccess().getAttributeKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:161:3: ( (lv_name_5_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:162:4: (lv_name_5_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:162:4: (lv_name_5_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:163:5: lv_name_5_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getNameUnrestrictedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_name_5_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:180:3: (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==20) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalQVTbase.g:181:4: otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) |
| { |
| otherlv_6=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getAttributeCSAccess().getColonKeyword_3_0()); |
| |
| } |
| // InternalQVTbase.g:185:4: ( (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) ) |
| // InternalQVTbase.g:186:5: (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) |
| { |
| // InternalQVTbase.g:186:5: (lv_ownedType_7_0= ruleTypedMultiplicityRefCS ) |
| // InternalQVTbase.g:187:6: lv_ownedType_7_0= ruleTypedMultiplicityRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getOwnedTypeTypedMultiplicityRefCSParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_9); |
| lv_ownedType_7_0=ruleTypedMultiplicityRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_7_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedMultiplicityRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:205:3: (otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==21) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalQVTbase.g:206:4: otherlv_8= '=' ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) |
| { |
| otherlv_8=(Token)match(input,21,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getAttributeCSAccess().getEqualsSignKeyword_4_0()); |
| |
| } |
| // InternalQVTbase.g:210:4: ( (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) ) |
| // InternalQVTbase.g:211:5: (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) |
| { |
| // InternalQVTbase.g:211:5: (lv_default_9_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:212:6: lv_default_9_0= RULE_SINGLE_QUOTED_STRING |
| { |
| lv_default_9_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_default_9_0, grammarAccess.getAttributeCSAccess().getDefaultSINGLE_QUOTED_STRINGTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "default", |
| lv_default_9_0, |
| "org.eclipse.ocl.xtext.base.Base.SINGLE_QUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:229:3: (otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==22) ) { |
| int LA9_1 = input.LA(2); |
| |
| if ( ((LA9_1>=23 && LA9_1<=38)) ) { |
| alt9=1; |
| } |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalQVTbase.g:230:4: otherlv_10= '{' ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ otherlv_28= '}' |
| { |
| otherlv_10=(Token)match(input,22,FollowSets000.FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getAttributeCSAccess().getLeftCurlyBracketKeyword_5_0()); |
| |
| } |
| // InternalQVTbase.g:234:4: ( ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? )+ |
| int cnt8=0; |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( ((LA8_0>=23 && LA8_0<=38)) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalQVTbase.g:235:5: ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) (otherlv_27= ',' )? |
| { |
| // InternalQVTbase.g:235:5: ( ( (lv_qualifiers_11_0= 'derived' ) ) | ( (lv_qualifiers_12_0= '!derived' ) ) | ( (lv_qualifiers_13_0= 'id' ) ) | ( (lv_qualifiers_14_0= '!id' ) ) | ( (lv_qualifiers_15_0= 'ordered' ) ) | ( (lv_qualifiers_16_0= '!ordered' ) ) | ( (lv_qualifiers_17_0= 'readonly' ) ) | ( (lv_qualifiers_18_0= '!readonly' ) ) | ( (lv_qualifiers_19_0= 'transient' ) ) | ( (lv_qualifiers_20_0= '!transient' ) ) | ( (lv_qualifiers_21_0= 'unique' ) ) | ( (lv_qualifiers_22_0= '!unique' ) ) | ( (lv_qualifiers_23_0= 'unsettable' ) ) | ( (lv_qualifiers_24_0= '!unsettable' ) ) | ( (lv_qualifiers_25_0= 'volatile' ) ) | ( (lv_qualifiers_26_0= '!volatile' ) ) ) |
| int alt6=16; |
| switch ( input.LA(1) ) { |
| case 23: |
| { |
| alt6=1; |
| } |
| break; |
| case 24: |
| { |
| alt6=2; |
| } |
| break; |
| case 25: |
| { |
| alt6=3; |
| } |
| break; |
| case 26: |
| { |
| alt6=4; |
| } |
| break; |
| case 27: |
| { |
| alt6=5; |
| } |
| break; |
| case 28: |
| { |
| alt6=6; |
| } |
| break; |
| case 29: |
| { |
| alt6=7; |
| } |
| break; |
| case 30: |
| { |
| alt6=8; |
| } |
| break; |
| case 31: |
| { |
| alt6=9; |
| } |
| break; |
| case 32: |
| { |
| alt6=10; |
| } |
| break; |
| case 33: |
| { |
| alt6=11; |
| } |
| break; |
| case 34: |
| { |
| alt6=12; |
| } |
| break; |
| case 35: |
| { |
| alt6=13; |
| } |
| break; |
| case 36: |
| { |
| alt6=14; |
| } |
| break; |
| case 37: |
| { |
| alt6=15; |
| } |
| break; |
| case 38: |
| { |
| alt6=16; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 6, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt6) { |
| case 1 : |
| // InternalQVTbase.g:236:6: ( (lv_qualifiers_11_0= 'derived' ) ) |
| { |
| // InternalQVTbase.g:236:6: ( (lv_qualifiers_11_0= 'derived' ) ) |
| // InternalQVTbase.g:237:7: (lv_qualifiers_11_0= 'derived' ) |
| { |
| // InternalQVTbase.g:237:7: (lv_qualifiers_11_0= 'derived' ) |
| // InternalQVTbase.g:238:8: lv_qualifiers_11_0= 'derived' |
| { |
| lv_qualifiers_11_0=(Token)match(input,23,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_11_0, grammarAccess.getAttributeCSAccess().getQualifiersDerivedKeyword_5_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_11_0, "derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:251:6: ( (lv_qualifiers_12_0= '!derived' ) ) |
| { |
| // InternalQVTbase.g:251:6: ( (lv_qualifiers_12_0= '!derived' ) ) |
| // InternalQVTbase.g:252:7: (lv_qualifiers_12_0= '!derived' ) |
| { |
| // InternalQVTbase.g:252:7: (lv_qualifiers_12_0= '!derived' ) |
| // InternalQVTbase.g:253:8: lv_qualifiers_12_0= '!derived' |
| { |
| lv_qualifiers_12_0=(Token)match(input,24,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_12_0, grammarAccess.getAttributeCSAccess().getQualifiersDerivedKeyword_5_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_12_0, "!derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:266:6: ( (lv_qualifiers_13_0= 'id' ) ) |
| { |
| // InternalQVTbase.g:266:6: ( (lv_qualifiers_13_0= 'id' ) ) |
| // InternalQVTbase.g:267:7: (lv_qualifiers_13_0= 'id' ) |
| { |
| // InternalQVTbase.g:267:7: (lv_qualifiers_13_0= 'id' ) |
| // InternalQVTbase.g:268:8: lv_qualifiers_13_0= 'id' |
| { |
| lv_qualifiers_13_0=(Token)match(input,25,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_13_0, grammarAccess.getAttributeCSAccess().getQualifiersIdKeyword_5_1_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_13_0, "id"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:281:6: ( (lv_qualifiers_14_0= '!id' ) ) |
| { |
| // InternalQVTbase.g:281:6: ( (lv_qualifiers_14_0= '!id' ) ) |
| // InternalQVTbase.g:282:7: (lv_qualifiers_14_0= '!id' ) |
| { |
| // InternalQVTbase.g:282:7: (lv_qualifiers_14_0= '!id' ) |
| // InternalQVTbase.g:283:8: lv_qualifiers_14_0= '!id' |
| { |
| lv_qualifiers_14_0=(Token)match(input,26,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_14_0, grammarAccess.getAttributeCSAccess().getQualifiersIdKeyword_5_1_0_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_14_0, "!id"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:296:6: ( (lv_qualifiers_15_0= 'ordered' ) ) |
| { |
| // InternalQVTbase.g:296:6: ( (lv_qualifiers_15_0= 'ordered' ) ) |
| // InternalQVTbase.g:297:7: (lv_qualifiers_15_0= 'ordered' ) |
| { |
| // InternalQVTbase.g:297:7: (lv_qualifiers_15_0= 'ordered' ) |
| // InternalQVTbase.g:298:8: lv_qualifiers_15_0= 'ordered' |
| { |
| lv_qualifiers_15_0=(Token)match(input,27,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_15_0, grammarAccess.getAttributeCSAccess().getQualifiersOrderedKeyword_5_1_0_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_15_0, "ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:311:6: ( (lv_qualifiers_16_0= '!ordered' ) ) |
| { |
| // InternalQVTbase.g:311:6: ( (lv_qualifiers_16_0= '!ordered' ) ) |
| // InternalQVTbase.g:312:7: (lv_qualifiers_16_0= '!ordered' ) |
| { |
| // InternalQVTbase.g:312:7: (lv_qualifiers_16_0= '!ordered' ) |
| // InternalQVTbase.g:313:8: lv_qualifiers_16_0= '!ordered' |
| { |
| lv_qualifiers_16_0=(Token)match(input,28,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_16_0, grammarAccess.getAttributeCSAccess().getQualifiersOrderedKeyword_5_1_0_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_16_0, "!ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalQVTbase.g:326:6: ( (lv_qualifiers_17_0= 'readonly' ) ) |
| { |
| // InternalQVTbase.g:326:6: ( (lv_qualifiers_17_0= 'readonly' ) ) |
| // InternalQVTbase.g:327:7: (lv_qualifiers_17_0= 'readonly' ) |
| { |
| // InternalQVTbase.g:327:7: (lv_qualifiers_17_0= 'readonly' ) |
| // InternalQVTbase.g:328:8: lv_qualifiers_17_0= 'readonly' |
| { |
| lv_qualifiers_17_0=(Token)match(input,29,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_17_0, grammarAccess.getAttributeCSAccess().getQualifiersReadonlyKeyword_5_1_0_6_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_17_0, "readonly"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalQVTbase.g:341:6: ( (lv_qualifiers_18_0= '!readonly' ) ) |
| { |
| // InternalQVTbase.g:341:6: ( (lv_qualifiers_18_0= '!readonly' ) ) |
| // InternalQVTbase.g:342:7: (lv_qualifiers_18_0= '!readonly' ) |
| { |
| // InternalQVTbase.g:342:7: (lv_qualifiers_18_0= '!readonly' ) |
| // InternalQVTbase.g:343:8: lv_qualifiers_18_0= '!readonly' |
| { |
| lv_qualifiers_18_0=(Token)match(input,30,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_18_0, grammarAccess.getAttributeCSAccess().getQualifiersReadonlyKeyword_5_1_0_7_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_18_0, "!readonly"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalQVTbase.g:356:6: ( (lv_qualifiers_19_0= 'transient' ) ) |
| { |
| // InternalQVTbase.g:356:6: ( (lv_qualifiers_19_0= 'transient' ) ) |
| // InternalQVTbase.g:357:7: (lv_qualifiers_19_0= 'transient' ) |
| { |
| // InternalQVTbase.g:357:7: (lv_qualifiers_19_0= 'transient' ) |
| // InternalQVTbase.g:358:8: lv_qualifiers_19_0= 'transient' |
| { |
| lv_qualifiers_19_0=(Token)match(input,31,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_19_0, grammarAccess.getAttributeCSAccess().getQualifiersTransientKeyword_5_1_0_8_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_19_0, "transient"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 10 : |
| // InternalQVTbase.g:371:6: ( (lv_qualifiers_20_0= '!transient' ) ) |
| { |
| // InternalQVTbase.g:371:6: ( (lv_qualifiers_20_0= '!transient' ) ) |
| // InternalQVTbase.g:372:7: (lv_qualifiers_20_0= '!transient' ) |
| { |
| // InternalQVTbase.g:372:7: (lv_qualifiers_20_0= '!transient' ) |
| // InternalQVTbase.g:373:8: lv_qualifiers_20_0= '!transient' |
| { |
| lv_qualifiers_20_0=(Token)match(input,32,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_20_0, grammarAccess.getAttributeCSAccess().getQualifiersTransientKeyword_5_1_0_9_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_20_0, "!transient"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 11 : |
| // InternalQVTbase.g:386:6: ( (lv_qualifiers_21_0= 'unique' ) ) |
| { |
| // InternalQVTbase.g:386:6: ( (lv_qualifiers_21_0= 'unique' ) ) |
| // InternalQVTbase.g:387:7: (lv_qualifiers_21_0= 'unique' ) |
| { |
| // InternalQVTbase.g:387:7: (lv_qualifiers_21_0= 'unique' ) |
| // InternalQVTbase.g:388:8: lv_qualifiers_21_0= 'unique' |
| { |
| lv_qualifiers_21_0=(Token)match(input,33,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_21_0, grammarAccess.getAttributeCSAccess().getQualifiersUniqueKeyword_5_1_0_10_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_21_0, "unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 12 : |
| // InternalQVTbase.g:401:6: ( (lv_qualifiers_22_0= '!unique' ) ) |
| { |
| // InternalQVTbase.g:401:6: ( (lv_qualifiers_22_0= '!unique' ) ) |
| // InternalQVTbase.g:402:7: (lv_qualifiers_22_0= '!unique' ) |
| { |
| // InternalQVTbase.g:402:7: (lv_qualifiers_22_0= '!unique' ) |
| // InternalQVTbase.g:403:8: lv_qualifiers_22_0= '!unique' |
| { |
| lv_qualifiers_22_0=(Token)match(input,34,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_22_0, grammarAccess.getAttributeCSAccess().getQualifiersUniqueKeyword_5_1_0_11_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_22_0, "!unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 13 : |
| // InternalQVTbase.g:416:6: ( (lv_qualifiers_23_0= 'unsettable' ) ) |
| { |
| // InternalQVTbase.g:416:6: ( (lv_qualifiers_23_0= 'unsettable' ) ) |
| // InternalQVTbase.g:417:7: (lv_qualifiers_23_0= 'unsettable' ) |
| { |
| // InternalQVTbase.g:417:7: (lv_qualifiers_23_0= 'unsettable' ) |
| // InternalQVTbase.g:418:8: lv_qualifiers_23_0= 'unsettable' |
| { |
| lv_qualifiers_23_0=(Token)match(input,35,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_23_0, grammarAccess.getAttributeCSAccess().getQualifiersUnsettableKeyword_5_1_0_12_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_23_0, "unsettable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 14 : |
| // InternalQVTbase.g:431:6: ( (lv_qualifiers_24_0= '!unsettable' ) ) |
| { |
| // InternalQVTbase.g:431:6: ( (lv_qualifiers_24_0= '!unsettable' ) ) |
| // InternalQVTbase.g:432:7: (lv_qualifiers_24_0= '!unsettable' ) |
| { |
| // InternalQVTbase.g:432:7: (lv_qualifiers_24_0= '!unsettable' ) |
| // InternalQVTbase.g:433:8: lv_qualifiers_24_0= '!unsettable' |
| { |
| lv_qualifiers_24_0=(Token)match(input,36,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_24_0, grammarAccess.getAttributeCSAccess().getQualifiersUnsettableKeyword_5_1_0_13_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_24_0, "!unsettable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 15 : |
| // InternalQVTbase.g:446:6: ( (lv_qualifiers_25_0= 'volatile' ) ) |
| { |
| // InternalQVTbase.g:446:6: ( (lv_qualifiers_25_0= 'volatile' ) ) |
| // InternalQVTbase.g:447:7: (lv_qualifiers_25_0= 'volatile' ) |
| { |
| // InternalQVTbase.g:447:7: (lv_qualifiers_25_0= 'volatile' ) |
| // InternalQVTbase.g:448:8: lv_qualifiers_25_0= 'volatile' |
| { |
| lv_qualifiers_25_0=(Token)match(input,37,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_25_0, grammarAccess.getAttributeCSAccess().getQualifiersVolatileKeyword_5_1_0_14_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_25_0, "volatile"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 16 : |
| // InternalQVTbase.g:461:6: ( (lv_qualifiers_26_0= '!volatile' ) ) |
| { |
| // InternalQVTbase.g:461:6: ( (lv_qualifiers_26_0= '!volatile' ) ) |
| // InternalQVTbase.g:462:7: (lv_qualifiers_26_0= '!volatile' ) |
| { |
| // InternalQVTbase.g:462:7: (lv_qualifiers_26_0= '!volatile' ) |
| // InternalQVTbase.g:463:8: lv_qualifiers_26_0= '!volatile' |
| { |
| lv_qualifiers_26_0=(Token)match(input,38,FollowSets000.FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_26_0, grammarAccess.getAttributeCSAccess().getQualifiersVolatileKeyword_5_1_0_15_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_26_0, "!volatile"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:476:5: (otherlv_27= ',' )? |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==39) ) { |
| alt7=1; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalQVTbase.g:477:6: otherlv_27= ',' |
| { |
| otherlv_27=(Token)match(input,39,FollowSets000.FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_27, grammarAccess.getAttributeCSAccess().getCommaKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt8 >= 1 ) break loop8; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(8, input); |
| throw eee; |
| } |
| cnt8++; |
| } while (true); |
| |
| otherlv_28=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_28, grammarAccess.getAttributeCSAccess().getRightCurlyBracketKeyword_5_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:488:3: ( (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) | otherlv_41= ';' ) |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==22) ) { |
| alt15=1; |
| } |
| else if ( (LA15_0==42) ) { |
| alt15=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 15, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt15) { |
| case 1 : |
| // InternalQVTbase.g:489:4: (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) |
| { |
| // InternalQVTbase.g:489:4: (otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' ) |
| // InternalQVTbase.g:490:5: otherlv_29= '{' ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* otherlv_40= '}' |
| { |
| otherlv_29=(Token)match(input,22,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_29, grammarAccess.getAttributeCSAccess().getLeftCurlyBracketKeyword_6_0_0()); |
| |
| } |
| // InternalQVTbase.g:494:5: ( (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) | (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) )* |
| loop14: |
| do { |
| int alt14=3; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==41) ) { |
| alt14=1; |
| } |
| else if ( (LA14_0==43) ) { |
| alt14=2; |
| } |
| |
| |
| switch (alt14) { |
| case 1 : |
| // InternalQVTbase.g:495:6: (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) |
| { |
| // InternalQVTbase.g:495:6: (otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' ) |
| // InternalQVTbase.g:496:7: otherlv_30= 'initial' ( ruleUnrestrictedName )? otherlv_32= ':' ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? otherlv_34= ';' |
| { |
| otherlv_30=(Token)match(input,41,FollowSets000.FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_30, grammarAccess.getAttributeCSAccess().getInitialKeyword_6_0_1_0_0()); |
| |
| } |
| // InternalQVTbase.g:500:7: ( ruleUnrestrictedName )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( ((LA10_0>=RULE_SIMPLE_ID && LA10_0<=RULE_ESCAPED_ID)) ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalQVTbase.g:501:8: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getUnrestrictedNameParserRuleCall_6_0_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_32=(Token)match(input,20,FollowSets000.FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_32, grammarAccess.getAttributeCSAccess().getColonKeyword_6_0_1_0_2()); |
| |
| } |
| // InternalQVTbase.g:516:7: ( (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( ((LA11_0>=RULE_SINGLE_QUOTED_STRING && LA11_0<=RULE_ESCAPED_ID)||LA11_0==51||(LA11_0>=69 && LA11_0<=72)||(LA11_0>=92 && LA11_0<=106)||LA11_0==109||(LA11_0>=111 && LA11_0<=114)||LA11_0==121||(LA11_0>=126 && LA11_0<=127)) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalQVTbase.g:517:8: (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) |
| { |
| // InternalQVTbase.g:517:8: (lv_ownedDefaultExpressions_33_0= ruleSpecificationCS ) |
| // InternalQVTbase.g:518:9: lv_ownedDefaultExpressions_33_0= ruleSpecificationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getOwnedDefaultExpressionsSpecificationCSParserRuleCall_6_0_1_0_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_ownedDefaultExpressions_33_0=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeCSRule()); |
| } |
| add( |
| current, |
| "ownedDefaultExpressions", |
| lv_ownedDefaultExpressions_33_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SpecificationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_34=(Token)match(input,42,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_34, grammarAccess.getAttributeCSAccess().getSemicolonKeyword_6_0_1_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:541:6: (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) |
| { |
| // InternalQVTbase.g:541:6: (otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' ) |
| // InternalQVTbase.g:542:7: otherlv_35= 'derivation' ( ruleUnrestrictedName )? otherlv_37= ':' ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? otherlv_39= ';' |
| { |
| otherlv_35=(Token)match(input,43,FollowSets000.FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_35, grammarAccess.getAttributeCSAccess().getDerivationKeyword_6_0_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:546:7: ( ruleUnrestrictedName )? |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( ((LA12_0>=RULE_SIMPLE_ID && LA12_0<=RULE_ESCAPED_ID)) ) { |
| alt12=1; |
| } |
| switch (alt12) { |
| case 1 : |
| // InternalQVTbase.g:547:8: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getUnrestrictedNameParserRuleCall_6_0_1_1_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_37=(Token)match(input,20,FollowSets000.FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_37, grammarAccess.getAttributeCSAccess().getColonKeyword_6_0_1_1_2()); |
| |
| } |
| // InternalQVTbase.g:562:7: ( (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) )? |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( ((LA13_0>=RULE_SINGLE_QUOTED_STRING && LA13_0<=RULE_ESCAPED_ID)||LA13_0==51||(LA13_0>=69 && LA13_0<=72)||(LA13_0>=92 && LA13_0<=106)||LA13_0==109||(LA13_0>=111 && LA13_0<=114)||LA13_0==121||(LA13_0>=126 && LA13_0<=127)) ) { |
| alt13=1; |
| } |
| switch (alt13) { |
| case 1 : |
| // InternalQVTbase.g:563:8: (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) |
| { |
| // InternalQVTbase.g:563:8: (lv_ownedDefaultExpressions_38_0= ruleSpecificationCS ) |
| // InternalQVTbase.g:564:9: lv_ownedDefaultExpressions_38_0= ruleSpecificationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeCSAccess().getOwnedDefaultExpressionsSpecificationCSParserRuleCall_6_0_1_1_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_ownedDefaultExpressions_38_0=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeCSRule()); |
| } |
| add( |
| current, |
| "ownedDefaultExpressions", |
| lv_ownedDefaultExpressions_38_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SpecificationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_39=(Token)match(input,42,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_39, grammarAccess.getAttributeCSAccess().getSemicolonKeyword_6_0_1_1_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop14; |
| } |
| } while (true); |
| |
| otherlv_40=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_40, grammarAccess.getAttributeCSAccess().getRightCurlyBracketKeyword_6_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:593:4: otherlv_41= ';' |
| { |
| otherlv_41=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_41, grammarAccess.getAttributeCSAccess().getSemicolonKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAttributeCS" |
| |
| |
| // $ANTLR start "entryRuleCompoundTargetElementCS" |
| // InternalQVTbase.g:602:1: entryRuleCompoundTargetElementCS returns [EObject current=null] : iv_ruleCompoundTargetElementCS= ruleCompoundTargetElementCS EOF ; |
| public final EObject entryRuleCompoundTargetElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCompoundTargetElementCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:602:64: (iv_ruleCompoundTargetElementCS= ruleCompoundTargetElementCS EOF ) |
| // InternalQVTbase.g:603:2: iv_ruleCompoundTargetElementCS= ruleCompoundTargetElementCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCompoundTargetElementCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCompoundTargetElementCS=ruleCompoundTargetElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCompoundTargetElementCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCompoundTargetElementCS" |
| |
| |
| // $ANTLR start "ruleCompoundTargetElementCS" |
| // InternalQVTbase.g:609:1: ruleCompoundTargetElementCS returns [EObject current=null] : (otherlv_0= '{' ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* otherlv_2= '}' (otherlv_3= ';' )? ) ; |
| public final EObject ruleCompoundTargetElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| EObject lv_ownedTargetElements_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:615:2: ( (otherlv_0= '{' ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* otherlv_2= '}' (otherlv_3= ';' )? ) ) |
| // InternalQVTbase.g:616:2: (otherlv_0= '{' ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* otherlv_2= '}' (otherlv_3= ';' )? ) |
| { |
| // InternalQVTbase.g:616:2: (otherlv_0= '{' ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* otherlv_2= '}' (otherlv_3= ';' )? ) |
| // InternalQVTbase.g:617:3: otherlv_0= '{' ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* otherlv_2= '}' (otherlv_3= ';' )? |
| { |
| otherlv_0=(Token)match(input,22,FollowSets000.FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getCompoundTargetElementCSAccess().getLeftCurlyBracketKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:621:3: ( (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) )* |
| loop16: |
| do { |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( ((LA16_0>=61 && LA16_0<=63)) ) { |
| alt16=1; |
| } |
| |
| |
| switch (alt16) { |
| case 1 : |
| // InternalQVTbase.g:622:4: (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) |
| { |
| // InternalQVTbase.g:622:4: (lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS ) |
| // InternalQVTbase.g:623:5: lv_ownedTargetElements_1_0= ruleSimpleTargetElementCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCompoundTargetElementCSAccess().getOwnedTargetElementsSimpleTargetElementCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_20); |
| lv_ownedTargetElements_1_0=ruleSimpleTargetElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCompoundTargetElementCSRule()); |
| } |
| add( |
| current, |
| "ownedTargetElements", |
| lv_ownedTargetElements_1_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SimpleTargetElementCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop16; |
| } |
| } while (true); |
| |
| otherlv_2=(Token)match(input,40,FollowSets000.FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getCompoundTargetElementCSAccess().getRightCurlyBracketKeyword_2()); |
| |
| } |
| // InternalQVTbase.g:644:3: (otherlv_3= ';' )? |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==42) ) { |
| alt17=1; |
| } |
| switch (alt17) { |
| case 1 : |
| // InternalQVTbase.g:645:4: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getCompoundTargetElementCSAccess().getSemicolonKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCompoundTargetElementCS" |
| |
| |
| // $ANTLR start "entryRuleDataTypeCS" |
| // InternalQVTbase.g:654:1: entryRuleDataTypeCS returns [EObject current=null] : iv_ruleDataTypeCS= ruleDataTypeCS EOF ; |
| public final EObject entryRuleDataTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataTypeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:654:51: (iv_ruleDataTypeCS= ruleDataTypeCS EOF ) |
| // InternalQVTbase.g:655:2: iv_ruleDataTypeCS= ruleDataTypeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataTypeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDataTypeCS=ruleDataTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataTypeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataTypeCS" |
| |
| |
| // $ANTLR start "ruleDataTypeCS" |
| // InternalQVTbase.g:661:1: ruleDataTypeCS returns [EObject current=null] : ( ( (lv_isPrimitive_0_0= 'primitive' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) ) ; |
| public final EObject ruleDataTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_isPrimitive_0_0=null; |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token lv_instanceClassName_5_0=null; |
| Token otherlv_6=null; |
| Token lv_isSerializable_7_0=null; |
| Token otherlv_8=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_ownedSignature_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:667:2: ( ( ( (lv_isPrimitive_0_0= 'primitive' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) ) ) |
| // InternalQVTbase.g:668:2: ( ( (lv_isPrimitive_0_0= 'primitive' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) ) |
| { |
| // InternalQVTbase.g:668:2: ( ( (lv_isPrimitive_0_0= 'primitive' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) ) |
| // InternalQVTbase.g:669:3: ( (lv_isPrimitive_0_0= 'primitive' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) |
| { |
| // InternalQVTbase.g:669:3: ( (lv_isPrimitive_0_0= 'primitive' ) )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==44) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalQVTbase.g:670:4: (lv_isPrimitive_0_0= 'primitive' ) |
| { |
| // InternalQVTbase.g:670:4: (lv_isPrimitive_0_0= 'primitive' ) |
| // InternalQVTbase.g:671:5: lv_isPrimitive_0_0= 'primitive' |
| { |
| lv_isPrimitive_0_0=(Token)match(input,44,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isPrimitive_0_0, grammarAccess.getDataTypeCSAccess().getIsPrimitivePrimitiveKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataTypeCSRule()); |
| } |
| setWithLastConsumed(current, "isPrimitive", lv_isPrimitive_0_0 != null, "primitive"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_1=(Token)match(input,45,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataTypeCSAccess().getDatatypeKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:687:3: ( (lv_name_2_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:688:4: (lv_name_2_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:688:4: (lv_name_2_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:689:5: lv_name_2_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataTypeCSAccess().getNameUnrestrictedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_23); |
| lv_name_2_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataTypeCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:706:3: ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==51) ) { |
| alt19=1; |
| } |
| switch (alt19) { |
| case 1 : |
| // InternalQVTbase.g:707:4: (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) |
| { |
| // InternalQVTbase.g:707:4: (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) |
| // InternalQVTbase.g:708:5: lv_ownedSignature_3_0= ruleTemplateSignatureCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataTypeCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_24); |
| lv_ownedSignature_3_0=ruleTemplateSignatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataTypeCSRule()); |
| } |
| set( |
| current, |
| "ownedSignature", |
| lv_ownedSignature_3_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateSignatureCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:725:3: (otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==20) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalQVTbase.g:726:4: otherlv_4= ':' ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) |
| { |
| otherlv_4=(Token)match(input,20,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataTypeCSAccess().getColonKeyword_4_0()); |
| |
| } |
| // InternalQVTbase.g:730:4: ( (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) ) |
| // InternalQVTbase.g:731:5: (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) |
| { |
| // InternalQVTbase.g:731:5: (lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:732:6: lv_instanceClassName_5_0= RULE_SINGLE_QUOTED_STRING |
| { |
| lv_instanceClassName_5_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_instanceClassName_5_0, grammarAccess.getDataTypeCSAccess().getInstanceClassNameSINGLE_QUOTED_STRINGTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataTypeCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "instanceClassName", |
| lv_instanceClassName_5_0, |
| "org.eclipse.ocl.xtext.base.Base.SINGLE_QUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:749:3: (otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==22) ) { |
| int LA22_1 = input.LA(2); |
| |
| if ( (LA22_1==40) ) { |
| int LA22_3 = input.LA(3); |
| |
| if ( (LA22_3==22||LA22_3==42) ) { |
| alt22=1; |
| } |
| } |
| else if ( ((LA22_1>=46 && LA22_1<=47)) ) { |
| alt22=1; |
| } |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalQVTbase.g:750:4: otherlv_6= '{' ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? otherlv_9= '}' |
| { |
| otherlv_6=(Token)match(input,22,FollowSets000.FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataTypeCSAccess().getLeftCurlyBracketKeyword_5_0()); |
| |
| } |
| // InternalQVTbase.g:754:4: ( ( (lv_isSerializable_7_0= 'serializable' ) ) | otherlv_8= '!serializable' )? |
| int alt21=3; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==46) ) { |
| alt21=1; |
| } |
| else if ( (LA21_0==47) ) { |
| alt21=2; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalQVTbase.g:755:5: ( (lv_isSerializable_7_0= 'serializable' ) ) |
| { |
| // InternalQVTbase.g:755:5: ( (lv_isSerializable_7_0= 'serializable' ) ) |
| // InternalQVTbase.g:756:6: (lv_isSerializable_7_0= 'serializable' ) |
| { |
| // InternalQVTbase.g:756:6: (lv_isSerializable_7_0= 'serializable' ) |
| // InternalQVTbase.g:757:7: lv_isSerializable_7_0= 'serializable' |
| { |
| lv_isSerializable_7_0=(Token)match(input,46,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isSerializable_7_0, grammarAccess.getDataTypeCSAccess().getIsSerializableSerializableKeyword_5_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataTypeCSRule()); |
| } |
| setWithLastConsumed(current, "isSerializable", lv_isSerializable_7_0 != null, "serializable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:770:5: otherlv_8= '!serializable' |
| { |
| otherlv_8=(Token)match(input,47,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataTypeCSAccess().getSerializableKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_9=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDataTypeCSAccess().getRightCurlyBracketKeyword_5_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:780:3: ( (otherlv_10= '{' otherlv_11= '}' ) | otherlv_12= ';' ) |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==22) ) { |
| alt23=1; |
| } |
| else if ( (LA23_0==42) ) { |
| alt23=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 23, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalQVTbase.g:781:4: (otherlv_10= '{' otherlv_11= '}' ) |
| { |
| // InternalQVTbase.g:781:4: (otherlv_10= '{' otherlv_11= '}' ) |
| // InternalQVTbase.g:782:5: otherlv_10= '{' otherlv_11= '}' |
| { |
| otherlv_10=(Token)match(input,22,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getDataTypeCSAccess().getLeftCurlyBracketKeyword_6_0_0()); |
| |
| } |
| otherlv_11=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDataTypeCSAccess().getRightCurlyBracketKeyword_6_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:792:4: otherlv_12= ';' |
| { |
| otherlv_12=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataTypeCSAccess().getSemicolonKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataTypeCS" |
| |
| |
| // $ANTLR start "entryRuleEnumerationCS" |
| // InternalQVTbase.g:801:1: entryRuleEnumerationCS returns [EObject current=null] : iv_ruleEnumerationCS= ruleEnumerationCS EOF ; |
| public final EObject entryRuleEnumerationCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEnumerationCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:801:54: (iv_ruleEnumerationCS= ruleEnumerationCS EOF ) |
| // InternalQVTbase.g:802:2: iv_ruleEnumerationCS= ruleEnumerationCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEnumerationCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEnumerationCS=ruleEnumerationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEnumerationCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEnumerationCS" |
| |
| |
| // $ANTLR start "ruleEnumerationCS" |
| // InternalQVTbase.g:808:1: ruleEnumerationCS returns [EObject current=null] : (otherlv_0= 'enum' ( (lv_name_1_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) ) ; |
| public final EObject ruleEnumerationCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_3=null; |
| Token lv_instanceClassName_4_0=null; |
| Token otherlv_5=null; |
| Token lv_isSerializable_6_0=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_ownedSignature_2_0 = null; |
| |
| EObject lv_ownedLiterals_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:814:2: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) ) ) |
| // InternalQVTbase.g:815:2: (otherlv_0= 'enum' ( (lv_name_1_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) ) |
| { |
| // InternalQVTbase.g:815:2: (otherlv_0= 'enum' ( (lv_name_1_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) ) |
| // InternalQVTbase.g:816:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) |
| { |
| otherlv_0=(Token)match(input,48,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEnumerationCSAccess().getEnumKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:820:3: ( (lv_name_1_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:821:4: (lv_name_1_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:821:4: (lv_name_1_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:822:5: lv_name_1_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationCSAccess().getNameUnrestrictedNameParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_23); |
| lv_name_1_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:839:3: ( (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==51) ) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalQVTbase.g:840:4: (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) |
| { |
| // InternalQVTbase.g:840:4: (lv_ownedSignature_2_0= ruleTemplateSignatureCS ) |
| // InternalQVTbase.g:841:5: lv_ownedSignature_2_0= ruleTemplateSignatureCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_24); |
| lv_ownedSignature_2_0=ruleTemplateSignatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationCSRule()); |
| } |
| set( |
| current, |
| "ownedSignature", |
| lv_ownedSignature_2_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateSignatureCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:858:3: (otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) )? |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==20) ) { |
| alt25=1; |
| } |
| switch (alt25) { |
| case 1 : |
| // InternalQVTbase.g:859:4: otherlv_3= ':' ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEnumerationCSAccess().getColonKeyword_3_0()); |
| |
| } |
| // InternalQVTbase.g:863:4: ( (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) ) |
| // InternalQVTbase.g:864:5: (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) |
| { |
| // InternalQVTbase.g:864:5: (lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:865:6: lv_instanceClassName_4_0= RULE_SINGLE_QUOTED_STRING |
| { |
| lv_instanceClassName_4_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_instanceClassName_4_0, grammarAccess.getEnumerationCSAccess().getInstanceClassNameSINGLE_QUOTED_STRINGTerminalRuleCall_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEnumerationCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "instanceClassName", |
| lv_instanceClassName_4_0, |
| "org.eclipse.ocl.xtext.base.Base.SINGLE_QUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:882:3: (otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' )? |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==22) ) { |
| int LA27_1 = input.LA(2); |
| |
| if ( ((LA27_1>=46 && LA27_1<=47)) ) { |
| alt27=1; |
| } |
| else if ( (LA27_1==40) ) { |
| int LA27_4 = input.LA(3); |
| |
| if ( (LA27_4==22||LA27_4==42) ) { |
| alt27=1; |
| } |
| } |
| } |
| switch (alt27) { |
| case 1 : |
| // InternalQVTbase.g:883:4: otherlv_5= '{' ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? otherlv_8= '}' |
| { |
| otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEnumerationCSAccess().getLeftCurlyBracketKeyword_4_0()); |
| |
| } |
| // InternalQVTbase.g:887:4: ( ( (lv_isSerializable_6_0= 'serializable' ) ) | otherlv_7= '!serializable' )? |
| int alt26=3; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==46) ) { |
| alt26=1; |
| } |
| else if ( (LA26_0==47) ) { |
| alt26=2; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalQVTbase.g:888:5: ( (lv_isSerializable_6_0= 'serializable' ) ) |
| { |
| // InternalQVTbase.g:888:5: ( (lv_isSerializable_6_0= 'serializable' ) ) |
| // InternalQVTbase.g:889:6: (lv_isSerializable_6_0= 'serializable' ) |
| { |
| // InternalQVTbase.g:889:6: (lv_isSerializable_6_0= 'serializable' ) |
| // InternalQVTbase.g:890:7: lv_isSerializable_6_0= 'serializable' |
| { |
| lv_isSerializable_6_0=(Token)match(input,46,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isSerializable_6_0, grammarAccess.getEnumerationCSAccess().getIsSerializableSerializableKeyword_4_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEnumerationCSRule()); |
| } |
| setWithLastConsumed(current, "isSerializable", lv_isSerializable_6_0 != null, "serializable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:903:5: otherlv_7= '!serializable' |
| { |
| otherlv_7=(Token)match(input,47,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEnumerationCSAccess().getSerializableKeyword_4_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getEnumerationCSAccess().getRightCurlyBracketKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:913:3: ( (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) | otherlv_12= ';' ) |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==22) ) { |
| alt29=1; |
| } |
| else if ( (LA29_0==42) ) { |
| alt29=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 29, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalQVTbase.g:914:4: (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) |
| { |
| // InternalQVTbase.g:914:4: (otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' ) |
| // InternalQVTbase.g:915:5: otherlv_9= '{' ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* otherlv_11= '}' |
| { |
| otherlv_9=(Token)match(input,22,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getEnumerationCSAccess().getLeftCurlyBracketKeyword_5_0_0()); |
| |
| } |
| // InternalQVTbase.g:919:5: ( (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( ((LA28_0>=RULE_SIMPLE_ID && LA28_0<=RULE_ESCAPED_ID)||LA28_0==49) ) { |
| alt28=1; |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalQVTbase.g:920:6: (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) |
| { |
| // InternalQVTbase.g:920:6: (lv_ownedLiterals_10_0= ruleEnumerationLiteralCS ) |
| // InternalQVTbase.g:921:7: lv_ownedLiterals_10_0= ruleEnumerationLiteralCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationCSAccess().getOwnedLiteralsEnumerationLiteralCSParserRuleCall_5_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_27); |
| lv_ownedLiterals_10_0=ruleEnumerationLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationCSRule()); |
| } |
| add( |
| current, |
| "ownedLiterals", |
| lv_ownedLiterals_10_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.EnumerationLiteralCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop28; |
| } |
| } while (true); |
| |
| otherlv_11=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getEnumerationCSAccess().getRightCurlyBracketKeyword_5_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:944:4: otherlv_12= ';' |
| { |
| otherlv_12=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getEnumerationCSAccess().getSemicolonKeyword_5_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEnumerationCS" |
| |
| |
| // $ANTLR start "entryRuleEnumerationLiteralCS" |
| // InternalQVTbase.g:953:1: entryRuleEnumerationLiteralCS returns [EObject current=null] : iv_ruleEnumerationLiteralCS= ruleEnumerationLiteralCS EOF ; |
| public final EObject entryRuleEnumerationLiteralCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEnumerationLiteralCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:953:61: (iv_ruleEnumerationLiteralCS= ruleEnumerationLiteralCS EOF ) |
| // InternalQVTbase.g:954:2: iv_ruleEnumerationLiteralCS= ruleEnumerationLiteralCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEnumerationLiteralCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEnumerationLiteralCS=ruleEnumerationLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEnumerationLiteralCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEnumerationLiteralCS" |
| |
| |
| // $ANTLR start "ruleEnumerationLiteralCS" |
| // InternalQVTbase.g:960:1: ruleEnumerationLiteralCS returns [EObject current=null] : ( ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) ) ; |
| public final EObject ruleEnumerationLiteralCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_value_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:966:2: ( ( ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) ) ) |
| // InternalQVTbase.g:967:2: ( ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) ) |
| { |
| // InternalQVTbase.g:967:2: ( ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) ) |
| // InternalQVTbase.g:968:3: ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) |
| { |
| // InternalQVTbase.g:968:3: ( (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) | ( (lv_name_2_0= ruleEnumerationLiteralName ) ) ) |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==49) ) { |
| alt30=1; |
| } |
| else if ( ((LA30_0>=RULE_SIMPLE_ID && LA30_0<=RULE_ESCAPED_ID)) ) { |
| alt30=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 30, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt30) { |
| case 1 : |
| // InternalQVTbase.g:969:4: (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) |
| { |
| // InternalQVTbase.g:969:4: (otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) ) |
| // InternalQVTbase.g:970:5: otherlv_0= 'literal' ( (lv_name_1_0= ruleUnrestrictedName ) ) |
| { |
| otherlv_0=(Token)match(input,49,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEnumerationLiteralCSAccess().getLiteralKeyword_0_0_0()); |
| |
| } |
| // InternalQVTbase.g:974:5: ( (lv_name_1_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:975:6: (lv_name_1_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:975:6: (lv_name_1_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:976:7: lv_name_1_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationLiteralCSAccess().getNameUnrestrictedNameParserRuleCall_0_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_9); |
| lv_name_1_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationLiteralCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:995:4: ( (lv_name_2_0= ruleEnumerationLiteralName ) ) |
| { |
| // InternalQVTbase.g:995:4: ( (lv_name_2_0= ruleEnumerationLiteralName ) ) |
| // InternalQVTbase.g:996:5: (lv_name_2_0= ruleEnumerationLiteralName ) |
| { |
| // InternalQVTbase.g:996:5: (lv_name_2_0= ruleEnumerationLiteralName ) |
| // InternalQVTbase.g:997:6: lv_name_2_0= ruleEnumerationLiteralName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationLiteralCSAccess().getNameEnumerationLiteralNameParserRuleCall_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_9); |
| lv_name_2_0=ruleEnumerationLiteralName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationLiteralCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.EnumerationLiteralName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1015:3: (otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) )? |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==21) ) { |
| alt31=1; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalQVTbase.g:1016:4: otherlv_3= '=' ( (lv_value_4_0= ruleSIGNED ) ) |
| { |
| otherlv_3=(Token)match(input,21,FollowSets000.FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEnumerationLiteralCSAccess().getEqualsSignKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:1020:4: ( (lv_value_4_0= ruleSIGNED ) ) |
| // InternalQVTbase.g:1021:5: (lv_value_4_0= ruleSIGNED ) |
| { |
| // InternalQVTbase.g:1021:5: (lv_value_4_0= ruleSIGNED ) |
| // InternalQVTbase.g:1022:6: lv_value_4_0= ruleSIGNED |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationLiteralCSAccess().getValueSIGNEDParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_11); |
| lv_value_4_0=ruleSIGNED(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEnumerationLiteralCSRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_4_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SIGNED"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1040:3: ( (otherlv_5= '{' otherlv_6= '}' ) | otherlv_7= ';' ) |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==22) ) { |
| alt32=1; |
| } |
| else if ( (LA32_0==42) ) { |
| 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 : |
| // InternalQVTbase.g:1041:4: (otherlv_5= '{' otherlv_6= '}' ) |
| { |
| // InternalQVTbase.g:1041:4: (otherlv_5= '{' otherlv_6= '}' ) |
| // InternalQVTbase.g:1042:5: otherlv_5= '{' otherlv_6= '}' |
| { |
| otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEnumerationLiteralCSAccess().getLeftCurlyBracketKeyword_2_0_0()); |
| |
| } |
| otherlv_6=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEnumerationLiteralCSAccess().getRightCurlyBracketKeyword_2_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1052:4: otherlv_7= ';' |
| { |
| otherlv_7=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEnumerationLiteralCSAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEnumerationLiteralCS" |
| |
| |
| // $ANTLR start "entryRuleOperationCS" |
| // InternalQVTbase.g:1061:1: entryRuleOperationCS returns [EObject current=null] : iv_ruleOperationCS= ruleOperationCS EOF ; |
| public final EObject entryRuleOperationCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleOperationCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:1061:52: (iv_ruleOperationCS= ruleOperationCS EOF ) |
| // InternalQVTbase.g:1062:2: iv_ruleOperationCS= ruleOperationCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOperationCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleOperationCS=ruleOperationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOperationCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOperationCS" |
| |
| |
| // $ANTLR start "ruleOperationCS" |
| // InternalQVTbase.g:1068:1: ruleOperationCS returns [EObject current=null] : ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'operation' ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? ( (lv_name_6_0= ruleUnrestrictedName ) ) otherlv_7= '(' ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? otherlv_11= ')' (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) ) ; |
| public final EObject ruleOperationCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_qualifiers_0_0=null; |
| Token lv_qualifiers_1_0=null; |
| Token lv_qualifiers_2_0=null; |
| Token lv_qualifiers_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token otherlv_14=null; |
| Token otherlv_16=null; |
| Token otherlv_18=null; |
| Token lv_qualifiers_19_0=null; |
| Token lv_qualifiers_20_0=null; |
| Token lv_qualifiers_21_0=null; |
| Token lv_qualifiers_22_0=null; |
| Token lv_qualifiers_23_0=null; |
| Token lv_qualifiers_24_0=null; |
| Token otherlv_25=null; |
| Token otherlv_26=null; |
| Token otherlv_27=null; |
| Token otherlv_28=null; |
| Token otherlv_30=null; |
| Token otherlv_32=null; |
| Token otherlv_33=null; |
| Token otherlv_34=null; |
| EObject lv_ownedSignature_5_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_6_0 = null; |
| |
| EObject lv_ownedParameters_8_0 = null; |
| |
| EObject lv_ownedParameters_10_0 = null; |
| |
| EObject lv_ownedType_13_0 = null; |
| |
| EObject lv_ownedExceptions_15_0 = null; |
| |
| EObject lv_ownedExceptions_17_0 = null; |
| |
| EObject lv_ownedBodyExpressions_31_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:1074:2: ( ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'operation' ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? ( (lv_name_6_0= ruleUnrestrictedName ) ) otherlv_7= '(' ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? otherlv_11= ')' (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) ) ) |
| // InternalQVTbase.g:1075:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'operation' ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? ( (lv_name_6_0= ruleUnrestrictedName ) ) otherlv_7= '(' ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? otherlv_11= ')' (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) ) |
| { |
| // InternalQVTbase.g:1075:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'operation' ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? ( (lv_name_6_0= ruleUnrestrictedName ) ) otherlv_7= '(' ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? otherlv_11= ')' (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) ) |
| // InternalQVTbase.g:1076:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'operation' ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? ( (lv_name_6_0= ruleUnrestrictedName ) ) otherlv_7= '(' ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? otherlv_11= ')' (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) |
| { |
| // InternalQVTbase.g:1076:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? |
| int alt35=3; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==17) ) { |
| alt35=1; |
| } |
| else if ( (LA35_0==18) ) { |
| alt35=2; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalQVTbase.g:1077:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| { |
| // InternalQVTbase.g:1077:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| // InternalQVTbase.g:1078:5: ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? |
| { |
| // InternalQVTbase.g:1078:5: ( (lv_qualifiers_0_0= 'static' ) ) |
| // InternalQVTbase.g:1079:6: (lv_qualifiers_0_0= 'static' ) |
| { |
| // InternalQVTbase.g:1079:6: (lv_qualifiers_0_0= 'static' ) |
| // InternalQVTbase.g:1080:7: lv_qualifiers_0_0= 'static' |
| { |
| lv_qualifiers_0_0=(Token)match(input,17,FollowSets000.FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_0_0, grammarAccess.getOperationCSAccess().getQualifiersStaticKeyword_0_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_0_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1092:5: ( (lv_qualifiers_1_0= 'definition' ) )? |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==18) ) { |
| alt33=1; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalQVTbase.g:1093:6: (lv_qualifiers_1_0= 'definition' ) |
| { |
| // InternalQVTbase.g:1093:6: (lv_qualifiers_1_0= 'definition' ) |
| // InternalQVTbase.g:1094:7: lv_qualifiers_1_0= 'definition' |
| { |
| lv_qualifiers_1_0=(Token)match(input,18,FollowSets000.FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_1_0, grammarAccess.getOperationCSAccess().getQualifiersDefinitionKeyword_0_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_1_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1108:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| { |
| // InternalQVTbase.g:1108:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| // InternalQVTbase.g:1109:5: ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? |
| { |
| // InternalQVTbase.g:1109:5: ( (lv_qualifiers_2_0= 'definition' ) ) |
| // InternalQVTbase.g:1110:6: (lv_qualifiers_2_0= 'definition' ) |
| { |
| // InternalQVTbase.g:1110:6: (lv_qualifiers_2_0= 'definition' ) |
| // InternalQVTbase.g:1111:7: lv_qualifiers_2_0= 'definition' |
| { |
| lv_qualifiers_2_0=(Token)match(input,18,FollowSets000.FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_2_0, grammarAccess.getOperationCSAccess().getQualifiersDefinitionKeyword_0_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_2_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1123:5: ( (lv_qualifiers_3_0= 'static' ) )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==17) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalQVTbase.g:1124:6: (lv_qualifiers_3_0= 'static' ) |
| { |
| // InternalQVTbase.g:1124:6: (lv_qualifiers_3_0= 'static' ) |
| // InternalQVTbase.g:1125:7: lv_qualifiers_3_0= 'static' |
| { |
| lv_qualifiers_3_0=(Token)match(input,17,FollowSets000.FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_3_0, grammarAccess.getOperationCSAccess().getQualifiersStaticKeyword_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_3_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,50,FollowSets000.FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getOperationCSAccess().getOperationKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:1143:3: ( (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) )? |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==51) ) { |
| alt36=1; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalQVTbase.g:1144:4: (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) |
| { |
| // InternalQVTbase.g:1144:4: (lv_ownedSignature_5_0= ruleTemplateSignatureCS ) |
| // InternalQVTbase.g:1145:5: lv_ownedSignature_5_0= ruleTemplateSignatureCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_6); |
| lv_ownedSignature_5_0=ruleTemplateSignatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| set( |
| current, |
| "ownedSignature", |
| lv_ownedSignature_5_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateSignatureCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1162:3: ( (lv_name_6_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:1163:4: (lv_name_6_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:1163:4: (lv_name_6_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:1164:5: lv_name_6_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getNameUnrestrictedNameParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_33); |
| lv_name_6_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_6_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,51,FollowSets000.FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getOperationCSAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalQVTbase.g:1185:3: ( ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* )? |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( ((LA38_0>=RULE_SIMPLE_ID && LA38_0<=RULE_ESCAPED_ID)) ) { |
| alt38=1; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalQVTbase.g:1186:4: ( (lv_ownedParameters_8_0= ruleParameterCS ) ) (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* |
| { |
| // InternalQVTbase.g:1186:4: ( (lv_ownedParameters_8_0= ruleParameterCS ) ) |
| // InternalQVTbase.g:1187:5: (lv_ownedParameters_8_0= ruleParameterCS ) |
| { |
| // InternalQVTbase.g:1187:5: (lv_ownedParameters_8_0= ruleParameterCS ) |
| // InternalQVTbase.g:1188:6: lv_ownedParameters_8_0= ruleParameterCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedParametersParameterCSParserRuleCall_5_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParameters_8_0=ruleParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| add( |
| current, |
| "ownedParameters", |
| lv_ownedParameters_8_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.ParameterCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1205:4: (otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) )* |
| loop37: |
| do { |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==39) ) { |
| alt37=1; |
| } |
| |
| |
| switch (alt37) { |
| case 1 : |
| // InternalQVTbase.g:1206:5: otherlv_9= ',' ( (lv_ownedParameters_10_0= ruleParameterCS ) ) |
| { |
| otherlv_9=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getOperationCSAccess().getCommaKeyword_5_1_0()); |
| |
| } |
| // InternalQVTbase.g:1210:5: ( (lv_ownedParameters_10_0= ruleParameterCS ) ) |
| // InternalQVTbase.g:1211:6: (lv_ownedParameters_10_0= ruleParameterCS ) |
| { |
| // InternalQVTbase.g:1211:6: (lv_ownedParameters_10_0= ruleParameterCS ) |
| // InternalQVTbase.g:1212:7: lv_ownedParameters_10_0= ruleParameterCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedParametersParameterCSParserRuleCall_5_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParameters_10_0=ruleParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| add( |
| current, |
| "ownedParameters", |
| lv_ownedParameters_10_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.ParameterCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop37; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_11=(Token)match(input,52,FollowSets000.FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getOperationCSAccess().getRightParenthesisKeyword_6()); |
| |
| } |
| // InternalQVTbase.g:1235:3: (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==20) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalQVTbase.g:1236:4: otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) |
| { |
| otherlv_12=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getOperationCSAccess().getColonKeyword_7_0()); |
| |
| } |
| // InternalQVTbase.g:1240:4: ( (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) ) |
| // InternalQVTbase.g:1241:5: (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) |
| { |
| // InternalQVTbase.g:1241:5: (lv_ownedType_13_0= ruleTypedMultiplicityRefCS ) |
| // InternalQVTbase.g:1242:6: lv_ownedType_13_0= ruleTypedMultiplicityRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedTypeTypedMultiplicityRefCSParserRuleCall_7_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_37); |
| lv_ownedType_13_0=ruleTypedMultiplicityRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_13_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedMultiplicityRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1260:3: (otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* )? |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==53) ) { |
| alt41=1; |
| } |
| switch (alt41) { |
| case 1 : |
| // InternalQVTbase.g:1261:4: otherlv_14= 'throws' ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* |
| { |
| otherlv_14=(Token)match(input,53,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getOperationCSAccess().getThrowsKeyword_8_0()); |
| |
| } |
| // InternalQVTbase.g:1265:4: ( (lv_ownedExceptions_15_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:1266:5: (lv_ownedExceptions_15_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:1266:5: (lv_ownedExceptions_15_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:1267:6: lv_ownedExceptions_15_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedExceptionsTypedRefCSParserRuleCall_8_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_38); |
| lv_ownedExceptions_15_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| add( |
| current, |
| "ownedExceptions", |
| lv_ownedExceptions_15_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1284:4: (otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) )* |
| loop40: |
| do { |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==39) ) { |
| alt40=1; |
| } |
| |
| |
| switch (alt40) { |
| case 1 : |
| // InternalQVTbase.g:1285:5: otherlv_16= ',' ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) |
| { |
| otherlv_16=(Token)match(input,39,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getOperationCSAccess().getCommaKeyword_8_2_0()); |
| |
| } |
| // InternalQVTbase.g:1289:5: ( (lv_ownedExceptions_17_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:1290:6: (lv_ownedExceptions_17_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:1290:6: (lv_ownedExceptions_17_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:1291:7: lv_ownedExceptions_17_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedExceptionsTypedRefCSParserRuleCall_8_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_38); |
| lv_ownedExceptions_17_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| add( |
| current, |
| "ownedExceptions", |
| lv_ownedExceptions_17_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop40; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1310:3: (otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==22) ) { |
| int LA45_1 = input.LA(2); |
| |
| if ( ((LA45_1>=23 && LA45_1<=24)||(LA45_1>=27 && LA45_1<=28)||(LA45_1>=33 && LA45_1<=34)) ) { |
| alt45=1; |
| } |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalQVTbase.g:1311:4: otherlv_18= '{' ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ otherlv_26= '}' |
| { |
| otherlv_18=(Token)match(input,22,FollowSets000.FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getOperationCSAccess().getLeftCurlyBracketKeyword_9_0()); |
| |
| } |
| // InternalQVTbase.g:1315:4: ( ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? )+ |
| int cnt44=0; |
| loop44: |
| do { |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( ((LA44_0>=23 && LA44_0<=24)||(LA44_0>=27 && LA44_0<=28)||(LA44_0>=33 && LA44_0<=34)) ) { |
| alt44=1; |
| } |
| |
| |
| switch (alt44) { |
| case 1 : |
| // InternalQVTbase.g:1316:5: ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) (otherlv_25= ',' )? |
| { |
| // InternalQVTbase.g:1316:5: ( ( (lv_qualifiers_19_0= 'derived' ) ) | ( (lv_qualifiers_20_0= '!derived' ) ) | ( (lv_qualifiers_21_0= 'ordered' ) ) | ( (lv_qualifiers_22_0= '!ordered' ) ) | ( (lv_qualifiers_23_0= 'unique' ) ) | ( (lv_qualifiers_24_0= '!unique' ) ) ) |
| int alt42=6; |
| switch ( input.LA(1) ) { |
| case 23: |
| { |
| alt42=1; |
| } |
| break; |
| case 24: |
| { |
| alt42=2; |
| } |
| break; |
| case 27: |
| { |
| alt42=3; |
| } |
| break; |
| case 28: |
| { |
| alt42=4; |
| } |
| break; |
| case 33: |
| { |
| alt42=5; |
| } |
| break; |
| case 34: |
| { |
| alt42=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 42, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt42) { |
| case 1 : |
| // InternalQVTbase.g:1317:6: ( (lv_qualifiers_19_0= 'derived' ) ) |
| { |
| // InternalQVTbase.g:1317:6: ( (lv_qualifiers_19_0= 'derived' ) ) |
| // InternalQVTbase.g:1318:7: (lv_qualifiers_19_0= 'derived' ) |
| { |
| // InternalQVTbase.g:1318:7: (lv_qualifiers_19_0= 'derived' ) |
| // InternalQVTbase.g:1319:8: lv_qualifiers_19_0= 'derived' |
| { |
| lv_qualifiers_19_0=(Token)match(input,23,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_19_0, grammarAccess.getOperationCSAccess().getQualifiersDerivedKeyword_9_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_19_0, "derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1332:6: ( (lv_qualifiers_20_0= '!derived' ) ) |
| { |
| // InternalQVTbase.g:1332:6: ( (lv_qualifiers_20_0= '!derived' ) ) |
| // InternalQVTbase.g:1333:7: (lv_qualifiers_20_0= '!derived' ) |
| { |
| // InternalQVTbase.g:1333:7: (lv_qualifiers_20_0= '!derived' ) |
| // InternalQVTbase.g:1334:8: lv_qualifiers_20_0= '!derived' |
| { |
| lv_qualifiers_20_0=(Token)match(input,24,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_20_0, grammarAccess.getOperationCSAccess().getQualifiersDerivedKeyword_9_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_20_0, "!derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:1347:6: ( (lv_qualifiers_21_0= 'ordered' ) ) |
| { |
| // InternalQVTbase.g:1347:6: ( (lv_qualifiers_21_0= 'ordered' ) ) |
| // InternalQVTbase.g:1348:7: (lv_qualifiers_21_0= 'ordered' ) |
| { |
| // InternalQVTbase.g:1348:7: (lv_qualifiers_21_0= 'ordered' ) |
| // InternalQVTbase.g:1349:8: lv_qualifiers_21_0= 'ordered' |
| { |
| lv_qualifiers_21_0=(Token)match(input,27,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_21_0, grammarAccess.getOperationCSAccess().getQualifiersOrderedKeyword_9_1_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_21_0, "ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:1362:6: ( (lv_qualifiers_22_0= '!ordered' ) ) |
| { |
| // InternalQVTbase.g:1362:6: ( (lv_qualifiers_22_0= '!ordered' ) ) |
| // InternalQVTbase.g:1363:7: (lv_qualifiers_22_0= '!ordered' ) |
| { |
| // InternalQVTbase.g:1363:7: (lv_qualifiers_22_0= '!ordered' ) |
| // InternalQVTbase.g:1364:8: lv_qualifiers_22_0= '!ordered' |
| { |
| lv_qualifiers_22_0=(Token)match(input,28,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_22_0, grammarAccess.getOperationCSAccess().getQualifiersOrderedKeyword_9_1_0_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_22_0, "!ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:1377:6: ( (lv_qualifiers_23_0= 'unique' ) ) |
| { |
| // InternalQVTbase.g:1377:6: ( (lv_qualifiers_23_0= 'unique' ) ) |
| // InternalQVTbase.g:1378:7: (lv_qualifiers_23_0= 'unique' ) |
| { |
| // InternalQVTbase.g:1378:7: (lv_qualifiers_23_0= 'unique' ) |
| // InternalQVTbase.g:1379:8: lv_qualifiers_23_0= 'unique' |
| { |
| lv_qualifiers_23_0=(Token)match(input,33,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_23_0, grammarAccess.getOperationCSAccess().getQualifiersUniqueKeyword_9_1_0_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_23_0, "unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:1392:6: ( (lv_qualifiers_24_0= '!unique' ) ) |
| { |
| // InternalQVTbase.g:1392:6: ( (lv_qualifiers_24_0= '!unique' ) ) |
| // InternalQVTbase.g:1393:7: (lv_qualifiers_24_0= '!unique' ) |
| { |
| // InternalQVTbase.g:1393:7: (lv_qualifiers_24_0= '!unique' ) |
| // InternalQVTbase.g:1394:8: lv_qualifiers_24_0= '!unique' |
| { |
| lv_qualifiers_24_0=(Token)match(input,34,FollowSets000.FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_24_0, grammarAccess.getOperationCSAccess().getQualifiersUniqueKeyword_9_1_0_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getOperationCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_24_0, "!unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1407:5: (otherlv_25= ',' )? |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==39) ) { |
| alt43=1; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalQVTbase.g:1408:6: otherlv_25= ',' |
| { |
| otherlv_25=(Token)match(input,39,FollowSets000.FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_25, grammarAccess.getOperationCSAccess().getCommaKeyword_9_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt44 >= 1 ) break loop44; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(44, input); |
| throw eee; |
| } |
| cnt44++; |
| } while (true); |
| |
| otherlv_26=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_26, grammarAccess.getOperationCSAccess().getRightCurlyBracketKeyword_9_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1419:3: ( (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) | otherlv_34= ';' ) |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==22) ) { |
| alt49=1; |
| } |
| else if ( (LA49_0==42) ) { |
| alt49=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 49, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt49) { |
| case 1 : |
| // InternalQVTbase.g:1420:4: (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) |
| { |
| // InternalQVTbase.g:1420:4: (otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' ) |
| // InternalQVTbase.g:1421:5: otherlv_27= '{' (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* otherlv_33= '}' |
| { |
| otherlv_27=(Token)match(input,22,FollowSets000.FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_27, grammarAccess.getOperationCSAccess().getLeftCurlyBracketKeyword_10_0_0()); |
| |
| } |
| // InternalQVTbase.g:1425:5: (otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' )* |
| loop48: |
| do { |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==54) ) { |
| alt48=1; |
| } |
| |
| |
| switch (alt48) { |
| case 1 : |
| // InternalQVTbase.g:1426:6: otherlv_28= 'body' ( ruleUnrestrictedName )? otherlv_30= ':' ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? otherlv_32= ';' |
| { |
| otherlv_28=(Token)match(input,54,FollowSets000.FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_28, grammarAccess.getOperationCSAccess().getBodyKeyword_10_0_1_0()); |
| |
| } |
| // InternalQVTbase.g:1430:6: ( ruleUnrestrictedName )? |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( ((LA46_0>=RULE_SIMPLE_ID && LA46_0<=RULE_ESCAPED_ID)) ) { |
| alt46=1; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalQVTbase.g:1431:7: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getUnrestrictedNameParserRuleCall_10_0_1_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_30=(Token)match(input,20,FollowSets000.FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_30, grammarAccess.getOperationCSAccess().getColonKeyword_10_0_1_2()); |
| |
| } |
| // InternalQVTbase.g:1446:6: ( (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( ((LA47_0>=RULE_SINGLE_QUOTED_STRING && LA47_0<=RULE_ESCAPED_ID)||LA47_0==51||(LA47_0>=69 && LA47_0<=72)||(LA47_0>=92 && LA47_0<=106)||LA47_0==109||(LA47_0>=111 && LA47_0<=114)||LA47_0==121||(LA47_0>=126 && LA47_0<=127)) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalQVTbase.g:1447:7: (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) |
| { |
| // InternalQVTbase.g:1447:7: (lv_ownedBodyExpressions_31_0= ruleSpecificationCS ) |
| // InternalQVTbase.g:1448:8: lv_ownedBodyExpressions_31_0= ruleSpecificationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getOperationCSAccess().getOwnedBodyExpressionsSpecificationCSParserRuleCall_10_0_1_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_ownedBodyExpressions_31_0=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getOperationCSRule()); |
| } |
| add( |
| current, |
| "ownedBodyExpressions", |
| lv_ownedBodyExpressions_31_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SpecificationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_32=(Token)match(input,42,FollowSets000.FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_32, grammarAccess.getOperationCSAccess().getSemicolonKeyword_10_0_1_4()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop48; |
| } |
| } while (true); |
| |
| otherlv_33=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_33, grammarAccess.getOperationCSAccess().getRightCurlyBracketKeyword_10_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1476:4: otherlv_34= ';' |
| { |
| otherlv_34=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_34, grammarAccess.getOperationCSAccess().getSemicolonKeyword_10_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOperationCS" |
| |
| |
| // $ANTLR start "entryRuleParameterCS" |
| // InternalQVTbase.g:1485:1: entryRuleParameterCS returns [EObject current=null] : iv_ruleParameterCS= ruleParameterCS EOF ; |
| public final EObject entryRuleParameterCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleParameterCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:1485:52: (iv_ruleParameterCS= ruleParameterCS EOF ) |
| // InternalQVTbase.g:1486:2: iv_ruleParameterCS= ruleParameterCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getParameterCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleParameterCS=ruleParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleParameterCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleParameterCS" |
| |
| |
| // $ANTLR start "ruleParameterCS" |
| // InternalQVTbase.g:1492:1: ruleParameterCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? (otherlv_10= '{' otherlv_11= '}' )? ) ; |
| public final EObject ruleParameterCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_qualifiers_4_0=null; |
| Token lv_qualifiers_5_0=null; |
| Token lv_qualifiers_6_0=null; |
| Token lv_qualifiers_7_0=null; |
| Token otherlv_8=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedType_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:1498:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? (otherlv_10= '{' otherlv_11= '}' )? ) ) |
| // InternalQVTbase.g:1499:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? (otherlv_10= '{' otherlv_11= '}' )? ) |
| { |
| // InternalQVTbase.g:1499:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? (otherlv_10= '{' otherlv_11= '}' )? ) |
| // InternalQVTbase.g:1500:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? (otherlv_10= '{' otherlv_11= '}' )? |
| { |
| // InternalQVTbase.g:1500:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:1501:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:1501:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:1502:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getParameterCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_43); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getParameterCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1519:3: (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) )? |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==20) ) { |
| alt50=1; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalQVTbase.g:1520:4: otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) |
| { |
| otherlv_1=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getParameterCSAccess().getColonKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:1524:4: ( (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) ) |
| // InternalQVTbase.g:1525:5: (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) |
| { |
| // InternalQVTbase.g:1525:5: (lv_ownedType_2_0= ruleTypedMultiplicityRefCS ) |
| // InternalQVTbase.g:1526:6: lv_ownedType_2_0= ruleTypedMultiplicityRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getParameterCSAccess().getOwnedTypeTypedMultiplicityRefCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_44); |
| lv_ownedType_2_0=ruleTypedMultiplicityRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getParameterCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_2_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedMultiplicityRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1544:3: (otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' )? |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==22) ) { |
| int LA54_1 = input.LA(2); |
| |
| if ( ((LA54_1>=27 && LA54_1<=28)||(LA54_1>=33 && LA54_1<=34)) ) { |
| alt54=1; |
| } |
| } |
| switch (alt54) { |
| case 1 : |
| // InternalQVTbase.g:1545:4: otherlv_3= '{' ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ otherlv_9= '}' |
| { |
| otherlv_3=(Token)match(input,22,FollowSets000.FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getParameterCSAccess().getLeftCurlyBracketKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:1549:4: ( ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? )+ |
| int cnt53=0; |
| loop53: |
| do { |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( ((LA53_0>=27 && LA53_0<=28)||(LA53_0>=33 && LA53_0<=34)) ) { |
| alt53=1; |
| } |
| |
| |
| switch (alt53) { |
| case 1 : |
| // InternalQVTbase.g:1550:5: ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) (otherlv_8= ',' )? |
| { |
| // InternalQVTbase.g:1550:5: ( ( (lv_qualifiers_4_0= 'ordered' ) ) | ( (lv_qualifiers_5_0= '!ordered' ) ) | ( (lv_qualifiers_6_0= 'unique' ) ) | ( (lv_qualifiers_7_0= '!unique' ) ) ) |
| int alt51=4; |
| switch ( input.LA(1) ) { |
| case 27: |
| { |
| alt51=1; |
| } |
| break; |
| case 28: |
| { |
| alt51=2; |
| } |
| break; |
| case 33: |
| { |
| alt51=3; |
| } |
| break; |
| case 34: |
| { |
| alt51=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 51, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt51) { |
| case 1 : |
| // InternalQVTbase.g:1551:6: ( (lv_qualifiers_4_0= 'ordered' ) ) |
| { |
| // InternalQVTbase.g:1551:6: ( (lv_qualifiers_4_0= 'ordered' ) ) |
| // InternalQVTbase.g:1552:7: (lv_qualifiers_4_0= 'ordered' ) |
| { |
| // InternalQVTbase.g:1552:7: (lv_qualifiers_4_0= 'ordered' ) |
| // InternalQVTbase.g:1553:8: lv_qualifiers_4_0= 'ordered' |
| { |
| lv_qualifiers_4_0=(Token)match(input,27,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_4_0, grammarAccess.getParameterCSAccess().getQualifiersOrderedKeyword_2_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getParameterCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_4_0, "ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1566:6: ( (lv_qualifiers_5_0= '!ordered' ) ) |
| { |
| // InternalQVTbase.g:1566:6: ( (lv_qualifiers_5_0= '!ordered' ) ) |
| // InternalQVTbase.g:1567:7: (lv_qualifiers_5_0= '!ordered' ) |
| { |
| // InternalQVTbase.g:1567:7: (lv_qualifiers_5_0= '!ordered' ) |
| // InternalQVTbase.g:1568:8: lv_qualifiers_5_0= '!ordered' |
| { |
| lv_qualifiers_5_0=(Token)match(input,28,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_5_0, grammarAccess.getParameterCSAccess().getQualifiersOrderedKeyword_2_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getParameterCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_5_0, "!ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:1581:6: ( (lv_qualifiers_6_0= 'unique' ) ) |
| { |
| // InternalQVTbase.g:1581:6: ( (lv_qualifiers_6_0= 'unique' ) ) |
| // InternalQVTbase.g:1582:7: (lv_qualifiers_6_0= 'unique' ) |
| { |
| // InternalQVTbase.g:1582:7: (lv_qualifiers_6_0= 'unique' ) |
| // InternalQVTbase.g:1583:8: lv_qualifiers_6_0= 'unique' |
| { |
| lv_qualifiers_6_0=(Token)match(input,33,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_6_0, grammarAccess.getParameterCSAccess().getQualifiersUniqueKeyword_2_1_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getParameterCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_6_0, "unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:1596:6: ( (lv_qualifiers_7_0= '!unique' ) ) |
| { |
| // InternalQVTbase.g:1596:6: ( (lv_qualifiers_7_0= '!unique' ) ) |
| // InternalQVTbase.g:1597:7: (lv_qualifiers_7_0= '!unique' ) |
| { |
| // InternalQVTbase.g:1597:7: (lv_qualifiers_7_0= '!unique' ) |
| // InternalQVTbase.g:1598:8: lv_qualifiers_7_0= '!unique' |
| { |
| lv_qualifiers_7_0=(Token)match(input,34,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_7_0, grammarAccess.getParameterCSAccess().getQualifiersUniqueKeyword_2_1_0_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getParameterCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_7_0, "!unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1611:5: (otherlv_8= ',' )? |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==39) ) { |
| alt52=1; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalQVTbase.g:1612:6: otherlv_8= ',' |
| { |
| otherlv_8=(Token)match(input,39,FollowSets000.FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getParameterCSAccess().getCommaKeyword_2_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt53 >= 1 ) break loop53; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(53, input); |
| throw eee; |
| } |
| cnt53++; |
| } while (true); |
| |
| otherlv_9=(Token)match(input,40,FollowSets000.FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getParameterCSAccess().getRightCurlyBracketKeyword_2_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1623:3: (otherlv_10= '{' otherlv_11= '}' )? |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==22) ) { |
| alt55=1; |
| } |
| switch (alt55) { |
| case 1 : |
| // InternalQVTbase.g:1624:4: otherlv_10= '{' otherlv_11= '}' |
| { |
| otherlv_10=(Token)match(input,22,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getParameterCSAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| otherlv_11=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getParameterCSAccess().getRightCurlyBracketKeyword_3_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleParameterCS" |
| |
| |
| // $ANTLR start "entryRuleReferenceCS" |
| // InternalQVTbase.g:1637:1: entryRuleReferenceCS returns [EObject current=null] : iv_ruleReferenceCS= ruleReferenceCS EOF ; |
| public final EObject entryRuleReferenceCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleReferenceCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:1637:52: (iv_ruleReferenceCS= ruleReferenceCS EOF ) |
| // InternalQVTbase.g:1638:2: iv_ruleReferenceCS= ruleReferenceCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getReferenceCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleReferenceCS=ruleReferenceCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleReferenceCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleReferenceCS" |
| |
| |
| // $ANTLR start "ruleReferenceCS" |
| // InternalQVTbase.g:1644:1: ruleReferenceCS returns [EObject current=null] : ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'property' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) ) ; |
| public final EObject ruleReferenceCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_qualifiers_0_0=null; |
| Token lv_qualifiers_1_0=null; |
| Token lv_qualifiers_2_0=null; |
| Token lv_qualifiers_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token lv_default_11_0=null; |
| Token otherlv_12=null; |
| Token lv_qualifiers_13_0=null; |
| Token lv_qualifiers_14_0=null; |
| Token lv_qualifiers_15_0=null; |
| Token lv_qualifiers_16_0=null; |
| Token lv_qualifiers_17_0=null; |
| Token lv_qualifiers_18_0=null; |
| Token lv_qualifiers_19_0=null; |
| Token lv_qualifiers_20_0=null; |
| Token lv_qualifiers_21_0=null; |
| Token lv_qualifiers_22_0=null; |
| Token lv_qualifiers_23_0=null; |
| Token lv_qualifiers_24_0=null; |
| Token lv_qualifiers_25_0=null; |
| Token lv_qualifiers_26_0=null; |
| Token lv_qualifiers_27_0=null; |
| Token lv_qualifiers_28_0=null; |
| Token lv_qualifiers_29_0=null; |
| Token lv_qualifiers_30_0=null; |
| Token otherlv_31=null; |
| Token otherlv_32=null; |
| Token otherlv_33=null; |
| Token otherlv_34=null; |
| Token otherlv_36=null; |
| Token otherlv_38=null; |
| Token otherlv_39=null; |
| Token otherlv_41=null; |
| Token otherlv_43=null; |
| Token otherlv_44=null; |
| Token otherlv_45=null; |
| AntlrDatatypeRuleToken lv_name_5_0 = null; |
| |
| EObject lv_ownedType_9_0 = null; |
| |
| EObject lv_ownedDefaultExpressions_37_0 = null; |
| |
| EObject lv_ownedDefaultExpressions_42_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:1650:2: ( ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'property' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) ) ) |
| // InternalQVTbase.g:1651:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'property' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) ) |
| { |
| // InternalQVTbase.g:1651:2: ( ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'property' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) ) |
| // InternalQVTbase.g:1652:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? otherlv_4= 'property' ( (lv_name_5_0= ruleUnrestrictedName ) ) (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) |
| { |
| // InternalQVTbase.g:1652:3: ( ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) | ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) )? |
| int alt58=3; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==17) ) { |
| alt58=1; |
| } |
| else if ( (LA58_0==18) ) { |
| alt58=2; |
| } |
| switch (alt58) { |
| case 1 : |
| // InternalQVTbase.g:1653:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| { |
| // InternalQVTbase.g:1653:4: ( ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? ) |
| // InternalQVTbase.g:1654:5: ( (lv_qualifiers_0_0= 'static' ) ) ( (lv_qualifiers_1_0= 'definition' ) )? |
| { |
| // InternalQVTbase.g:1654:5: ( (lv_qualifiers_0_0= 'static' ) ) |
| // InternalQVTbase.g:1655:6: (lv_qualifiers_0_0= 'static' ) |
| { |
| // InternalQVTbase.g:1655:6: (lv_qualifiers_0_0= 'static' ) |
| // InternalQVTbase.g:1656:7: lv_qualifiers_0_0= 'static' |
| { |
| lv_qualifiers_0_0=(Token)match(input,17,FollowSets000.FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_0_0, grammarAccess.getReferenceCSAccess().getQualifiersStaticKeyword_0_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_0_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1668:5: ( (lv_qualifiers_1_0= 'definition' ) )? |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==18) ) { |
| alt56=1; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalQVTbase.g:1669:6: (lv_qualifiers_1_0= 'definition' ) |
| { |
| // InternalQVTbase.g:1669:6: (lv_qualifiers_1_0= 'definition' ) |
| // InternalQVTbase.g:1670:7: lv_qualifiers_1_0= 'definition' |
| { |
| lv_qualifiers_1_0=(Token)match(input,18,FollowSets000.FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_1_0, grammarAccess.getReferenceCSAccess().getQualifiersDefinitionKeyword_0_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_1_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1684:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| { |
| // InternalQVTbase.g:1684:4: ( ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? ) |
| // InternalQVTbase.g:1685:5: ( (lv_qualifiers_2_0= 'definition' ) ) ( (lv_qualifiers_3_0= 'static' ) )? |
| { |
| // InternalQVTbase.g:1685:5: ( (lv_qualifiers_2_0= 'definition' ) ) |
| // InternalQVTbase.g:1686:6: (lv_qualifiers_2_0= 'definition' ) |
| { |
| // InternalQVTbase.g:1686:6: (lv_qualifiers_2_0= 'definition' ) |
| // InternalQVTbase.g:1687:7: lv_qualifiers_2_0= 'definition' |
| { |
| lv_qualifiers_2_0=(Token)match(input,18,FollowSets000.FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_2_0, grammarAccess.getReferenceCSAccess().getQualifiersDefinitionKeyword_0_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_2_0, "definition"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1699:5: ( (lv_qualifiers_3_0= 'static' ) )? |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==17) ) { |
| alt57=1; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalQVTbase.g:1700:6: (lv_qualifiers_3_0= 'static' ) |
| { |
| // InternalQVTbase.g:1700:6: (lv_qualifiers_3_0= 'static' ) |
| // InternalQVTbase.g:1701:7: lv_qualifiers_3_0= 'static' |
| { |
| lv_qualifiers_3_0=(Token)match(input,17,FollowSets000.FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_3_0, grammarAccess.getReferenceCSAccess().getQualifiersStaticKeyword_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_3_0, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,55,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getReferenceCSAccess().getPropertyKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:1719:3: ( (lv_name_5_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:1720:4: (lv_name_5_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:1720:4: (lv_name_5_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:1721:5: lv_name_5_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getNameUnrestrictedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_51); |
| lv_name_5_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:1738:3: (otherlv_6= '#' ( ( ruleUnrestrictedName ) ) )? |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==56) ) { |
| alt59=1; |
| } |
| switch (alt59) { |
| case 1 : |
| // InternalQVTbase.g:1739:4: otherlv_6= '#' ( ( ruleUnrestrictedName ) ) |
| { |
| otherlv_6=(Token)match(input,56,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getReferenceCSAccess().getNumberSignKeyword_3_0()); |
| |
| } |
| // InternalQVTbase.g:1743:4: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:1744:5: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:1744:5: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:1745:6: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getReferredOppositePropertyCrossReference_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1763:3: (otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) )? |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==20) ) { |
| alt60=1; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalQVTbase.g:1764:4: otherlv_8= ':' ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) |
| { |
| otherlv_8=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getReferenceCSAccess().getColonKeyword_4_0()); |
| |
| } |
| // InternalQVTbase.g:1768:4: ( (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) ) |
| // InternalQVTbase.g:1769:5: (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) |
| { |
| // InternalQVTbase.g:1769:5: (lv_ownedType_9_0= ruleTypedMultiplicityRefCS ) |
| // InternalQVTbase.g:1770:6: lv_ownedType_9_0= ruleTypedMultiplicityRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getOwnedTypeTypedMultiplicityRefCSParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_9); |
| lv_ownedType_9_0=ruleTypedMultiplicityRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_9_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedMultiplicityRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1788:3: (otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) )? |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( (LA61_0==21) ) { |
| alt61=1; |
| } |
| switch (alt61) { |
| case 1 : |
| // InternalQVTbase.g:1789:4: otherlv_10= '=' ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) |
| { |
| otherlv_10=(Token)match(input,21,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getReferenceCSAccess().getEqualsSignKeyword_5_0()); |
| |
| } |
| // InternalQVTbase.g:1793:4: ( (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) ) |
| // InternalQVTbase.g:1794:5: (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) |
| { |
| // InternalQVTbase.g:1794:5: (lv_default_11_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:1795:6: lv_default_11_0= RULE_SINGLE_QUOTED_STRING |
| { |
| lv_default_11_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_default_11_0, grammarAccess.getReferenceCSAccess().getDefaultSINGLE_QUOTED_STRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "default", |
| lv_default_11_0, |
| "org.eclipse.ocl.xtext.base.Base.SINGLE_QUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:1812:3: (otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' )? |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==22) ) { |
| int LA65_1 = input.LA(2); |
| |
| if ( ((LA65_1>=23 && LA65_1<=24)||(LA65_1>=27 && LA65_1<=38)||(LA65_1>=57 && LA65_1<=60)) ) { |
| alt65=1; |
| } |
| } |
| switch (alt65) { |
| case 1 : |
| // InternalQVTbase.g:1813:4: otherlv_12= '{' ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ otherlv_32= '}' |
| { |
| otherlv_12=(Token)match(input,22,FollowSets000.FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getReferenceCSAccess().getLeftCurlyBracketKeyword_6_0()); |
| |
| } |
| // InternalQVTbase.g:1817:4: ( ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? )+ |
| int cnt64=0; |
| loop64: |
| do { |
| int alt64=2; |
| int LA64_0 = input.LA(1); |
| |
| if ( ((LA64_0>=23 && LA64_0<=24)||(LA64_0>=27 && LA64_0<=38)||(LA64_0>=57 && LA64_0<=60)) ) { |
| alt64=1; |
| } |
| |
| |
| switch (alt64) { |
| case 1 : |
| // InternalQVTbase.g:1818:5: ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) (otherlv_31= ',' )? |
| { |
| // InternalQVTbase.g:1818:5: ( ( (lv_qualifiers_13_0= 'composes' ) ) | ( (lv_qualifiers_14_0= '!composes' ) ) | ( (lv_qualifiers_15_0= 'derived' ) ) | ( (lv_qualifiers_16_0= '!derived' ) ) | ( (lv_qualifiers_17_0= 'ordered' ) ) | ( (lv_qualifiers_18_0= '!ordered' ) ) | ( (lv_qualifiers_19_0= 'readonly' ) ) | ( (lv_qualifiers_20_0= '!readonly' ) ) | ( (lv_qualifiers_21_0= 'resolve' ) ) | ( (lv_qualifiers_22_0= '!resolve' ) ) | ( (lv_qualifiers_23_0= 'transient' ) ) | ( (lv_qualifiers_24_0= '!transient' ) ) | ( (lv_qualifiers_25_0= 'unique' ) ) | ( (lv_qualifiers_26_0= '!unique' ) ) | ( (lv_qualifiers_27_0= 'unsettable' ) ) | ( (lv_qualifiers_28_0= '!unsettable' ) ) | ( (lv_qualifiers_29_0= 'volatile' ) ) | ( (lv_qualifiers_30_0= '!volatile' ) ) ) |
| int alt62=18; |
| switch ( input.LA(1) ) { |
| case 57: |
| { |
| alt62=1; |
| } |
| break; |
| case 58: |
| { |
| alt62=2; |
| } |
| break; |
| case 23: |
| { |
| alt62=3; |
| } |
| break; |
| case 24: |
| { |
| alt62=4; |
| } |
| break; |
| case 27: |
| { |
| alt62=5; |
| } |
| break; |
| case 28: |
| { |
| alt62=6; |
| } |
| break; |
| case 29: |
| { |
| alt62=7; |
| } |
| break; |
| case 30: |
| { |
| alt62=8; |
| } |
| break; |
| case 59: |
| { |
| alt62=9; |
| } |
| break; |
| case 60: |
| { |
| alt62=10; |
| } |
| break; |
| case 31: |
| { |
| alt62=11; |
| } |
| break; |
| case 32: |
| { |
| alt62=12; |
| } |
| break; |
| case 33: |
| { |
| alt62=13; |
| } |
| break; |
| case 34: |
| { |
| alt62=14; |
| } |
| break; |
| case 35: |
| { |
| alt62=15; |
| } |
| break; |
| case 36: |
| { |
| alt62=16; |
| } |
| break; |
| case 37: |
| { |
| alt62=17; |
| } |
| break; |
| case 38: |
| { |
| alt62=18; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 62, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt62) { |
| case 1 : |
| // InternalQVTbase.g:1819:6: ( (lv_qualifiers_13_0= 'composes' ) ) |
| { |
| // InternalQVTbase.g:1819:6: ( (lv_qualifiers_13_0= 'composes' ) ) |
| // InternalQVTbase.g:1820:7: (lv_qualifiers_13_0= 'composes' ) |
| { |
| // InternalQVTbase.g:1820:7: (lv_qualifiers_13_0= 'composes' ) |
| // InternalQVTbase.g:1821:8: lv_qualifiers_13_0= 'composes' |
| { |
| lv_qualifiers_13_0=(Token)match(input,57,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_13_0, grammarAccess.getReferenceCSAccess().getQualifiersComposesKeyword_6_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_13_0, "composes"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:1834:6: ( (lv_qualifiers_14_0= '!composes' ) ) |
| { |
| // InternalQVTbase.g:1834:6: ( (lv_qualifiers_14_0= '!composes' ) ) |
| // InternalQVTbase.g:1835:7: (lv_qualifiers_14_0= '!composes' ) |
| { |
| // InternalQVTbase.g:1835:7: (lv_qualifiers_14_0= '!composes' ) |
| // InternalQVTbase.g:1836:8: lv_qualifiers_14_0= '!composes' |
| { |
| lv_qualifiers_14_0=(Token)match(input,58,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_14_0, grammarAccess.getReferenceCSAccess().getQualifiersComposesKeyword_6_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_14_0, "!composes"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:1849:6: ( (lv_qualifiers_15_0= 'derived' ) ) |
| { |
| // InternalQVTbase.g:1849:6: ( (lv_qualifiers_15_0= 'derived' ) ) |
| // InternalQVTbase.g:1850:7: (lv_qualifiers_15_0= 'derived' ) |
| { |
| // InternalQVTbase.g:1850:7: (lv_qualifiers_15_0= 'derived' ) |
| // InternalQVTbase.g:1851:8: lv_qualifiers_15_0= 'derived' |
| { |
| lv_qualifiers_15_0=(Token)match(input,23,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_15_0, grammarAccess.getReferenceCSAccess().getQualifiersDerivedKeyword_6_1_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_15_0, "derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:1864:6: ( (lv_qualifiers_16_0= '!derived' ) ) |
| { |
| // InternalQVTbase.g:1864:6: ( (lv_qualifiers_16_0= '!derived' ) ) |
| // InternalQVTbase.g:1865:7: (lv_qualifiers_16_0= '!derived' ) |
| { |
| // InternalQVTbase.g:1865:7: (lv_qualifiers_16_0= '!derived' ) |
| // InternalQVTbase.g:1866:8: lv_qualifiers_16_0= '!derived' |
| { |
| lv_qualifiers_16_0=(Token)match(input,24,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_16_0, grammarAccess.getReferenceCSAccess().getQualifiersDerivedKeyword_6_1_0_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_16_0, "!derived"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:1879:6: ( (lv_qualifiers_17_0= 'ordered' ) ) |
| { |
| // InternalQVTbase.g:1879:6: ( (lv_qualifiers_17_0= 'ordered' ) ) |
| // InternalQVTbase.g:1880:7: (lv_qualifiers_17_0= 'ordered' ) |
| { |
| // InternalQVTbase.g:1880:7: (lv_qualifiers_17_0= 'ordered' ) |
| // InternalQVTbase.g:1881:8: lv_qualifiers_17_0= 'ordered' |
| { |
| lv_qualifiers_17_0=(Token)match(input,27,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_17_0, grammarAccess.getReferenceCSAccess().getQualifiersOrderedKeyword_6_1_0_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_17_0, "ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:1894:6: ( (lv_qualifiers_18_0= '!ordered' ) ) |
| { |
| // InternalQVTbase.g:1894:6: ( (lv_qualifiers_18_0= '!ordered' ) ) |
| // InternalQVTbase.g:1895:7: (lv_qualifiers_18_0= '!ordered' ) |
| { |
| // InternalQVTbase.g:1895:7: (lv_qualifiers_18_0= '!ordered' ) |
| // InternalQVTbase.g:1896:8: lv_qualifiers_18_0= '!ordered' |
| { |
| lv_qualifiers_18_0=(Token)match(input,28,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_18_0, grammarAccess.getReferenceCSAccess().getQualifiersOrderedKeyword_6_1_0_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_18_0, "!ordered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalQVTbase.g:1909:6: ( (lv_qualifiers_19_0= 'readonly' ) ) |
| { |
| // InternalQVTbase.g:1909:6: ( (lv_qualifiers_19_0= 'readonly' ) ) |
| // InternalQVTbase.g:1910:7: (lv_qualifiers_19_0= 'readonly' ) |
| { |
| // InternalQVTbase.g:1910:7: (lv_qualifiers_19_0= 'readonly' ) |
| // InternalQVTbase.g:1911:8: lv_qualifiers_19_0= 'readonly' |
| { |
| lv_qualifiers_19_0=(Token)match(input,29,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_19_0, grammarAccess.getReferenceCSAccess().getQualifiersReadonlyKeyword_6_1_0_6_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_19_0, "readonly"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalQVTbase.g:1924:6: ( (lv_qualifiers_20_0= '!readonly' ) ) |
| { |
| // InternalQVTbase.g:1924:6: ( (lv_qualifiers_20_0= '!readonly' ) ) |
| // InternalQVTbase.g:1925:7: (lv_qualifiers_20_0= '!readonly' ) |
| { |
| // InternalQVTbase.g:1925:7: (lv_qualifiers_20_0= '!readonly' ) |
| // InternalQVTbase.g:1926:8: lv_qualifiers_20_0= '!readonly' |
| { |
| lv_qualifiers_20_0=(Token)match(input,30,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_20_0, grammarAccess.getReferenceCSAccess().getQualifiersReadonlyKeyword_6_1_0_7_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_20_0, "!readonly"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalQVTbase.g:1939:6: ( (lv_qualifiers_21_0= 'resolve' ) ) |
| { |
| // InternalQVTbase.g:1939:6: ( (lv_qualifiers_21_0= 'resolve' ) ) |
| // InternalQVTbase.g:1940:7: (lv_qualifiers_21_0= 'resolve' ) |
| { |
| // InternalQVTbase.g:1940:7: (lv_qualifiers_21_0= 'resolve' ) |
| // InternalQVTbase.g:1941:8: lv_qualifiers_21_0= 'resolve' |
| { |
| lv_qualifiers_21_0=(Token)match(input,59,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_21_0, grammarAccess.getReferenceCSAccess().getQualifiersResolveKeyword_6_1_0_8_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_21_0, "resolve"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 10 : |
| // InternalQVTbase.g:1954:6: ( (lv_qualifiers_22_0= '!resolve' ) ) |
| { |
| // InternalQVTbase.g:1954:6: ( (lv_qualifiers_22_0= '!resolve' ) ) |
| // InternalQVTbase.g:1955:7: (lv_qualifiers_22_0= '!resolve' ) |
| { |
| // InternalQVTbase.g:1955:7: (lv_qualifiers_22_0= '!resolve' ) |
| // InternalQVTbase.g:1956:8: lv_qualifiers_22_0= '!resolve' |
| { |
| lv_qualifiers_22_0=(Token)match(input,60,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_22_0, grammarAccess.getReferenceCSAccess().getQualifiersResolveKeyword_6_1_0_9_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_22_0, "!resolve"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 11 : |
| // InternalQVTbase.g:1969:6: ( (lv_qualifiers_23_0= 'transient' ) ) |
| { |
| // InternalQVTbase.g:1969:6: ( (lv_qualifiers_23_0= 'transient' ) ) |
| // InternalQVTbase.g:1970:7: (lv_qualifiers_23_0= 'transient' ) |
| { |
| // InternalQVTbase.g:1970:7: (lv_qualifiers_23_0= 'transient' ) |
| // InternalQVTbase.g:1971:8: lv_qualifiers_23_0= 'transient' |
| { |
| lv_qualifiers_23_0=(Token)match(input,31,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_23_0, grammarAccess.getReferenceCSAccess().getQualifiersTransientKeyword_6_1_0_10_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_23_0, "transient"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 12 : |
| // InternalQVTbase.g:1984:6: ( (lv_qualifiers_24_0= '!transient' ) ) |
| { |
| // InternalQVTbase.g:1984:6: ( (lv_qualifiers_24_0= '!transient' ) ) |
| // InternalQVTbase.g:1985:7: (lv_qualifiers_24_0= '!transient' ) |
| { |
| // InternalQVTbase.g:1985:7: (lv_qualifiers_24_0= '!transient' ) |
| // InternalQVTbase.g:1986:8: lv_qualifiers_24_0= '!transient' |
| { |
| lv_qualifiers_24_0=(Token)match(input,32,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_24_0, grammarAccess.getReferenceCSAccess().getQualifiersTransientKeyword_6_1_0_11_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_24_0, "!transient"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 13 : |
| // InternalQVTbase.g:1999:6: ( (lv_qualifiers_25_0= 'unique' ) ) |
| { |
| // InternalQVTbase.g:1999:6: ( (lv_qualifiers_25_0= 'unique' ) ) |
| // InternalQVTbase.g:2000:7: (lv_qualifiers_25_0= 'unique' ) |
| { |
| // InternalQVTbase.g:2000:7: (lv_qualifiers_25_0= 'unique' ) |
| // InternalQVTbase.g:2001:8: lv_qualifiers_25_0= 'unique' |
| { |
| lv_qualifiers_25_0=(Token)match(input,33,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_25_0, grammarAccess.getReferenceCSAccess().getQualifiersUniqueKeyword_6_1_0_12_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_25_0, "unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 14 : |
| // InternalQVTbase.g:2014:6: ( (lv_qualifiers_26_0= '!unique' ) ) |
| { |
| // InternalQVTbase.g:2014:6: ( (lv_qualifiers_26_0= '!unique' ) ) |
| // InternalQVTbase.g:2015:7: (lv_qualifiers_26_0= '!unique' ) |
| { |
| // InternalQVTbase.g:2015:7: (lv_qualifiers_26_0= '!unique' ) |
| // InternalQVTbase.g:2016:8: lv_qualifiers_26_0= '!unique' |
| { |
| lv_qualifiers_26_0=(Token)match(input,34,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_26_0, grammarAccess.getReferenceCSAccess().getQualifiersUniqueKeyword_6_1_0_13_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_26_0, "!unique"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 15 : |
| // InternalQVTbase.g:2029:6: ( (lv_qualifiers_27_0= 'unsettable' ) ) |
| { |
| // InternalQVTbase.g:2029:6: ( (lv_qualifiers_27_0= 'unsettable' ) ) |
| // InternalQVTbase.g:2030:7: (lv_qualifiers_27_0= 'unsettable' ) |
| { |
| // InternalQVTbase.g:2030:7: (lv_qualifiers_27_0= 'unsettable' ) |
| // InternalQVTbase.g:2031:8: lv_qualifiers_27_0= 'unsettable' |
| { |
| lv_qualifiers_27_0=(Token)match(input,35,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_27_0, grammarAccess.getReferenceCSAccess().getQualifiersUnsettableKeyword_6_1_0_14_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_27_0, "unsettable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 16 : |
| // InternalQVTbase.g:2044:6: ( (lv_qualifiers_28_0= '!unsettable' ) ) |
| { |
| // InternalQVTbase.g:2044:6: ( (lv_qualifiers_28_0= '!unsettable' ) ) |
| // InternalQVTbase.g:2045:7: (lv_qualifiers_28_0= '!unsettable' ) |
| { |
| // InternalQVTbase.g:2045:7: (lv_qualifiers_28_0= '!unsettable' ) |
| // InternalQVTbase.g:2046:8: lv_qualifiers_28_0= '!unsettable' |
| { |
| lv_qualifiers_28_0=(Token)match(input,36,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_28_0, grammarAccess.getReferenceCSAccess().getQualifiersUnsettableKeyword_6_1_0_15_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_28_0, "!unsettable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 17 : |
| // InternalQVTbase.g:2059:6: ( (lv_qualifiers_29_0= 'volatile' ) ) |
| { |
| // InternalQVTbase.g:2059:6: ( (lv_qualifiers_29_0= 'volatile' ) ) |
| // InternalQVTbase.g:2060:7: (lv_qualifiers_29_0= 'volatile' ) |
| { |
| // InternalQVTbase.g:2060:7: (lv_qualifiers_29_0= 'volatile' ) |
| // InternalQVTbase.g:2061:8: lv_qualifiers_29_0= 'volatile' |
| { |
| lv_qualifiers_29_0=(Token)match(input,37,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_29_0, grammarAccess.getReferenceCSAccess().getQualifiersVolatileKeyword_6_1_0_16_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_29_0, "volatile"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 18 : |
| // InternalQVTbase.g:2074:6: ( (lv_qualifiers_30_0= '!volatile' ) ) |
| { |
| // InternalQVTbase.g:2074:6: ( (lv_qualifiers_30_0= '!volatile' ) ) |
| // InternalQVTbase.g:2075:7: (lv_qualifiers_30_0= '!volatile' ) |
| { |
| // InternalQVTbase.g:2075:7: (lv_qualifiers_30_0= '!volatile' ) |
| // InternalQVTbase.g:2076:8: lv_qualifiers_30_0= '!volatile' |
| { |
| lv_qualifiers_30_0=(Token)match(input,38,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_qualifiers_30_0, grammarAccess.getReferenceCSAccess().getQualifiersVolatileKeyword_6_1_0_17_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceCSRule()); |
| } |
| addWithLastConsumed(current, "qualifiers", lv_qualifiers_30_0, "!volatile"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2089:5: (otherlv_31= ',' )? |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==39) ) { |
| alt63=1; |
| } |
| switch (alt63) { |
| case 1 : |
| // InternalQVTbase.g:2090:6: otherlv_31= ',' |
| { |
| otherlv_31=(Token)match(input,39,FollowSets000.FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_31, grammarAccess.getReferenceCSAccess().getCommaKeyword_6_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt64 >= 1 ) break loop64; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(64, input); |
| throw eee; |
| } |
| cnt64++; |
| } while (true); |
| |
| otherlv_32=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_32, grammarAccess.getReferenceCSAccess().getRightCurlyBracketKeyword_6_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2101:3: ( (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) | otherlv_45= ';' ) |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==22) ) { |
| alt71=1; |
| } |
| else if ( (LA71_0==42) ) { |
| alt71=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 71, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalQVTbase.g:2102:4: (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) |
| { |
| // InternalQVTbase.g:2102:4: (otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' ) |
| // InternalQVTbase.g:2103:5: otherlv_33= '{' ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* otherlv_44= '}' |
| { |
| otherlv_33=(Token)match(input,22,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_33, grammarAccess.getReferenceCSAccess().getLeftCurlyBracketKeyword_7_0_0()); |
| |
| } |
| // InternalQVTbase.g:2107:5: ( (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) | (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) )* |
| loop70: |
| do { |
| int alt70=3; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==41) ) { |
| alt70=1; |
| } |
| else if ( (LA70_0==43) ) { |
| alt70=2; |
| } |
| |
| |
| switch (alt70) { |
| case 1 : |
| // InternalQVTbase.g:2108:6: (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) |
| { |
| // InternalQVTbase.g:2108:6: (otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' ) |
| // InternalQVTbase.g:2109:7: otherlv_34= 'initial' ( ruleUnrestrictedName )? otherlv_36= ':' ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? otherlv_38= ';' |
| { |
| otherlv_34=(Token)match(input,41,FollowSets000.FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_34, grammarAccess.getReferenceCSAccess().getInitialKeyword_7_0_1_0_0()); |
| |
| } |
| // InternalQVTbase.g:2113:7: ( ruleUnrestrictedName )? |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( ((LA66_0>=RULE_SIMPLE_ID && LA66_0<=RULE_ESCAPED_ID)) ) { |
| alt66=1; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalQVTbase.g:2114:8: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getUnrestrictedNameParserRuleCall_7_0_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_36=(Token)match(input,20,FollowSets000.FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_36, grammarAccess.getReferenceCSAccess().getColonKeyword_7_0_1_0_2()); |
| |
| } |
| // InternalQVTbase.g:2129:7: ( (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) )? |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( ((LA67_0>=RULE_SINGLE_QUOTED_STRING && LA67_0<=RULE_ESCAPED_ID)||LA67_0==51||(LA67_0>=69 && LA67_0<=72)||(LA67_0>=92 && LA67_0<=106)||LA67_0==109||(LA67_0>=111 && LA67_0<=114)||LA67_0==121||(LA67_0>=126 && LA67_0<=127)) ) { |
| alt67=1; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalQVTbase.g:2130:8: (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) |
| { |
| // InternalQVTbase.g:2130:8: (lv_ownedDefaultExpressions_37_0= ruleSpecificationCS ) |
| // InternalQVTbase.g:2131:9: lv_ownedDefaultExpressions_37_0= ruleSpecificationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getOwnedDefaultExpressionsSpecificationCSParserRuleCall_7_0_1_0_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_ownedDefaultExpressions_37_0=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceCSRule()); |
| } |
| add( |
| current, |
| "ownedDefaultExpressions", |
| lv_ownedDefaultExpressions_37_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SpecificationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_38=(Token)match(input,42,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_38, grammarAccess.getReferenceCSAccess().getSemicolonKeyword_7_0_1_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2154:6: (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) |
| { |
| // InternalQVTbase.g:2154:6: (otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' ) |
| // InternalQVTbase.g:2155:7: otherlv_39= 'derivation' ( ruleUnrestrictedName )? otherlv_41= ':' ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? otherlv_43= ';' |
| { |
| otherlv_39=(Token)match(input,43,FollowSets000.FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_39, grammarAccess.getReferenceCSAccess().getDerivationKeyword_7_0_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:2159:7: ( ruleUnrestrictedName )? |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( ((LA68_0>=RULE_SIMPLE_ID && LA68_0<=RULE_ESCAPED_ID)) ) { |
| alt68=1; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalQVTbase.g:2160:8: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getUnrestrictedNameParserRuleCall_7_0_1_1_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_41=(Token)match(input,20,FollowSets000.FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_41, grammarAccess.getReferenceCSAccess().getColonKeyword_7_0_1_1_2()); |
| |
| } |
| // InternalQVTbase.g:2175:7: ( (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( ((LA69_0>=RULE_SINGLE_QUOTED_STRING && LA69_0<=RULE_ESCAPED_ID)||LA69_0==51||(LA69_0>=69 && LA69_0<=72)||(LA69_0>=92 && LA69_0<=106)||LA69_0==109||(LA69_0>=111 && LA69_0<=114)||LA69_0==121||(LA69_0>=126 && LA69_0<=127)) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalQVTbase.g:2176:8: (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) |
| { |
| // InternalQVTbase.g:2176:8: (lv_ownedDefaultExpressions_42_0= ruleSpecificationCS ) |
| // InternalQVTbase.g:2177:9: lv_ownedDefaultExpressions_42_0= ruleSpecificationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceCSAccess().getOwnedDefaultExpressionsSpecificationCSParserRuleCall_7_0_1_1_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_ownedDefaultExpressions_42_0=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceCSRule()); |
| } |
| add( |
| current, |
| "ownedDefaultExpressions", |
| lv_ownedDefaultExpressions_42_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.SpecificationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_43=(Token)match(input,42,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_43, grammarAccess.getReferenceCSAccess().getSemicolonKeyword_7_0_1_1_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop70; |
| } |
| } while (true); |
| |
| otherlv_44=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_44, grammarAccess.getReferenceCSAccess().getRightCurlyBracketKeyword_7_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2206:4: otherlv_45= ';' |
| { |
| otherlv_45=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_45, grammarAccess.getReferenceCSAccess().getSemicolonKeyword_7_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleReferenceCS" |
| |
| |
| // $ANTLR start "entryRuleSimpleTargetElementCS" |
| // InternalQVTbase.g:2215:1: entryRuleSimpleTargetElementCS returns [EObject current=null] : iv_ruleSimpleTargetElementCS= ruleSimpleTargetElementCS EOF ; |
| public final EObject entryRuleSimpleTargetElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSimpleTargetElementCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2215:62: (iv_ruleSimpleTargetElementCS= ruleSimpleTargetElementCS EOF ) |
| // InternalQVTbase.g:2216:2: iv_ruleSimpleTargetElementCS= ruleSimpleTargetElementCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSimpleTargetElementCS=ruleSimpleTargetElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSimpleTargetElementCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSimpleTargetElementCS" |
| |
| |
| // $ANTLR start "ruleSimpleTargetElementCS" |
| // InternalQVTbase.g:2222:1: ruleSimpleTargetElementCS returns [EObject current=null] : ( ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) ( ( ruleUnrestrictedName ) ) (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? otherlv_11= ';' ) ; |
| public final EObject ruleSimpleTargetElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_input_0_0=null; |
| Token lv_output_1_0=null; |
| Token lv_via_2_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2228:2: ( ( ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) ( ( ruleUnrestrictedName ) ) (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? otherlv_11= ';' ) ) |
| // InternalQVTbase.g:2229:2: ( ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) ( ( ruleUnrestrictedName ) ) (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? otherlv_11= ';' ) |
| { |
| // InternalQVTbase.g:2229:2: ( ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) ( ( ruleUnrestrictedName ) ) (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? otherlv_11= ';' ) |
| // InternalQVTbase.g:2230:3: ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) ( ( ruleUnrestrictedName ) ) (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? otherlv_11= ';' |
| { |
| // InternalQVTbase.g:2230:3: ( ( (lv_input_0_0= 'input' ) ) | ( (lv_output_1_0= 'output' ) ) | ( (lv_via_2_0= 'via' ) ) ) |
| int alt72=3; |
| switch ( input.LA(1) ) { |
| case 61: |
| { |
| alt72=1; |
| } |
| break; |
| case 62: |
| { |
| alt72=2; |
| } |
| break; |
| case 63: |
| { |
| alt72=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 72, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt72) { |
| case 1 : |
| // InternalQVTbase.g:2231:4: ( (lv_input_0_0= 'input' ) ) |
| { |
| // InternalQVTbase.g:2231:4: ( (lv_input_0_0= 'input' ) ) |
| // InternalQVTbase.g:2232:5: (lv_input_0_0= 'input' ) |
| { |
| // InternalQVTbase.g:2232:5: (lv_input_0_0= 'input' ) |
| // InternalQVTbase.g:2233:6: lv_input_0_0= 'input' |
| { |
| lv_input_0_0=(Token)match(input,61,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_input_0_0, grammarAccess.getSimpleTargetElementCSAccess().getInputInputKeyword_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| setWithLastConsumed(current, "input", lv_input_0_0 != null, "input"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2246:4: ( (lv_output_1_0= 'output' ) ) |
| { |
| // InternalQVTbase.g:2246:4: ( (lv_output_1_0= 'output' ) ) |
| // InternalQVTbase.g:2247:5: (lv_output_1_0= 'output' ) |
| { |
| // InternalQVTbase.g:2247:5: (lv_output_1_0= 'output' ) |
| // InternalQVTbase.g:2248:6: lv_output_1_0= 'output' |
| { |
| lv_output_1_0=(Token)match(input,62,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_output_1_0, grammarAccess.getSimpleTargetElementCSAccess().getOutputOutputKeyword_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| setWithLastConsumed(current, "output", lv_output_1_0 != null, "output"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:2261:4: ( (lv_via_2_0= 'via' ) ) |
| { |
| // InternalQVTbase.g:2261:4: ( (lv_via_2_0= 'via' ) ) |
| // InternalQVTbase.g:2262:5: (lv_via_2_0= 'via' ) |
| { |
| // InternalQVTbase.g:2262:5: (lv_via_2_0= 'via' ) |
| // InternalQVTbase.g:2263:6: lv_via_2_0= 'via' |
| { |
| lv_via_2_0=(Token)match(input,63,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_via_2_0, grammarAccess.getSimpleTargetElementCSAccess().getViaViaKeyword_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| setWithLastConsumed(current, "via", lv_via_2_0 != null, "via"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2276:3: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:2277:4: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:2277:4: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:2278:5: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSimpleTargetElementCSAccess().getTypedModelTypedModelCrossReference_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_55); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:2295:3: (otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) )? |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==64) ) { |
| alt76=1; |
| } |
| switch (alt76) { |
| case 1 : |
| // InternalQVTbase.g:2296:4: otherlv_4= 'iterates' ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) |
| { |
| otherlv_4=(Token)match(input,64,FollowSets000.FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getSimpleTargetElementCSAccess().getIteratesKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:2300:4: ( ( ( ruleUnrestrictedName ) ) | (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) ) |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( ((LA75_0>=RULE_SIMPLE_ID && LA75_0<=RULE_ESCAPED_ID)) ) { |
| alt75=1; |
| } |
| else if ( (LA75_0==22) ) { |
| alt75=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 75, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalQVTbase.g:2301:5: ( ( ruleUnrestrictedName ) ) |
| { |
| // InternalQVTbase.g:2301:5: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:2302:6: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:2302:6: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:2303:7: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSimpleTargetElementCSAccess().getIteratesTypedModelCrossReference_2_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2321:5: (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) |
| { |
| // InternalQVTbase.g:2321:5: (otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' ) |
| // InternalQVTbase.g:2322:6: otherlv_6= '{' ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? otherlv_10= '}' |
| { |
| otherlv_6=(Token)match(input,22,FollowSets000.FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getSimpleTargetElementCSAccess().getLeftCurlyBracketKeyword_2_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:2326:6: ( ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* )? |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( ((LA74_0>=RULE_SIMPLE_ID && LA74_0<=RULE_ESCAPED_ID)) ) { |
| alt74=1; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalQVTbase.g:2327:7: ( ( ruleUnrestrictedName ) ) (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* |
| { |
| // InternalQVTbase.g:2327:7: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:2328:8: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:2328:8: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:2329:9: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSimpleTargetElementCSAccess().getIteratesTypedModelCrossReference_2_1_1_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:2346:7: (otherlv_8= ',' ( ( ruleUnrestrictedName ) ) )* |
| loop73: |
| do { |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==39) ) { |
| alt73=1; |
| } |
| |
| |
| switch (alt73) { |
| case 1 : |
| // InternalQVTbase.g:2347:8: otherlv_8= ',' ( ( ruleUnrestrictedName ) ) |
| { |
| otherlv_8=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getSimpleTargetElementCSAccess().getCommaKeyword_2_1_1_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:2351:8: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:2352:9: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:2352:9: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:2353:10: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSimpleTargetElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSimpleTargetElementCSAccess().getIteratesTypedModelCrossReference_2_1_1_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop73; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,40,FollowSets000.FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getSimpleTargetElementCSAccess().getRightCurlyBracketKeyword_2_1_1_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_11=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getSimpleTargetElementCSAccess().getSemicolonKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSimpleTargetElementCS" |
| |
| |
| // $ANTLR start "entryRuleSpecificationCS" |
| // InternalQVTbase.g:2387:1: entryRuleSpecificationCS returns [EObject current=null] : iv_ruleSpecificationCS= ruleSpecificationCS EOF ; |
| public final EObject entryRuleSpecificationCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSpecificationCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2387:56: (iv_ruleSpecificationCS= ruleSpecificationCS EOF ) |
| // InternalQVTbase.g:2388:2: iv_ruleSpecificationCS= ruleSpecificationCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSpecificationCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSpecificationCS=ruleSpecificationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSpecificationCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSpecificationCS" |
| |
| |
| // $ANTLR start "ruleSpecificationCS" |
| // InternalQVTbase.g:2394:1: ruleSpecificationCS returns [EObject current=null] : ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) ; |
| public final EObject ruleSpecificationCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_exprString_1_0=null; |
| EObject lv_ownedExpression_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2400:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) ) |
| // InternalQVTbase.g:2401:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) |
| { |
| // InternalQVTbase.g:2401:2: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) | ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) ) |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==RULE_SINGLE_QUOTED_STRING||(LA77_0>=RULE_INT && LA77_0<=RULE_ESCAPED_ID)||LA77_0==51||(LA77_0>=69 && LA77_0<=72)||(LA77_0>=92 && LA77_0<=106)||LA77_0==109||(LA77_0>=111 && LA77_0<=114)||LA77_0==121||(LA77_0>=126 && LA77_0<=127)) ) { |
| alt77=1; |
| } |
| else if ( (LA77_0==RULE_UNQUOTED_STRING) ) { |
| alt77=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 77, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalQVTbase.g:2402:3: ( (lv_ownedExpression_0_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:2402:3: ( (lv_ownedExpression_0_0= ruleExpCS ) ) |
| // InternalQVTbase.g:2403:4: (lv_ownedExpression_0_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:2403:4: (lv_ownedExpression_0_0= ruleExpCS ) |
| // InternalQVTbase.g:2404:5: lv_ownedExpression_0_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSpecificationCSAccess().getOwnedExpressionExpCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedExpression_0_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSpecificationCSRule()); |
| } |
| set( |
| current, |
| "ownedExpression", |
| lv_ownedExpression_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2422:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) |
| { |
| // InternalQVTbase.g:2422:3: ( (lv_exprString_1_0= RULE_UNQUOTED_STRING ) ) |
| // InternalQVTbase.g:2423:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING ) |
| { |
| // InternalQVTbase.g:2423:4: (lv_exprString_1_0= RULE_UNQUOTED_STRING ) |
| // InternalQVTbase.g:2424:5: lv_exprString_1_0= RULE_UNQUOTED_STRING |
| { |
| lv_exprString_1_0=(Token)match(input,RULE_UNQUOTED_STRING,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_exprString_1_0, grammarAccess.getSpecificationCSAccess().getExprStringUNQUOTED_STRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSpecificationCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "exprString", |
| lv_exprString_1_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.UNQUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSpecificationCS" |
| |
| |
| // $ANTLR start "entryRuleStructuredClassCS" |
| // InternalQVTbase.g:2444:1: entryRuleStructuredClassCS returns [EObject current=null] : iv_ruleStructuredClassCS= ruleStructuredClassCS EOF ; |
| public final EObject entryRuleStructuredClassCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStructuredClassCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2444:58: (iv_ruleStructuredClassCS= ruleStructuredClassCS EOF ) |
| // InternalQVTbase.g:2445:2: iv_ruleStructuredClassCS= ruleStructuredClassCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStructuredClassCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleStructuredClassCS=ruleStructuredClassCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStructuredClassCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStructuredClassCS" |
| |
| |
| // $ANTLR start "ruleStructuredClassCS" |
| // InternalQVTbase.g:2451:1: ruleStructuredClassCS returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) ) ; |
| public final EObject ruleStructuredClassCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_isAbstract_0_0=null; |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token lv_instanceClassName_9_0=null; |
| Token otherlv_10=null; |
| Token lv_isInterface_11_0=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_16=null; |
| Token otherlv_17=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_ownedSignature_3_0 = null; |
| |
| EObject lv_ownedSuperTypes_5_0 = null; |
| |
| EObject lv_ownedSuperTypes_7_0 = null; |
| |
| EObject lv_ownedOperations_14_0 = null; |
| |
| EObject lv_ownedProperties_15_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2457:2: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) ) ) |
| // InternalQVTbase.g:2458:2: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) ) |
| { |
| // InternalQVTbase.g:2458:2: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) ) |
| // InternalQVTbase.g:2459:3: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleUnrestrictedName ) ) ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) |
| { |
| // InternalQVTbase.g:2459:3: ( (lv_isAbstract_0_0= 'abstract' ) )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==65) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalQVTbase.g:2460:4: (lv_isAbstract_0_0= 'abstract' ) |
| { |
| // InternalQVTbase.g:2460:4: (lv_isAbstract_0_0= 'abstract' ) |
| // InternalQVTbase.g:2461:5: lv_isAbstract_0_0= 'abstract' |
| { |
| lv_isAbstract_0_0=(Token)match(input,65,FollowSets000.FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isAbstract_0_0, grammarAccess.getStructuredClassCSAccess().getIsAbstractAbstractKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStructuredClassCSRule()); |
| } |
| setWithLastConsumed(current, "isAbstract", lv_isAbstract_0_0 != null, "abstract"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_1=(Token)match(input,66,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getStructuredClassCSAccess().getClassKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:2477:3: ( (lv_name_2_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:2478:4: (lv_name_2_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:2478:4: (lv_name_2_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:2479:5: lv_name_2_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getNameUnrestrictedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_60); |
| lv_name_2_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:2496:3: ( (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) )? |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==51) ) { |
| alt79=1; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalQVTbase.g:2497:4: (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) |
| { |
| // InternalQVTbase.g:2497:4: (lv_ownedSignature_3_0= ruleTemplateSignatureCS ) |
| // InternalQVTbase.g:2498:5: lv_ownedSignature_3_0= ruleTemplateSignatureCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_61); |
| lv_ownedSignature_3_0=ruleTemplateSignatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| set( |
| current, |
| "ownedSignature", |
| lv_ownedSignature_3_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateSignatureCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2515:3: (otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* )? |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==67) ) { |
| alt81=1; |
| } |
| switch (alt81) { |
| case 1 : |
| // InternalQVTbase.g:2516:4: otherlv_4= 'extends' ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* |
| { |
| otherlv_4=(Token)match(input,67,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getStructuredClassCSAccess().getExtendsKeyword_4_0()); |
| |
| } |
| // InternalQVTbase.g:2520:4: ( (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:2521:5: (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:2521:5: (lv_ownedSuperTypes_5_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:2522:6: lv_ownedSuperTypes_5_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getOwnedSuperTypesTypedRefCSParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_62); |
| lv_ownedSuperTypes_5_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| add( |
| current, |
| "ownedSuperTypes", |
| lv_ownedSuperTypes_5_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:2539:4: (otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) )* |
| loop80: |
| do { |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==39) ) { |
| alt80=1; |
| } |
| |
| |
| switch (alt80) { |
| case 1 : |
| // InternalQVTbase.g:2540:5: otherlv_6= ',' ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) |
| { |
| otherlv_6=(Token)match(input,39,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getStructuredClassCSAccess().getCommaKeyword_4_2_0()); |
| |
| } |
| // InternalQVTbase.g:2544:5: ( (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:2545:6: (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:2545:6: (lv_ownedSuperTypes_7_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:2546:7: lv_ownedSuperTypes_7_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getOwnedSuperTypesTypedRefCSParserRuleCall_4_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_62); |
| lv_ownedSuperTypes_7_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| add( |
| current, |
| "ownedSuperTypes", |
| lv_ownedSuperTypes_7_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop80; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2565:3: (otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) )? |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==20) ) { |
| alt82=1; |
| } |
| switch (alt82) { |
| case 1 : |
| // InternalQVTbase.g:2566:4: otherlv_8= ':' ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) |
| { |
| otherlv_8=(Token)match(input,20,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getStructuredClassCSAccess().getColonKeyword_5_0()); |
| |
| } |
| // InternalQVTbase.g:2570:4: ( (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) ) |
| // InternalQVTbase.g:2571:5: (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) |
| { |
| // InternalQVTbase.g:2571:5: (lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:2572:6: lv_instanceClassName_9_0= RULE_SINGLE_QUOTED_STRING |
| { |
| lv_instanceClassName_9_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_instanceClassName_9_0, grammarAccess.getStructuredClassCSAccess().getInstanceClassNameSINGLE_QUOTED_STRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStructuredClassCSRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "instanceClassName", |
| lv_instanceClassName_9_0, |
| "org.eclipse.ocl.xtext.base.Base.SINGLE_QUOTED_STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2589:3: (otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' )? |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==22) ) { |
| int LA84_1 = input.LA(2); |
| |
| if ( (LA84_1==40) ) { |
| int LA84_3 = input.LA(3); |
| |
| if ( (LA84_3==22||LA84_3==42) ) { |
| alt84=1; |
| } |
| } |
| else if ( (LA84_1==68) ) { |
| alt84=1; |
| } |
| } |
| switch (alt84) { |
| case 1 : |
| // InternalQVTbase.g:2590:4: otherlv_10= '{' ( (lv_isInterface_11_0= 'interface' ) )? otherlv_12= '}' |
| { |
| otherlv_10=(Token)match(input,22,FollowSets000.FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getStructuredClassCSAccess().getLeftCurlyBracketKeyword_6_0()); |
| |
| } |
| // InternalQVTbase.g:2594:4: ( (lv_isInterface_11_0= 'interface' ) )? |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==68) ) { |
| alt83=1; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalQVTbase.g:2595:5: (lv_isInterface_11_0= 'interface' ) |
| { |
| // InternalQVTbase.g:2595:5: (lv_isInterface_11_0= 'interface' ) |
| // InternalQVTbase.g:2596:6: lv_isInterface_11_0= 'interface' |
| { |
| lv_isInterface_11_0=(Token)match(input,68,FollowSets000.FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isInterface_11_0, grammarAccess.getStructuredClassCSAccess().getIsInterfaceInterfaceKeyword_6_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStructuredClassCSRule()); |
| } |
| setWithLastConsumed(current, "isInterface", lv_isInterface_11_0 != null, "interface"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,40,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getStructuredClassCSAccess().getRightCurlyBracketKeyword_6_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:2613:3: ( (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) | otherlv_17= ';' ) |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==22) ) { |
| alt86=1; |
| } |
| else if ( (LA86_0==42) ) { |
| 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 : |
| // InternalQVTbase.g:2614:4: (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) |
| { |
| // InternalQVTbase.g:2614:4: (otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' ) |
| // InternalQVTbase.g:2615:5: otherlv_13= '{' ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* otherlv_16= '}' |
| { |
| otherlv_13=(Token)match(input,22,FollowSets000.FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getStructuredClassCSAccess().getLeftCurlyBracketKeyword_7_0_0()); |
| |
| } |
| // InternalQVTbase.g:2619:5: ( ( (lv_ownedOperations_14_0= ruleOperationCS ) ) | ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) )* |
| loop85: |
| do { |
| int alt85=3; |
| switch ( input.LA(1) ) { |
| case 17: |
| { |
| switch ( input.LA(2) ) { |
| case 18: |
| { |
| int LA85_6 = input.LA(3); |
| |
| if ( (LA85_6==50) ) { |
| alt85=1; |
| } |
| else if ( (LA85_6==19||LA85_6==55) ) { |
| alt85=2; |
| } |
| |
| |
| } |
| break; |
| case 50: |
| { |
| alt85=1; |
| } |
| break; |
| case 19: |
| case 55: |
| { |
| alt85=2; |
| } |
| break; |
| |
| } |
| |
| } |
| break; |
| case 18: |
| { |
| switch ( input.LA(2) ) { |
| case 17: |
| { |
| int LA85_7 = input.LA(3); |
| |
| if ( (LA85_7==50) ) { |
| alt85=1; |
| } |
| else if ( (LA85_7==19||LA85_7==55) ) { |
| alt85=2; |
| } |
| |
| |
| } |
| break; |
| case 50: |
| { |
| alt85=1; |
| } |
| break; |
| case 19: |
| case 55: |
| { |
| alt85=2; |
| } |
| break; |
| |
| } |
| |
| } |
| break; |
| case 50: |
| { |
| alt85=1; |
| } |
| break; |
| case 19: |
| case 55: |
| { |
| alt85=2; |
| } |
| break; |
| |
| } |
| |
| switch (alt85) { |
| case 1 : |
| // InternalQVTbase.g:2620:6: ( (lv_ownedOperations_14_0= ruleOperationCS ) ) |
| { |
| // InternalQVTbase.g:2620:6: ( (lv_ownedOperations_14_0= ruleOperationCS ) ) |
| // InternalQVTbase.g:2621:7: (lv_ownedOperations_14_0= ruleOperationCS ) |
| { |
| // InternalQVTbase.g:2621:7: (lv_ownedOperations_14_0= ruleOperationCS ) |
| // InternalQVTbase.g:2622:8: lv_ownedOperations_14_0= ruleOperationCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getOwnedOperationsOperationCSParserRuleCall_7_0_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_64); |
| lv_ownedOperations_14_0=ruleOperationCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| add( |
| current, |
| "ownedOperations", |
| lv_ownedOperations_14_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.OperationCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2640:6: ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) |
| { |
| // InternalQVTbase.g:2640:6: ( (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) ) |
| // InternalQVTbase.g:2641:7: (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) |
| { |
| // InternalQVTbase.g:2641:7: (lv_ownedProperties_15_0= ruleStructuralFeatureCS ) |
| // InternalQVTbase.g:2642:8: lv_ownedProperties_15_0= ruleStructuralFeatureCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuredClassCSAccess().getOwnedPropertiesStructuralFeatureCSParserRuleCall_7_0_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_64); |
| lv_ownedProperties_15_0=ruleStructuralFeatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStructuredClassCSRule()); |
| } |
| add( |
| current, |
| "ownedProperties", |
| lv_ownedProperties_15_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.StructuralFeatureCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop85; |
| } |
| } while (true); |
| |
| otherlv_16=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getStructuredClassCSAccess().getRightCurlyBracketKeyword_7_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2666:4: otherlv_17= ';' |
| { |
| otherlv_17=(Token)match(input,42,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getStructuredClassCSAccess().getSemicolonKeyword_7_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStructuredClassCS" |
| |
| |
| // $ANTLR start "entryRuleTypedMultiplicityRefCS" |
| // InternalQVTbase.g:2675:1: entryRuleTypedMultiplicityRefCS returns [EObject current=null] : iv_ruleTypedMultiplicityRefCS= ruleTypedMultiplicityRefCS EOF ; |
| public final EObject entryRuleTypedMultiplicityRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypedMultiplicityRefCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2675:63: (iv_ruleTypedMultiplicityRefCS= ruleTypedMultiplicityRefCS EOF ) |
| // InternalQVTbase.g:2676:2: iv_ruleTypedMultiplicityRefCS= ruleTypedMultiplicityRefCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypedMultiplicityRefCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypedMultiplicityRefCS=ruleTypedMultiplicityRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypedMultiplicityRefCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypedMultiplicityRefCS" |
| |
| |
| // $ANTLR start "ruleTypedMultiplicityRefCS" |
| // InternalQVTbase.g:2682:1: ruleTypedMultiplicityRefCS returns [EObject current=null] : (this_TypedRefCS_0= ruleTypedRefCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ; |
| public final EObject ruleTypedMultiplicityRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypedRefCS_0 = null; |
| |
| EObject lv_ownedMultiplicity_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2688:2: ( (this_TypedRefCS_0= ruleTypedRefCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ) |
| // InternalQVTbase.g:2689:2: (this_TypedRefCS_0= ruleTypedRefCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| { |
| // InternalQVTbase.g:2689:2: (this_TypedRefCS_0= ruleTypedRefCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| // InternalQVTbase.g:2690:3: this_TypedRefCS_0= ruleTypedRefCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedMultiplicityRefCSAccess().getTypedRefCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_65); |
| this_TypedRefCS_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypedRefCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalQVTbase.g:2701:3: ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==117) ) { |
| alt87=1; |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalQVTbase.g:2702:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| { |
| // InternalQVTbase.g:2702:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| // InternalQVTbase.g:2703:5: lv_ownedMultiplicity_1_0= ruleMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedMultiplicityRefCSAccess().getOwnedMultiplicityMultiplicityCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedMultiplicity_1_0=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypedMultiplicityRefCSRule()); |
| } |
| set( |
| current, |
| "ownedMultiplicity", |
| lv_ownedMultiplicity_1_0, |
| "org.eclipse.ocl.xtext.base.Base.MultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypedMultiplicityRefCS" |
| |
| |
| // $ANTLR start "entryRuleTypedRefCS" |
| // InternalQVTbase.g:2724:1: entryRuleTypedRefCS returns [EObject current=null] : iv_ruleTypedRefCS= ruleTypedRefCS EOF ; |
| public final EObject entryRuleTypedRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypedRefCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2724:51: (iv_ruleTypedRefCS= ruleTypedRefCS EOF ) |
| // InternalQVTbase.g:2725:2: iv_ruleTypedRefCS= ruleTypedRefCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypedRefCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypedRefCS=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypedRefCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypedRefCS" |
| |
| |
| // $ANTLR start "ruleTypedRefCS" |
| // InternalQVTbase.g:2731:1: ruleTypedRefCS returns [EObject current=null] : (this_TypeLiteralCS_0= ruleTypeLiteralCS | this_TypedTypeRefCS_1= ruleTypedTypeRefCS ) ; |
| public final EObject ruleTypedRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypeLiteralCS_0 = null; |
| |
| EObject this_TypedTypeRefCS_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2737:2: ( (this_TypeLiteralCS_0= ruleTypeLiteralCS | this_TypedTypeRefCS_1= ruleTypedTypeRefCS ) ) |
| // InternalQVTbase.g:2738:2: (this_TypeLiteralCS_0= ruleTypeLiteralCS | this_TypedTypeRefCS_1= ruleTypedTypeRefCS ) |
| { |
| // InternalQVTbase.g:2738:2: (this_TypeLiteralCS_0= ruleTypeLiteralCS | this_TypedTypeRefCS_1= ruleTypedTypeRefCS ) |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( ((LA88_0>=92 && LA88_0<=106)) ) { |
| alt88=1; |
| } |
| else if ( ((LA88_0>=RULE_SIMPLE_ID && LA88_0<=RULE_ESCAPED_ID)) ) { |
| alt88=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 88, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalQVTbase.g:2739:3: this_TypeLiteralCS_0= ruleTypeLiteralCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedRefCSAccess().getTypeLiteralCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeLiteralCS_0=ruleTypeLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeLiteralCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2751:3: this_TypedTypeRefCS_1= ruleTypedTypeRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedRefCSAccess().getTypedTypeRefCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypedTypeRefCS_1=ruleTypedTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypedTypeRefCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypedRefCS" |
| |
| |
| // $ANTLR start "entryRuleStructuralFeatureCS" |
| // InternalQVTbase.g:2766:1: entryRuleStructuralFeatureCS returns [EObject current=null] : iv_ruleStructuralFeatureCS= ruleStructuralFeatureCS EOF ; |
| public final EObject entryRuleStructuralFeatureCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStructuralFeatureCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2766:60: (iv_ruleStructuralFeatureCS= ruleStructuralFeatureCS EOF ) |
| // InternalQVTbase.g:2767:2: iv_ruleStructuralFeatureCS= ruleStructuralFeatureCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStructuralFeatureCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleStructuralFeatureCS=ruleStructuralFeatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStructuralFeatureCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStructuralFeatureCS" |
| |
| |
| // $ANTLR start "ruleStructuralFeatureCS" |
| // InternalQVTbase.g:2773:1: ruleStructuralFeatureCS returns [EObject current=null] : (this_AttributeCS_0= ruleAttributeCS | this_ReferenceCS_1= ruleReferenceCS ) ; |
| public final EObject ruleStructuralFeatureCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_AttributeCS_0 = null; |
| |
| EObject this_ReferenceCS_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2779:2: ( (this_AttributeCS_0= ruleAttributeCS | this_ReferenceCS_1= ruleReferenceCS ) ) |
| // InternalQVTbase.g:2780:2: (this_AttributeCS_0= ruleAttributeCS | this_ReferenceCS_1= ruleReferenceCS ) |
| { |
| // InternalQVTbase.g:2780:2: (this_AttributeCS_0= ruleAttributeCS | this_ReferenceCS_1= ruleReferenceCS ) |
| int alt89=2; |
| switch ( input.LA(1) ) { |
| case 17: |
| { |
| switch ( input.LA(2) ) { |
| case 18: |
| { |
| int LA89_5 = input.LA(3); |
| |
| if ( (LA89_5==55) ) { |
| alt89=2; |
| } |
| else if ( (LA89_5==19) ) { |
| alt89=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 19: |
| { |
| alt89=1; |
| } |
| break; |
| case 55: |
| { |
| alt89=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 1, input); |
| |
| throw nvae; |
| } |
| |
| } |
| break; |
| case 18: |
| { |
| switch ( input.LA(2) ) { |
| case 17: |
| { |
| int LA89_6 = input.LA(3); |
| |
| if ( (LA89_6==19) ) { |
| alt89=1; |
| } |
| else if ( (LA89_6==55) ) { |
| alt89=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 6, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 19: |
| { |
| alt89=1; |
| } |
| break; |
| case 55: |
| { |
| alt89=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 2, input); |
| |
| throw nvae; |
| } |
| |
| } |
| break; |
| case 19: |
| { |
| alt89=1; |
| } |
| break; |
| case 55: |
| { |
| alt89=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt89) { |
| case 1 : |
| // InternalQVTbase.g:2781:3: this_AttributeCS_0= ruleAttributeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuralFeatureCSAccess().getAttributeCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_AttributeCS_0=ruleAttributeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_AttributeCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2793:3: this_ReferenceCS_1= ruleReferenceCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStructuralFeatureCSAccess().getReferenceCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_ReferenceCS_1=ruleReferenceCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_ReferenceCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStructuralFeatureCS" |
| |
| |
| // $ANTLR start "entryRuleEnumerationLiteralName" |
| // InternalQVTbase.g:2808:1: entryRuleEnumerationLiteralName returns [String current=null] : iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ; |
| public final String entryRuleEnumerationLiteralName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEnumerationLiteralName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2808:62: (iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ) |
| // InternalQVTbase.g:2809:2: iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEnumerationLiteralNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEnumerationLiteralName=ruleEnumerationLiteralName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEnumerationLiteralName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEnumerationLiteralName" |
| |
| |
| // $ANTLR start "ruleEnumerationLiteralName" |
| // InternalQVTbase.g:2815:1: ruleEnumerationLiteralName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName ; |
| public final AntlrDatatypeRuleToken ruleEnumerationLiteralName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLUnrestrictedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2821:2: (this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName ) |
| // InternalQVTbase.g:2822:2: this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEnumerationLiteralNameAccess().getEssentialOCLUnrestrictedNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLUnrestrictedName_0=ruleEssentialOCLUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLUnrestrictedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEnumerationLiteralName" |
| |
| |
| // $ANTLR start "entryRuleSIGNED" |
| // InternalQVTbase.g:2835:1: entryRuleSIGNED returns [String current=null] : iv_ruleSIGNED= ruleSIGNED EOF ; |
| public final String entryRuleSIGNED() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleSIGNED = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2835:46: (iv_ruleSIGNED= ruleSIGNED EOF ) |
| // InternalQVTbase.g:2836:2: iv_ruleSIGNED= ruleSIGNED EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSIGNEDRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSIGNED=ruleSIGNED(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSIGNED.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSIGNED" |
| |
| |
| // $ANTLR start "ruleSIGNED" |
| // InternalQVTbase.g:2842:1: ruleSIGNED returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_INT_1= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleSIGNED() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2848:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) |
| // InternalQVTbase.g:2849:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| { |
| // InternalQVTbase.g:2849:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| // InternalQVTbase.g:2850:3: (kw= '-' )? this_INT_1= RULE_INT |
| { |
| // InternalQVTbase.g:2850:3: (kw= '-' )? |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==69) ) { |
| alt90=1; |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalQVTbase.g:2851:4: kw= '-' |
| { |
| kw=(Token)match(input,69,FollowSets000.FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSIGNEDAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| this_INT_1=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getSIGNEDAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSIGNED" |
| |
| |
| // $ANTLR start "entryRuleEssentialOCLUnaryOperatorName" |
| // InternalQVTbase.g:2868:1: entryRuleEssentialOCLUnaryOperatorName returns [String current=null] : iv_ruleEssentialOCLUnaryOperatorName= ruleEssentialOCLUnaryOperatorName EOF ; |
| public final String entryRuleEssentialOCLUnaryOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEssentialOCLUnaryOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2868:69: (iv_ruleEssentialOCLUnaryOperatorName= ruleEssentialOCLUnaryOperatorName EOF ) |
| // InternalQVTbase.g:2869:2: iv_ruleEssentialOCLUnaryOperatorName= ruleEssentialOCLUnaryOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEssentialOCLUnaryOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEssentialOCLUnaryOperatorName=ruleEssentialOCLUnaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEssentialOCLUnaryOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEssentialOCLUnaryOperatorName" |
| |
| |
| // $ANTLR start "ruleEssentialOCLUnaryOperatorName" |
| // InternalQVTbase.g:2875:1: ruleEssentialOCLUnaryOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '-' | kw= 'not' | kw= 'not2' ) ; |
| public final AntlrDatatypeRuleToken ruleEssentialOCLUnaryOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2881:2: ( (kw= '-' | kw= 'not' | kw= 'not2' ) ) |
| // InternalQVTbase.g:2882:2: (kw= '-' | kw= 'not' | kw= 'not2' ) |
| { |
| // InternalQVTbase.g:2882:2: (kw= '-' | kw= 'not' | kw= 'not2' ) |
| int alt91=3; |
| switch ( input.LA(1) ) { |
| case 69: |
| { |
| alt91=1; |
| } |
| break; |
| case 70: |
| { |
| alt91=2; |
| } |
| break; |
| case 71: |
| { |
| alt91=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt91) { |
| case 1 : |
| // InternalQVTbase.g:2883:3: kw= '-' |
| { |
| kw=(Token)match(input,69,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLUnaryOperatorNameAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2889:3: kw= 'not' |
| { |
| kw=(Token)match(input,70,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLUnaryOperatorNameAccess().getNotKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:2895:3: kw= 'not2' |
| { |
| kw=(Token)match(input,71,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLUnaryOperatorNameAccess().getNot2Keyword_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEssentialOCLUnaryOperatorName" |
| |
| |
| // $ANTLR start "entryRuleEssentialOCLInfixOperatorName" |
| // InternalQVTbase.g:2904:1: entryRuleEssentialOCLInfixOperatorName returns [String current=null] : iv_ruleEssentialOCLInfixOperatorName= ruleEssentialOCLInfixOperatorName EOF ; |
| public final String entryRuleEssentialOCLInfixOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEssentialOCLInfixOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:2904:69: (iv_ruleEssentialOCLInfixOperatorName= ruleEssentialOCLInfixOperatorName EOF ) |
| // InternalQVTbase.g:2905:2: iv_ruleEssentialOCLInfixOperatorName= ruleEssentialOCLInfixOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEssentialOCLInfixOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEssentialOCLInfixOperatorName=ruleEssentialOCLInfixOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEssentialOCLInfixOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEssentialOCLInfixOperatorName" |
| |
| |
| // $ANTLR start "ruleEssentialOCLInfixOperatorName" |
| // InternalQVTbase.g:2911:1: ruleEssentialOCLInfixOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '/' | kw= '+' | kw= '-' | kw= '>' | kw= '<' | kw= '>=' | kw= '<=' | kw= '=' | kw= '<>' | kw= 'and' | kw= 'and2' | kw= 'implies' | kw= 'implies2' | kw= 'or' | kw= 'or2' | kw= 'xor' | kw= 'xor2' ) ; |
| public final AntlrDatatypeRuleToken ruleEssentialOCLInfixOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:2917:2: ( (kw= '*' | kw= '/' | kw= '+' | kw= '-' | kw= '>' | kw= '<' | kw= '>=' | kw= '<=' | kw= '=' | kw= '<>' | kw= 'and' | kw= 'and2' | kw= 'implies' | kw= 'implies2' | kw= 'or' | kw= 'or2' | kw= 'xor' | kw= 'xor2' ) ) |
| // InternalQVTbase.g:2918:2: (kw= '*' | kw= '/' | kw= '+' | kw= '-' | kw= '>' | kw= '<' | kw= '>=' | kw= '<=' | kw= '=' | kw= '<>' | kw= 'and' | kw= 'and2' | kw= 'implies' | kw= 'implies2' | kw= 'or' | kw= 'or2' | kw= 'xor' | kw= 'xor2' ) |
| { |
| // InternalQVTbase.g:2918:2: (kw= '*' | kw= '/' | kw= '+' | kw= '-' | kw= '>' | kw= '<' | kw= '>=' | kw= '<=' | kw= '=' | kw= '<>' | kw= 'and' | kw= 'and2' | kw= 'implies' | kw= 'implies2' | kw= 'or' | kw= 'or2' | kw= 'xor' | kw= 'xor2' ) |
| int alt92=18; |
| switch ( input.LA(1) ) { |
| case 72: |
| { |
| alt92=1; |
| } |
| break; |
| case 73: |
| { |
| alt92=2; |
| } |
| break; |
| case 74: |
| { |
| alt92=3; |
| } |
| break; |
| case 69: |
| { |
| alt92=4; |
| } |
| break; |
| case 75: |
| { |
| alt92=5; |
| } |
| break; |
| case 76: |
| { |
| alt92=6; |
| } |
| break; |
| case 77: |
| { |
| alt92=7; |
| } |
| break; |
| case 78: |
| { |
| alt92=8; |
| } |
| break; |
| case 21: |
| { |
| alt92=9; |
| } |
| break; |
| case 79: |
| { |
| alt92=10; |
| } |
| break; |
| case 80: |
| { |
| alt92=11; |
| } |
| break; |
| case 81: |
| { |
| alt92=12; |
| } |
| break; |
| case 82: |
| { |
| alt92=13; |
| } |
| break; |
| case 83: |
| { |
| alt92=14; |
| } |
| break; |
| case 84: |
| { |
| alt92=15; |
| } |
| break; |
| case 85: |
| { |
| alt92=16; |
| } |
| break; |
| case 86: |
| { |
| alt92=17; |
| } |
| break; |
| case 87: |
| { |
| alt92=18; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 92, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt92) { |
| case 1 : |
| // InternalQVTbase.g:2919:3: kw= '*' |
| { |
| kw=(Token)match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:2925:3: kw= '/' |
| { |
| kw=(Token)match(input,73,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getSolidusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:2931:3: kw= '+' |
| { |
| kw=(Token)match(input,74,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getPlusSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:2937:3: kw= '-' |
| { |
| kw=(Token)match(input,69,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getHyphenMinusKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:2943:3: kw= '>' |
| { |
| kw=(Token)match(input,75,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:2949:3: kw= '<' |
| { |
| kw=(Token)match(input,76,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getLessThanSignKeyword_5()); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalQVTbase.g:2955:3: kw= '>=' |
| { |
| kw=(Token)match(input,77,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getGreaterThanSignEqualsSignKeyword_6()); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalQVTbase.g:2961:3: kw= '<=' |
| { |
| kw=(Token)match(input,78,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getLessThanSignEqualsSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalQVTbase.g:2967:3: kw= '=' |
| { |
| kw=(Token)match(input,21,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getEqualsSignKeyword_8()); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalQVTbase.g:2973:3: kw= '<>' |
| { |
| kw=(Token)match(input,79,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getLessThanSignGreaterThanSignKeyword_9()); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalQVTbase.g:2979:3: kw= 'and' |
| { |
| kw=(Token)match(input,80,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getAndKeyword_10()); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalQVTbase.g:2985:3: kw= 'and2' |
| { |
| kw=(Token)match(input,81,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getAnd2Keyword_11()); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalQVTbase.g:2991:3: kw= 'implies' |
| { |
| kw=(Token)match(input,82,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getImpliesKeyword_12()); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalQVTbase.g:2997:3: kw= 'implies2' |
| { |
| kw=(Token)match(input,83,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getImplies2Keyword_13()); |
| |
| } |
| |
| } |
| break; |
| case 15 : |
| // InternalQVTbase.g:3003:3: kw= 'or' |
| { |
| kw=(Token)match(input,84,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getOrKeyword_14()); |
| |
| } |
| |
| } |
| break; |
| case 16 : |
| // InternalQVTbase.g:3009:3: kw= 'or2' |
| { |
| kw=(Token)match(input,85,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getOr2Keyword_15()); |
| |
| } |
| |
| } |
| break; |
| case 17 : |
| // InternalQVTbase.g:3015:3: kw= 'xor' |
| { |
| kw=(Token)match(input,86,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getXorKeyword_16()); |
| |
| } |
| |
| } |
| break; |
| case 18 : |
| // InternalQVTbase.g:3021:3: kw= 'xor2' |
| { |
| kw=(Token)match(input,87,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLInfixOperatorNameAccess().getXor2Keyword_17()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEssentialOCLInfixOperatorName" |
| |
| |
| // $ANTLR start "entryRuleEssentialOCLNavigationOperatorName" |
| // InternalQVTbase.g:3030:1: entryRuleEssentialOCLNavigationOperatorName returns [String current=null] : iv_ruleEssentialOCLNavigationOperatorName= ruleEssentialOCLNavigationOperatorName EOF ; |
| public final String entryRuleEssentialOCLNavigationOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEssentialOCLNavigationOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3030:74: (iv_ruleEssentialOCLNavigationOperatorName= ruleEssentialOCLNavigationOperatorName EOF ) |
| // InternalQVTbase.g:3031:2: iv_ruleEssentialOCLNavigationOperatorName= ruleEssentialOCLNavigationOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEssentialOCLNavigationOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEssentialOCLNavigationOperatorName=ruleEssentialOCLNavigationOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEssentialOCLNavigationOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEssentialOCLNavigationOperatorName" |
| |
| |
| // $ANTLR start "ruleEssentialOCLNavigationOperatorName" |
| // InternalQVTbase.g:3037:1: ruleEssentialOCLNavigationOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '.' | kw= '->' | kw= '?.' | kw= '?->' ) ; |
| public final AntlrDatatypeRuleToken ruleEssentialOCLNavigationOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3043:2: ( (kw= '.' | kw= '->' | kw= '?.' | kw= '?->' ) ) |
| // InternalQVTbase.g:3044:2: (kw= '.' | kw= '->' | kw= '?.' | kw= '?->' ) |
| { |
| // InternalQVTbase.g:3044:2: (kw= '.' | kw= '->' | kw= '?.' | kw= '?->' ) |
| int alt93=4; |
| switch ( input.LA(1) ) { |
| case 88: |
| { |
| alt93=1; |
| } |
| break; |
| case 89: |
| { |
| alt93=2; |
| } |
| break; |
| case 90: |
| { |
| alt93=3; |
| } |
| break; |
| case 91: |
| { |
| alt93=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 93, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt93) { |
| case 1 : |
| // InternalQVTbase.g:3045:3: kw= '.' |
| { |
| kw=(Token)match(input,88,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLNavigationOperatorNameAccess().getFullStopKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3051:3: kw= '->' |
| { |
| kw=(Token)match(input,89,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLNavigationOperatorNameAccess().getHyphenMinusGreaterThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:3057:3: kw= '?.' |
| { |
| kw=(Token)match(input,90,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLNavigationOperatorNameAccess().getQuestionMarkFullStopKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:3063:3: kw= '?->' |
| { |
| kw=(Token)match(input,91,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLNavigationOperatorNameAccess().getQuestionMarkHyphenMinusGreaterThanSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEssentialOCLNavigationOperatorName" |
| |
| |
| // $ANTLR start "entryRuleBinaryOperatorName" |
| // InternalQVTbase.g:3072:1: entryRuleBinaryOperatorName returns [String current=null] : iv_ruleBinaryOperatorName= ruleBinaryOperatorName EOF ; |
| public final String entryRuleBinaryOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleBinaryOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3072:58: (iv_ruleBinaryOperatorName= ruleBinaryOperatorName EOF ) |
| // InternalQVTbase.g:3073:2: iv_ruleBinaryOperatorName= ruleBinaryOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getBinaryOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleBinaryOperatorName=ruleBinaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleBinaryOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleBinaryOperatorName" |
| |
| |
| // $ANTLR start "ruleBinaryOperatorName" |
| // InternalQVTbase.g:3079:1: ruleBinaryOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_InfixOperatorName_0= ruleInfixOperatorName | this_NavigationOperatorName_1= ruleNavigationOperatorName ) ; |
| public final AntlrDatatypeRuleToken ruleBinaryOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_InfixOperatorName_0 = null; |
| |
| AntlrDatatypeRuleToken this_NavigationOperatorName_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3085:2: ( (this_InfixOperatorName_0= ruleInfixOperatorName | this_NavigationOperatorName_1= ruleNavigationOperatorName ) ) |
| // InternalQVTbase.g:3086:2: (this_InfixOperatorName_0= ruleInfixOperatorName | this_NavigationOperatorName_1= ruleNavigationOperatorName ) |
| { |
| // InternalQVTbase.g:3086:2: (this_InfixOperatorName_0= ruleInfixOperatorName | this_NavigationOperatorName_1= ruleNavigationOperatorName ) |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==21||LA94_0==69||(LA94_0>=72 && LA94_0<=87)) ) { |
| alt94=1; |
| } |
| else if ( ((LA94_0>=88 && LA94_0<=91)) ) { |
| 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 : |
| // InternalQVTbase.g:3087:3: this_InfixOperatorName_0= ruleInfixOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getBinaryOperatorNameAccess().getInfixOperatorNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_InfixOperatorName_0=ruleInfixOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_InfixOperatorName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3098:3: this_NavigationOperatorName_1= ruleNavigationOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getBinaryOperatorNameAccess().getNavigationOperatorNameParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_NavigationOperatorName_1=ruleNavigationOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_NavigationOperatorName_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleBinaryOperatorName" |
| |
| |
| // $ANTLR start "entryRuleInfixOperatorName" |
| // InternalQVTbase.g:3112:1: entryRuleInfixOperatorName returns [String current=null] : iv_ruleInfixOperatorName= ruleInfixOperatorName EOF ; |
| public final String entryRuleInfixOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleInfixOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3112:57: (iv_ruleInfixOperatorName= ruleInfixOperatorName EOF ) |
| // InternalQVTbase.g:3113:2: iv_ruleInfixOperatorName= ruleInfixOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getInfixOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleInfixOperatorName=ruleInfixOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleInfixOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleInfixOperatorName" |
| |
| |
| // $ANTLR start "ruleInfixOperatorName" |
| // InternalQVTbase.g:3119:1: ruleInfixOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLInfixOperatorName_0= ruleEssentialOCLInfixOperatorName ; |
| public final AntlrDatatypeRuleToken ruleInfixOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLInfixOperatorName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3125:2: (this_EssentialOCLInfixOperatorName_0= ruleEssentialOCLInfixOperatorName ) |
| // InternalQVTbase.g:3126:2: this_EssentialOCLInfixOperatorName_0= ruleEssentialOCLInfixOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getInfixOperatorNameAccess().getEssentialOCLInfixOperatorNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLInfixOperatorName_0=ruleEssentialOCLInfixOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLInfixOperatorName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleInfixOperatorName" |
| |
| |
| // $ANTLR start "entryRuleNavigationOperatorName" |
| // InternalQVTbase.g:3139:1: entryRuleNavigationOperatorName returns [String current=null] : iv_ruleNavigationOperatorName= ruleNavigationOperatorName EOF ; |
| public final String entryRuleNavigationOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleNavigationOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3139:62: (iv_ruleNavigationOperatorName= ruleNavigationOperatorName EOF ) |
| // InternalQVTbase.g:3140:2: iv_ruleNavigationOperatorName= ruleNavigationOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigationOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigationOperatorName=ruleNavigationOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigationOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigationOperatorName" |
| |
| |
| // $ANTLR start "ruleNavigationOperatorName" |
| // InternalQVTbase.g:3146:1: ruleNavigationOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLNavigationOperatorName_0= ruleEssentialOCLNavigationOperatorName ; |
| public final AntlrDatatypeRuleToken ruleNavigationOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLNavigationOperatorName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3152:2: (this_EssentialOCLNavigationOperatorName_0= ruleEssentialOCLNavigationOperatorName ) |
| // InternalQVTbase.g:3153:2: this_EssentialOCLNavigationOperatorName_0= ruleEssentialOCLNavigationOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigationOperatorNameAccess().getEssentialOCLNavigationOperatorNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLNavigationOperatorName_0=ruleEssentialOCLNavigationOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLNavigationOperatorName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigationOperatorName" |
| |
| |
| // $ANTLR start "entryRuleUnaryOperatorName" |
| // InternalQVTbase.g:3166:1: entryRuleUnaryOperatorName returns [String current=null] : iv_ruleUnaryOperatorName= ruleUnaryOperatorName EOF ; |
| public final String entryRuleUnaryOperatorName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUnaryOperatorName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3166:57: (iv_ruleUnaryOperatorName= ruleUnaryOperatorName EOF ) |
| // InternalQVTbase.g:3167:2: iv_ruleUnaryOperatorName= ruleUnaryOperatorName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUnaryOperatorNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUnaryOperatorName=ruleUnaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUnaryOperatorName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUnaryOperatorName" |
| |
| |
| // $ANTLR start "ruleUnaryOperatorName" |
| // InternalQVTbase.g:3173:1: ruleUnaryOperatorName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLUnaryOperatorName_0= ruleEssentialOCLUnaryOperatorName ; |
| public final AntlrDatatypeRuleToken ruleUnaryOperatorName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLUnaryOperatorName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3179:2: (this_EssentialOCLUnaryOperatorName_0= ruleEssentialOCLUnaryOperatorName ) |
| // InternalQVTbase.g:3180:2: this_EssentialOCLUnaryOperatorName_0= ruleEssentialOCLUnaryOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getUnaryOperatorNameAccess().getEssentialOCLUnaryOperatorNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLUnaryOperatorName_0=ruleEssentialOCLUnaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLUnaryOperatorName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUnaryOperatorName" |
| |
| |
| // $ANTLR start "entryRuleEssentialOCLUnrestrictedName" |
| // InternalQVTbase.g:3193:1: entryRuleEssentialOCLUnrestrictedName returns [String current=null] : iv_ruleEssentialOCLUnrestrictedName= ruleEssentialOCLUnrestrictedName EOF ; |
| public final String entryRuleEssentialOCLUnrestrictedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEssentialOCLUnrestrictedName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3193:68: (iv_ruleEssentialOCLUnrestrictedName= ruleEssentialOCLUnrestrictedName EOF ) |
| // InternalQVTbase.g:3194:2: iv_ruleEssentialOCLUnrestrictedName= ruleEssentialOCLUnrestrictedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEssentialOCLUnrestrictedNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEssentialOCLUnrestrictedName=ruleEssentialOCLUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEssentialOCLUnrestrictedName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEssentialOCLUnrestrictedName" |
| |
| |
| // $ANTLR start "ruleEssentialOCLUnrestrictedName" |
| // InternalQVTbase.g:3200:1: ruleEssentialOCLUnrestrictedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_Identifier_0= ruleIdentifier ; |
| public final AntlrDatatypeRuleToken ruleEssentialOCLUnrestrictedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_Identifier_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3206:2: (this_Identifier_0= ruleIdentifier ) |
| // InternalQVTbase.g:3207:2: this_Identifier_0= ruleIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEssentialOCLUnrestrictedNameAccess().getIdentifierParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_Identifier_0=ruleIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_Identifier_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEssentialOCLUnrestrictedName" |
| |
| |
| // $ANTLR start "entryRuleUnrestrictedName" |
| // InternalQVTbase.g:3220:1: entryRuleUnrestrictedName returns [String current=null] : iv_ruleUnrestrictedName= ruleUnrestrictedName EOF ; |
| public final String entryRuleUnrestrictedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUnrestrictedName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3220:56: (iv_ruleUnrestrictedName= ruleUnrestrictedName EOF ) |
| // InternalQVTbase.g:3221:2: iv_ruleUnrestrictedName= ruleUnrestrictedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUnrestrictedNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUnrestrictedName=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUnrestrictedName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUnrestrictedName" |
| |
| |
| // $ANTLR start "ruleUnrestrictedName" |
| // InternalQVTbase.g:3227:1: ruleUnrestrictedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName ; |
| public final AntlrDatatypeRuleToken ruleUnrestrictedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLUnrestrictedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3233:2: (this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName ) |
| // InternalQVTbase.g:3234:2: this_EssentialOCLUnrestrictedName_0= ruleEssentialOCLUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getUnrestrictedNameAccess().getEssentialOCLUnrestrictedNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLUnrestrictedName_0=ruleEssentialOCLUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLUnrestrictedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUnrestrictedName" |
| |
| |
| // $ANTLR start "entryRuleEssentialOCLUnreservedName" |
| // InternalQVTbase.g:3247:1: entryRuleEssentialOCLUnreservedName returns [String current=null] : iv_ruleEssentialOCLUnreservedName= ruleEssentialOCLUnreservedName EOF ; |
| public final String entryRuleEssentialOCLUnreservedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEssentialOCLUnreservedName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3247:66: (iv_ruleEssentialOCLUnreservedName= ruleEssentialOCLUnreservedName EOF ) |
| // InternalQVTbase.g:3248:2: iv_ruleEssentialOCLUnreservedName= ruleEssentialOCLUnreservedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEssentialOCLUnreservedNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEssentialOCLUnreservedName=ruleEssentialOCLUnreservedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEssentialOCLUnreservedName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEssentialOCLUnreservedName" |
| |
| |
| // $ANTLR start "ruleEssentialOCLUnreservedName" |
| // InternalQVTbase.g:3254:1: ruleEssentialOCLUnreservedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_UnrestrictedName_0= ruleUnrestrictedName | this_CollectionTypeIdentifier_1= ruleCollectionTypeIdentifier | this_PrimitiveTypeIdentifier_2= rulePrimitiveTypeIdentifier | kw= 'Map' | kw= 'Tuple' ) ; |
| public final AntlrDatatypeRuleToken ruleEssentialOCLUnreservedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_UnrestrictedName_0 = null; |
| |
| AntlrDatatypeRuleToken this_CollectionTypeIdentifier_1 = null; |
| |
| AntlrDatatypeRuleToken this_PrimitiveTypeIdentifier_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3260:2: ( (this_UnrestrictedName_0= ruleUnrestrictedName | this_CollectionTypeIdentifier_1= ruleCollectionTypeIdentifier | this_PrimitiveTypeIdentifier_2= rulePrimitiveTypeIdentifier | kw= 'Map' | kw= 'Tuple' ) ) |
| // InternalQVTbase.g:3261:2: (this_UnrestrictedName_0= ruleUnrestrictedName | this_CollectionTypeIdentifier_1= ruleCollectionTypeIdentifier | this_PrimitiveTypeIdentifier_2= rulePrimitiveTypeIdentifier | kw= 'Map' | kw= 'Tuple' ) |
| { |
| // InternalQVTbase.g:3261:2: (this_UnrestrictedName_0= ruleUnrestrictedName | this_CollectionTypeIdentifier_1= ruleCollectionTypeIdentifier | this_PrimitiveTypeIdentifier_2= rulePrimitiveTypeIdentifier | kw= 'Map' | kw= 'Tuple' ) |
| int alt95=5; |
| switch ( input.LA(1) ) { |
| case RULE_SIMPLE_ID: |
| case RULE_ESCAPED_ID: |
| { |
| alt95=1; |
| } |
| break; |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| { |
| alt95=2; |
| } |
| break; |
| case 94: |
| case 95: |
| case 96: |
| case 97: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| { |
| alt95=3; |
| } |
| break; |
| case 92: |
| { |
| alt95=4; |
| } |
| break; |
| case 93: |
| { |
| alt95=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 95, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt95) { |
| case 1 : |
| // InternalQVTbase.g:3262:3: this_UnrestrictedName_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEssentialOCLUnreservedNameAccess().getUnrestrictedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_UnrestrictedName_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_UnrestrictedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3273:3: this_CollectionTypeIdentifier_1= ruleCollectionTypeIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEssentialOCLUnreservedNameAccess().getCollectionTypeIdentifierParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_CollectionTypeIdentifier_1=ruleCollectionTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_CollectionTypeIdentifier_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:3284:3: this_PrimitiveTypeIdentifier_2= rulePrimitiveTypeIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEssentialOCLUnreservedNameAccess().getPrimitiveTypeIdentifierParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_PrimitiveTypeIdentifier_2=rulePrimitiveTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_PrimitiveTypeIdentifier_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:3295:3: kw= 'Map' |
| { |
| kw=(Token)match(input,92,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLUnreservedNameAccess().getMapKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:3301:3: kw= 'Tuple' |
| { |
| kw=(Token)match(input,93,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEssentialOCLUnreservedNameAccess().getTupleKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEssentialOCLUnreservedName" |
| |
| |
| // $ANTLR start "entryRuleUnreservedName" |
| // InternalQVTbase.g:3310:1: entryRuleUnreservedName returns [String current=null] : iv_ruleUnreservedName= ruleUnreservedName EOF ; |
| public final String entryRuleUnreservedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUnreservedName = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3310:54: (iv_ruleUnreservedName= ruleUnreservedName EOF ) |
| // InternalQVTbase.g:3311:2: iv_ruleUnreservedName= ruleUnreservedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUnreservedNameRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUnreservedName=ruleUnreservedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUnreservedName.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUnreservedName" |
| |
| |
| // $ANTLR start "ruleUnreservedName" |
| // InternalQVTbase.g:3317:1: ruleUnreservedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_EssentialOCLUnreservedName_0= ruleEssentialOCLUnreservedName ; |
| public final AntlrDatatypeRuleToken ruleUnreservedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_EssentialOCLUnreservedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3323:2: (this_EssentialOCLUnreservedName_0= ruleEssentialOCLUnreservedName ) |
| // InternalQVTbase.g:3324:2: this_EssentialOCLUnreservedName_0= ruleEssentialOCLUnreservedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getUnreservedNameAccess().getEssentialOCLUnreservedNameParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_EssentialOCLUnreservedName_0=ruleEssentialOCLUnreservedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EssentialOCLUnreservedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUnreservedName" |
| |
| |
| // $ANTLR start "entryRuleURIFirstPathElementCS" |
| // InternalQVTbase.g:3337:1: entryRuleURIFirstPathElementCS returns [EObject current=null] : iv_ruleURIFirstPathElementCS= ruleURIFirstPathElementCS EOF ; |
| public final EObject entryRuleURIFirstPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleURIFirstPathElementCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3337:62: (iv_ruleURIFirstPathElementCS= ruleURIFirstPathElementCS EOF ) |
| // InternalQVTbase.g:3338:2: iv_ruleURIFirstPathElementCS= ruleURIFirstPathElementCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getURIFirstPathElementCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleURIFirstPathElementCS=ruleURIFirstPathElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleURIFirstPathElementCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleURIFirstPathElementCS" |
| |
| |
| // $ANTLR start "ruleURIFirstPathElementCS" |
| // InternalQVTbase.g:3344:1: ruleURIFirstPathElementCS returns [EObject current=null] : ( ( ( ruleUnrestrictedName ) ) | ( () ( ( ruleURI ) ) ) ) ; |
| public final EObject ruleURIFirstPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3350:2: ( ( ( ( ruleUnrestrictedName ) ) | ( () ( ( ruleURI ) ) ) ) ) |
| // InternalQVTbase.g:3351:2: ( ( ( ruleUnrestrictedName ) ) | ( () ( ( ruleURI ) ) ) ) |
| { |
| // InternalQVTbase.g:3351:2: ( ( ( ruleUnrestrictedName ) ) | ( () ( ( ruleURI ) ) ) ) |
| int alt96=2; |
| int LA96_0 = input.LA(1); |
| |
| if ( ((LA96_0>=RULE_SIMPLE_ID && LA96_0<=RULE_ESCAPED_ID)) ) { |
| alt96=1; |
| } |
| else if ( (LA96_0==RULE_SINGLE_QUOTED_STRING) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt96) { |
| case 1 : |
| // InternalQVTbase.g:3352:3: ( ( ruleUnrestrictedName ) ) |
| { |
| // InternalQVTbase.g:3352:3: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:3353:4: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:3353:4: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:3354:5: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getURIFirstPathElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getURIFirstPathElementCSAccess().getReferredElementNamedElementCrossReference_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3372:3: ( () ( ( ruleURI ) ) ) |
| { |
| // InternalQVTbase.g:3372:3: ( () ( ( ruleURI ) ) ) |
| // InternalQVTbase.g:3373:4: () ( ( ruleURI ) ) |
| { |
| // InternalQVTbase.g:3373:4: () |
| // InternalQVTbase.g:3374:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getURIFirstPathElementCSAccess().getPathElementWithURICSAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalQVTbase.g:3383:4: ( ( ruleURI ) ) |
| // InternalQVTbase.g:3384:5: ( ruleURI ) |
| { |
| // InternalQVTbase.g:3384:5: ( ruleURI ) |
| // InternalQVTbase.g:3385:6: ruleURI |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getURIFirstPathElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getURIFirstPathElementCSAccess().getReferredElementNamespaceCrossReference_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleURI(); |
| |
| 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 "ruleURIFirstPathElementCS" |
| |
| |
| // $ANTLR start "entryRulePrimitiveTypeIdentifier" |
| // InternalQVTbase.g:3407:1: entryRulePrimitiveTypeIdentifier returns [String current=null] : iv_rulePrimitiveTypeIdentifier= rulePrimitiveTypeIdentifier EOF ; |
| public final String entryRulePrimitiveTypeIdentifier() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_rulePrimitiveTypeIdentifier = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3407:63: (iv_rulePrimitiveTypeIdentifier= rulePrimitiveTypeIdentifier EOF ) |
| // InternalQVTbase.g:3408:2: iv_rulePrimitiveTypeIdentifier= rulePrimitiveTypeIdentifier EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrimitiveTypeIdentifierRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrimitiveTypeIdentifier=rulePrimitiveTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrimitiveTypeIdentifier.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrimitiveTypeIdentifier" |
| |
| |
| // $ANTLR start "rulePrimitiveTypeIdentifier" |
| // InternalQVTbase.g:3414:1: rulePrimitiveTypeIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'Boolean' | kw= 'Integer' | kw= 'Real' | kw= 'String' | kw= 'UnlimitedNatural' | kw= 'OclAny' | kw= 'OclInvalid' | kw= 'OclVoid' ) ; |
| public final AntlrDatatypeRuleToken rulePrimitiveTypeIdentifier() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3420:2: ( (kw= 'Boolean' | kw= 'Integer' | kw= 'Real' | kw= 'String' | kw= 'UnlimitedNatural' | kw= 'OclAny' | kw= 'OclInvalid' | kw= 'OclVoid' ) ) |
| // InternalQVTbase.g:3421:2: (kw= 'Boolean' | kw= 'Integer' | kw= 'Real' | kw= 'String' | kw= 'UnlimitedNatural' | kw= 'OclAny' | kw= 'OclInvalid' | kw= 'OclVoid' ) |
| { |
| // InternalQVTbase.g:3421:2: (kw= 'Boolean' | kw= 'Integer' | kw= 'Real' | kw= 'String' | kw= 'UnlimitedNatural' | kw= 'OclAny' | kw= 'OclInvalid' | kw= 'OclVoid' ) |
| int alt97=8; |
| switch ( input.LA(1) ) { |
| case 94: |
| { |
| alt97=1; |
| } |
| break; |
| case 95: |
| { |
| alt97=2; |
| } |
| break; |
| case 96: |
| { |
| alt97=3; |
| } |
| break; |
| case 97: |
| { |
| alt97=4; |
| } |
| break; |
| case 98: |
| { |
| alt97=5; |
| } |
| break; |
| case 99: |
| { |
| alt97=6; |
| } |
| break; |
| case 100: |
| { |
| alt97=7; |
| } |
| break; |
| case 101: |
| { |
| alt97=8; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt97) { |
| case 1 : |
| // InternalQVTbase.g:3422:3: kw= 'Boolean' |
| { |
| kw=(Token)match(input,94,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getBooleanKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3428:3: kw= 'Integer' |
| { |
| kw=(Token)match(input,95,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getIntegerKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:3434:3: kw= 'Real' |
| { |
| kw=(Token)match(input,96,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getRealKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:3440:3: kw= 'String' |
| { |
| kw=(Token)match(input,97,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getStringKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:3446:3: kw= 'UnlimitedNatural' |
| { |
| kw=(Token)match(input,98,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getUnlimitedNaturalKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:3452:3: kw= 'OclAny' |
| { |
| kw=(Token)match(input,99,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getOclAnyKeyword_5()); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalQVTbase.g:3458:3: kw= 'OclInvalid' |
| { |
| kw=(Token)match(input,100,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getOclInvalidKeyword_6()); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalQVTbase.g:3464:3: kw= 'OclVoid' |
| { |
| kw=(Token)match(input,101,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrimitiveTypeIdentifierAccess().getOclVoidKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrimitiveTypeIdentifier" |
| |
| |
| // $ANTLR start "entryRulePrimitiveTypeCS" |
| // InternalQVTbase.g:3473:1: entryRulePrimitiveTypeCS returns [EObject current=null] : iv_rulePrimitiveTypeCS= rulePrimitiveTypeCS EOF ; |
| public final EObject entryRulePrimitiveTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePrimitiveTypeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3473:56: (iv_rulePrimitiveTypeCS= rulePrimitiveTypeCS EOF ) |
| // InternalQVTbase.g:3474:2: iv_rulePrimitiveTypeCS= rulePrimitiveTypeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrimitiveTypeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrimitiveTypeCS=rulePrimitiveTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrimitiveTypeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrimitiveTypeCS" |
| |
| |
| // $ANTLR start "rulePrimitiveTypeCS" |
| // InternalQVTbase.g:3480:1: rulePrimitiveTypeCS returns [EObject current=null] : ( (lv_name_0_0= rulePrimitiveTypeIdentifier ) ) ; |
| public final EObject rulePrimitiveTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3486:2: ( ( (lv_name_0_0= rulePrimitiveTypeIdentifier ) ) ) |
| // InternalQVTbase.g:3487:2: ( (lv_name_0_0= rulePrimitiveTypeIdentifier ) ) |
| { |
| // InternalQVTbase.g:3487:2: ( (lv_name_0_0= rulePrimitiveTypeIdentifier ) ) |
| // InternalQVTbase.g:3488:3: (lv_name_0_0= rulePrimitiveTypeIdentifier ) |
| { |
| // InternalQVTbase.g:3488:3: (lv_name_0_0= rulePrimitiveTypeIdentifier ) |
| // InternalQVTbase.g:3489:4: lv_name_0_0= rulePrimitiveTypeIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveTypeCSAccess().getNamePrimitiveTypeIdentifierParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_name_0_0=rulePrimitiveTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrimitiveTypeCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PrimitiveTypeIdentifier"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrimitiveTypeCS" |
| |
| |
| // $ANTLR start "entryRuleCollectionTypeIdentifier" |
| // InternalQVTbase.g:3509:1: entryRuleCollectionTypeIdentifier returns [String current=null] : iv_ruleCollectionTypeIdentifier= ruleCollectionTypeIdentifier EOF ; |
| public final String entryRuleCollectionTypeIdentifier() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleCollectionTypeIdentifier = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3509:64: (iv_ruleCollectionTypeIdentifier= ruleCollectionTypeIdentifier EOF ) |
| // InternalQVTbase.g:3510:2: iv_ruleCollectionTypeIdentifier= ruleCollectionTypeIdentifier EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCollectionTypeIdentifierRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCollectionTypeIdentifier=ruleCollectionTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCollectionTypeIdentifier.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCollectionTypeIdentifier" |
| |
| |
| // $ANTLR start "ruleCollectionTypeIdentifier" |
| // InternalQVTbase.g:3516:1: ruleCollectionTypeIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'Set' | kw= 'Bag' | kw= 'Sequence' | kw= 'Collection' | kw= 'OrderedSet' ) ; |
| public final AntlrDatatypeRuleToken ruleCollectionTypeIdentifier() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3522:2: ( (kw= 'Set' | kw= 'Bag' | kw= 'Sequence' | kw= 'Collection' | kw= 'OrderedSet' ) ) |
| // InternalQVTbase.g:3523:2: (kw= 'Set' | kw= 'Bag' | kw= 'Sequence' | kw= 'Collection' | kw= 'OrderedSet' ) |
| { |
| // InternalQVTbase.g:3523:2: (kw= 'Set' | kw= 'Bag' | kw= 'Sequence' | kw= 'Collection' | kw= 'OrderedSet' ) |
| int alt98=5; |
| switch ( input.LA(1) ) { |
| case 102: |
| { |
| alt98=1; |
| } |
| break; |
| case 103: |
| { |
| alt98=2; |
| } |
| break; |
| case 104: |
| { |
| alt98=3; |
| } |
| break; |
| case 105: |
| { |
| alt98=4; |
| } |
| break; |
| case 106: |
| { |
| alt98=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 98, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt98) { |
| case 1 : |
| // InternalQVTbase.g:3524:3: kw= 'Set' |
| { |
| kw=(Token)match(input,102,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getCollectionTypeIdentifierAccess().getSetKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:3530:3: kw= 'Bag' |
| { |
| kw=(Token)match(input,103,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getCollectionTypeIdentifierAccess().getBagKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:3536:3: kw= 'Sequence' |
| { |
| kw=(Token)match(input,104,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getCollectionTypeIdentifierAccess().getSequenceKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:3542:3: kw= 'Collection' |
| { |
| kw=(Token)match(input,105,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getCollectionTypeIdentifierAccess().getCollectionKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:3548:3: kw= 'OrderedSet' |
| { |
| kw=(Token)match(input,106,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getCollectionTypeIdentifierAccess().getOrderedSetKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCollectionTypeIdentifier" |
| |
| |
| // $ANTLR start "entryRuleCollectionTypeCS" |
| // InternalQVTbase.g:3557:1: entryRuleCollectionTypeCS returns [EObject current=null] : iv_ruleCollectionTypeCS= ruleCollectionTypeCS EOF ; |
| public final EObject entryRuleCollectionTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCollectionTypeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3557:57: (iv_ruleCollectionTypeCS= ruleCollectionTypeCS EOF ) |
| // InternalQVTbase.g:3558:2: iv_ruleCollectionTypeCS= ruleCollectionTypeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCollectionTypeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCollectionTypeCS=ruleCollectionTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCollectionTypeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCollectionTypeCS" |
| |
| |
| // $ANTLR start "ruleCollectionTypeCS" |
| // InternalQVTbase.g:3564:1: ruleCollectionTypeCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? ) ; |
| public final EObject ruleCollectionTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedType_2_0 = null; |
| |
| EObject lv_ownedCollectionMultiplicity_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3570:2: ( ( ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? ) ) |
| // InternalQVTbase.g:3571:2: ( ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? ) |
| { |
| // InternalQVTbase.g:3571:2: ( ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? ) |
| // InternalQVTbase.g:3572:3: ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? |
| { |
| // InternalQVTbase.g:3572:3: ( (lv_name_0_0= ruleCollectionTypeIdentifier ) ) |
| // InternalQVTbase.g:3573:4: (lv_name_0_0= ruleCollectionTypeIdentifier ) |
| { |
| // InternalQVTbase.g:3573:4: (lv_name_0_0= ruleCollectionTypeIdentifier ) |
| // InternalQVTbase.g:3574:5: lv_name_0_0= ruleCollectionTypeIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionTypeCSAccess().getNameCollectionTypeIdentifierParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_67); |
| lv_name_0_0=ruleCollectionTypeIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionTypeCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CollectionTypeIdentifier"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3591:3: (otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' )? |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==51) ) { |
| alt100=1; |
| } |
| switch (alt100) { |
| case 1 : |
| // InternalQVTbase.g:3592:4: otherlv_1= '(' ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? otherlv_4= ')' |
| { |
| otherlv_1=(Token)match(input,51,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCollectionTypeCSAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:3596:4: ( (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) ) |
| // InternalQVTbase.g:3597:5: (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) |
| { |
| // InternalQVTbase.g:3597:5: (lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS ) |
| // InternalQVTbase.g:3598:6: lv_ownedType_2_0= ruleTypeExpWithoutMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionTypeCSAccess().getOwnedTypeTypeExpWithoutMultiplicityCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_68); |
| lv_ownedType_2_0=ruleTypeExpWithoutMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionTypeCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpWithoutMultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3615:4: ( (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) )? |
| int alt99=2; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==117) ) { |
| alt99=1; |
| } |
| switch (alt99) { |
| case 1 : |
| // InternalQVTbase.g:3616:5: (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) |
| { |
| // InternalQVTbase.g:3616:5: (lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS ) |
| // InternalQVTbase.g:3617:6: lv_ownedCollectionMultiplicity_3_0= ruleMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionTypeCSAccess().getOwnedCollectionMultiplicityMultiplicityCSParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_69); |
| lv_ownedCollectionMultiplicity_3_0=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionTypeCSRule()); |
| } |
| set( |
| current, |
| "ownedCollectionMultiplicity", |
| lv_ownedCollectionMultiplicity_3_0, |
| "org.eclipse.ocl.xtext.base.Base.MultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getCollectionTypeCSAccess().getRightParenthesisKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCollectionTypeCS" |
| |
| |
| // $ANTLR start "entryRuleMapTypeCS" |
| // InternalQVTbase.g:3643:1: entryRuleMapTypeCS returns [EObject current=null] : iv_ruleMapTypeCS= ruleMapTypeCS EOF ; |
| public final EObject entryRuleMapTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMapTypeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3643:50: (iv_ruleMapTypeCS= ruleMapTypeCS EOF ) |
| // InternalQVTbase.g:3644:2: iv_ruleMapTypeCS= ruleMapTypeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMapTypeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMapTypeCS=ruleMapTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMapTypeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMapTypeCS" |
| |
| |
| // $ANTLR start "ruleMapTypeCS" |
| // InternalQVTbase.g:3650:1: ruleMapTypeCS returns [EObject current=null] : ( ( (lv_name_0_0= 'Map' ) ) (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? ) ; |
| public final EObject ruleMapTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_name_0_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedKeyType_2_0 = null; |
| |
| EObject lv_ownedValueType_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3656:2: ( ( ( (lv_name_0_0= 'Map' ) ) (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? ) ) |
| // InternalQVTbase.g:3657:2: ( ( (lv_name_0_0= 'Map' ) ) (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? ) |
| { |
| // InternalQVTbase.g:3657:2: ( ( (lv_name_0_0= 'Map' ) ) (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? ) |
| // InternalQVTbase.g:3658:3: ( (lv_name_0_0= 'Map' ) ) (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? |
| { |
| // InternalQVTbase.g:3658:3: ( (lv_name_0_0= 'Map' ) ) |
| // InternalQVTbase.g:3659:4: (lv_name_0_0= 'Map' ) |
| { |
| // InternalQVTbase.g:3659:4: (lv_name_0_0= 'Map' ) |
| // InternalQVTbase.g:3660:5: lv_name_0_0= 'Map' |
| { |
| lv_name_0_0=(Token)match(input,92,FollowSets000.FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_0_0, grammarAccess.getMapTypeCSAccess().getNameMapKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMapTypeCSRule()); |
| } |
| setWithLastConsumed(current, "name", lv_name_0_0, "Map"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3672:3: (otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' )? |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==51) ) { |
| alt101=1; |
| } |
| switch (alt101) { |
| case 1 : |
| // InternalQVTbase.g:3673:4: otherlv_1= '(' ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) otherlv_3= ',' ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) otherlv_5= ')' |
| { |
| otherlv_1=(Token)match(input,51,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getMapTypeCSAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:3677:4: ( (lv_ownedKeyType_2_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:3678:5: (lv_ownedKeyType_2_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:3678:5: (lv_ownedKeyType_2_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:3679:6: lv_ownedKeyType_2_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapTypeCSAccess().getOwnedKeyTypeTypeExpCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_70); |
| lv_ownedKeyType_2_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapTypeCSRule()); |
| } |
| set( |
| current, |
| "ownedKeyType", |
| lv_ownedKeyType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getMapTypeCSAccess().getCommaKeyword_1_2()); |
| |
| } |
| // InternalQVTbase.g:3700:4: ( (lv_ownedValueType_4_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:3701:5: (lv_ownedValueType_4_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:3701:5: (lv_ownedValueType_4_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:3702:6: lv_ownedValueType_4_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapTypeCSAccess().getOwnedValueTypeTypeExpCSParserRuleCall_1_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_69); |
| lv_ownedValueType_4_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapTypeCSRule()); |
| } |
| set( |
| current, |
| "ownedValueType", |
| lv_ownedValueType_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getMapTypeCSAccess().getRightParenthesisKeyword_1_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMapTypeCS" |
| |
| |
| // $ANTLR start "entryRuleTupleTypeCS" |
| // InternalQVTbase.g:3728:1: entryRuleTupleTypeCS returns [EObject current=null] : iv_ruleTupleTypeCS= ruleTupleTypeCS EOF ; |
| public final EObject entryRuleTupleTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTupleTypeCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3728:52: (iv_ruleTupleTypeCS= ruleTupleTypeCS EOF ) |
| // InternalQVTbase.g:3729:2: iv_ruleTupleTypeCS= ruleTupleTypeCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTupleTypeCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTupleTypeCS=ruleTupleTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTupleTypeCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTupleTypeCS" |
| |
| |
| // $ANTLR start "ruleTupleTypeCS" |
| // InternalQVTbase.g:3735:1: ruleTupleTypeCS returns [EObject current=null] : ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? ) ; |
| public final EObject ruleTupleTypeCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_name_0_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3741:2: ( ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? ) ) |
| // InternalQVTbase.g:3742:2: ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? ) |
| { |
| // InternalQVTbase.g:3742:2: ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? ) |
| // InternalQVTbase.g:3743:3: ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? |
| { |
| // InternalQVTbase.g:3743:3: ( (lv_name_0_0= 'Tuple' ) ) |
| // InternalQVTbase.g:3744:4: (lv_name_0_0= 'Tuple' ) |
| { |
| // InternalQVTbase.g:3744:4: (lv_name_0_0= 'Tuple' ) |
| // InternalQVTbase.g:3745:5: lv_name_0_0= 'Tuple' |
| { |
| lv_name_0_0=(Token)match(input,93,FollowSets000.FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_0_0, grammarAccess.getTupleTypeCSAccess().getNameTupleKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTupleTypeCSRule()); |
| } |
| setWithLastConsumed(current, "name", lv_name_0_0, "Tuple"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3757:3: (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( (LA104_0==51) ) { |
| alt104=1; |
| } |
| switch (alt104) { |
| case 1 : |
| // InternalQVTbase.g:3758:4: otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' |
| { |
| otherlv_1=(Token)match(input,51,FollowSets000.FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTupleTypeCSAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:3762:4: ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( ((LA103_0>=RULE_SIMPLE_ID && LA103_0<=RULE_ESCAPED_ID)) ) { |
| alt103=1; |
| } |
| switch (alt103) { |
| case 1 : |
| // InternalQVTbase.g:3763:5: ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* |
| { |
| // InternalQVTbase.g:3763:5: ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) |
| // InternalQVTbase.g:3764:6: (lv_ownedParts_2_0= ruleTuplePartCS ) |
| { |
| // InternalQVTbase.g:3764:6: (lv_ownedParts_2_0= ruleTuplePartCS ) |
| // InternalQVTbase.g:3765:7: lv_ownedParts_2_0= ruleTuplePartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleTypeCSAccess().getOwnedPartsTuplePartCSParserRuleCall_1_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParts_2_0=ruleTuplePartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleTypeCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TuplePartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3782:5: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* |
| loop102: |
| do { |
| int alt102=2; |
| int LA102_0 = input.LA(1); |
| |
| if ( (LA102_0==39) ) { |
| alt102=1; |
| } |
| |
| |
| switch (alt102) { |
| case 1 : |
| // InternalQVTbase.g:3783:6: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTupleTypeCSAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:3787:6: ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) |
| // InternalQVTbase.g:3788:7: (lv_ownedParts_4_0= ruleTuplePartCS ) |
| { |
| // InternalQVTbase.g:3788:7: (lv_ownedParts_4_0= ruleTuplePartCS ) |
| // InternalQVTbase.g:3789:8: lv_ownedParts_4_0= ruleTuplePartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleTypeCSAccess().getOwnedPartsTuplePartCSParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParts_4_0=ruleTuplePartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleTypeCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TuplePartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop102; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTupleTypeCSAccess().getRightParenthesisKeyword_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTupleTypeCS" |
| |
| |
| // $ANTLR start "entryRuleTuplePartCS" |
| // InternalQVTbase.g:3817:1: entryRuleTuplePartCS returns [EObject current=null] : iv_ruleTuplePartCS= ruleTuplePartCS EOF ; |
| public final EObject entryRuleTuplePartCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTuplePartCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3817:52: (iv_ruleTuplePartCS= ruleTuplePartCS EOF ) |
| // InternalQVTbase.g:3818:2: iv_ruleTuplePartCS= ruleTuplePartCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTuplePartCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTuplePartCS=ruleTuplePartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTuplePartCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTuplePartCS" |
| |
| |
| // $ANTLR start "ruleTuplePartCS" |
| // InternalQVTbase.g:3824:1: ruleTuplePartCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) ) ; |
| public final EObject ruleTuplePartCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedType_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3830:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) ) ) |
| // InternalQVTbase.g:3831:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) ) |
| { |
| // InternalQVTbase.g:3831:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) ) |
| // InternalQVTbase.g:3832:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| { |
| // InternalQVTbase.g:3832:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:3833:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:3833:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:3834:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTuplePartCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTuplePartCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTuplePartCSAccess().getColonKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:3855:3: ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:3856:4: (lv_ownedType_2_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:3856:4: (lv_ownedType_2_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:3857:5: lv_ownedType_2_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTuplePartCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedType_2_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTuplePartCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTuplePartCS" |
| |
| |
| // $ANTLR start "entryRuleCollectionLiteralExpCS" |
| // InternalQVTbase.g:3878:1: entryRuleCollectionLiteralExpCS returns [EObject current=null] : iv_ruleCollectionLiteralExpCS= ruleCollectionLiteralExpCS EOF ; |
| public final EObject entryRuleCollectionLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCollectionLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3878:63: (iv_ruleCollectionLiteralExpCS= ruleCollectionLiteralExpCS EOF ) |
| // InternalQVTbase.g:3879:2: iv_ruleCollectionLiteralExpCS= ruleCollectionLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCollectionLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCollectionLiteralExpCS=ruleCollectionLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCollectionLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCollectionLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleCollectionLiteralExpCS" |
| // InternalQVTbase.g:3885:1: ruleCollectionLiteralExpCS returns [EObject current=null] : ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? otherlv_5= '}' ) ; |
| public final EObject ruleCollectionLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedType_0_0 = null; |
| |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3891:2: ( ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? otherlv_5= '}' ) ) |
| // InternalQVTbase.g:3892:2: ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? otherlv_5= '}' ) |
| { |
| // InternalQVTbase.g:3892:2: ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? otherlv_5= '}' ) |
| // InternalQVTbase.g:3893:3: ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? otherlv_5= '}' |
| { |
| // InternalQVTbase.g:3893:3: ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) |
| // InternalQVTbase.g:3894:4: (lv_ownedType_0_0= ruleCollectionTypeCS ) |
| { |
| // InternalQVTbase.g:3894:4: (lv_ownedType_0_0= ruleCollectionTypeCS ) |
| // InternalQVTbase.g:3895:5: lv_ownedType_0_0= ruleCollectionTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralExpCSAccess().getOwnedTypeCollectionTypeCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_71); |
| lv_ownedType_0_0=ruleCollectionTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralExpCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CollectionTypeCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCollectionLiteralExpCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:3916:3: ( ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* )? |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==RULE_SINGLE_QUOTED_STRING||(LA106_0>=RULE_INT && LA106_0<=RULE_ESCAPED_ID)||LA106_0==20||LA106_0==51||(LA106_0>=69 && LA106_0<=72)||(LA106_0>=92 && LA106_0<=106)||LA106_0==109||(LA106_0>=111 && LA106_0<=114)||LA106_0==121||(LA106_0>=126 && LA106_0<=127)) ) { |
| alt106=1; |
| } |
| switch (alt106) { |
| case 1 : |
| // InternalQVTbase.g:3917:4: ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* |
| { |
| // InternalQVTbase.g:3917:4: ( (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) ) |
| // InternalQVTbase.g:3918:5: (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) |
| { |
| // InternalQVTbase.g:3918:5: (lv_ownedParts_2_0= ruleCollectionLiteralPartCS ) |
| // InternalQVTbase.g:3919:6: lv_ownedParts_2_0= ruleCollectionLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralExpCSAccess().getOwnedPartsCollectionLiteralPartCSParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_2_0=ruleCollectionLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CollectionLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:3936:4: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) )* |
| loop105: |
| do { |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( (LA105_0==39) ) { |
| alt105=1; |
| } |
| |
| |
| switch (alt105) { |
| case 1 : |
| // InternalQVTbase.g:3937:5: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getCollectionLiteralExpCSAccess().getCommaKeyword_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:3941:5: ( (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) ) |
| // InternalQVTbase.g:3942:6: (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) |
| { |
| // InternalQVTbase.g:3942:6: (lv_ownedParts_4_0= ruleCollectionLiteralPartCS ) |
| // InternalQVTbase.g:3943:7: lv_ownedParts_4_0= ruleCollectionLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralExpCSAccess().getOwnedPartsCollectionLiteralPartCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_4_0=ruleCollectionLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CollectionLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop105; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getCollectionLiteralExpCSAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCollectionLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleCollectionLiteralPartCS" |
| // InternalQVTbase.g:3970:1: entryRuleCollectionLiteralPartCS returns [EObject current=null] : iv_ruleCollectionLiteralPartCS= ruleCollectionLiteralPartCS EOF ; |
| public final EObject entryRuleCollectionLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCollectionLiteralPartCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:3970:64: (iv_ruleCollectionLiteralPartCS= ruleCollectionLiteralPartCS EOF ) |
| // InternalQVTbase.g:3971:2: iv_ruleCollectionLiteralPartCS= ruleCollectionLiteralPartCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCollectionLiteralPartCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCollectionLiteralPartCS=ruleCollectionLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCollectionLiteralPartCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCollectionLiteralPartCS" |
| |
| |
| // $ANTLR start "ruleCollectionLiteralPartCS" |
| // InternalQVTbase.g:3977:1: ruleCollectionLiteralPartCS returns [EObject current=null] : ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) | ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) ) ; |
| public final EObject ruleCollectionLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_ownedExpression_0_0 = null; |
| |
| EObject lv_ownedLastExpression_2_0 = null; |
| |
| EObject lv_ownedExpression_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:3983:2: ( ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) | ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) ) ) |
| // InternalQVTbase.g:3984:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) | ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) ) |
| { |
| // InternalQVTbase.g:3984:2: ( ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) | ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) ) |
| int alt108=2; |
| switch ( input.LA(1) ) { |
| case RULE_SINGLE_QUOTED_STRING: |
| case RULE_INT: |
| case 51: |
| case 69: |
| case 70: |
| case 71: |
| case 72: |
| case 92: |
| case 93: |
| case 94: |
| case 95: |
| case 96: |
| case 97: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| case 109: |
| case 111: |
| case 112: |
| case 113: |
| case 114: |
| case 121: |
| case 126: |
| case 127: |
| { |
| alt108=1; |
| } |
| break; |
| case RULE_SIMPLE_ID: |
| { |
| int LA108_2 = input.LA(2); |
| |
| if ( (LA108_2==EOF||(LA108_2>=21 && LA108_2<=22)||(LA108_2>=39 && LA108_2<=40)||LA108_2==51||LA108_2==69||(LA108_2>=72 && LA108_2<=91)||LA108_2==107||LA108_2==115||LA108_2==117||LA108_2==131) ) { |
| alt108=1; |
| } |
| else if ( (LA108_2==20) ) { |
| alt108=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_ESCAPED_ID: |
| { |
| int LA108_3 = input.LA(2); |
| |
| if ( (LA108_3==EOF||(LA108_3>=21 && LA108_3<=22)||(LA108_3>=39 && LA108_3<=40)||LA108_3==51||LA108_3==69||(LA108_3>=72 && LA108_3<=91)||LA108_3==107||LA108_3==115||LA108_3==117||LA108_3==131) ) { |
| alt108=1; |
| } |
| else if ( (LA108_3==20) ) { |
| alt108=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 20: |
| { |
| alt108=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt108) { |
| case 1 : |
| // InternalQVTbase.g:3985:3: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:3985:3: ( ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:3986:4: ( (lv_ownedExpression_0_0= ruleExpCS ) ) (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? |
| { |
| // InternalQVTbase.g:3986:4: ( (lv_ownedExpression_0_0= ruleExpCS ) ) |
| // InternalQVTbase.g:3987:5: (lv_ownedExpression_0_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:3987:5: (lv_ownedExpression_0_0= ruleExpCS ) |
| // InternalQVTbase.g:3988:6: lv_ownedExpression_0_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralPartCSAccess().getOwnedExpressionExpCSParserRuleCall_0_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_74); |
| lv_ownedExpression_0_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedExpression", |
| lv_ownedExpression_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:4005:4: (otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) )? |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==107) ) { |
| alt107=1; |
| } |
| switch (alt107) { |
| case 1 : |
| // InternalQVTbase.g:4006:5: otherlv_1= '..' ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) |
| { |
| otherlv_1=(Token)match(input,107,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCollectionLiteralPartCSAccess().getFullStopFullStopKeyword_0_1_0()); |
| |
| } |
| // InternalQVTbase.g:4010:5: ( (lv_ownedLastExpression_2_0= ruleExpCS ) ) |
| // InternalQVTbase.g:4011:6: (lv_ownedLastExpression_2_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:4011:6: (lv_ownedLastExpression_2_0= ruleExpCS ) |
| // InternalQVTbase.g:4012:7: lv_ownedLastExpression_2_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralPartCSAccess().getOwnedLastExpressionExpCSParserRuleCall_0_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedLastExpression_2_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedLastExpression", |
| lv_ownedLastExpression_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:4032:3: ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) |
| { |
| // InternalQVTbase.g:4032:3: ( (lv_ownedExpression_3_0= rulePatternExpCS ) ) |
| // InternalQVTbase.g:4033:4: (lv_ownedExpression_3_0= rulePatternExpCS ) |
| { |
| // InternalQVTbase.g:4033:4: (lv_ownedExpression_3_0= rulePatternExpCS ) |
| // InternalQVTbase.g:4034:5: lv_ownedExpression_3_0= rulePatternExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionLiteralPartCSAccess().getOwnedExpressionPatternExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedExpression_3_0=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedExpression", |
| lv_ownedExpression_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PatternExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCollectionLiteralPartCS" |
| |
| |
| // $ANTLR start "entryRuleCollectionPatternCS" |
| // InternalQVTbase.g:4055:1: entryRuleCollectionPatternCS returns [EObject current=null] : iv_ruleCollectionPatternCS= ruleCollectionPatternCS EOF ; |
| public final EObject entryRuleCollectionPatternCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCollectionPatternCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4055:60: (iv_ruleCollectionPatternCS= ruleCollectionPatternCS EOF ) |
| // InternalQVTbase.g:4056:2: iv_ruleCollectionPatternCS= ruleCollectionPatternCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCollectionPatternCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCollectionPatternCS=ruleCollectionPatternCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCollectionPatternCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCollectionPatternCS" |
| |
| |
| // $ANTLR start "ruleCollectionPatternCS" |
| // InternalQVTbase.g:4062:1: ruleCollectionPatternCS returns [EObject current=null] : ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? otherlv_7= '}' ) ; |
| public final EObject ruleCollectionPatternCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| EObject lv_ownedType_0_0 = null; |
| |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| AntlrDatatypeRuleToken lv_restVariableName_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4068:2: ( ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? otherlv_7= '}' ) ) |
| // InternalQVTbase.g:4069:2: ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? otherlv_7= '}' ) |
| { |
| // InternalQVTbase.g:4069:2: ( ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? otherlv_7= '}' ) |
| // InternalQVTbase.g:4070:3: ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? otherlv_7= '}' |
| { |
| // InternalQVTbase.g:4070:3: ( (lv_ownedType_0_0= ruleCollectionTypeCS ) ) |
| // InternalQVTbase.g:4071:4: (lv_ownedType_0_0= ruleCollectionTypeCS ) |
| { |
| // InternalQVTbase.g:4071:4: (lv_ownedType_0_0= ruleCollectionTypeCS ) |
| // InternalQVTbase.g:4072:5: lv_ownedType_0_0= ruleCollectionTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionPatternCSAccess().getOwnedTypeCollectionTypeCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_71); |
| lv_ownedType_0_0=ruleCollectionTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionPatternCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CollectionTypeCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCollectionPatternCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4093:3: ( ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) )? |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( ((LA110_0>=RULE_SIMPLE_ID && LA110_0<=RULE_ESCAPED_ID)||LA110_0==20) ) { |
| alt110=1; |
| } |
| switch (alt110) { |
| case 1 : |
| // InternalQVTbase.g:4094:4: ( (lv_ownedParts_2_0= rulePatternExpCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) |
| { |
| // InternalQVTbase.g:4094:4: ( (lv_ownedParts_2_0= rulePatternExpCS ) ) |
| // InternalQVTbase.g:4095:5: (lv_ownedParts_2_0= rulePatternExpCS ) |
| { |
| // InternalQVTbase.g:4095:5: (lv_ownedParts_2_0= rulePatternExpCS ) |
| // InternalQVTbase.g:4096:6: lv_ownedParts_2_0= rulePatternExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionPatternCSAccess().getOwnedPartsPatternExpCSParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_76); |
| lv_ownedParts_2_0=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionPatternCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PatternExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:4113:4: (otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) )* |
| loop109: |
| do { |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==39) ) { |
| alt109=1; |
| } |
| |
| |
| switch (alt109) { |
| case 1 : |
| // InternalQVTbase.g:4114:5: otherlv_3= ',' ( (lv_ownedParts_4_0= rulePatternExpCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getCollectionPatternCSAccess().getCommaKeyword_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:4118:5: ( (lv_ownedParts_4_0= rulePatternExpCS ) ) |
| // InternalQVTbase.g:4119:6: (lv_ownedParts_4_0= rulePatternExpCS ) |
| { |
| // InternalQVTbase.g:4119:6: (lv_ownedParts_4_0= rulePatternExpCS ) |
| // InternalQVTbase.g:4120:7: lv_ownedParts_4_0= rulePatternExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionPatternCSAccess().getOwnedPartsPatternExpCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_76); |
| lv_ownedParts_4_0=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionPatternCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PatternExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop109; |
| } |
| } while (true); |
| |
| // InternalQVTbase.g:4138:4: (otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) ) |
| // InternalQVTbase.g:4139:5: otherlv_5= '++' ( (lv_restVariableName_6_0= ruleIdentifier ) ) |
| { |
| otherlv_5=(Token)match(input,108,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getCollectionPatternCSAccess().getPlusSignPlusSignKeyword_2_2_0()); |
| |
| } |
| // InternalQVTbase.g:4143:5: ( (lv_restVariableName_6_0= ruleIdentifier ) ) |
| // InternalQVTbase.g:4144:6: (lv_restVariableName_6_0= ruleIdentifier ) |
| { |
| // InternalQVTbase.g:4144:6: (lv_restVariableName_6_0= ruleIdentifier ) |
| // InternalQVTbase.g:4145:7: lv_restVariableName_6_0= ruleIdentifier |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCollectionPatternCSAccess().getRestVariableNameIdentifierParserRuleCall_2_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| lv_restVariableName_6_0=ruleIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCollectionPatternCSRule()); |
| } |
| set( |
| current, |
| "restVariableName", |
| lv_restVariableName_6_0, |
| "org.eclipse.ocl.xtext.base.Base.Identifier"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_7=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getCollectionPatternCSAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCollectionPatternCS" |
| |
| |
| // $ANTLR start "entryRuleShadowPartCS" |
| // InternalQVTbase.g:4172:1: entryRuleShadowPartCS returns [EObject current=null] : iv_ruleShadowPartCS= ruleShadowPartCS EOF ; |
| public final EObject entryRuleShadowPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleShadowPartCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4172:53: (iv_ruleShadowPartCS= ruleShadowPartCS EOF ) |
| // InternalQVTbase.g:4173:2: iv_ruleShadowPartCS= ruleShadowPartCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getShadowPartCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleShadowPartCS=ruleShadowPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleShadowPartCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleShadowPartCS" |
| |
| |
| // $ANTLR start "ruleShadowPartCS" |
| // InternalQVTbase.g:4179:1: ruleShadowPartCS returns [EObject current=null] : ( ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) | ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) ) ; |
| public final EObject ruleShadowPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_ownedInitExpression_2_1 = null; |
| |
| EObject lv_ownedInitExpression_2_2 = null; |
| |
| EObject lv_ownedInitExpression_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4185:2: ( ( ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) | ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) ) ) |
| // InternalQVTbase.g:4186:2: ( ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) | ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) ) |
| { |
| // InternalQVTbase.g:4186:2: ( ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) | ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) ) |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( ((LA112_0>=RULE_SIMPLE_ID && LA112_0<=RULE_ESCAPED_ID)) ) { |
| alt112=1; |
| } |
| else if ( (LA112_0==RULE_SINGLE_QUOTED_STRING) ) { |
| alt112=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 112, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt112) { |
| case 1 : |
| // InternalQVTbase.g:4187:3: ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) |
| { |
| // InternalQVTbase.g:4187:3: ( ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) ) |
| // InternalQVTbase.g:4188:4: ( ( ruleUnrestrictedName ) ) otherlv_1= '=' ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) |
| { |
| // InternalQVTbase.g:4188:4: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:4189:5: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:4189:5: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:4190:6: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getShadowPartCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getShadowPartCSAccess().getReferredPropertyPropertyCrossReference_0_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_77); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,21,FollowSets000.FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getShadowPartCSAccess().getEqualsSignKeyword_0_1()); |
| |
| } |
| // InternalQVTbase.g:4211:4: ( ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) ) |
| // InternalQVTbase.g:4212:5: ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) |
| { |
| // InternalQVTbase.g:4212:5: ( (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) ) |
| // InternalQVTbase.g:4213:6: (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) |
| { |
| // InternalQVTbase.g:4213:6: (lv_ownedInitExpression_2_1= ruleExpCS | lv_ownedInitExpression_2_2= rulePatternExpCS ) |
| int alt111=2; |
| switch ( input.LA(1) ) { |
| case RULE_SINGLE_QUOTED_STRING: |
| case RULE_INT: |
| case 51: |
| case 69: |
| case 70: |
| case 71: |
| case 72: |
| case 92: |
| case 93: |
| case 94: |
| case 95: |
| case 96: |
| case 97: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| case 109: |
| case 111: |
| case 112: |
| case 113: |
| case 114: |
| case 121: |
| case 126: |
| case 127: |
| { |
| alt111=1; |
| } |
| break; |
| case RULE_SIMPLE_ID: |
| { |
| int LA111_2 = input.LA(2); |
| |
| if ( (LA111_2==EOF||(LA111_2>=21 && LA111_2<=22)||(LA111_2>=39 && LA111_2<=40)||LA111_2==51||LA111_2==69||(LA111_2>=72 && LA111_2<=91)||LA111_2==115||LA111_2==117||LA111_2==131) ) { |
| alt111=1; |
| } |
| else if ( (LA111_2==20) ) { |
| alt111=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 111, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_ESCAPED_ID: |
| { |
| int LA111_3 = input.LA(2); |
| |
| if ( (LA111_3==20) ) { |
| alt111=2; |
| } |
| else if ( (LA111_3==EOF||(LA111_3>=21 && LA111_3<=22)||(LA111_3>=39 && LA111_3<=40)||LA111_3==51||LA111_3==69||(LA111_3>=72 && LA111_3<=91)||LA111_3==115||LA111_3==117||LA111_3==131) ) { |
| alt111=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 111, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 20: |
| { |
| alt111=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 111, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt111) { |
| case 1 : |
| // InternalQVTbase.g:4214:7: lv_ownedInitExpression_2_1= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getShadowPartCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_2_1=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getShadowPartCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_2_1, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:4230:7: lv_ownedInitExpression_2_2= rulePatternExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getShadowPartCSAccess().getOwnedInitExpressionPatternExpCSParserRuleCall_0_2_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_2_2=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getShadowPartCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_2_2, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PatternExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:4250:3: ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) |
| { |
| // InternalQVTbase.g:4250:3: ( (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) ) |
| // InternalQVTbase.g:4251:4: (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) |
| { |
| // InternalQVTbase.g:4251:4: (lv_ownedInitExpression_3_0= ruleStringLiteralExpCS ) |
| // InternalQVTbase.g:4252:5: lv_ownedInitExpression_3_0= ruleStringLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getShadowPartCSAccess().getOwnedInitExpressionStringLiteralExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_3_0=ruleStringLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getShadowPartCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.StringLiteralExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleShadowPartCS" |
| |
| |
| // $ANTLR start "entryRulePatternExpCS" |
| // InternalQVTbase.g:4273:1: entryRulePatternExpCS returns [EObject current=null] : iv_rulePatternExpCS= rulePatternExpCS EOF ; |
| public final EObject entryRulePatternExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePatternExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4273:53: (iv_rulePatternExpCS= rulePatternExpCS EOF ) |
| // InternalQVTbase.g:4274:2: iv_rulePatternExpCS= rulePatternExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPatternExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePatternExpCS=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePatternExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePatternExpCS" |
| |
| |
| // $ANTLR start "rulePatternExpCS" |
| // InternalQVTbase.g:4280:1: rulePatternExpCS returns [EObject current=null] : ( ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? otherlv_1= ':' ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) ) ; |
| public final EObject rulePatternExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_patternVariableName_0_0 = null; |
| |
| EObject lv_ownedPatternType_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4286:2: ( ( ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? otherlv_1= ':' ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) ) ) |
| // InternalQVTbase.g:4287:2: ( ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? otherlv_1= ':' ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) ) |
| { |
| // InternalQVTbase.g:4287:2: ( ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? otherlv_1= ':' ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) ) |
| // InternalQVTbase.g:4288:3: ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? otherlv_1= ':' ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) |
| { |
| // InternalQVTbase.g:4288:3: ( (lv_patternVariableName_0_0= ruleUnrestrictedName ) )? |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( ((LA113_0>=RULE_SIMPLE_ID && LA113_0<=RULE_ESCAPED_ID)) ) { |
| alt113=1; |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalQVTbase.g:4289:4: (lv_patternVariableName_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:4289:4: (lv_patternVariableName_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:4290:5: lv_patternVariableName_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPatternExpCSAccess().getPatternVariableNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_17); |
| lv_patternVariableName_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPatternExpCSRule()); |
| } |
| set( |
| current, |
| "patternVariableName", |
| lv_patternVariableName_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_1=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPatternExpCSAccess().getColonKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4311:3: ( (lv_ownedPatternType_2_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:4312:4: (lv_ownedPatternType_2_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:4312:4: (lv_ownedPatternType_2_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:4313:5: lv_ownedPatternType_2_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPatternExpCSAccess().getOwnedPatternTypeTypeExpCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedPatternType_2_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPatternExpCSRule()); |
| } |
| set( |
| current, |
| "ownedPatternType", |
| lv_ownedPatternType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePatternExpCS" |
| |
| |
| // $ANTLR start "entryRuleLambdaLiteralExpCS" |
| // InternalQVTbase.g:4334:1: entryRuleLambdaLiteralExpCS returns [EObject current=null] : iv_ruleLambdaLiteralExpCS= ruleLambdaLiteralExpCS EOF ; |
| public final EObject entryRuleLambdaLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLambdaLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4334:59: (iv_ruleLambdaLiteralExpCS= ruleLambdaLiteralExpCS EOF ) |
| // InternalQVTbase.g:4335:2: iv_ruleLambdaLiteralExpCS= ruleLambdaLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLambdaLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLambdaLiteralExpCS=ruleLambdaLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLambdaLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLambdaLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleLambdaLiteralExpCS" |
| // InternalQVTbase.g:4341:1: ruleLambdaLiteralExpCS returns [EObject current=null] : (otherlv_0= 'Lambda' otherlv_1= '{' ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) otherlv_3= '}' ) ; |
| public final EObject ruleLambdaLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_ownedExpressionCS_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4347:2: ( (otherlv_0= 'Lambda' otherlv_1= '{' ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) otherlv_3= '}' ) ) |
| // InternalQVTbase.g:4348:2: (otherlv_0= 'Lambda' otherlv_1= '{' ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) otherlv_3= '}' ) |
| { |
| // InternalQVTbase.g:4348:2: (otherlv_0= 'Lambda' otherlv_1= '{' ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) otherlv_3= '}' ) |
| // InternalQVTbase.g:4349:3: otherlv_0= 'Lambda' otherlv_1= '{' ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) otherlv_3= '}' |
| { |
| otherlv_0=(Token)match(input,109,FollowSets000.FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getLambdaLiteralExpCSAccess().getLambdaKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getLambdaLiteralExpCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4357:3: ( (lv_ownedExpressionCS_2_0= ruleExpCS ) ) |
| // InternalQVTbase.g:4358:4: (lv_ownedExpressionCS_2_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:4358:4: (lv_ownedExpressionCS_2_0= ruleExpCS ) |
| // InternalQVTbase.g:4359:5: lv_ownedExpressionCS_2_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLambdaLiteralExpCSAccess().getOwnedExpressionCSExpCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| lv_ownedExpressionCS_2_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLambdaLiteralExpCSRule()); |
| } |
| set( |
| current, |
| "ownedExpressionCS", |
| lv_ownedExpressionCS_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getLambdaLiteralExpCSAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLambdaLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleMapLiteralExpCS" |
| // InternalQVTbase.g:4384:1: entryRuleMapLiteralExpCS returns [EObject current=null] : iv_ruleMapLiteralExpCS= ruleMapLiteralExpCS EOF ; |
| public final EObject entryRuleMapLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMapLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4384:56: (iv_ruleMapLiteralExpCS= ruleMapLiteralExpCS EOF ) |
| // InternalQVTbase.g:4385:2: iv_ruleMapLiteralExpCS= ruleMapLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMapLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMapLiteralExpCS=ruleMapLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMapLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMapLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleMapLiteralExpCS" |
| // InternalQVTbase.g:4391:1: ruleMapLiteralExpCS returns [EObject current=null] : ( ( (lv_ownedType_0_0= ruleMapTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? otherlv_5= '}' ) ; |
| public final EObject ruleMapLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedType_0_0 = null; |
| |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4397:2: ( ( ( (lv_ownedType_0_0= ruleMapTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? otherlv_5= '}' ) ) |
| // InternalQVTbase.g:4398:2: ( ( (lv_ownedType_0_0= ruleMapTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? otherlv_5= '}' ) |
| { |
| // InternalQVTbase.g:4398:2: ( ( (lv_ownedType_0_0= ruleMapTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? otherlv_5= '}' ) |
| // InternalQVTbase.g:4399:3: ( (lv_ownedType_0_0= ruleMapTypeCS ) ) otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? otherlv_5= '}' |
| { |
| // InternalQVTbase.g:4399:3: ( (lv_ownedType_0_0= ruleMapTypeCS ) ) |
| // InternalQVTbase.g:4400:4: (lv_ownedType_0_0= ruleMapTypeCS ) |
| { |
| // InternalQVTbase.g:4400:4: (lv_ownedType_0_0= ruleMapTypeCS ) |
| // InternalQVTbase.g:4401:5: lv_ownedType_0_0= ruleMapTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapLiteralExpCSAccess().getOwnedTypeMapTypeCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_71); |
| lv_ownedType_0_0=ruleMapTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapLiteralExpCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.MapTypeCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getMapLiteralExpCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4422:3: ( ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* )? |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==RULE_SINGLE_QUOTED_STRING||(LA115_0>=RULE_INT && LA115_0<=RULE_ESCAPED_ID)||LA115_0==51||(LA115_0>=69 && LA115_0<=72)||(LA115_0>=92 && LA115_0<=106)||LA115_0==109||(LA115_0>=111 && LA115_0<=114)||LA115_0==121||(LA115_0>=126 && LA115_0<=127)) ) { |
| alt115=1; |
| } |
| switch (alt115) { |
| case 1 : |
| // InternalQVTbase.g:4423:4: ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* |
| { |
| // InternalQVTbase.g:4423:4: ( (lv_ownedParts_2_0= ruleMapLiteralPartCS ) ) |
| // InternalQVTbase.g:4424:5: (lv_ownedParts_2_0= ruleMapLiteralPartCS ) |
| { |
| // InternalQVTbase.g:4424:5: (lv_ownedParts_2_0= ruleMapLiteralPartCS ) |
| // InternalQVTbase.g:4425:6: lv_ownedParts_2_0= ruleMapLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapLiteralExpCSAccess().getOwnedPartsMapLiteralPartCSParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_2_0=ruleMapLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.MapLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:4442:4: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) )* |
| loop114: |
| do { |
| int alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==39) ) { |
| alt114=1; |
| } |
| |
| |
| switch (alt114) { |
| case 1 : |
| // InternalQVTbase.g:4443:5: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getMapLiteralExpCSAccess().getCommaKeyword_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:4447:5: ( (lv_ownedParts_4_0= ruleMapLiteralPartCS ) ) |
| // InternalQVTbase.g:4448:6: (lv_ownedParts_4_0= ruleMapLiteralPartCS ) |
| { |
| // InternalQVTbase.g:4448:6: (lv_ownedParts_4_0= ruleMapLiteralPartCS ) |
| // InternalQVTbase.g:4449:7: lv_ownedParts_4_0= ruleMapLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapLiteralExpCSAccess().getOwnedPartsMapLiteralPartCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_4_0=ruleMapLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.MapLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop114; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getMapLiteralExpCSAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMapLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleMapLiteralPartCS" |
| // InternalQVTbase.g:4476:1: entryRuleMapLiteralPartCS returns [EObject current=null] : iv_ruleMapLiteralPartCS= ruleMapLiteralPartCS EOF ; |
| public final EObject entryRuleMapLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMapLiteralPartCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4476:57: (iv_ruleMapLiteralPartCS= ruleMapLiteralPartCS EOF ) |
| // InternalQVTbase.g:4477:2: iv_ruleMapLiteralPartCS= ruleMapLiteralPartCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMapLiteralPartCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMapLiteralPartCS=ruleMapLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMapLiteralPartCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMapLiteralPartCS" |
| |
| |
| // $ANTLR start "ruleMapLiteralPartCS" |
| // InternalQVTbase.g:4483:1: ruleMapLiteralPartCS returns [EObject current=null] : ( ( (lv_ownedKey_0_0= ruleExpCS ) ) otherlv_1= '<-' ( (lv_ownedValue_2_0= ruleExpCS ) ) ) ; |
| public final EObject ruleMapLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_ownedKey_0_0 = null; |
| |
| EObject lv_ownedValue_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4489:2: ( ( ( (lv_ownedKey_0_0= ruleExpCS ) ) otherlv_1= '<-' ( (lv_ownedValue_2_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:4490:2: ( ( (lv_ownedKey_0_0= ruleExpCS ) ) otherlv_1= '<-' ( (lv_ownedValue_2_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:4490:2: ( ( (lv_ownedKey_0_0= ruleExpCS ) ) otherlv_1= '<-' ( (lv_ownedValue_2_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:4491:3: ( (lv_ownedKey_0_0= ruleExpCS ) ) otherlv_1= '<-' ( (lv_ownedValue_2_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:4491:3: ( (lv_ownedKey_0_0= ruleExpCS ) ) |
| // InternalQVTbase.g:4492:4: (lv_ownedKey_0_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:4492:4: (lv_ownedKey_0_0= ruleExpCS ) |
| // InternalQVTbase.g:4493:5: lv_ownedKey_0_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapLiteralPartCSAccess().getOwnedKeyExpCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_79); |
| lv_ownedKey_0_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedKey", |
| lv_ownedKey_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,110,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getMapLiteralPartCSAccess().getLessThanSignHyphenMinusKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4514:3: ( (lv_ownedValue_2_0= ruleExpCS ) ) |
| // InternalQVTbase.g:4515:4: (lv_ownedValue_2_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:4515:4: (lv_ownedValue_2_0= ruleExpCS ) |
| // InternalQVTbase.g:4516:5: lv_ownedValue_2_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMapLiteralPartCSAccess().getOwnedValueExpCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedValue_2_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMapLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedValue", |
| lv_ownedValue_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMapLiteralPartCS" |
| |
| |
| // $ANTLR start "entryRulePrimitiveLiteralExpCS" |
| // InternalQVTbase.g:4537:1: entryRulePrimitiveLiteralExpCS returns [EObject current=null] : iv_rulePrimitiveLiteralExpCS= rulePrimitiveLiteralExpCS EOF ; |
| public final EObject entryRulePrimitiveLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePrimitiveLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4537:62: (iv_rulePrimitiveLiteralExpCS= rulePrimitiveLiteralExpCS EOF ) |
| // InternalQVTbase.g:4538:2: iv_rulePrimitiveLiteralExpCS= rulePrimitiveLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrimitiveLiteralExpCS=rulePrimitiveLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrimitiveLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrimitiveLiteralExpCS" |
| |
| |
| // $ANTLR start "rulePrimitiveLiteralExpCS" |
| // InternalQVTbase.g:4544:1: rulePrimitiveLiteralExpCS returns [EObject current=null] : (this_NumberLiteralExpCS_0= ruleNumberLiteralExpCS | this_StringLiteralExpCS_1= ruleStringLiteralExpCS | this_BooleanLiteralExpCS_2= ruleBooleanLiteralExpCS | this_UnlimitedNaturalLiteralExpCS_3= ruleUnlimitedNaturalLiteralExpCS | this_InvalidLiteralExpCS_4= ruleInvalidLiteralExpCS | this_NullLiteralExpCS_5= ruleNullLiteralExpCS ) ; |
| public final EObject rulePrimitiveLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_NumberLiteralExpCS_0 = null; |
| |
| EObject this_StringLiteralExpCS_1 = null; |
| |
| EObject this_BooleanLiteralExpCS_2 = null; |
| |
| EObject this_UnlimitedNaturalLiteralExpCS_3 = null; |
| |
| EObject this_InvalidLiteralExpCS_4 = null; |
| |
| EObject this_NullLiteralExpCS_5 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4550:2: ( (this_NumberLiteralExpCS_0= ruleNumberLiteralExpCS | this_StringLiteralExpCS_1= ruleStringLiteralExpCS | this_BooleanLiteralExpCS_2= ruleBooleanLiteralExpCS | this_UnlimitedNaturalLiteralExpCS_3= ruleUnlimitedNaturalLiteralExpCS | this_InvalidLiteralExpCS_4= ruleInvalidLiteralExpCS | this_NullLiteralExpCS_5= ruleNullLiteralExpCS ) ) |
| // InternalQVTbase.g:4551:2: (this_NumberLiteralExpCS_0= ruleNumberLiteralExpCS | this_StringLiteralExpCS_1= ruleStringLiteralExpCS | this_BooleanLiteralExpCS_2= ruleBooleanLiteralExpCS | this_UnlimitedNaturalLiteralExpCS_3= ruleUnlimitedNaturalLiteralExpCS | this_InvalidLiteralExpCS_4= ruleInvalidLiteralExpCS | this_NullLiteralExpCS_5= ruleNullLiteralExpCS ) |
| { |
| // InternalQVTbase.g:4551:2: (this_NumberLiteralExpCS_0= ruleNumberLiteralExpCS | this_StringLiteralExpCS_1= ruleStringLiteralExpCS | this_BooleanLiteralExpCS_2= ruleBooleanLiteralExpCS | this_UnlimitedNaturalLiteralExpCS_3= ruleUnlimitedNaturalLiteralExpCS | this_InvalidLiteralExpCS_4= ruleInvalidLiteralExpCS | this_NullLiteralExpCS_5= ruleNullLiteralExpCS ) |
| int alt116=6; |
| switch ( input.LA(1) ) { |
| case RULE_INT: |
| { |
| alt116=1; |
| } |
| break; |
| case RULE_SINGLE_QUOTED_STRING: |
| { |
| alt116=2; |
| } |
| break; |
| case 111: |
| case 112: |
| { |
| alt116=3; |
| } |
| break; |
| case 72: |
| { |
| alt116=4; |
| } |
| break; |
| case 113: |
| { |
| alt116=5; |
| } |
| break; |
| case 114: |
| { |
| alt116=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 116, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt116) { |
| case 1 : |
| // InternalQVTbase.g:4552:3: this_NumberLiteralExpCS_0= ruleNumberLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getNumberLiteralExpCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_NumberLiteralExpCS_0=ruleNumberLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NumberLiteralExpCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:4564:3: this_StringLiteralExpCS_1= ruleStringLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getStringLiteralExpCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_StringLiteralExpCS_1=ruleStringLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_StringLiteralExpCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:4576:3: this_BooleanLiteralExpCS_2= ruleBooleanLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getBooleanLiteralExpCSParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_BooleanLiteralExpCS_2=ruleBooleanLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_BooleanLiteralExpCS_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:4588:3: this_UnlimitedNaturalLiteralExpCS_3= ruleUnlimitedNaturalLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getUnlimitedNaturalLiteralExpCSParserRuleCall_3()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_UnlimitedNaturalLiteralExpCS_3=ruleUnlimitedNaturalLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_UnlimitedNaturalLiteralExpCS_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:4600:3: this_InvalidLiteralExpCS_4= ruleInvalidLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getInvalidLiteralExpCSParserRuleCall_4()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_InvalidLiteralExpCS_4=ruleInvalidLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_InvalidLiteralExpCS_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:4612:3: this_NullLiteralExpCS_5= ruleNullLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimitiveLiteralExpCSAccess().getNullLiteralExpCSParserRuleCall_5()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_NullLiteralExpCS_5=ruleNullLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NullLiteralExpCS_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrimitiveLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleTupleLiteralExpCS" |
| // InternalQVTbase.g:4627:1: entryRuleTupleLiteralExpCS returns [EObject current=null] : iv_ruleTupleLiteralExpCS= ruleTupleLiteralExpCS EOF ; |
| public final EObject entryRuleTupleLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTupleLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4627:58: (iv_ruleTupleLiteralExpCS= ruleTupleLiteralExpCS EOF ) |
| // InternalQVTbase.g:4628:2: iv_ruleTupleLiteralExpCS= ruleTupleLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTupleLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTupleLiteralExpCS=ruleTupleLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTupleLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTupleLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleTupleLiteralExpCS" |
| // InternalQVTbase.g:4634:1: ruleTupleLiteralExpCS returns [EObject current=null] : (otherlv_0= 'Tuple' otherlv_1= '{' ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* otherlv_5= '}' ) ; |
| public final EObject ruleTupleLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4640:2: ( (otherlv_0= 'Tuple' otherlv_1= '{' ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* otherlv_5= '}' ) ) |
| // InternalQVTbase.g:4641:2: (otherlv_0= 'Tuple' otherlv_1= '{' ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* otherlv_5= '}' ) |
| { |
| // InternalQVTbase.g:4641:2: (otherlv_0= 'Tuple' otherlv_1= '{' ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* otherlv_5= '}' ) |
| // InternalQVTbase.g:4642:3: otherlv_0= 'Tuple' otherlv_1= '{' ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* otherlv_5= '}' |
| { |
| otherlv_0=(Token)match(input,93,FollowSets000.FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTupleLiteralExpCSAccess().getTupleKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTupleLiteralExpCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:4650:3: ( (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) ) |
| // InternalQVTbase.g:4651:4: (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) |
| { |
| // InternalQVTbase.g:4651:4: (lv_ownedParts_2_0= ruleTupleLiteralPartCS ) |
| // InternalQVTbase.g:4652:5: lv_ownedParts_2_0= ruleTupleLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleLiteralExpCSAccess().getOwnedPartsTupleLiteralPartCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_2_0=ruleTupleLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TupleLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:4669:3: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) )* |
| loop117: |
| do { |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==39) ) { |
| alt117=1; |
| } |
| |
| |
| switch (alt117) { |
| case 1 : |
| // InternalQVTbase.g:4670:4: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTupleLiteralExpCSAccess().getCommaKeyword_3_0()); |
| |
| } |
| // InternalQVTbase.g:4674:4: ( (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) ) |
| // InternalQVTbase.g:4675:5: (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) |
| { |
| // InternalQVTbase.g:4675:5: (lv_ownedParts_4_0= ruleTupleLiteralPartCS ) |
| // InternalQVTbase.g:4676:6: lv_ownedParts_4_0= ruleTupleLiteralPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleLiteralExpCSAccess().getOwnedPartsTupleLiteralPartCSParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_4_0=ruleTupleLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TupleLiteralPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop117; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTupleLiteralExpCSAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTupleLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleTupleLiteralPartCS" |
| // InternalQVTbase.g:4702:1: entryRuleTupleLiteralPartCS returns [EObject current=null] : iv_ruleTupleLiteralPartCS= ruleTupleLiteralPartCS EOF ; |
| public final EObject entryRuleTupleLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTupleLiteralPartCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4702:59: (iv_ruleTupleLiteralPartCS= ruleTupleLiteralPartCS EOF ) |
| // InternalQVTbase.g:4703:2: iv_ruleTupleLiteralPartCS= ruleTupleLiteralPartCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTupleLiteralPartCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTupleLiteralPartCS=ruleTupleLiteralPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTupleLiteralPartCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTupleLiteralPartCS" |
| |
| |
| // $ANTLR start "ruleTupleLiteralPartCS" |
| // InternalQVTbase.g:4709:1: ruleTupleLiteralPartCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) ) ; |
| public final EObject ruleTupleLiteralPartCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedType_2_0 = null; |
| |
| EObject lv_ownedInitExpression_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4715:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:4716:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:4716:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:4717:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:4717:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:4718:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:4718:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:4719:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleLiteralPartCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_80); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:4736:3: (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==20) ) { |
| alt118=1; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalQVTbase.g:4737:4: otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| { |
| otherlv_1=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTupleLiteralPartCSAccess().getColonKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:4741:4: ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:4742:5: (lv_ownedType_2_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:4742:5: (lv_ownedType_2_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:4743:6: lv_ownedType_2_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleLiteralPartCSAccess().getOwnedTypeTypeExpCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_77); |
| lv_ownedType_2_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTupleLiteralPartCSAccess().getEqualsSignKeyword_2()); |
| |
| } |
| // InternalQVTbase.g:4765:3: ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| // InternalQVTbase.g:4766:4: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:4766:4: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| // InternalQVTbase.g:4767:5: lv_ownedInitExpression_4_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTupleLiteralPartCSAccess().getOwnedInitExpressionExpCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_4_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTupleLiteralPartCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTupleLiteralPartCS" |
| |
| |
| // $ANTLR start "entryRuleNumberLiteralExpCS" |
| // InternalQVTbase.g:4788:1: entryRuleNumberLiteralExpCS returns [EObject current=null] : iv_ruleNumberLiteralExpCS= ruleNumberLiteralExpCS EOF ; |
| public final EObject entryRuleNumberLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNumberLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4788:59: (iv_ruleNumberLiteralExpCS= ruleNumberLiteralExpCS EOF ) |
| // InternalQVTbase.g:4789:2: iv_ruleNumberLiteralExpCS= ruleNumberLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNumberLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNumberLiteralExpCS=ruleNumberLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNumberLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNumberLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleNumberLiteralExpCS" |
| // InternalQVTbase.g:4795:1: ruleNumberLiteralExpCS returns [EObject current=null] : ( (lv_symbol_0_0= ruleNUMBER_LITERAL ) ) ; |
| public final EObject ruleNumberLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_symbol_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4801:2: ( ( (lv_symbol_0_0= ruleNUMBER_LITERAL ) ) ) |
| // InternalQVTbase.g:4802:2: ( (lv_symbol_0_0= ruleNUMBER_LITERAL ) ) |
| { |
| // InternalQVTbase.g:4802:2: ( (lv_symbol_0_0= ruleNUMBER_LITERAL ) ) |
| // InternalQVTbase.g:4803:3: (lv_symbol_0_0= ruleNUMBER_LITERAL ) |
| { |
| // InternalQVTbase.g:4803:3: (lv_symbol_0_0= ruleNUMBER_LITERAL ) |
| // InternalQVTbase.g:4804:4: lv_symbol_0_0= ruleNUMBER_LITERAL |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNumberLiteralExpCSAccess().getSymbolNUMBER_LITERALParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_symbol_0_0=ruleNUMBER_LITERAL(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNumberLiteralExpCSRule()); |
| } |
| set( |
| current, |
| "symbol", |
| lv_symbol_0_0, |
| "org.eclipse.ocl.xtext.base.Base.NUMBER_LITERAL"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumberLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleStringLiteralExpCS" |
| // InternalQVTbase.g:4824:1: entryRuleStringLiteralExpCS returns [EObject current=null] : iv_ruleStringLiteralExpCS= ruleStringLiteralExpCS EOF ; |
| public final EObject entryRuleStringLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStringLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4824:59: (iv_ruleStringLiteralExpCS= ruleStringLiteralExpCS EOF ) |
| // InternalQVTbase.g:4825:2: iv_ruleStringLiteralExpCS= ruleStringLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStringLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleStringLiteralExpCS=ruleStringLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStringLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStringLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleStringLiteralExpCS" |
| // InternalQVTbase.g:4831:1: ruleStringLiteralExpCS returns [EObject current=null] : ( (lv_segments_0_0= ruleStringLiteral ) )+ ; |
| public final EObject ruleStringLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_segments_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4837:2: ( ( (lv_segments_0_0= ruleStringLiteral ) )+ ) |
| // InternalQVTbase.g:4838:2: ( (lv_segments_0_0= ruleStringLiteral ) )+ |
| { |
| // InternalQVTbase.g:4838:2: ( (lv_segments_0_0= ruleStringLiteral ) )+ |
| int cnt119=0; |
| loop119: |
| do { |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==RULE_SINGLE_QUOTED_STRING) ) { |
| alt119=1; |
| } |
| |
| |
| switch (alt119) { |
| case 1 : |
| // InternalQVTbase.g:4839:3: (lv_segments_0_0= ruleStringLiteral ) |
| { |
| // InternalQVTbase.g:4839:3: (lv_segments_0_0= ruleStringLiteral ) |
| // InternalQVTbase.g:4840:4: lv_segments_0_0= ruleStringLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStringLiteralExpCSAccess().getSegmentsStringLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_81); |
| lv_segments_0_0=ruleStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStringLiteralExpCSRule()); |
| } |
| add( |
| current, |
| "segments", |
| lv_segments_0_0, |
| "org.eclipse.ocl.xtext.base.Base.StringLiteral"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt119 >= 1 ) break loop119; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(119, input); |
| throw eee; |
| } |
| cnt119++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStringLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleBooleanLiteralExpCS" |
| // InternalQVTbase.g:4860:1: entryRuleBooleanLiteralExpCS returns [EObject current=null] : iv_ruleBooleanLiteralExpCS= ruleBooleanLiteralExpCS EOF ; |
| public final EObject entryRuleBooleanLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleBooleanLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4860:60: (iv_ruleBooleanLiteralExpCS= ruleBooleanLiteralExpCS EOF ) |
| // InternalQVTbase.g:4861:2: iv_ruleBooleanLiteralExpCS= ruleBooleanLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getBooleanLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleBooleanLiteralExpCS=ruleBooleanLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleBooleanLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleBooleanLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleBooleanLiteralExpCS" |
| // InternalQVTbase.g:4867:1: ruleBooleanLiteralExpCS returns [EObject current=null] : ( ( (lv_symbol_0_0= 'true' ) ) | ( (lv_symbol_1_0= 'false' ) ) ) ; |
| public final EObject ruleBooleanLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_0_0=null; |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4873:2: ( ( ( (lv_symbol_0_0= 'true' ) ) | ( (lv_symbol_1_0= 'false' ) ) ) ) |
| // InternalQVTbase.g:4874:2: ( ( (lv_symbol_0_0= 'true' ) ) | ( (lv_symbol_1_0= 'false' ) ) ) |
| { |
| // InternalQVTbase.g:4874:2: ( ( (lv_symbol_0_0= 'true' ) ) | ( (lv_symbol_1_0= 'false' ) ) ) |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==111) ) { |
| alt120=1; |
| } |
| else if ( (LA120_0==112) ) { |
| 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 : |
| // InternalQVTbase.g:4875:3: ( (lv_symbol_0_0= 'true' ) ) |
| { |
| // InternalQVTbase.g:4875:3: ( (lv_symbol_0_0= 'true' ) ) |
| // InternalQVTbase.g:4876:4: (lv_symbol_0_0= 'true' ) |
| { |
| // InternalQVTbase.g:4876:4: (lv_symbol_0_0= 'true' ) |
| // InternalQVTbase.g:4877:5: lv_symbol_0_0= 'true' |
| { |
| lv_symbol_0_0=(Token)match(input,111,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_0_0, grammarAccess.getBooleanLiteralExpCSAccess().getSymbolTrueKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getBooleanLiteralExpCSRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_0_0, "true"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:4890:3: ( (lv_symbol_1_0= 'false' ) ) |
| { |
| // InternalQVTbase.g:4890:3: ( (lv_symbol_1_0= 'false' ) ) |
| // InternalQVTbase.g:4891:4: (lv_symbol_1_0= 'false' ) |
| { |
| // InternalQVTbase.g:4891:4: (lv_symbol_1_0= 'false' ) |
| // InternalQVTbase.g:4892:5: lv_symbol_1_0= 'false' |
| { |
| lv_symbol_1_0=(Token)match(input,112,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getBooleanLiteralExpCSAccess().getSymbolFalseKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getBooleanLiteralExpCSRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "false"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleBooleanLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleUnlimitedNaturalLiteralExpCS" |
| // InternalQVTbase.g:4908:1: entryRuleUnlimitedNaturalLiteralExpCS returns [EObject current=null] : iv_ruleUnlimitedNaturalLiteralExpCS= ruleUnlimitedNaturalLiteralExpCS EOF ; |
| public final EObject entryRuleUnlimitedNaturalLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleUnlimitedNaturalLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4908:69: (iv_ruleUnlimitedNaturalLiteralExpCS= ruleUnlimitedNaturalLiteralExpCS EOF ) |
| // InternalQVTbase.g:4909:2: iv_ruleUnlimitedNaturalLiteralExpCS= ruleUnlimitedNaturalLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUnlimitedNaturalLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUnlimitedNaturalLiteralExpCS=ruleUnlimitedNaturalLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUnlimitedNaturalLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUnlimitedNaturalLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleUnlimitedNaturalLiteralExpCS" |
| // InternalQVTbase.g:4915:1: ruleUnlimitedNaturalLiteralExpCS returns [EObject current=null] : ( () otherlv_1= '*' ) ; |
| public final EObject ruleUnlimitedNaturalLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4921:2: ( ( () otherlv_1= '*' ) ) |
| // InternalQVTbase.g:4922:2: ( () otherlv_1= '*' ) |
| { |
| // InternalQVTbase.g:4922:2: ( () otherlv_1= '*' ) |
| // InternalQVTbase.g:4923:3: () otherlv_1= '*' |
| { |
| // InternalQVTbase.g:4923:3: () |
| // InternalQVTbase.g:4924:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getUnlimitedNaturalLiteralExpCSAccess().getUnlimitedNaturalLiteralExpCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getUnlimitedNaturalLiteralExpCSAccess().getAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUnlimitedNaturalLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleInvalidLiteralExpCS" |
| // InternalQVTbase.g:4941:1: entryRuleInvalidLiteralExpCS returns [EObject current=null] : iv_ruleInvalidLiteralExpCS= ruleInvalidLiteralExpCS EOF ; |
| public final EObject entryRuleInvalidLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleInvalidLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4941:60: (iv_ruleInvalidLiteralExpCS= ruleInvalidLiteralExpCS EOF ) |
| // InternalQVTbase.g:4942:2: iv_ruleInvalidLiteralExpCS= ruleInvalidLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getInvalidLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleInvalidLiteralExpCS=ruleInvalidLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleInvalidLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleInvalidLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleInvalidLiteralExpCS" |
| // InternalQVTbase.g:4948:1: ruleInvalidLiteralExpCS returns [EObject current=null] : ( () otherlv_1= 'invalid' ) ; |
| public final EObject ruleInvalidLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4954:2: ( ( () otherlv_1= 'invalid' ) ) |
| // InternalQVTbase.g:4955:2: ( () otherlv_1= 'invalid' ) |
| { |
| // InternalQVTbase.g:4955:2: ( () otherlv_1= 'invalid' ) |
| // InternalQVTbase.g:4956:3: () otherlv_1= 'invalid' |
| { |
| // InternalQVTbase.g:4956:3: () |
| // InternalQVTbase.g:4957:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getInvalidLiteralExpCSAccess().getInvalidLiteralExpCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,113,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getInvalidLiteralExpCSAccess().getInvalidKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleInvalidLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleNullLiteralExpCS" |
| // InternalQVTbase.g:4974:1: entryRuleNullLiteralExpCS returns [EObject current=null] : iv_ruleNullLiteralExpCS= ruleNullLiteralExpCS EOF ; |
| public final EObject entryRuleNullLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNullLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:4974:57: (iv_ruleNullLiteralExpCS= ruleNullLiteralExpCS EOF ) |
| // InternalQVTbase.g:4975:2: iv_ruleNullLiteralExpCS= ruleNullLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNullLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNullLiteralExpCS=ruleNullLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNullLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNullLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleNullLiteralExpCS" |
| // InternalQVTbase.g:4981:1: ruleNullLiteralExpCS returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleNullLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:4987:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalQVTbase.g:4988:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalQVTbase.g:4988:2: ( () otherlv_1= 'null' ) |
| // InternalQVTbase.g:4989:3: () otherlv_1= 'null' |
| { |
| // InternalQVTbase.g:4989:3: () |
| // InternalQVTbase.g:4990:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getNullLiteralExpCSAccess().getNullLiteralExpCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,114,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNullLiteralExpCSAccess().getNullKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNullLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleTypeLiteralCS" |
| // InternalQVTbase.g:5007:1: entryRuleTypeLiteralCS returns [EObject current=null] : iv_ruleTypeLiteralCS= ruleTypeLiteralCS EOF ; |
| public final EObject entryRuleTypeLiteralCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeLiteralCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5007:54: (iv_ruleTypeLiteralCS= ruleTypeLiteralCS EOF ) |
| // InternalQVTbase.g:5008:2: iv_ruleTypeLiteralCS= ruleTypeLiteralCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeLiteralCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeLiteralCS=ruleTypeLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeLiteralCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeLiteralCS" |
| |
| |
| // $ANTLR start "ruleTypeLiteralCS" |
| // InternalQVTbase.g:5014:1: ruleTypeLiteralCS returns [EObject current=null] : (this_PrimitiveTypeCS_0= rulePrimitiveTypeCS | this_CollectionTypeCS_1= ruleCollectionTypeCS | this_MapTypeCS_2= ruleMapTypeCS | this_TupleTypeCS_3= ruleTupleTypeCS ) ; |
| public final EObject ruleTypeLiteralCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PrimitiveTypeCS_0 = null; |
| |
| EObject this_CollectionTypeCS_1 = null; |
| |
| EObject this_MapTypeCS_2 = null; |
| |
| EObject this_TupleTypeCS_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5020:2: ( (this_PrimitiveTypeCS_0= rulePrimitiveTypeCS | this_CollectionTypeCS_1= ruleCollectionTypeCS | this_MapTypeCS_2= ruleMapTypeCS | this_TupleTypeCS_3= ruleTupleTypeCS ) ) |
| // InternalQVTbase.g:5021:2: (this_PrimitiveTypeCS_0= rulePrimitiveTypeCS | this_CollectionTypeCS_1= ruleCollectionTypeCS | this_MapTypeCS_2= ruleMapTypeCS | this_TupleTypeCS_3= ruleTupleTypeCS ) |
| { |
| // InternalQVTbase.g:5021:2: (this_PrimitiveTypeCS_0= rulePrimitiveTypeCS | this_CollectionTypeCS_1= ruleCollectionTypeCS | this_MapTypeCS_2= ruleMapTypeCS | this_TupleTypeCS_3= ruleTupleTypeCS ) |
| int alt121=4; |
| switch ( input.LA(1) ) { |
| case 94: |
| case 95: |
| case 96: |
| case 97: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| { |
| alt121=1; |
| } |
| break; |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| { |
| alt121=2; |
| } |
| break; |
| case 92: |
| { |
| alt121=3; |
| } |
| break; |
| case 93: |
| { |
| alt121=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 121, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt121) { |
| case 1 : |
| // InternalQVTbase.g:5022:3: this_PrimitiveTypeCS_0= rulePrimitiveTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralCSAccess().getPrimitiveTypeCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_PrimitiveTypeCS_0=rulePrimitiveTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PrimitiveTypeCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5034:3: this_CollectionTypeCS_1= ruleCollectionTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralCSAccess().getCollectionTypeCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_CollectionTypeCS_1=ruleCollectionTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_CollectionTypeCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:5046:3: this_MapTypeCS_2= ruleMapTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralCSAccess().getMapTypeCSParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_MapTypeCS_2=ruleMapTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_MapTypeCS_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:5058:3: this_TupleTypeCS_3= ruleTupleTypeCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralCSAccess().getTupleTypeCSParserRuleCall_3()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TupleTypeCS_3=ruleTupleTypeCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TupleTypeCS_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeLiteralCS" |
| |
| |
| // $ANTLR start "entryRuleTypeLiteralWithMultiplicityCS" |
| // InternalQVTbase.g:5073:1: entryRuleTypeLiteralWithMultiplicityCS returns [EObject current=null] : iv_ruleTypeLiteralWithMultiplicityCS= ruleTypeLiteralWithMultiplicityCS EOF ; |
| public final EObject entryRuleTypeLiteralWithMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeLiteralWithMultiplicityCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5073:70: (iv_ruleTypeLiteralWithMultiplicityCS= ruleTypeLiteralWithMultiplicityCS EOF ) |
| // InternalQVTbase.g:5074:2: iv_ruleTypeLiteralWithMultiplicityCS= ruleTypeLiteralWithMultiplicityCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeLiteralWithMultiplicityCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeLiteralWithMultiplicityCS=ruleTypeLiteralWithMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeLiteralWithMultiplicityCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeLiteralWithMultiplicityCS" |
| |
| |
| // $ANTLR start "ruleTypeLiteralWithMultiplicityCS" |
| // InternalQVTbase.g:5080:1: ruleTypeLiteralWithMultiplicityCS returns [EObject current=null] : (this_TypeLiteralCS_0= ruleTypeLiteralCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ; |
| public final EObject ruleTypeLiteralWithMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypeLiteralCS_0 = null; |
| |
| EObject lv_ownedMultiplicity_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5086:2: ( (this_TypeLiteralCS_0= ruleTypeLiteralCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ) |
| // InternalQVTbase.g:5087:2: (this_TypeLiteralCS_0= ruleTypeLiteralCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| { |
| // InternalQVTbase.g:5087:2: (this_TypeLiteralCS_0= ruleTypeLiteralCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| // InternalQVTbase.g:5088:3: this_TypeLiteralCS_0= ruleTypeLiteralCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralWithMultiplicityCSAccess().getTypeLiteralCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_65); |
| this_TypeLiteralCS_0=ruleTypeLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeLiteralCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalQVTbase.g:5099:3: ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==117) ) { |
| alt122=1; |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalQVTbase.g:5100:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| { |
| // InternalQVTbase.g:5100:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| // InternalQVTbase.g:5101:5: lv_ownedMultiplicity_1_0= ruleMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralWithMultiplicityCSAccess().getOwnedMultiplicityMultiplicityCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedMultiplicity_1_0=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeLiteralWithMultiplicityCSRule()); |
| } |
| set( |
| current, |
| "ownedMultiplicity", |
| lv_ownedMultiplicity_1_0, |
| "org.eclipse.ocl.xtext.base.Base.MultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeLiteralWithMultiplicityCS" |
| |
| |
| // $ANTLR start "entryRuleTypeLiteralExpCS" |
| // InternalQVTbase.g:5122:1: entryRuleTypeLiteralExpCS returns [EObject current=null] : iv_ruleTypeLiteralExpCS= ruleTypeLiteralExpCS EOF ; |
| public final EObject entryRuleTypeLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeLiteralExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5122:57: (iv_ruleTypeLiteralExpCS= ruleTypeLiteralExpCS EOF ) |
| // InternalQVTbase.g:5123:2: iv_ruleTypeLiteralExpCS= ruleTypeLiteralExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeLiteralExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeLiteralExpCS=ruleTypeLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeLiteralExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeLiteralExpCS" |
| |
| |
| // $ANTLR start "ruleTypeLiteralExpCS" |
| // InternalQVTbase.g:5129:1: ruleTypeLiteralExpCS returns [EObject current=null] : ( (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) ) ; |
| public final EObject ruleTypeLiteralExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_ownedType_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5135:2: ( ( (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) ) ) |
| // InternalQVTbase.g:5136:2: ( (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) ) |
| { |
| // InternalQVTbase.g:5136:2: ( (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) ) |
| // InternalQVTbase.g:5137:3: (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) |
| { |
| // InternalQVTbase.g:5137:3: (lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS ) |
| // InternalQVTbase.g:5138:4: lv_ownedType_0_0= ruleTypeLiteralWithMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeLiteralExpCSAccess().getOwnedTypeTypeLiteralWithMultiplicityCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedType_0_0=ruleTypeLiteralWithMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeLiteralExpCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeLiteralWithMultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeLiteralExpCS" |
| |
| |
| // $ANTLR start "entryRuleTypeNameExpCS" |
| // InternalQVTbase.g:5158:1: entryRuleTypeNameExpCS returns [EObject current=null] : iv_ruleTypeNameExpCS= ruleTypeNameExpCS EOF ; |
| public final EObject entryRuleTypeNameExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeNameExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5158:54: (iv_ruleTypeNameExpCS= ruleTypeNameExpCS EOF ) |
| // InternalQVTbase.g:5159:2: iv_ruleTypeNameExpCS= ruleTypeNameExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeNameExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeNameExpCS=ruleTypeNameExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeNameExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeNameExpCS" |
| |
| |
| // $ANTLR start "ruleTypeNameExpCS" |
| // InternalQVTbase.g:5165:1: ruleTypeNameExpCS returns [EObject current=null] : ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? ) ; |
| public final EObject ruleTypeNameExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedPathName_0_0 = null; |
| |
| EObject lv_ownedCurlyBracketedClause_1_0 = null; |
| |
| EObject lv_ownedPatternGuard_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5171:2: ( ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? ) ) |
| // InternalQVTbase.g:5172:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? ) |
| { |
| // InternalQVTbase.g:5172:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? ) |
| // InternalQVTbase.g:5173:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? |
| { |
| // InternalQVTbase.g:5173:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) |
| // InternalQVTbase.g:5174:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| { |
| // InternalQVTbase.g:5174:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| // InternalQVTbase.g:5175:5: lv_ownedPathName_0_0= rulePathNameCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeNameExpCSAccess().getOwnedPathNamePathNameCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_44); |
| lv_ownedPathName_0_0=rulePathNameCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedPathName", |
| lv_ownedPathName_0_0, |
| "org.eclipse.ocl.xtext.base.Base.PathNameCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5192:3: ( ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? )? |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( (LA124_0==22) ) { |
| alt124=1; |
| } |
| switch (alt124) { |
| case 1 : |
| // InternalQVTbase.g:5193:4: ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? |
| { |
| // InternalQVTbase.g:5193:4: ( (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) ) |
| // InternalQVTbase.g:5194:5: (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) |
| { |
| // InternalQVTbase.g:5194:5: (lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS ) |
| // InternalQVTbase.g:5195:6: lv_ownedCurlyBracketedClause_1_0= ruleCurlyBracketedClauseCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeNameExpCSAccess().getOwnedCurlyBracketedClauseCurlyBracketedClauseCSParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_44); |
| lv_ownedCurlyBracketedClause_1_0=ruleCurlyBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedCurlyBracketedClause", |
| lv_ownedCurlyBracketedClause_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CurlyBracketedClauseCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5212:4: (otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' )? |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==22) ) { |
| alt123=1; |
| } |
| switch (alt123) { |
| case 1 : |
| // InternalQVTbase.g:5213:5: otherlv_2= '{' ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) otherlv_4= '}' |
| { |
| otherlv_2=(Token)match(input,22,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getTypeNameExpCSAccess().getLeftCurlyBracketKeyword_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:5217:5: ( (lv_ownedPatternGuard_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:5218:6: (lv_ownedPatternGuard_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:5218:6: (lv_ownedPatternGuard_3_0= ruleExpCS ) |
| // InternalQVTbase.g:5219:7: lv_ownedPatternGuard_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeNameExpCSAccess().getOwnedPatternGuardExpCSParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| lv_ownedPatternGuard_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedPatternGuard", |
| lv_ownedPatternGuard_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getTypeNameExpCSAccess().getRightCurlyBracketKeyword_1_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeNameExpCS" |
| |
| |
| // $ANTLR start "entryRuleTypeExpWithoutMultiplicityCS" |
| // InternalQVTbase.g:5246:1: entryRuleTypeExpWithoutMultiplicityCS returns [EObject current=null] : iv_ruleTypeExpWithoutMultiplicityCS= ruleTypeExpWithoutMultiplicityCS EOF ; |
| public final EObject entryRuleTypeExpWithoutMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeExpWithoutMultiplicityCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5246:69: (iv_ruleTypeExpWithoutMultiplicityCS= ruleTypeExpWithoutMultiplicityCS EOF ) |
| // InternalQVTbase.g:5247:2: iv_ruleTypeExpWithoutMultiplicityCS= ruleTypeExpWithoutMultiplicityCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeExpWithoutMultiplicityCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeExpWithoutMultiplicityCS=ruleTypeExpWithoutMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeExpWithoutMultiplicityCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeExpWithoutMultiplicityCS" |
| |
| |
| // $ANTLR start "ruleTypeExpWithoutMultiplicityCS" |
| // InternalQVTbase.g:5253:1: ruleTypeExpWithoutMultiplicityCS returns [EObject current=null] : (this_TypeNameExpCS_0= ruleTypeNameExpCS | this_TypeLiteralCS_1= ruleTypeLiteralCS | this_CollectionPatternCS_2= ruleCollectionPatternCS ) ; |
| public final EObject ruleTypeExpWithoutMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypeNameExpCS_0 = null; |
| |
| EObject this_TypeLiteralCS_1 = null; |
| |
| EObject this_CollectionPatternCS_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5259:2: ( (this_TypeNameExpCS_0= ruleTypeNameExpCS | this_TypeLiteralCS_1= ruleTypeLiteralCS | this_CollectionPatternCS_2= ruleCollectionPatternCS ) ) |
| // InternalQVTbase.g:5260:2: (this_TypeNameExpCS_0= ruleTypeNameExpCS | this_TypeLiteralCS_1= ruleTypeLiteralCS | this_CollectionPatternCS_2= ruleCollectionPatternCS ) |
| { |
| // InternalQVTbase.g:5260:2: (this_TypeNameExpCS_0= ruleTypeNameExpCS | this_TypeLiteralCS_1= ruleTypeLiteralCS | this_CollectionPatternCS_2= ruleCollectionPatternCS ) |
| int alt125=3; |
| alt125 = dfa125.predict(input); |
| switch (alt125) { |
| case 1 : |
| // InternalQVTbase.g:5261:3: this_TypeNameExpCS_0= ruleTypeNameExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeExpWithoutMultiplicityCSAccess().getTypeNameExpCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeNameExpCS_0=ruleTypeNameExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeNameExpCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5273:3: this_TypeLiteralCS_1= ruleTypeLiteralCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeExpWithoutMultiplicityCSAccess().getTypeLiteralCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeLiteralCS_1=ruleTypeLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeLiteralCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:5285:3: this_CollectionPatternCS_2= ruleCollectionPatternCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeExpWithoutMultiplicityCSAccess().getCollectionPatternCSParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_CollectionPatternCS_2=ruleCollectionPatternCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_CollectionPatternCS_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeExpWithoutMultiplicityCS" |
| |
| |
| // $ANTLR start "entryRuleTypeExpCS" |
| // InternalQVTbase.g:5300:1: entryRuleTypeExpCS returns [EObject current=null] : iv_ruleTypeExpCS= ruleTypeExpCS EOF ; |
| public final EObject entryRuleTypeExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5300:50: (iv_ruleTypeExpCS= ruleTypeExpCS EOF ) |
| // InternalQVTbase.g:5301:2: iv_ruleTypeExpCS= ruleTypeExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeExpCS=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeExpCS" |
| |
| |
| // $ANTLR start "ruleTypeExpCS" |
| // InternalQVTbase.g:5307:1: ruleTypeExpCS returns [EObject current=null] : (this_TypeExpWithoutMultiplicityCS_0= ruleTypeExpWithoutMultiplicityCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ; |
| public final EObject ruleTypeExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypeExpWithoutMultiplicityCS_0 = null; |
| |
| EObject lv_ownedMultiplicity_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5313:2: ( (this_TypeExpWithoutMultiplicityCS_0= ruleTypeExpWithoutMultiplicityCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) ) |
| // InternalQVTbase.g:5314:2: (this_TypeExpWithoutMultiplicityCS_0= ruleTypeExpWithoutMultiplicityCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| { |
| // InternalQVTbase.g:5314:2: (this_TypeExpWithoutMultiplicityCS_0= ruleTypeExpWithoutMultiplicityCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? ) |
| // InternalQVTbase.g:5315:3: this_TypeExpWithoutMultiplicityCS_0= ruleTypeExpWithoutMultiplicityCS ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeExpCSAccess().getTypeExpWithoutMultiplicityCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_65); |
| this_TypeExpWithoutMultiplicityCS_0=ruleTypeExpWithoutMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeExpWithoutMultiplicityCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalQVTbase.g:5326:3: ( (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) )? |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==117) ) { |
| alt126=1; |
| } |
| switch (alt126) { |
| case 1 : |
| // InternalQVTbase.g:5327:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| { |
| // InternalQVTbase.g:5327:4: (lv_ownedMultiplicity_1_0= ruleMultiplicityCS ) |
| // InternalQVTbase.g:5328:5: lv_ownedMultiplicity_1_0= ruleMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeExpCSAccess().getOwnedMultiplicityMultiplicityCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedMultiplicity_1_0=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeExpCSRule()); |
| } |
| set( |
| current, |
| "ownedMultiplicity", |
| lv_ownedMultiplicity_1_0, |
| "org.eclipse.ocl.xtext.base.Base.MultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeExpCS" |
| |
| |
| // $ANTLR start "entryRuleExpCS" |
| // InternalQVTbase.g:5349:1: entryRuleExpCS returns [EObject current=null] : iv_ruleExpCS= ruleExpCS EOF ; |
| public final EObject entryRuleExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5349:46: (iv_ruleExpCS= ruleExpCS EOF ) |
| // InternalQVTbase.g:5350:2: iv_ruleExpCS= ruleExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleExpCS=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleExpCS" |
| |
| |
| // $ANTLR start "ruleExpCS" |
| // InternalQVTbase.g:5356:1: ruleExpCS returns [EObject current=null] : ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) | this_PrefixedLetExpCS_4= rulePrefixedLetExpCS ) ; |
| public final EObject ruleExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PrefixedPrimaryExpCS_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_ownedRight_3_0 = null; |
| |
| EObject this_PrefixedLetExpCS_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5362:2: ( ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) | this_PrefixedLetExpCS_4= rulePrefixedLetExpCS ) ) |
| // InternalQVTbase.g:5363:2: ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) | this_PrefixedLetExpCS_4= rulePrefixedLetExpCS ) |
| { |
| // InternalQVTbase.g:5363:2: ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) | this_PrefixedLetExpCS_4= rulePrefixedLetExpCS ) |
| int alt128=2; |
| alt128 = dfa128.predict(input); |
| switch (alt128) { |
| case 1 : |
| // InternalQVTbase.g:5364:3: (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:5364:3: (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:5365:4: this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getPrefixedPrimaryExpCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_82); |
| this_PrefixedPrimaryExpCS_0=rulePrefixedPrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PrefixedPrimaryExpCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalQVTbase.g:5376:4: ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? |
| int alt127=2; |
| int LA127_0 = input.LA(1); |
| |
| if ( (LA127_0==21||LA127_0==69||(LA127_0>=72 && LA127_0<=91)) ) { |
| alt127=1; |
| } |
| switch (alt127) { |
| case 1 : |
| // InternalQVTbase.g:5377:5: () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:5377:5: () |
| // InternalQVTbase.g:5378:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalQVTbase.g:5387:5: ( (lv_name_2_0= ruleBinaryOperatorName ) ) |
| // InternalQVTbase.g:5388:6: (lv_name_2_0= ruleBinaryOperatorName ) |
| { |
| // InternalQVTbase.g:5388:6: (lv_name_2_0= ruleBinaryOperatorName ) |
| // InternalQVTbase.g:5389:7: lv_name_2_0= ruleBinaryOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getNameBinaryOperatorNameParserRuleCall_0_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_75); |
| lv_name_2_0=ruleBinaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getExpCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.BinaryOperatorName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5406:5: ( (lv_ownedRight_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:5407:6: (lv_ownedRight_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:5407:6: (lv_ownedRight_3_0= ruleExpCS ) |
| // InternalQVTbase.g:5408:7: lv_ownedRight_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getOwnedRightExpCSParserRuleCall_0_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedRight_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getExpCSRule()); |
| } |
| set( |
| current, |
| "ownedRight", |
| lv_ownedRight_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5428:3: this_PrefixedLetExpCS_4= rulePrefixedLetExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getPrefixedLetExpCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_PrefixedLetExpCS_4=rulePrefixedLetExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PrefixedLetExpCS_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleExpCS" |
| |
| |
| // $ANTLR start "entryRulePrefixedLetExpCS" |
| // InternalQVTbase.g:5443:1: entryRulePrefixedLetExpCS returns [EObject current=null] : iv_rulePrefixedLetExpCS= rulePrefixedLetExpCS EOF ; |
| public final EObject entryRulePrefixedLetExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePrefixedLetExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5443:57: (iv_rulePrefixedLetExpCS= rulePrefixedLetExpCS EOF ) |
| // InternalQVTbase.g:5444:2: iv_rulePrefixedLetExpCS= rulePrefixedLetExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrefixedLetExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrefixedLetExpCS=rulePrefixedLetExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrefixedLetExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrefixedLetExpCS" |
| |
| |
| // $ANTLR start "rulePrefixedLetExpCS" |
| // InternalQVTbase.g:5450:1: rulePrefixedLetExpCS returns [EObject current=null] : ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) | this_LetExpCS_3= ruleLetExpCS ) ; |
| public final EObject rulePrefixedLetExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_ownedRight_2_0 = null; |
| |
| EObject this_LetExpCS_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5456:2: ( ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) | this_LetExpCS_3= ruleLetExpCS ) ) |
| // InternalQVTbase.g:5457:2: ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) | this_LetExpCS_3= ruleLetExpCS ) |
| { |
| // InternalQVTbase.g:5457:2: ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) | this_LetExpCS_3= ruleLetExpCS ) |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( ((LA129_0>=69 && LA129_0<=71)) ) { |
| alt129=1; |
| } |
| else if ( (LA129_0==126) ) { |
| alt129=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 129, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt129) { |
| case 1 : |
| // InternalQVTbase.g:5458:3: ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) |
| { |
| // InternalQVTbase.g:5458:3: ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) ) |
| // InternalQVTbase.g:5459:4: () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) |
| { |
| // InternalQVTbase.g:5459:4: () |
| // InternalQVTbase.g:5460:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPrefixedLetExpCSAccess().getPrefixExpCSAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalQVTbase.g:5469:4: ( (lv_name_1_0= ruleUnaryOperatorName ) ) |
| // InternalQVTbase.g:5470:5: (lv_name_1_0= ruleUnaryOperatorName ) |
| { |
| // InternalQVTbase.g:5470:5: (lv_name_1_0= ruleUnaryOperatorName ) |
| // InternalQVTbase.g:5471:6: lv_name_1_0= ruleUnaryOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedLetExpCSAccess().getNameUnaryOperatorNameParserRuleCall_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_75); |
| lv_name_1_0=ruleUnaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrefixedLetExpCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnaryOperatorName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5488:4: ( (lv_ownedRight_2_0= rulePrefixedLetExpCS ) ) |
| // InternalQVTbase.g:5489:5: (lv_ownedRight_2_0= rulePrefixedLetExpCS ) |
| { |
| // InternalQVTbase.g:5489:5: (lv_ownedRight_2_0= rulePrefixedLetExpCS ) |
| // InternalQVTbase.g:5490:6: lv_ownedRight_2_0= rulePrefixedLetExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedLetExpCSAccess().getOwnedRightPrefixedLetExpCSParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedRight_2_0=rulePrefixedLetExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrefixedLetExpCSRule()); |
| } |
| set( |
| current, |
| "ownedRight", |
| lv_ownedRight_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PrefixedLetExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5509:3: this_LetExpCS_3= ruleLetExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedLetExpCSAccess().getLetExpCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LetExpCS_3=ruleLetExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LetExpCS_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrefixedLetExpCS" |
| |
| |
| // $ANTLR start "entryRulePrefixedPrimaryExpCS" |
| // InternalQVTbase.g:5524:1: entryRulePrefixedPrimaryExpCS returns [EObject current=null] : iv_rulePrefixedPrimaryExpCS= rulePrefixedPrimaryExpCS EOF ; |
| public final EObject entryRulePrefixedPrimaryExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePrefixedPrimaryExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5524:61: (iv_rulePrefixedPrimaryExpCS= rulePrefixedPrimaryExpCS EOF ) |
| // InternalQVTbase.g:5525:2: iv_rulePrefixedPrimaryExpCS= rulePrefixedPrimaryExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrefixedPrimaryExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrefixedPrimaryExpCS=rulePrefixedPrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrefixedPrimaryExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrefixedPrimaryExpCS" |
| |
| |
| // $ANTLR start "rulePrefixedPrimaryExpCS" |
| // InternalQVTbase.g:5531:1: rulePrefixedPrimaryExpCS returns [EObject current=null] : ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) | this_PrimaryExpCS_3= rulePrimaryExpCS ) ; |
| public final EObject rulePrefixedPrimaryExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_ownedRight_2_0 = null; |
| |
| EObject this_PrimaryExpCS_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5537:2: ( ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) | this_PrimaryExpCS_3= rulePrimaryExpCS ) ) |
| // InternalQVTbase.g:5538:2: ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) | this_PrimaryExpCS_3= rulePrimaryExpCS ) |
| { |
| // InternalQVTbase.g:5538:2: ( ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) | this_PrimaryExpCS_3= rulePrimaryExpCS ) |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( ((LA130_0>=69 && LA130_0<=71)) ) { |
| alt130=1; |
| } |
| else if ( (LA130_0==RULE_SINGLE_QUOTED_STRING||(LA130_0>=RULE_INT && LA130_0<=RULE_ESCAPED_ID)||LA130_0==51||LA130_0==72||(LA130_0>=92 && LA130_0<=106)||LA130_0==109||(LA130_0>=111 && LA130_0<=114)||LA130_0==121||LA130_0==127) ) { |
| alt130=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 130, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalQVTbase.g:5539:3: ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) |
| { |
| // InternalQVTbase.g:5539:3: ( () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) ) |
| // InternalQVTbase.g:5540:4: () ( (lv_name_1_0= ruleUnaryOperatorName ) ) ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) |
| { |
| // InternalQVTbase.g:5540:4: () |
| // InternalQVTbase.g:5541:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPrefixedPrimaryExpCSAccess().getPrefixExpCSAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalQVTbase.g:5550:4: ( (lv_name_1_0= ruleUnaryOperatorName ) ) |
| // InternalQVTbase.g:5551:5: (lv_name_1_0= ruleUnaryOperatorName ) |
| { |
| // InternalQVTbase.g:5551:5: (lv_name_1_0= ruleUnaryOperatorName ) |
| // InternalQVTbase.g:5552:6: lv_name_1_0= ruleUnaryOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedPrimaryExpCSAccess().getNameUnaryOperatorNameParserRuleCall_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_83); |
| lv_name_1_0=ruleUnaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrefixedPrimaryExpCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnaryOperatorName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5569:4: ( (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) ) |
| // InternalQVTbase.g:5570:5: (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) |
| { |
| // InternalQVTbase.g:5570:5: (lv_ownedRight_2_0= rulePrefixedPrimaryExpCS ) |
| // InternalQVTbase.g:5571:6: lv_ownedRight_2_0= rulePrefixedPrimaryExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedPrimaryExpCSAccess().getOwnedRightPrefixedPrimaryExpCSParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedRight_2_0=rulePrefixedPrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrefixedPrimaryExpCSRule()); |
| } |
| set( |
| current, |
| "ownedRight", |
| lv_ownedRight_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PrefixedPrimaryExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5590:3: this_PrimaryExpCS_3= rulePrimaryExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrefixedPrimaryExpCSAccess().getPrimaryExpCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_PrimaryExpCS_3=rulePrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PrimaryExpCS_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrefixedPrimaryExpCS" |
| |
| |
| // $ANTLR start "entryRulePrimaryExpCS" |
| // InternalQVTbase.g:5605:1: entryRulePrimaryExpCS returns [EObject current=null] : iv_rulePrimaryExpCS= rulePrimaryExpCS EOF ; |
| public final EObject entryRulePrimaryExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePrimaryExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5605:53: (iv_rulePrimaryExpCS= rulePrimaryExpCS EOF ) |
| // InternalQVTbase.g:5606:2: iv_rulePrimaryExpCS= rulePrimaryExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrimaryExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePrimaryExpCS=rulePrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePrimaryExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePrimaryExpCS" |
| |
| |
| // $ANTLR start "rulePrimaryExpCS" |
| // InternalQVTbase.g:5612:1: rulePrimaryExpCS returns [EObject current=null] : (this_NestedExpCS_0= ruleNestedExpCS | this_IfExpCS_1= ruleIfExpCS | this_SelfExpCS_2= ruleSelfExpCS | this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS | this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS | this_MapLiteralExpCS_5= ruleMapLiteralExpCS | this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS | this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS | this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS | this_NameExpCS_9= ruleNameExpCS ) ; |
| public final EObject rulePrimaryExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_NestedExpCS_0 = null; |
| |
| EObject this_IfExpCS_1 = null; |
| |
| EObject this_SelfExpCS_2 = null; |
| |
| EObject this_PrimitiveLiteralExpCS_3 = null; |
| |
| EObject this_TupleLiteralExpCS_4 = null; |
| |
| EObject this_MapLiteralExpCS_5 = null; |
| |
| EObject this_CollectionLiteralExpCS_6 = null; |
| |
| EObject this_LambdaLiteralExpCS_7 = null; |
| |
| EObject this_TypeLiteralExpCS_8 = null; |
| |
| EObject this_NameExpCS_9 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5618:2: ( (this_NestedExpCS_0= ruleNestedExpCS | this_IfExpCS_1= ruleIfExpCS | this_SelfExpCS_2= ruleSelfExpCS | this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS | this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS | this_MapLiteralExpCS_5= ruleMapLiteralExpCS | this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS | this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS | this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS | this_NameExpCS_9= ruleNameExpCS ) ) |
| // InternalQVTbase.g:5619:2: (this_NestedExpCS_0= ruleNestedExpCS | this_IfExpCS_1= ruleIfExpCS | this_SelfExpCS_2= ruleSelfExpCS | this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS | this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS | this_MapLiteralExpCS_5= ruleMapLiteralExpCS | this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS | this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS | this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS | this_NameExpCS_9= ruleNameExpCS ) |
| { |
| // InternalQVTbase.g:5619:2: (this_NestedExpCS_0= ruleNestedExpCS | this_IfExpCS_1= ruleIfExpCS | this_SelfExpCS_2= ruleSelfExpCS | this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS | this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS | this_MapLiteralExpCS_5= ruleMapLiteralExpCS | this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS | this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS | this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS | this_NameExpCS_9= ruleNameExpCS ) |
| int alt131=10; |
| alt131 = dfa131.predict(input); |
| switch (alt131) { |
| case 1 : |
| // InternalQVTbase.g:5620:3: this_NestedExpCS_0= ruleNestedExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getNestedExpCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_NestedExpCS_0=ruleNestedExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NestedExpCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:5632:3: this_IfExpCS_1= ruleIfExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getIfExpCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_IfExpCS_1=ruleIfExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_IfExpCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:5644:3: this_SelfExpCS_2= ruleSelfExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getSelfExpCSParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_SelfExpCS_2=ruleSelfExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_SelfExpCS_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalQVTbase.g:5656:3: this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getPrimitiveLiteralExpCSParserRuleCall_3()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_PrimitiveLiteralExpCS_3=rulePrimitiveLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PrimitiveLiteralExpCS_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalQVTbase.g:5668:3: this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getTupleLiteralExpCSParserRuleCall_4()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TupleLiteralExpCS_4=ruleTupleLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TupleLiteralExpCS_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalQVTbase.g:5680:3: this_MapLiteralExpCS_5= ruleMapLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getMapLiteralExpCSParserRuleCall_5()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_MapLiteralExpCS_5=ruleMapLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_MapLiteralExpCS_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalQVTbase.g:5692:3: this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getCollectionLiteralExpCSParserRuleCall_6()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_CollectionLiteralExpCS_6=ruleCollectionLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_CollectionLiteralExpCS_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalQVTbase.g:5704:3: this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getLambdaLiteralExpCSParserRuleCall_7()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LambdaLiteralExpCS_7=ruleLambdaLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LambdaLiteralExpCS_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalQVTbase.g:5716:3: this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getTypeLiteralExpCSParserRuleCall_8()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeLiteralExpCS_8=ruleTypeLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypeLiteralExpCS_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalQVTbase.g:5728:3: this_NameExpCS_9= ruleNameExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpCSAccess().getNameExpCSParserRuleCall_9()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_NameExpCS_9=ruleNameExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NameExpCS_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePrimaryExpCS" |
| |
| |
| // $ANTLR start "entryRuleNameExpCS" |
| // InternalQVTbase.g:5743:1: entryRuleNameExpCS returns [EObject current=null] : iv_ruleNameExpCS= ruleNameExpCS EOF ; |
| public final EObject entryRuleNameExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNameExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5743:50: (iv_ruleNameExpCS= ruleNameExpCS EOF ) |
| // InternalQVTbase.g:5744:2: iv_ruleNameExpCS= ruleNameExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNameExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNameExpCS=ruleNameExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNameExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNameExpCS" |
| |
| |
| // $ANTLR start "ruleNameExpCS" |
| // InternalQVTbase.g:5750:1: ruleNameExpCS returns [EObject current=null] : ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? ) ; |
| public final EObject ruleNameExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_isPre_4_0=null; |
| Token otherlv_5=null; |
| EObject lv_ownedPathName_0_0 = null; |
| |
| EObject lv_ownedSquareBracketedClauses_1_0 = null; |
| |
| EObject lv_ownedRoundBracketedClause_2_0 = null; |
| |
| EObject lv_ownedCurlyBracketedClause_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5756:2: ( ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? ) ) |
| // InternalQVTbase.g:5757:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? ) |
| { |
| // InternalQVTbase.g:5757:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? ) |
| // InternalQVTbase.g:5758:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? |
| { |
| // InternalQVTbase.g:5758:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) |
| // InternalQVTbase.g:5759:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| { |
| // InternalQVTbase.g:5759:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| // InternalQVTbase.g:5760:5: lv_ownedPathName_0_0= rulePathNameCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNameExpCSAccess().getOwnedPathNamePathNameCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_84); |
| lv_ownedPathName_0_0=rulePathNameCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedPathName", |
| lv_ownedPathName_0_0, |
| "org.eclipse.ocl.xtext.base.Base.PathNameCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5777:3: ( (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) )* |
| loop132: |
| do { |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==117) ) { |
| alt132=1; |
| } |
| |
| |
| switch (alt132) { |
| case 1 : |
| // InternalQVTbase.g:5778:4: (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) |
| { |
| // InternalQVTbase.g:5778:4: (lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS ) |
| // InternalQVTbase.g:5779:5: lv_ownedSquareBracketedClauses_1_0= ruleSquareBracketedClauseCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNameExpCSAccess().getOwnedSquareBracketedClausesSquareBracketedClauseCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_84); |
| lv_ownedSquareBracketedClauses_1_0=ruleSquareBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNameExpCSRule()); |
| } |
| add( |
| current, |
| "ownedSquareBracketedClauses", |
| lv_ownedSquareBracketedClauses_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.SquareBracketedClauseCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop132; |
| } |
| } while (true); |
| |
| // InternalQVTbase.g:5796:3: ( (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) )? |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==51) ) { |
| alt133=1; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalQVTbase.g:5797:4: (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) |
| { |
| // InternalQVTbase.g:5797:4: (lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS ) |
| // InternalQVTbase.g:5798:5: lv_ownedRoundBracketedClause_2_0= ruleRoundBracketedClauseCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNameExpCSAccess().getOwnedRoundBracketedClauseRoundBracketedClauseCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_85); |
| lv_ownedRoundBracketedClause_2_0=ruleRoundBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedRoundBracketedClause", |
| lv_ownedRoundBracketedClause_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.RoundBracketedClauseCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:5815:3: ( (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) )? |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==22) ) { |
| alt134=1; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalQVTbase.g:5816:4: (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) |
| { |
| // InternalQVTbase.g:5816:4: (lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS ) |
| // InternalQVTbase.g:5817:5: lv_ownedCurlyBracketedClause_3_0= ruleCurlyBracketedClauseCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNameExpCSAccess().getOwnedCurlyBracketedClauseCurlyBracketedClauseCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_86); |
| lv_ownedCurlyBracketedClause_3_0=ruleCurlyBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNameExpCSRule()); |
| } |
| set( |
| current, |
| "ownedCurlyBracketedClause", |
| lv_ownedCurlyBracketedClause_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CurlyBracketedClauseCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:5834:3: ( ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' )? |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==115) ) { |
| alt135=1; |
| } |
| switch (alt135) { |
| case 1 : |
| // InternalQVTbase.g:5835:4: ( (lv_isPre_4_0= '@' ) ) otherlv_5= 'pre' |
| { |
| // InternalQVTbase.g:5835:4: ( (lv_isPre_4_0= '@' ) ) |
| // InternalQVTbase.g:5836:5: (lv_isPre_4_0= '@' ) |
| { |
| // InternalQVTbase.g:5836:5: (lv_isPre_4_0= '@' ) |
| // InternalQVTbase.g:5837:6: lv_isPre_4_0= '@' |
| { |
| lv_isPre_4_0=(Token)match(input,115,FollowSets000.FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isPre_4_0, grammarAccess.getNameExpCSAccess().getIsPreCommercialAtKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNameExpCSRule()); |
| } |
| setWithLastConsumed(current, "isPre", lv_isPre_4_0 != null, "@"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,116,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getNameExpCSAccess().getPreKeyword_4_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNameExpCS" |
| |
| |
| // $ANTLR start "entryRuleCurlyBracketedClauseCS" |
| // InternalQVTbase.g:5858:1: entryRuleCurlyBracketedClauseCS returns [EObject current=null] : iv_ruleCurlyBracketedClauseCS= ruleCurlyBracketedClauseCS EOF ; |
| public final EObject entryRuleCurlyBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCurlyBracketedClauseCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5858:63: (iv_ruleCurlyBracketedClauseCS= ruleCurlyBracketedClauseCS EOF ) |
| // InternalQVTbase.g:5859:2: iv_ruleCurlyBracketedClauseCS= ruleCurlyBracketedClauseCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCurlyBracketedClauseCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCurlyBracketedClauseCS=ruleCurlyBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCurlyBracketedClauseCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCurlyBracketedClauseCS" |
| |
| |
| // $ANTLR start "ruleCurlyBracketedClauseCS" |
| // InternalQVTbase.g:5865:1: ruleCurlyBracketedClauseCS returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? otherlv_5= '}' ) ; |
| public final EObject ruleCurlyBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_ownedParts_2_0 = null; |
| |
| EObject lv_ownedParts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5871:2: ( ( () otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? otherlv_5= '}' ) ) |
| // InternalQVTbase.g:5872:2: ( () otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? otherlv_5= '}' ) |
| { |
| // InternalQVTbase.g:5872:2: ( () otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? otherlv_5= '}' ) |
| // InternalQVTbase.g:5873:3: () otherlv_1= '{' ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? otherlv_5= '}' |
| { |
| // InternalQVTbase.g:5873:3: () |
| // InternalQVTbase.g:5874:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getCurlyBracketedClauseCSAccess().getCurlyBracketedClauseCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,22,FollowSets000.FOLLOW_88); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCurlyBracketedClauseCSAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:5887:3: ( ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* )? |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==RULE_SINGLE_QUOTED_STRING||(LA137_0>=RULE_SIMPLE_ID && LA137_0<=RULE_ESCAPED_ID)) ) { |
| alt137=1; |
| } |
| switch (alt137) { |
| case 1 : |
| // InternalQVTbase.g:5888:4: ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* |
| { |
| // InternalQVTbase.g:5888:4: ( (lv_ownedParts_2_0= ruleShadowPartCS ) ) |
| // InternalQVTbase.g:5889:5: (lv_ownedParts_2_0= ruleShadowPartCS ) |
| { |
| // InternalQVTbase.g:5889:5: (lv_ownedParts_2_0= ruleShadowPartCS ) |
| // InternalQVTbase.g:5890:6: lv_ownedParts_2_0= ruleShadowPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCurlyBracketedClauseCSAccess().getOwnedPartsShadowPartCSParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_2_0=ruleShadowPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCurlyBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ShadowPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5907:4: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) )* |
| loop136: |
| do { |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==39) ) { |
| alt136=1; |
| } |
| |
| |
| switch (alt136) { |
| case 1 : |
| // InternalQVTbase.g:5908:5: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) |
| { |
| otherlv_3=(Token)match(input,39,FollowSets000.FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getCurlyBracketedClauseCSAccess().getCommaKeyword_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:5912:5: ( (lv_ownedParts_4_0= ruleShadowPartCS ) ) |
| // InternalQVTbase.g:5913:6: (lv_ownedParts_4_0= ruleShadowPartCS ) |
| { |
| // InternalQVTbase.g:5913:6: (lv_ownedParts_4_0= ruleShadowPartCS ) |
| // InternalQVTbase.g:5914:7: lv_ownedParts_4_0= ruleShadowPartCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCurlyBracketedClauseCSAccess().getOwnedPartsShadowPartCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_58); |
| lv_ownedParts_4_0=ruleShadowPartCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCurlyBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedParts", |
| lv_ownedParts_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ShadowPartCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop136; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,40,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getCurlyBracketedClauseCSAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCurlyBracketedClauseCS" |
| |
| |
| // $ANTLR start "entryRuleRoundBracketedClauseCS" |
| // InternalQVTbase.g:5941:1: entryRuleRoundBracketedClauseCS returns [EObject current=null] : iv_ruleRoundBracketedClauseCS= ruleRoundBracketedClauseCS EOF ; |
| public final EObject entryRuleRoundBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleRoundBracketedClauseCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:5941:63: (iv_ruleRoundBracketedClauseCS= ruleRoundBracketedClauseCS EOF ) |
| // InternalQVTbase.g:5942:2: iv_ruleRoundBracketedClauseCS= ruleRoundBracketedClauseCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getRoundBracketedClauseCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleRoundBracketedClauseCS=ruleRoundBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleRoundBracketedClauseCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleRoundBracketedClauseCS" |
| |
| |
| // $ANTLR start "ruleRoundBracketedClauseCS" |
| // InternalQVTbase.g:5948:1: ruleRoundBracketedClauseCS returns [EObject current=null] : ( () otherlv_1= '(' ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? otherlv_4= ')' ) ; |
| public final EObject ruleRoundBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| EObject lv_ownedArguments_2_0 = null; |
| |
| EObject lv_ownedArguments_3_1 = null; |
| |
| EObject lv_ownedArguments_3_2 = null; |
| |
| EObject lv_ownedArguments_3_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:5954:2: ( ( () otherlv_1= '(' ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? otherlv_4= ')' ) ) |
| // InternalQVTbase.g:5955:2: ( () otherlv_1= '(' ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? otherlv_4= ')' ) |
| { |
| // InternalQVTbase.g:5955:2: ( () otherlv_1= '(' ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? otherlv_4= ')' ) |
| // InternalQVTbase.g:5956:3: () otherlv_1= '(' ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? otherlv_4= ')' |
| { |
| // InternalQVTbase.g:5956:3: () |
| // InternalQVTbase.g:5957:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getRoundBracketedClauseCSAccess().getRoundBracketedClauseCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,51,FollowSets000.FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getRoundBracketedClauseCSAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:5970:3: ( ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* )? |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==RULE_SINGLE_QUOTED_STRING||(LA140_0>=RULE_INT && LA140_0<=RULE_ESCAPED_ID)||LA140_0==20||LA140_0==51||(LA140_0>=69 && LA140_0<=72)||(LA140_0>=92 && LA140_0<=106)||LA140_0==109||(LA140_0>=111 && LA140_0<=114)||LA140_0==121||(LA140_0>=126 && LA140_0<=127)) ) { |
| alt140=1; |
| } |
| switch (alt140) { |
| case 1 : |
| // InternalQVTbase.g:5971:4: ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* |
| { |
| // InternalQVTbase.g:5971:4: ( (lv_ownedArguments_2_0= ruleNavigatingArgCS ) ) |
| // InternalQVTbase.g:5972:5: (lv_ownedArguments_2_0= ruleNavigatingArgCS ) |
| { |
| // InternalQVTbase.g:5972:5: (lv_ownedArguments_2_0= ruleNavigatingArgCS ) |
| // InternalQVTbase.g:5973:6: lv_ownedArguments_2_0= ruleNavigatingArgCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRoundBracketedClauseCSAccess().getOwnedArgumentsNavigatingArgCSParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_91); |
| lv_ownedArguments_2_0=ruleNavigatingArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRoundBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedArguments", |
| lv_ownedArguments_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingArgCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5990:4: ( ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) )* |
| loop139: |
| do { |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==39||LA139_0==42||LA139_0==120) ) { |
| alt139=1; |
| } |
| |
| |
| switch (alt139) { |
| case 1 : |
| // InternalQVTbase.g:5991:5: ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) |
| { |
| // InternalQVTbase.g:5991:5: ( (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) ) |
| // InternalQVTbase.g:5992:6: (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) |
| { |
| // InternalQVTbase.g:5992:6: (lv_ownedArguments_3_1= ruleNavigatingCommaArgCS | lv_ownedArguments_3_2= ruleNavigatingSemiArgCS | lv_ownedArguments_3_3= ruleNavigatingBarArgCS ) |
| int alt138=3; |
| switch ( input.LA(1) ) { |
| case 39: |
| { |
| alt138=1; |
| } |
| break; |
| case 42: |
| { |
| alt138=2; |
| } |
| break; |
| case 120: |
| { |
| alt138=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 138, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt138) { |
| case 1 : |
| // InternalQVTbase.g:5993:7: lv_ownedArguments_3_1= ruleNavigatingCommaArgCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRoundBracketedClauseCSAccess().getOwnedArgumentsNavigatingCommaArgCSParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_91); |
| lv_ownedArguments_3_1=ruleNavigatingCommaArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRoundBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedArguments", |
| lv_ownedArguments_3_1, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingCommaArgCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:6009:7: lv_ownedArguments_3_2= ruleNavigatingSemiArgCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRoundBracketedClauseCSAccess().getOwnedArgumentsNavigatingSemiArgCSParserRuleCall_2_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_91); |
| lv_ownedArguments_3_2=ruleNavigatingSemiArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRoundBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedArguments", |
| lv_ownedArguments_3_2, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingSemiArgCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:6025:7: lv_ownedArguments_3_3= ruleNavigatingBarArgCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRoundBracketedClauseCSAccess().getOwnedArgumentsNavigatingBarArgCSParserRuleCall_2_1_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_91); |
| lv_ownedArguments_3_3=ruleNavigatingBarArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRoundBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedArguments", |
| lv_ownedArguments_3_3, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingBarArgCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop139; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getRoundBracketedClauseCSAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleRoundBracketedClauseCS" |
| |
| |
| // $ANTLR start "entryRuleSquareBracketedClauseCS" |
| // InternalQVTbase.g:6052:1: entryRuleSquareBracketedClauseCS returns [EObject current=null] : iv_ruleSquareBracketedClauseCS= ruleSquareBracketedClauseCS EOF ; |
| public final EObject entryRuleSquareBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSquareBracketedClauseCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6052:64: (iv_ruleSquareBracketedClauseCS= ruleSquareBracketedClauseCS EOF ) |
| // InternalQVTbase.g:6053:2: iv_ruleSquareBracketedClauseCS= ruleSquareBracketedClauseCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSquareBracketedClauseCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSquareBracketedClauseCS=ruleSquareBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSquareBracketedClauseCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSquareBracketedClauseCS" |
| |
| |
| // $ANTLR start "ruleSquareBracketedClauseCS" |
| // InternalQVTbase.g:6059:1: ruleSquareBracketedClauseCS returns [EObject current=null] : (otherlv_0= '[' ( (lv_ownedTerms_1_0= ruleExpCS ) ) (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* otherlv_4= ']' ) ; |
| public final EObject ruleSquareBracketedClauseCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedTerms_1_0 = null; |
| |
| EObject lv_ownedTerms_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6065:2: ( (otherlv_0= '[' ( (lv_ownedTerms_1_0= ruleExpCS ) ) (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* otherlv_4= ']' ) ) |
| // InternalQVTbase.g:6066:2: (otherlv_0= '[' ( (lv_ownedTerms_1_0= ruleExpCS ) ) (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* otherlv_4= ']' ) |
| { |
| // InternalQVTbase.g:6066:2: (otherlv_0= '[' ( (lv_ownedTerms_1_0= ruleExpCS ) ) (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* otherlv_4= ']' ) |
| // InternalQVTbase.g:6067:3: otherlv_0= '[' ( (lv_ownedTerms_1_0= ruleExpCS ) ) (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* otherlv_4= ']' |
| { |
| otherlv_0=(Token)match(input,117,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getSquareBracketedClauseCSAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:6071:3: ( (lv_ownedTerms_1_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6072:4: (lv_ownedTerms_1_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6072:4: (lv_ownedTerms_1_0= ruleExpCS ) |
| // InternalQVTbase.g:6073:5: lv_ownedTerms_1_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSquareBracketedClauseCSAccess().getOwnedTermsExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_92); |
| lv_ownedTerms_1_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSquareBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedTerms", |
| lv_ownedTerms_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6090:3: (otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) )* |
| loop141: |
| do { |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( (LA141_0==39) ) { |
| alt141=1; |
| } |
| |
| |
| switch (alt141) { |
| case 1 : |
| // InternalQVTbase.g:6091:4: otherlv_2= ',' ( (lv_ownedTerms_3_0= ruleExpCS ) ) |
| { |
| otherlv_2=(Token)match(input,39,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getSquareBracketedClauseCSAccess().getCommaKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:6095:4: ( (lv_ownedTerms_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6096:5: (lv_ownedTerms_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6096:5: (lv_ownedTerms_3_0= ruleExpCS ) |
| // InternalQVTbase.g:6097:6: lv_ownedTerms_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSquareBracketedClauseCSAccess().getOwnedTermsExpCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_92); |
| lv_ownedTerms_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSquareBracketedClauseCSRule()); |
| } |
| add( |
| current, |
| "ownedTerms", |
| lv_ownedTerms_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop141; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,118,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getSquareBracketedClauseCSAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSquareBracketedClauseCS" |
| |
| |
| // $ANTLR start "entryRuleNavigatingArgCS" |
| // InternalQVTbase.g:6123:1: entryRuleNavigatingArgCS returns [EObject current=null] : iv_ruleNavigatingArgCS= ruleNavigatingArgCS EOF ; |
| public final EObject entryRuleNavigatingArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNavigatingArgCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6123:56: (iv_ruleNavigatingArgCS= ruleNavigatingArgCS EOF ) |
| // InternalQVTbase.g:6124:2: iv_ruleNavigatingArgCS= ruleNavigatingArgCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigatingArgCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigatingArgCS=ruleNavigatingArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigatingArgCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigatingArgCS" |
| |
| |
| // $ANTLR start "ruleNavigatingArgCS" |
| // InternalQVTbase.g:6130:1: ruleNavigatingArgCS returns [EObject current=null] : ( ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) | (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) ) ; |
| public final EObject ruleNavigatingArgCS() 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; |
| Token otherlv_15=null; |
| Token otherlv_17=null; |
| EObject lv_ownedNameExpression_0_0 = null; |
| |
| EObject lv_ownedCoIterator_2_0 = null; |
| |
| EObject lv_ownedInitExpression_4_0 = null; |
| |
| EObject lv_ownedType_6_0 = null; |
| |
| EObject lv_ownedCoIterator_8_0 = null; |
| |
| EObject lv_ownedInitExpression_10_0 = null; |
| |
| EObject lv_ownedType_12_0 = null; |
| |
| EObject lv_ownedCoIterator_14_0 = null; |
| |
| EObject lv_ownedInitExpression_16_0 = null; |
| |
| EObject lv_ownedType_18_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6136:2: ( ( ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) | (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) ) ) |
| // InternalQVTbase.g:6137:2: ( ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) | (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) ) |
| { |
| // InternalQVTbase.g:6137:2: ( ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) | (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) ) |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==RULE_SINGLE_QUOTED_STRING||(LA148_0>=RULE_INT && LA148_0<=RULE_ESCAPED_ID)||LA148_0==51||(LA148_0>=69 && LA148_0<=72)||(LA148_0>=92 && LA148_0<=106)||LA148_0==109||(LA148_0>=111 && LA148_0<=114)||LA148_0==121||(LA148_0>=126 && LA148_0<=127)) ) { |
| alt148=1; |
| } |
| else if ( (LA148_0==20) ) { |
| alt148=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 148, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt148) { |
| case 1 : |
| // InternalQVTbase.g:6138:3: ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) |
| { |
| // InternalQVTbase.g:6138:3: ( ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? ) |
| // InternalQVTbase.g:6139:4: ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? |
| { |
| // InternalQVTbase.g:6139:4: ( (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) ) |
| // InternalQVTbase.g:6140:5: (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) |
| { |
| // InternalQVTbase.g:6140:5: (lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS ) |
| // InternalQVTbase.g:6141:6: lv_ownedNameExpression_0_0= ruleNavigatingArgExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedNameExpressionNavigatingArgExpCSParserRuleCall_0_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_93); |
| lv_ownedNameExpression_0_0=ruleNavigatingArgExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedNameExpression", |
| lv_ownedNameExpression_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingArgExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6158:4: ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )? |
| int alt147=4; |
| alt147 = dfa147.predict(input); |
| switch (alt147) { |
| case 1 : |
| // InternalQVTbase.g:6159:5: (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6159:5: (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6160:6: otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? |
| { |
| otherlv_1=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNavigatingArgCSAccess().getLessThanSignHyphenMinusKeyword_0_1_0_0()); |
| |
| } |
| // InternalQVTbase.g:6164:6: ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6165:7: (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6165:7: (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6166:8: lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_2_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6183:6: (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==21) ) { |
| alt142=1; |
| } |
| switch (alt142) { |
| case 1 : |
| // InternalQVTbase.g:6184:7: otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| { |
| otherlv_3=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getNavigatingArgCSAccess().getEqualsSignKeyword_0_1_0_2_0()); |
| |
| } |
| // InternalQVTbase.g:6188:7: ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6189:8: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6189:8: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| // InternalQVTbase.g:6190:9: lv_ownedInitExpression_4_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_0_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_4_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:6210:5: (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6210:5: (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6211:6: otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? |
| { |
| otherlv_5=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getNavigatingArgCSAccess().getColonKeyword_0_1_1_0()); |
| |
| } |
| // InternalQVTbase.g:6215:6: ( (lv_ownedType_6_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6216:7: (lv_ownedType_6_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6216:7: (lv_ownedType_6_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6217:8: lv_ownedType_6_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_95); |
| lv_ownedType_6_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_6_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6234:6: (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==110) ) { |
| alt143=1; |
| } |
| switch (alt143) { |
| case 1 : |
| // InternalQVTbase.g:6235:7: otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_7=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getNavigatingArgCSAccess().getLessThanSignHyphenMinusKeyword_0_1_1_2_0()); |
| |
| } |
| // InternalQVTbase.g:6239:7: ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6240:8: (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6240:8: (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6241:9: lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_1_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_8_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_8_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6259:6: (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==21) ) { |
| alt144=1; |
| } |
| switch (alt144) { |
| case 1 : |
| // InternalQVTbase.g:6260:7: otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) |
| { |
| otherlv_9=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getNavigatingArgCSAccess().getEqualsSignKeyword_0_1_1_3_0()); |
| |
| } |
| // InternalQVTbase.g:6264:7: ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6265:8: (lv_ownedInitExpression_10_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6265:8: (lv_ownedInitExpression_10_0= ruleExpCS ) |
| // InternalQVTbase.g:6266:9: lv_ownedInitExpression_10_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_10_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_10_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:6286:5: ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:6286:5: ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:6287:6: (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:6287:6: (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==20) ) { |
| alt145=1; |
| } |
| switch (alt145) { |
| case 1 : |
| // InternalQVTbase.g:6288:7: otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) |
| { |
| otherlv_11=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getNavigatingArgCSAccess().getColonKeyword_0_1_2_0_0()); |
| |
| } |
| // InternalQVTbase.g:6292:7: ( (lv_ownedType_12_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6293:8: (lv_ownedType_12_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6293:8: (lv_ownedType_12_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6294:9: lv_ownedType_12_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_0_1_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_96); |
| lv_ownedType_12_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_12_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6312:6: (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==110) ) { |
| alt146=1; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalQVTbase.g:6313:7: otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_13=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getNavigatingArgCSAccess().getLessThanSignHyphenMinusKeyword_0_1_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:6317:7: ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6318:8: (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6318:8: (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6319:9: lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_97); |
| lv_ownedCoIterator_14_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_14_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,119,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getNavigatingArgCSAccess().getInKeyword_0_1_2_2()); |
| |
| } |
| // InternalQVTbase.g:6341:6: ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6342:7: (lv_ownedInitExpression_16_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6342:7: (lv_ownedInitExpression_16_0= ruleExpCS ) |
| // InternalQVTbase.g:6343:8: lv_ownedInitExpression_16_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_2_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_16_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_16_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:6364:3: (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) |
| { |
| // InternalQVTbase.g:6364:3: (otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) ) |
| // InternalQVTbase.g:6365:4: otherlv_17= ':' ( (lv_ownedType_18_0= ruleTypeExpCS ) ) |
| { |
| otherlv_17=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getNavigatingArgCSAccess().getColonKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:6369:4: ( (lv_ownedType_18_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6370:5: (lv_ownedType_18_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6370:5: (lv_ownedType_18_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6371:6: lv_ownedType_18_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedType_18_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_18_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigatingArgCS" |
| |
| |
| // $ANTLR start "entryRuleNavigatingBarArgCS" |
| // InternalQVTbase.g:6393:1: entryRuleNavigatingBarArgCS returns [EObject current=null] : iv_ruleNavigatingBarArgCS= ruleNavigatingBarArgCS EOF ; |
| public final EObject entryRuleNavigatingBarArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNavigatingBarArgCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6393:59: (iv_ruleNavigatingBarArgCS= ruleNavigatingBarArgCS EOF ) |
| // InternalQVTbase.g:6394:2: iv_ruleNavigatingBarArgCS= ruleNavigatingBarArgCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigatingBarArgCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigatingBarArgCS=ruleNavigatingBarArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigatingBarArgCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigatingBarArgCS" |
| |
| |
| // $ANTLR start "ruleNavigatingBarArgCS" |
| // InternalQVTbase.g:6400:1: ruleNavigatingBarArgCS returns [EObject current=null] : ( ( (lv_prefix_0_0= '|' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) ; |
| public final EObject ruleNavigatingBarArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_prefix_0_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedNameExpression_1_0 = null; |
| |
| EObject lv_ownedType_3_0 = null; |
| |
| EObject lv_ownedInitExpression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6406:2: ( ( ( (lv_prefix_0_0= '|' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) ) |
| // InternalQVTbase.g:6407:2: ( ( (lv_prefix_0_0= '|' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) |
| { |
| // InternalQVTbase.g:6407:2: ( ( (lv_prefix_0_0= '|' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) |
| // InternalQVTbase.g:6408:3: ( (lv_prefix_0_0= '|' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? |
| { |
| // InternalQVTbase.g:6408:3: ( (lv_prefix_0_0= '|' ) ) |
| // InternalQVTbase.g:6409:4: (lv_prefix_0_0= '|' ) |
| { |
| // InternalQVTbase.g:6409:4: (lv_prefix_0_0= '|' ) |
| // InternalQVTbase.g:6410:5: lv_prefix_0_0= '|' |
| { |
| lv_prefix_0_0=(Token)match(input,120,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_prefix_0_0, grammarAccess.getNavigatingBarArgCSAccess().getPrefixVerticalLineKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNavigatingBarArgCSRule()); |
| } |
| setWithLastConsumed(current, "prefix", lv_prefix_0_0, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6422:3: ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) |
| // InternalQVTbase.g:6423:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| { |
| // InternalQVTbase.g:6423:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| // InternalQVTbase.g:6424:5: lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingBarArgCSAccess().getOwnedNameExpressionNavigatingArgExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_98); |
| lv_ownedNameExpression_1_0=ruleNavigatingArgExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingBarArgCSRule()); |
| } |
| set( |
| current, |
| "ownedNameExpression", |
| lv_ownedNameExpression_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingArgExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6441:3: (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==20) ) { |
| alt150=1; |
| } |
| switch (alt150) { |
| case 1 : |
| // InternalQVTbase.g:6442:4: otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| { |
| otherlv_2=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNavigatingBarArgCSAccess().getColonKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:6446:4: ( (lv_ownedType_3_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6447:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6447:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6448:6: lv_ownedType_3_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingBarArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedType_3_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingBarArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6465:4: (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==21) ) { |
| alt149=1; |
| } |
| switch (alt149) { |
| case 1 : |
| // InternalQVTbase.g:6466:5: otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| { |
| otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getNavigatingBarArgCSAccess().getEqualsSignKeyword_2_2_0()); |
| |
| } |
| // InternalQVTbase.g:6470:5: ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6471:6: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6471:6: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:6472:7: lv_ownedInitExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingBarArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingBarArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigatingBarArgCS" |
| |
| |
| // $ANTLR start "entryRuleNavigatingCommaArgCS" |
| // InternalQVTbase.g:6495:1: entryRuleNavigatingCommaArgCS returns [EObject current=null] : iv_ruleNavigatingCommaArgCS= ruleNavigatingCommaArgCS EOF ; |
| public final EObject entryRuleNavigatingCommaArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNavigatingCommaArgCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6495:61: (iv_ruleNavigatingCommaArgCS= ruleNavigatingCommaArgCS EOF ) |
| // InternalQVTbase.g:6496:2: iv_ruleNavigatingCommaArgCS= ruleNavigatingCommaArgCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigatingCommaArgCS=ruleNavigatingCommaArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigatingCommaArgCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigatingCommaArgCS" |
| |
| |
| // $ANTLR start "ruleNavigatingCommaArgCS" |
| // InternalQVTbase.g:6502:1: ruleNavigatingCommaArgCS returns [EObject current=null] : ( ( (lv_prefix_0_0= ',' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? ) ; |
| public final EObject ruleNavigatingCommaArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_prefix_0_0=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_14=null; |
| Token otherlv_16=null; |
| EObject lv_ownedNameExpression_1_0 = null; |
| |
| EObject lv_ownedCoIterator_3_0 = null; |
| |
| EObject lv_ownedInitExpression_5_0 = null; |
| |
| EObject lv_ownedType_7_0 = null; |
| |
| EObject lv_ownedCoIterator_9_0 = null; |
| |
| EObject lv_ownedInitExpression_11_0 = null; |
| |
| EObject lv_ownedType_13_0 = null; |
| |
| EObject lv_ownedCoIterator_15_0 = null; |
| |
| EObject lv_ownedInitExpression_17_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6508:2: ( ( ( (lv_prefix_0_0= ',' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? ) ) |
| // InternalQVTbase.g:6509:2: ( ( (lv_prefix_0_0= ',' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? ) |
| { |
| // InternalQVTbase.g:6509:2: ( ( (lv_prefix_0_0= ',' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? ) |
| // InternalQVTbase.g:6510:3: ( (lv_prefix_0_0= ',' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? |
| { |
| // InternalQVTbase.g:6510:3: ( (lv_prefix_0_0= ',' ) ) |
| // InternalQVTbase.g:6511:4: (lv_prefix_0_0= ',' ) |
| { |
| // InternalQVTbase.g:6511:4: (lv_prefix_0_0= ',' ) |
| // InternalQVTbase.g:6512:5: lv_prefix_0_0= ',' |
| { |
| lv_prefix_0_0=(Token)match(input,39,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_prefix_0_0, grammarAccess.getNavigatingCommaArgCSAccess().getPrefixCommaKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| setWithLastConsumed(current, "prefix", lv_prefix_0_0, ","); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6524:3: ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) |
| // InternalQVTbase.g:6525:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| { |
| // InternalQVTbase.g:6525:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| // InternalQVTbase.g:6526:5: lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedNameExpressionNavigatingArgExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_93); |
| lv_ownedNameExpression_1_0=ruleNavigatingArgExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedNameExpression", |
| lv_ownedNameExpression_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingArgExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6543:3: ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )? |
| int alt156=4; |
| alt156 = dfa156.predict(input); |
| switch (alt156) { |
| case 1 : |
| // InternalQVTbase.g:6544:4: (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6544:4: (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6545:5: otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| { |
| otherlv_2=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNavigatingCommaArgCSAccess().getLessThanSignHyphenMinusKeyword_2_0_0()); |
| |
| } |
| // InternalQVTbase.g:6549:5: ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6550:6: (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6550:6: (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6551:7: lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_3_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6568:5: (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( (LA151_0==21) ) { |
| alt151=1; |
| } |
| switch (alt151) { |
| case 1 : |
| // InternalQVTbase.g:6569:6: otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| { |
| otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getNavigatingCommaArgCSAccess().getEqualsSignKeyword_2_0_2_0()); |
| |
| } |
| // InternalQVTbase.g:6573:6: ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6574:7: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6574:7: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:6575:8: lv_ownedInitExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_0_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:6595:4: (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6595:4: (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6596:5: otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? |
| { |
| otherlv_6=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getNavigatingCommaArgCSAccess().getColonKeyword_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:6600:5: ( (lv_ownedType_7_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6601:6: (lv_ownedType_7_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6601:6: (lv_ownedType_7_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6602:7: lv_ownedType_7_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_95); |
| lv_ownedType_7_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_7_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6619:5: (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==110) ) { |
| alt152=1; |
| } |
| switch (alt152) { |
| case 1 : |
| // InternalQVTbase.g:6620:6: otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_8=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getNavigatingCommaArgCSAccess().getLessThanSignHyphenMinusKeyword_2_1_2_0()); |
| |
| } |
| // InternalQVTbase.g:6624:6: ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6625:7: (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6625:7: (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6626:8: lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_1_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_9_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_9_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6644:5: (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( (LA153_0==21) ) { |
| alt153=1; |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalQVTbase.g:6645:6: otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) |
| { |
| otherlv_10=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getNavigatingCommaArgCSAccess().getEqualsSignKeyword_2_1_3_0()); |
| |
| } |
| // InternalQVTbase.g:6649:6: ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6650:7: (lv_ownedInitExpression_11_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6650:7: (lv_ownedInitExpression_11_0= ruleExpCS ) |
| // InternalQVTbase.g:6651:8: lv_ownedInitExpression_11_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_11_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_11_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:6671:4: ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:6671:4: ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:6672:5: (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:6672:5: (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==20) ) { |
| alt154=1; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalQVTbase.g:6673:6: otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) |
| { |
| otherlv_12=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getNavigatingCommaArgCSAccess().getColonKeyword_2_2_0_0()); |
| |
| } |
| // InternalQVTbase.g:6677:6: ( (lv_ownedType_13_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6678:7: (lv_ownedType_13_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6678:7: (lv_ownedType_13_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6679:8: lv_ownedType_13_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_96); |
| lv_ownedType_13_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_13_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6697:5: (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==110) ) { |
| alt155=1; |
| } |
| switch (alt155) { |
| case 1 : |
| // InternalQVTbase.g:6698:6: otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_14=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getNavigatingCommaArgCSAccess().getLessThanSignHyphenMinusKeyword_2_2_1_0()); |
| |
| } |
| // InternalQVTbase.g:6702:6: ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6703:7: (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6703:7: (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6704:8: lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_97); |
| lv_ownedCoIterator_15_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedCoIterator", |
| lv_ownedCoIterator_15_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.CoIteratorVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_16=(Token)match(input,119,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getNavigatingCommaArgCSAccess().getInKeyword_2_2_2()); |
| |
| } |
| // InternalQVTbase.g:6726:5: ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6727:6: (lv_ownedInitExpression_17_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6727:6: (lv_ownedInitExpression_17_0= ruleExpCS ) |
| // InternalQVTbase.g:6728:7: lv_ownedInitExpression_17_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_2_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_17_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingCommaArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_17_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigatingCommaArgCS" |
| |
| |
| // $ANTLR start "entryRuleNavigatingSemiArgCS" |
| // InternalQVTbase.g:6751:1: entryRuleNavigatingSemiArgCS returns [EObject current=null] : iv_ruleNavigatingSemiArgCS= ruleNavigatingSemiArgCS EOF ; |
| public final EObject entryRuleNavigatingSemiArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNavigatingSemiArgCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6751:60: (iv_ruleNavigatingSemiArgCS= ruleNavigatingSemiArgCS EOF ) |
| // InternalQVTbase.g:6752:2: iv_ruleNavigatingSemiArgCS= ruleNavigatingSemiArgCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigatingSemiArgCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigatingSemiArgCS=ruleNavigatingSemiArgCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigatingSemiArgCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigatingSemiArgCS" |
| |
| |
| // $ANTLR start "ruleNavigatingSemiArgCS" |
| // InternalQVTbase.g:6758:1: ruleNavigatingSemiArgCS returns [EObject current=null] : ( ( (lv_prefix_0_0= ';' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) ; |
| public final EObject ruleNavigatingSemiArgCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_prefix_0_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedNameExpression_1_0 = null; |
| |
| EObject lv_ownedType_3_0 = null; |
| |
| EObject lv_ownedInitExpression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6764:2: ( ( ( (lv_prefix_0_0= ';' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) ) |
| // InternalQVTbase.g:6765:2: ( ( (lv_prefix_0_0= ';' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) |
| { |
| // InternalQVTbase.g:6765:2: ( ( (lv_prefix_0_0= ';' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? ) |
| // InternalQVTbase.g:6766:3: ( (lv_prefix_0_0= ';' ) ) ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? |
| { |
| // InternalQVTbase.g:6766:3: ( (lv_prefix_0_0= ';' ) ) |
| // InternalQVTbase.g:6767:4: (lv_prefix_0_0= ';' ) |
| { |
| // InternalQVTbase.g:6767:4: (lv_prefix_0_0= ';' ) |
| // InternalQVTbase.g:6768:5: lv_prefix_0_0= ';' |
| { |
| lv_prefix_0_0=(Token)match(input,42,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_prefix_0_0, grammarAccess.getNavigatingSemiArgCSAccess().getPrefixSemicolonKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNavigatingSemiArgCSRule()); |
| } |
| setWithLastConsumed(current, "prefix", lv_prefix_0_0, ";"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6780:3: ( (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) ) |
| // InternalQVTbase.g:6781:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| { |
| // InternalQVTbase.g:6781:4: (lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS ) |
| // InternalQVTbase.g:6782:5: lv_ownedNameExpression_1_0= ruleNavigatingArgExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingSemiArgCSAccess().getOwnedNameExpressionNavigatingArgExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_98); |
| lv_ownedNameExpression_1_0=ruleNavigatingArgExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingSemiArgCSRule()); |
| } |
| set( |
| current, |
| "ownedNameExpression", |
| lv_ownedNameExpression_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.NavigatingArgExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6799:3: (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? )? |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( (LA158_0==20) ) { |
| alt158=1; |
| } |
| switch (alt158) { |
| case 1 : |
| // InternalQVTbase.g:6800:4: otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| { |
| otherlv_2=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNavigatingSemiArgCSAccess().getColonKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:6804:4: ( (lv_ownedType_3_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6805:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6805:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6806:6: lv_ownedType_3_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingSemiArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedType_3_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingSemiArgCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6823:4: (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==21) ) { |
| alt157=1; |
| } |
| switch (alt157) { |
| case 1 : |
| // InternalQVTbase.g:6824:5: otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| { |
| otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getNavigatingSemiArgCSAccess().getEqualsSignKeyword_2_2_0()); |
| |
| } |
| // InternalQVTbase.g:6828:5: ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6829:6: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6829:6: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:6830:7: lv_ownedInitExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingSemiArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNavigatingSemiArgCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigatingSemiArgCS" |
| |
| |
| // $ANTLR start "entryRuleNavigatingArgExpCS" |
| // InternalQVTbase.g:6853:1: entryRuleNavigatingArgExpCS returns [EObject current=null] : iv_ruleNavigatingArgExpCS= ruleNavigatingArgExpCS EOF ; |
| public final EObject entryRuleNavigatingArgExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNavigatingArgExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6853:59: (iv_ruleNavigatingArgExpCS= ruleNavigatingArgExpCS EOF ) |
| // InternalQVTbase.g:6854:2: iv_ruleNavigatingArgExpCS= ruleNavigatingArgExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNavigatingArgExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNavigatingArgExpCS=ruleNavigatingArgExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNavigatingArgExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNavigatingArgExpCS" |
| |
| |
| // $ANTLR start "ruleNavigatingArgExpCS" |
| // InternalQVTbase.g:6860:1: ruleNavigatingArgExpCS returns [EObject current=null] : this_ExpCS_0= ruleExpCS ; |
| public final EObject ruleNavigatingArgExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_ExpCS_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6866:2: (this_ExpCS_0= ruleExpCS ) |
| // InternalQVTbase.g:6867:2: this_ExpCS_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgExpCSAccess().getExpCSParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_ExpCS_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_ExpCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNavigatingArgExpCS" |
| |
| |
| // $ANTLR start "entryRuleCoIteratorVariableCS" |
| // InternalQVTbase.g:6881:1: entryRuleCoIteratorVariableCS returns [EObject current=null] : iv_ruleCoIteratorVariableCS= ruleCoIteratorVariableCS EOF ; |
| public final EObject entryRuleCoIteratorVariableCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCoIteratorVariableCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6881:61: (iv_ruleCoIteratorVariableCS= ruleCoIteratorVariableCS EOF ) |
| // InternalQVTbase.g:6882:2: iv_ruleCoIteratorVariableCS= ruleCoIteratorVariableCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCoIteratorVariableCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleCoIteratorVariableCS=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCoIteratorVariableCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCoIteratorVariableCS" |
| |
| |
| // $ANTLR start "ruleCoIteratorVariableCS" |
| // InternalQVTbase.g:6888:1: ruleCoIteratorVariableCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? ) ; |
| public final EObject ruleCoIteratorVariableCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedType_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6894:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? ) ) |
| // InternalQVTbase.g:6895:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6895:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? ) |
| // InternalQVTbase.g:6896:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? |
| { |
| // InternalQVTbase.g:6896:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:6897:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:6897:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:6898:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCoIteratorVariableCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_98); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCoIteratorVariableCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6915:3: (otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) )? |
| int alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( (LA159_0==20) ) { |
| alt159=1; |
| } |
| switch (alt159) { |
| case 1 : |
| // InternalQVTbase.g:6916:4: otherlv_1= ':' ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| { |
| otherlv_1=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getCoIteratorVariableCSAccess().getColonKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:6920:4: ( (lv_ownedType_2_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6921:5: (lv_ownedType_2_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6921:5: (lv_ownedType_2_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6922:6: lv_ownedType_2_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCoIteratorVariableCSAccess().getOwnedTypeTypeExpCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedType_2_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCoIteratorVariableCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_2_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCoIteratorVariableCS" |
| |
| |
| // $ANTLR start "entryRuleIfExpCS" |
| // InternalQVTbase.g:6944:1: entryRuleIfExpCS returns [EObject current=null] : iv_ruleIfExpCS= ruleIfExpCS EOF ; |
| public final EObject entryRuleIfExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleIfExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:6944:48: (iv_ruleIfExpCS= ruleIfExpCS EOF ) |
| // InternalQVTbase.g:6945:2: iv_ruleIfExpCS= ruleIfExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIfExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleIfExpCS=ruleIfExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIfExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIfExpCS" |
| |
| |
| // $ANTLR start "ruleIfExpCS" |
| // InternalQVTbase.g:6951:1: ruleIfExpCS returns [EObject current=null] : (otherlv_0= 'if' ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* otherlv_5= 'else' ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) otherlv_7= 'endif' ) ; |
| public final EObject ruleIfExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| EObject lv_ownedCondition_1_1 = null; |
| |
| EObject lv_ownedCondition_1_2 = null; |
| |
| EObject lv_ownedThenExpression_3_0 = null; |
| |
| EObject lv_ownedIfThenExpressions_4_0 = null; |
| |
| EObject lv_ownedElseExpression_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:6957:2: ( (otherlv_0= 'if' ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* otherlv_5= 'else' ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) otherlv_7= 'endif' ) ) |
| // InternalQVTbase.g:6958:2: (otherlv_0= 'if' ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* otherlv_5= 'else' ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) otherlv_7= 'endif' ) |
| { |
| // InternalQVTbase.g:6958:2: (otherlv_0= 'if' ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* otherlv_5= 'else' ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) otherlv_7= 'endif' ) |
| // InternalQVTbase.g:6959:3: otherlv_0= 'if' ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* otherlv_5= 'else' ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) otherlv_7= 'endif' |
| { |
| otherlv_0=(Token)match(input,121,FollowSets000.FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getIfExpCSAccess().getIfKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:6963:3: ( ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) ) |
| // InternalQVTbase.g:6964:4: ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) |
| { |
| // InternalQVTbase.g:6964:4: ( (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) ) |
| // InternalQVTbase.g:6965:5: (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) |
| { |
| // InternalQVTbase.g:6965:5: (lv_ownedCondition_1_1= ruleExpCS | lv_ownedCondition_1_2= rulePatternExpCS ) |
| int alt160=2; |
| switch ( input.LA(1) ) { |
| case RULE_SINGLE_QUOTED_STRING: |
| case RULE_INT: |
| case 51: |
| case 69: |
| case 70: |
| case 71: |
| case 72: |
| case 92: |
| case 93: |
| case 94: |
| case 95: |
| case 96: |
| case 97: |
| case 98: |
| case 99: |
| case 100: |
| case 101: |
| case 102: |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| case 109: |
| case 111: |
| case 112: |
| case 113: |
| case 114: |
| case 121: |
| case 126: |
| case 127: |
| { |
| alt160=1; |
| } |
| break; |
| case RULE_SIMPLE_ID: |
| { |
| int LA160_2 = input.LA(2); |
| |
| if ( (LA160_2==20) ) { |
| alt160=2; |
| } |
| else if ( ((LA160_2>=21 && LA160_2<=22)||LA160_2==51||LA160_2==69||(LA160_2>=72 && LA160_2<=91)||LA160_2==115||LA160_2==117||LA160_2==122||LA160_2==131) ) { |
| alt160=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 160, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_ESCAPED_ID: |
| { |
| int LA160_3 = input.LA(2); |
| |
| if ( ((LA160_3>=21 && LA160_3<=22)||LA160_3==51||LA160_3==69||(LA160_3>=72 && LA160_3<=91)||LA160_3==115||LA160_3==117||LA160_3==122||LA160_3==131) ) { |
| alt160=1; |
| } |
| else if ( (LA160_3==20) ) { |
| alt160=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 160, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 20: |
| { |
| alt160=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 160, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt160) { |
| case 1 : |
| // InternalQVTbase.g:6966:6: lv_ownedCondition_1_1= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIfExpCSAccess().getOwnedConditionExpCSParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_99); |
| lv_ownedCondition_1_1=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIfExpCSRule()); |
| } |
| set( |
| current, |
| "ownedCondition", |
| lv_ownedCondition_1_1, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:6982:6: lv_ownedCondition_1_2= rulePatternExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIfExpCSAccess().getOwnedConditionPatternExpCSParserRuleCall_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_99); |
| lv_ownedCondition_1_2=rulePatternExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIfExpCSRule()); |
| } |
| set( |
| current, |
| "ownedCondition", |
| lv_ownedCondition_1_2, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.PatternExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,122,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getIfExpCSAccess().getThenKeyword_2()); |
| |
| } |
| // InternalQVTbase.g:7004:3: ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7005:4: (lv_ownedThenExpression_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7005:4: (lv_ownedThenExpression_3_0= ruleExpCS ) |
| // InternalQVTbase.g:7006:5: lv_ownedThenExpression_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIfExpCSAccess().getOwnedThenExpressionExpCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_100); |
| lv_ownedThenExpression_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIfExpCSRule()); |
| } |
| set( |
| current, |
| "ownedThenExpression", |
| lv_ownedThenExpression_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7023:3: ( (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) )* |
| loop161: |
| do { |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==125) ) { |
| alt161=1; |
| } |
| |
| |
| switch (alt161) { |
| case 1 : |
| // InternalQVTbase.g:7024:4: (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) |
| { |
| // InternalQVTbase.g:7024:4: (lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS ) |
| // InternalQVTbase.g:7025:5: lv_ownedIfThenExpressions_4_0= ruleElseIfThenExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIfExpCSAccess().getOwnedIfThenExpressionsElseIfThenExpCSParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_100); |
| lv_ownedIfThenExpressions_4_0=ruleElseIfThenExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIfExpCSRule()); |
| } |
| add( |
| current, |
| "ownedIfThenExpressions", |
| lv_ownedIfThenExpressions_4_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ElseIfThenExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop161; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,123,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getIfExpCSAccess().getElseKeyword_5()); |
| |
| } |
| // InternalQVTbase.g:7046:3: ( (lv_ownedElseExpression_6_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7047:4: (lv_ownedElseExpression_6_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7047:4: (lv_ownedElseExpression_6_0= ruleExpCS ) |
| // InternalQVTbase.g:7048:5: lv_ownedElseExpression_6_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIfExpCSAccess().getOwnedElseExpressionExpCSParserRuleCall_6_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_101); |
| lv_ownedElseExpression_6_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIfExpCSRule()); |
| } |
| set( |
| current, |
| "ownedElseExpression", |
| lv_ownedElseExpression_6_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,124,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getIfExpCSAccess().getEndifKeyword_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIfExpCS" |
| |
| |
| // $ANTLR start "entryRuleElseIfThenExpCS" |
| // InternalQVTbase.g:7073:1: entryRuleElseIfThenExpCS returns [EObject current=null] : iv_ruleElseIfThenExpCS= ruleElseIfThenExpCS EOF ; |
| public final EObject entryRuleElseIfThenExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleElseIfThenExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7073:56: (iv_ruleElseIfThenExpCS= ruleElseIfThenExpCS EOF ) |
| // InternalQVTbase.g:7074:2: iv_ruleElseIfThenExpCS= ruleElseIfThenExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getElseIfThenExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleElseIfThenExpCS=ruleElseIfThenExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleElseIfThenExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleElseIfThenExpCS" |
| |
| |
| // $ANTLR start "ruleElseIfThenExpCS" |
| // InternalQVTbase.g:7080:1: ruleElseIfThenExpCS returns [EObject current=null] : (otherlv_0= 'elseif' ( (lv_ownedCondition_1_0= ruleExpCS ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ) ; |
| public final EObject ruleElseIfThenExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject lv_ownedCondition_1_0 = null; |
| |
| EObject lv_ownedThenExpression_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7086:2: ( (otherlv_0= 'elseif' ( (lv_ownedCondition_1_0= ruleExpCS ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:7087:2: (otherlv_0= 'elseif' ( (lv_ownedCondition_1_0= ruleExpCS ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:7087:2: (otherlv_0= 'elseif' ( (lv_ownedCondition_1_0= ruleExpCS ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:7088:3: otherlv_0= 'elseif' ( (lv_ownedCondition_1_0= ruleExpCS ) ) otherlv_2= 'then' ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) |
| { |
| otherlv_0=(Token)match(input,125,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getElseIfThenExpCSAccess().getElseifKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:7092:3: ( (lv_ownedCondition_1_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7093:4: (lv_ownedCondition_1_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7093:4: (lv_ownedCondition_1_0= ruleExpCS ) |
| // InternalQVTbase.g:7094:5: lv_ownedCondition_1_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getElseIfThenExpCSAccess().getOwnedConditionExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_99); |
| lv_ownedCondition_1_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getElseIfThenExpCSRule()); |
| } |
| set( |
| current, |
| "ownedCondition", |
| lv_ownedCondition_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,122,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getElseIfThenExpCSAccess().getThenKeyword_2()); |
| |
| } |
| // InternalQVTbase.g:7115:3: ( (lv_ownedThenExpression_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7116:4: (lv_ownedThenExpression_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7116:4: (lv_ownedThenExpression_3_0= ruleExpCS ) |
| // InternalQVTbase.g:7117:5: lv_ownedThenExpression_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getElseIfThenExpCSAccess().getOwnedThenExpressionExpCSParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedThenExpression_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getElseIfThenExpCSRule()); |
| } |
| set( |
| current, |
| "ownedThenExpression", |
| lv_ownedThenExpression_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleElseIfThenExpCS" |
| |
| |
| // $ANTLR start "entryRuleLetExpCS" |
| // InternalQVTbase.g:7138:1: entryRuleLetExpCS returns [EObject current=null] : iv_ruleLetExpCS= ruleLetExpCS EOF ; |
| public final EObject entryRuleLetExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLetExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7138:49: (iv_ruleLetExpCS= ruleLetExpCS EOF ) |
| // InternalQVTbase.g:7139:2: iv_ruleLetExpCS= ruleLetExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLetExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLetExpCS=ruleLetExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLetExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLetExpCS" |
| |
| |
| // $ANTLR start "ruleLetExpCS" |
| // InternalQVTbase.g:7145:1: ruleLetExpCS returns [EObject current=null] : (otherlv_0= 'let' ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* otherlv_4= 'in' ( (lv_ownedInExpression_5_0= ruleExpCS ) ) ) ; |
| public final EObject ruleLetExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedVariables_1_0 = null; |
| |
| EObject lv_ownedVariables_3_0 = null; |
| |
| EObject lv_ownedInExpression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7151:2: ( (otherlv_0= 'let' ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* otherlv_4= 'in' ( (lv_ownedInExpression_5_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:7152:2: (otherlv_0= 'let' ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* otherlv_4= 'in' ( (lv_ownedInExpression_5_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:7152:2: (otherlv_0= 'let' ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* otherlv_4= 'in' ( (lv_ownedInExpression_5_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:7153:3: otherlv_0= 'let' ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* otherlv_4= 'in' ( (lv_ownedInExpression_5_0= ruleExpCS ) ) |
| { |
| otherlv_0=(Token)match(input,126,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getLetExpCSAccess().getLetKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:7157:3: ( (lv_ownedVariables_1_0= ruleLetVariableCS ) ) |
| // InternalQVTbase.g:7158:4: (lv_ownedVariables_1_0= ruleLetVariableCS ) |
| { |
| // InternalQVTbase.g:7158:4: (lv_ownedVariables_1_0= ruleLetVariableCS ) |
| // InternalQVTbase.g:7159:5: lv_ownedVariables_1_0= ruleLetVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetExpCSAccess().getOwnedVariablesLetVariableCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_102); |
| lv_ownedVariables_1_0=ruleLetVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetExpCSRule()); |
| } |
| add( |
| current, |
| "ownedVariables", |
| lv_ownedVariables_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.LetVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7176:3: (otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) )* |
| loop162: |
| do { |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==39) ) { |
| alt162=1; |
| } |
| |
| |
| switch (alt162) { |
| case 1 : |
| // InternalQVTbase.g:7177:4: otherlv_2= ',' ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) |
| { |
| otherlv_2=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getLetExpCSAccess().getCommaKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:7181:4: ( (lv_ownedVariables_3_0= ruleLetVariableCS ) ) |
| // InternalQVTbase.g:7182:5: (lv_ownedVariables_3_0= ruleLetVariableCS ) |
| { |
| // InternalQVTbase.g:7182:5: (lv_ownedVariables_3_0= ruleLetVariableCS ) |
| // InternalQVTbase.g:7183:6: lv_ownedVariables_3_0= ruleLetVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetExpCSAccess().getOwnedVariablesLetVariableCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_102); |
| lv_ownedVariables_3_0=ruleLetVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetExpCSRule()); |
| } |
| add( |
| current, |
| "ownedVariables", |
| lv_ownedVariables_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.LetVariableCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop162; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,119,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getLetExpCSAccess().getInKeyword_3()); |
| |
| } |
| // InternalQVTbase.g:7205:3: ( (lv_ownedInExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7206:4: (lv_ownedInExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7206:4: (lv_ownedInExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:7207:5: lv_ownedInExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetExpCSAccess().getOwnedInExpressionExpCSParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetExpCSRule()); |
| } |
| set( |
| current, |
| "ownedInExpression", |
| lv_ownedInExpression_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLetExpCS" |
| |
| |
| // $ANTLR start "entryRuleLetVariableCS" |
| // InternalQVTbase.g:7228:1: entryRuleLetVariableCS returns [EObject current=null] : iv_ruleLetVariableCS= ruleLetVariableCS EOF ; |
| public final EObject entryRuleLetVariableCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLetVariableCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7228:54: (iv_ruleLetVariableCS= ruleLetVariableCS EOF ) |
| // InternalQVTbase.g:7229:2: iv_ruleLetVariableCS= ruleLetVariableCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLetVariableCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLetVariableCS=ruleLetVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLetVariableCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLetVariableCS" |
| |
| |
| // $ANTLR start "ruleLetVariableCS" |
| // InternalQVTbase.g:7235:1: ruleLetVariableCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) ) ; |
| public final EObject ruleLetVariableCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedRoundBracketedClause_1_0 = null; |
| |
| EObject lv_ownedType_3_0 = null; |
| |
| EObject lv_ownedInitExpression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7241:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:7242:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:7242:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:7243:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:7243:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:7244:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:7244:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:7245:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetVariableCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_103); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetVariableCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7262:3: ( (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) )? |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==51) ) { |
| alt163=1; |
| } |
| switch (alt163) { |
| case 1 : |
| // InternalQVTbase.g:7263:4: (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) |
| { |
| // InternalQVTbase.g:7263:4: (lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS ) |
| // InternalQVTbase.g:7264:5: lv_ownedRoundBracketedClause_1_0= ruleRoundBracketedClauseCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetVariableCSAccess().getOwnedRoundBracketedClauseRoundBracketedClauseCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_80); |
| lv_ownedRoundBracketedClause_1_0=ruleRoundBracketedClauseCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetVariableCSRule()); |
| } |
| set( |
| current, |
| "ownedRoundBracketedClause", |
| lv_ownedRoundBracketedClause_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.RoundBracketedClauseCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:7281:3: (otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) )? |
| int alt164=2; |
| int LA164_0 = input.LA(1); |
| |
| if ( (LA164_0==20) ) { |
| alt164=1; |
| } |
| switch (alt164) { |
| case 1 : |
| // InternalQVTbase.g:7282:4: otherlv_2= ':' ( (lv_ownedType_3_0= ruleTypeExpCS ) ) |
| { |
| otherlv_2=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getLetVariableCSAccess().getColonKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:7286:4: ( (lv_ownedType_3_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:7287:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:7287:5: (lv_ownedType_3_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:7288:6: lv_ownedType_3_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetVariableCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_77); |
| lv_ownedType_3_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetVariableCSRule()); |
| } |
| set( |
| current, |
| "ownedType", |
| lv_ownedType_3_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TypeExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getLetVariableCSAccess().getEqualsSignKeyword_3()); |
| |
| } |
| // InternalQVTbase.g:7310:3: ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7311:4: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7311:4: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:7312:5: lv_ownedInitExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLetVariableCSAccess().getOwnedInitExpressionExpCSParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLetVariableCSRule()); |
| } |
| set( |
| current, |
| "ownedInitExpression", |
| lv_ownedInitExpression_5_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLetVariableCS" |
| |
| |
| // $ANTLR start "entryRuleNestedExpCS" |
| // InternalQVTbase.g:7333:1: entryRuleNestedExpCS returns [EObject current=null] : iv_ruleNestedExpCS= ruleNestedExpCS EOF ; |
| public final EObject entryRuleNestedExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNestedExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7333:52: (iv_ruleNestedExpCS= ruleNestedExpCS EOF ) |
| // InternalQVTbase.g:7334:2: iv_ruleNestedExpCS= ruleNestedExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNestedExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNestedExpCS=ruleNestedExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNestedExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNestedExpCS" |
| |
| |
| // $ANTLR start "ruleNestedExpCS" |
| // InternalQVTbase.g:7340:1: ruleNestedExpCS returns [EObject current=null] : (otherlv_0= '(' ( (lv_ownedExpression_1_0= ruleExpCS ) ) otherlv_2= ')' ) ; |
| public final EObject ruleNestedExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject lv_ownedExpression_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7346:2: ( (otherlv_0= '(' ( (lv_ownedExpression_1_0= ruleExpCS ) ) otherlv_2= ')' ) ) |
| // InternalQVTbase.g:7347:2: (otherlv_0= '(' ( (lv_ownedExpression_1_0= ruleExpCS ) ) otherlv_2= ')' ) |
| { |
| // InternalQVTbase.g:7347:2: (otherlv_0= '(' ( (lv_ownedExpression_1_0= ruleExpCS ) ) otherlv_2= ')' ) |
| // InternalQVTbase.g:7348:3: otherlv_0= '(' ( (lv_ownedExpression_1_0= ruleExpCS ) ) otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,51,FollowSets000.FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getNestedExpCSAccess().getLeftParenthesisKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:7352:3: ( (lv_ownedExpression_1_0= ruleExpCS ) ) |
| // InternalQVTbase.g:7353:4: (lv_ownedExpression_1_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:7353:4: (lv_ownedExpression_1_0= ruleExpCS ) |
| // InternalQVTbase.g:7354:5: lv_ownedExpression_1_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNestedExpCSAccess().getOwnedExpressionExpCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_69); |
| lv_ownedExpression_1_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNestedExpCSRule()); |
| } |
| set( |
| current, |
| "ownedExpression", |
| lv_ownedExpression_1_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.ExpCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNestedExpCSAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNestedExpCS" |
| |
| |
| // $ANTLR start "entryRuleSelfExpCS" |
| // InternalQVTbase.g:7379:1: entryRuleSelfExpCS returns [EObject current=null] : iv_ruleSelfExpCS= ruleSelfExpCS EOF ; |
| public final EObject entryRuleSelfExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSelfExpCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7379:50: (iv_ruleSelfExpCS= ruleSelfExpCS EOF ) |
| // InternalQVTbase.g:7380:2: iv_ruleSelfExpCS= ruleSelfExpCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSelfExpCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSelfExpCS=ruleSelfExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSelfExpCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSelfExpCS" |
| |
| |
| // $ANTLR start "ruleSelfExpCS" |
| // InternalQVTbase.g:7386:1: ruleSelfExpCS returns [EObject current=null] : ( () otherlv_1= 'self' ) ; |
| public final EObject ruleSelfExpCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7392:2: ( ( () otherlv_1= 'self' ) ) |
| // InternalQVTbase.g:7393:2: ( () otherlv_1= 'self' ) |
| { |
| // InternalQVTbase.g:7393:2: ( () otherlv_1= 'self' ) |
| // InternalQVTbase.g:7394:3: () otherlv_1= 'self' |
| { |
| // InternalQVTbase.g:7394:3: () |
| // InternalQVTbase.g:7395:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getSelfExpCSAccess().getSelfExpCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,127,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getSelfExpCSAccess().getSelfKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSelfExpCS" |
| |
| |
| // $ANTLR start "entryRuleMultiplicityBoundsCS" |
| // InternalQVTbase.g:7412:1: entryRuleMultiplicityBoundsCS returns [EObject current=null] : iv_ruleMultiplicityBoundsCS= ruleMultiplicityBoundsCS EOF ; |
| public final EObject entryRuleMultiplicityBoundsCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMultiplicityBoundsCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7412:61: (iv_ruleMultiplicityBoundsCS= ruleMultiplicityBoundsCS EOF ) |
| // InternalQVTbase.g:7413:2: iv_ruleMultiplicityBoundsCS= ruleMultiplicityBoundsCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMultiplicityBoundsCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMultiplicityBoundsCS=ruleMultiplicityBoundsCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMultiplicityBoundsCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMultiplicityBoundsCS" |
| |
| |
| // $ANTLR start "ruleMultiplicityBoundsCS" |
| // InternalQVTbase.g:7419:1: ruleMultiplicityBoundsCS returns [EObject current=null] : ( ( (lv_lowerBound_0_0= ruleLOWER ) ) (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? ) ; |
| public final EObject ruleMultiplicityBoundsCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_lowerBound_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_upperBound_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7425:2: ( ( ( (lv_lowerBound_0_0= ruleLOWER ) ) (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? ) ) |
| // InternalQVTbase.g:7426:2: ( ( (lv_lowerBound_0_0= ruleLOWER ) ) (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? ) |
| { |
| // InternalQVTbase.g:7426:2: ( ( (lv_lowerBound_0_0= ruleLOWER ) ) (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? ) |
| // InternalQVTbase.g:7427:3: ( (lv_lowerBound_0_0= ruleLOWER ) ) (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? |
| { |
| // InternalQVTbase.g:7427:3: ( (lv_lowerBound_0_0= ruleLOWER ) ) |
| // InternalQVTbase.g:7428:4: (lv_lowerBound_0_0= ruleLOWER ) |
| { |
| // InternalQVTbase.g:7428:4: (lv_lowerBound_0_0= ruleLOWER ) |
| // InternalQVTbase.g:7429:5: lv_lowerBound_0_0= ruleLOWER |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicityBoundsCSAccess().getLowerBoundLOWERParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_74); |
| lv_lowerBound_0_0=ruleLOWER(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicityBoundsCSRule()); |
| } |
| set( |
| current, |
| "lowerBound", |
| lv_lowerBound_0_0, |
| "org.eclipse.ocl.xtext.base.Base.LOWER"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7446:3: (otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) )? |
| int alt165=2; |
| int LA165_0 = input.LA(1); |
| |
| if ( (LA165_0==107) ) { |
| alt165=1; |
| } |
| switch (alt165) { |
| case 1 : |
| // InternalQVTbase.g:7447:4: otherlv_1= '..' ( (lv_upperBound_2_0= ruleUPPER ) ) |
| { |
| otherlv_1=(Token)match(input,107,FollowSets000.FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getMultiplicityBoundsCSAccess().getFullStopFullStopKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:7451:4: ( (lv_upperBound_2_0= ruleUPPER ) ) |
| // InternalQVTbase.g:7452:5: (lv_upperBound_2_0= ruleUPPER ) |
| { |
| // InternalQVTbase.g:7452:5: (lv_upperBound_2_0= ruleUPPER ) |
| // InternalQVTbase.g:7453:6: lv_upperBound_2_0= ruleUPPER |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicityBoundsCSAccess().getUpperBoundUPPERParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_upperBound_2_0=ruleUPPER(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicityBoundsCSRule()); |
| } |
| set( |
| current, |
| "upperBound", |
| lv_upperBound_2_0, |
| "org.eclipse.ocl.xtext.base.Base.UPPER"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMultiplicityBoundsCS" |
| |
| |
| // $ANTLR start "entryRuleMultiplicityCS" |
| // InternalQVTbase.g:7475:1: entryRuleMultiplicityCS returns [EObject current=null] : iv_ruleMultiplicityCS= ruleMultiplicityCS EOF ; |
| public final EObject entryRuleMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMultiplicityCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7475:55: (iv_ruleMultiplicityCS= ruleMultiplicityCS EOF ) |
| // InternalQVTbase.g:7476:2: iv_ruleMultiplicityCS= ruleMultiplicityCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMultiplicityCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMultiplicityCS=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMultiplicityCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMultiplicityCS" |
| |
| |
| // $ANTLR start "ruleMultiplicityCS" |
| // InternalQVTbase.g:7482:1: ruleMultiplicityCS returns [EObject current=null] : (otherlv_0= '[' (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? otherlv_5= ']' ) ; |
| public final EObject ruleMultiplicityCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_3=null; |
| Token lv_isNullFree_4_0=null; |
| Token otherlv_5=null; |
| EObject this_MultiplicityBoundsCS_1 = null; |
| |
| EObject this_MultiplicityStringCS_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7488:2: ( (otherlv_0= '[' (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? otherlv_5= ']' ) ) |
| // InternalQVTbase.g:7489:2: (otherlv_0= '[' (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? otherlv_5= ']' ) |
| { |
| // InternalQVTbase.g:7489:2: (otherlv_0= '[' (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? otherlv_5= ']' ) |
| // InternalQVTbase.g:7490:3: otherlv_0= '[' (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? otherlv_5= ']' |
| { |
| otherlv_0=(Token)match(input,117,FollowSets000.FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getMultiplicityCSAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:7494:3: (this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS | this_MultiplicityStringCS_2= ruleMultiplicityStringCS ) |
| int alt166=2; |
| int LA166_0 = input.LA(1); |
| |
| if ( (LA166_0==RULE_INT) ) { |
| alt166=1; |
| } |
| else if ( (LA166_0==72||LA166_0==74||LA166_0==130) ) { |
| alt166=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 166, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt166) { |
| case 1 : |
| // InternalQVTbase.g:7495:4: this_MultiplicityBoundsCS_1= ruleMultiplicityBoundsCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicityCSAccess().getMultiplicityBoundsCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_106); |
| this_MultiplicityBoundsCS_1=ruleMultiplicityBoundsCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_MultiplicityBoundsCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:7507:4: this_MultiplicityStringCS_2= ruleMultiplicityStringCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicityCSAccess().getMultiplicityStringCSParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_106); |
| this_MultiplicityStringCS_2=ruleMultiplicityStringCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_MultiplicityStringCS_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:7519:3: (otherlv_3= '|?' | ( (lv_isNullFree_4_0= '|1' ) ) )? |
| int alt167=3; |
| int LA167_0 = input.LA(1); |
| |
| if ( (LA167_0==128) ) { |
| alt167=1; |
| } |
| else if ( (LA167_0==129) ) { |
| alt167=2; |
| } |
| switch (alt167) { |
| case 1 : |
| // InternalQVTbase.g:7520:4: otherlv_3= '|?' |
| { |
| otherlv_3=(Token)match(input,128,FollowSets000.FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getMultiplicityCSAccess().getVerticalLineQuestionMarkKeyword_2_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:7525:4: ( (lv_isNullFree_4_0= '|1' ) ) |
| { |
| // InternalQVTbase.g:7525:4: ( (lv_isNullFree_4_0= '|1' ) ) |
| // InternalQVTbase.g:7526:5: (lv_isNullFree_4_0= '|1' ) |
| { |
| // InternalQVTbase.g:7526:5: (lv_isNullFree_4_0= '|1' ) |
| // InternalQVTbase.g:7527:6: lv_isNullFree_4_0= '|1' |
| { |
| lv_isNullFree_4_0=(Token)match(input,129,FollowSets000.FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isNullFree_4_0, grammarAccess.getMultiplicityCSAccess().getIsNullFree1Keyword_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicityCSRule()); |
| } |
| setWithLastConsumed(current, "isNullFree", lv_isNullFree_4_0 != null, "|1"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,118,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getMultiplicityCSAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMultiplicityCS" |
| |
| |
| // $ANTLR start "entryRuleMultiplicityStringCS" |
| // InternalQVTbase.g:7548:1: entryRuleMultiplicityStringCS returns [EObject current=null] : iv_ruleMultiplicityStringCS= ruleMultiplicityStringCS EOF ; |
| public final EObject entryRuleMultiplicityStringCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMultiplicityStringCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7548:61: (iv_ruleMultiplicityStringCS= ruleMultiplicityStringCS EOF ) |
| // InternalQVTbase.g:7549:2: iv_ruleMultiplicityStringCS= ruleMultiplicityStringCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMultiplicityStringCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleMultiplicityStringCS=ruleMultiplicityStringCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMultiplicityStringCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMultiplicityStringCS" |
| |
| |
| // $ANTLR start "ruleMultiplicityStringCS" |
| // InternalQVTbase.g:7555:1: ruleMultiplicityStringCS returns [EObject current=null] : ( ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) ) ; |
| public final EObject ruleMultiplicityStringCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_stringBounds_0_1=null; |
| Token lv_stringBounds_0_2=null; |
| Token lv_stringBounds_0_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7561:2: ( ( ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) ) ) |
| // InternalQVTbase.g:7562:2: ( ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) ) |
| { |
| // InternalQVTbase.g:7562:2: ( ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) ) |
| // InternalQVTbase.g:7563:3: ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) |
| { |
| // InternalQVTbase.g:7563:3: ( (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) ) |
| // InternalQVTbase.g:7564:4: (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) |
| { |
| // InternalQVTbase.g:7564:4: (lv_stringBounds_0_1= '*' | lv_stringBounds_0_2= '+' | lv_stringBounds_0_3= '?' ) |
| int alt168=3; |
| switch ( input.LA(1) ) { |
| case 72: |
| { |
| alt168=1; |
| } |
| break; |
| case 74: |
| { |
| alt168=2; |
| } |
| break; |
| case 130: |
| { |
| alt168=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 168, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt168) { |
| case 1 : |
| // InternalQVTbase.g:7565:5: lv_stringBounds_0_1= '*' |
| { |
| lv_stringBounds_0_1=(Token)match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_stringBounds_0_1, grammarAccess.getMultiplicityStringCSAccess().getStringBoundsAsteriskKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicityStringCSRule()); |
| } |
| setWithLastConsumed(current, "stringBounds", lv_stringBounds_0_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:7576:5: lv_stringBounds_0_2= '+' |
| { |
| lv_stringBounds_0_2=(Token)match(input,74,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_stringBounds_0_2, grammarAccess.getMultiplicityStringCSAccess().getStringBoundsPlusSignKeyword_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicityStringCSRule()); |
| } |
| setWithLastConsumed(current, "stringBounds", lv_stringBounds_0_2, null); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalQVTbase.g:7587:5: lv_stringBounds_0_3= '?' |
| { |
| lv_stringBounds_0_3=(Token)match(input,130,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_stringBounds_0_3, grammarAccess.getMultiplicityStringCSAccess().getStringBoundsQuestionMarkKeyword_0_2()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicityStringCSRule()); |
| } |
| setWithLastConsumed(current, "stringBounds", lv_stringBounds_0_3, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMultiplicityStringCS" |
| |
| |
| // $ANTLR start "entryRulePathNameCS" |
| // InternalQVTbase.g:7603:1: entryRulePathNameCS returns [EObject current=null] : iv_rulePathNameCS= rulePathNameCS EOF ; |
| public final EObject entryRulePathNameCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePathNameCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7603:51: (iv_rulePathNameCS= rulePathNameCS EOF ) |
| // InternalQVTbase.g:7604:2: iv_rulePathNameCS= rulePathNameCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPathNameCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulePathNameCS=rulePathNameCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePathNameCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePathNameCS" |
| |
| |
| // $ANTLR start "rulePathNameCS" |
| // InternalQVTbase.g:7610:1: rulePathNameCS returns [EObject current=null] : ( ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* ) ; |
| public final EObject rulePathNameCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_ownedPathElements_0_0 = null; |
| |
| EObject lv_ownedPathElements_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7616:2: ( ( ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* ) ) |
| // InternalQVTbase.g:7617:2: ( ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* ) |
| { |
| // InternalQVTbase.g:7617:2: ( ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* ) |
| // InternalQVTbase.g:7618:3: ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* |
| { |
| // InternalQVTbase.g:7618:3: ( (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) ) |
| // InternalQVTbase.g:7619:4: (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) |
| { |
| // InternalQVTbase.g:7619:4: (lv_ownedPathElements_0_0= ruleFirstPathElementCS ) |
| // InternalQVTbase.g:7620:5: lv_ownedPathElements_0_0= ruleFirstPathElementCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPathNameCSAccess().getOwnedPathElementsFirstPathElementCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_108); |
| lv_ownedPathElements_0_0=ruleFirstPathElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPathNameCSRule()); |
| } |
| add( |
| current, |
| "ownedPathElements", |
| lv_ownedPathElements_0_0, |
| "org.eclipse.ocl.xtext.base.Base.FirstPathElementCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7637:3: (otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) )* |
| loop169: |
| do { |
| int alt169=2; |
| int LA169_0 = input.LA(1); |
| |
| if ( (LA169_0==131) ) { |
| alt169=1; |
| } |
| |
| |
| switch (alt169) { |
| case 1 : |
| // InternalQVTbase.g:7638:4: otherlv_1= '::' ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) |
| { |
| otherlv_1=(Token)match(input,131,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPathNameCSAccess().getColonColonKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:7642:4: ( (lv_ownedPathElements_2_0= ruleNextPathElementCS ) ) |
| // InternalQVTbase.g:7643:5: (lv_ownedPathElements_2_0= ruleNextPathElementCS ) |
| { |
| // InternalQVTbase.g:7643:5: (lv_ownedPathElements_2_0= ruleNextPathElementCS ) |
| // InternalQVTbase.g:7644:6: lv_ownedPathElements_2_0= ruleNextPathElementCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPathNameCSAccess().getOwnedPathElementsNextPathElementCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_108); |
| lv_ownedPathElements_2_0=ruleNextPathElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPathNameCSRule()); |
| } |
| add( |
| current, |
| "ownedPathElements", |
| lv_ownedPathElements_2_0, |
| "org.eclipse.ocl.xtext.base.Base.NextPathElementCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop169; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePathNameCS" |
| |
| |
| // $ANTLR start "entryRuleFirstPathElementCS" |
| // InternalQVTbase.g:7666:1: entryRuleFirstPathElementCS returns [EObject current=null] : iv_ruleFirstPathElementCS= ruleFirstPathElementCS EOF ; |
| public final EObject entryRuleFirstPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFirstPathElementCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7666:59: (iv_ruleFirstPathElementCS= ruleFirstPathElementCS EOF ) |
| // InternalQVTbase.g:7667:2: iv_ruleFirstPathElementCS= ruleFirstPathElementCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFirstPathElementCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleFirstPathElementCS=ruleFirstPathElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFirstPathElementCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFirstPathElementCS" |
| |
| |
| // $ANTLR start "ruleFirstPathElementCS" |
| // InternalQVTbase.g:7673:1: ruleFirstPathElementCS returns [EObject current=null] : ( ( ruleUnrestrictedName ) ) ; |
| public final EObject ruleFirstPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7679:2: ( ( ( ruleUnrestrictedName ) ) ) |
| // InternalQVTbase.g:7680:2: ( ( ruleUnrestrictedName ) ) |
| { |
| // InternalQVTbase.g:7680:2: ( ( ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:7681:3: ( ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:7681:3: ( ruleUnrestrictedName ) |
| // InternalQVTbase.g:7682:4: ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getFirstPathElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFirstPathElementCSAccess().getReferredElementNamedElementCrossReference_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFirstPathElementCS" |
| |
| |
| // $ANTLR start "entryRuleNextPathElementCS" |
| // InternalQVTbase.g:7702:1: entryRuleNextPathElementCS returns [EObject current=null] : iv_ruleNextPathElementCS= ruleNextPathElementCS EOF ; |
| public final EObject entryRuleNextPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNextPathElementCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7702:58: (iv_ruleNextPathElementCS= ruleNextPathElementCS EOF ) |
| // InternalQVTbase.g:7703:2: iv_ruleNextPathElementCS= ruleNextPathElementCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNextPathElementCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNextPathElementCS=ruleNextPathElementCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNextPathElementCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNextPathElementCS" |
| |
| |
| // $ANTLR start "ruleNextPathElementCS" |
| // InternalQVTbase.g:7709:1: ruleNextPathElementCS returns [EObject current=null] : ( ( ruleUnreservedName ) ) ; |
| public final EObject ruleNextPathElementCS() throws RecognitionException { |
| EObject current = null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7715:2: ( ( ( ruleUnreservedName ) ) ) |
| // InternalQVTbase.g:7716:2: ( ( ruleUnreservedName ) ) |
| { |
| // InternalQVTbase.g:7716:2: ( ( ruleUnreservedName ) ) |
| // InternalQVTbase.g:7717:3: ( ruleUnreservedName ) |
| { |
| // InternalQVTbase.g:7717:3: ( ruleUnreservedName ) |
| // InternalQVTbase.g:7718:4: ruleUnreservedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNextPathElementCSRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNextPathElementCSAccess().getReferredElementNamedElementCrossReference_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleUnreservedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNextPathElementCS" |
| |
| |
| // $ANTLR start "entryRuleTemplateBindingCS" |
| // InternalQVTbase.g:7738:1: entryRuleTemplateBindingCS returns [EObject current=null] : iv_ruleTemplateBindingCS= ruleTemplateBindingCS EOF ; |
| public final EObject entryRuleTemplateBindingCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTemplateBindingCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7738:58: (iv_ruleTemplateBindingCS= ruleTemplateBindingCS EOF ) |
| // InternalQVTbase.g:7739:2: iv_ruleTemplateBindingCS= ruleTemplateBindingCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTemplateBindingCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTemplateBindingCS=ruleTemplateBindingCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTemplateBindingCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTemplateBindingCS" |
| |
| |
| // $ANTLR start "ruleTemplateBindingCS" |
| // InternalQVTbase.g:7745:1: ruleTemplateBindingCS returns [EObject current=null] : ( ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? ) ; |
| public final EObject ruleTemplateBindingCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_ownedSubstitutions_0_0 = null; |
| |
| EObject lv_ownedSubstitutions_2_0 = null; |
| |
| EObject lv_ownedMultiplicity_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7751:2: ( ( ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? ) ) |
| // InternalQVTbase.g:7752:2: ( ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? ) |
| { |
| // InternalQVTbase.g:7752:2: ( ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? ) |
| // InternalQVTbase.g:7753:3: ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? |
| { |
| // InternalQVTbase.g:7753:3: ( (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) ) |
| // InternalQVTbase.g:7754:4: (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) |
| { |
| // InternalQVTbase.g:7754:4: (lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS ) |
| // InternalQVTbase.g:7755:5: lv_ownedSubstitutions_0_0= ruleTemplateParameterSubstitutionCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateBindingCSAccess().getOwnedSubstitutionsTemplateParameterSubstitutionCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_109); |
| lv_ownedSubstitutions_0_0=ruleTemplateParameterSubstitutionCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateBindingCSRule()); |
| } |
| add( |
| current, |
| "ownedSubstitutions", |
| lv_ownedSubstitutions_0_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateParameterSubstitutionCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7772:3: (otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) )* |
| loop170: |
| do { |
| int alt170=2; |
| int LA170_0 = input.LA(1); |
| |
| if ( (LA170_0==39) ) { |
| alt170=1; |
| } |
| |
| |
| switch (alt170) { |
| case 1 : |
| // InternalQVTbase.g:7773:4: otherlv_1= ',' ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) |
| { |
| otherlv_1=(Token)match(input,39,FollowSets000.FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTemplateBindingCSAccess().getCommaKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:7777:4: ( (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) ) |
| // InternalQVTbase.g:7778:5: (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) |
| { |
| // InternalQVTbase.g:7778:5: (lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS ) |
| // InternalQVTbase.g:7779:6: lv_ownedSubstitutions_2_0= ruleTemplateParameterSubstitutionCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateBindingCSAccess().getOwnedSubstitutionsTemplateParameterSubstitutionCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_109); |
| lv_ownedSubstitutions_2_0=ruleTemplateParameterSubstitutionCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateBindingCSRule()); |
| } |
| add( |
| current, |
| "ownedSubstitutions", |
| lv_ownedSubstitutions_2_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateParameterSubstitutionCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop170; |
| } |
| } while (true); |
| |
| // InternalQVTbase.g:7797:3: ( (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) )? |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==117) ) { |
| alt171=1; |
| } |
| switch (alt171) { |
| case 1 : |
| // InternalQVTbase.g:7798:4: (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) |
| { |
| // InternalQVTbase.g:7798:4: (lv_ownedMultiplicity_3_0= ruleMultiplicityCS ) |
| // InternalQVTbase.g:7799:5: lv_ownedMultiplicity_3_0= ruleMultiplicityCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateBindingCSAccess().getOwnedMultiplicityMultiplicityCSParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedMultiplicity_3_0=ruleMultiplicityCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateBindingCSRule()); |
| } |
| set( |
| current, |
| "ownedMultiplicity", |
| lv_ownedMultiplicity_3_0, |
| "org.eclipse.ocl.xtext.base.Base.MultiplicityCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTemplateBindingCS" |
| |
| |
| // $ANTLR start "entryRuleTemplateParameterSubstitutionCS" |
| // InternalQVTbase.g:7820:1: entryRuleTemplateParameterSubstitutionCS returns [EObject current=null] : iv_ruleTemplateParameterSubstitutionCS= ruleTemplateParameterSubstitutionCS EOF ; |
| public final EObject entryRuleTemplateParameterSubstitutionCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTemplateParameterSubstitutionCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7820:72: (iv_ruleTemplateParameterSubstitutionCS= ruleTemplateParameterSubstitutionCS EOF ) |
| // InternalQVTbase.g:7821:2: iv_ruleTemplateParameterSubstitutionCS= ruleTemplateParameterSubstitutionCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTemplateParameterSubstitutionCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTemplateParameterSubstitutionCS=ruleTemplateParameterSubstitutionCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTemplateParameterSubstitutionCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTemplateParameterSubstitutionCS" |
| |
| |
| // $ANTLR start "ruleTemplateParameterSubstitutionCS" |
| // InternalQVTbase.g:7827:1: ruleTemplateParameterSubstitutionCS returns [EObject current=null] : ( (lv_ownedActualParameter_0_0= ruleTypeRefCS ) ) ; |
| public final EObject ruleTemplateParameterSubstitutionCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_ownedActualParameter_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7833:2: ( ( (lv_ownedActualParameter_0_0= ruleTypeRefCS ) ) ) |
| // InternalQVTbase.g:7834:2: ( (lv_ownedActualParameter_0_0= ruleTypeRefCS ) ) |
| { |
| // InternalQVTbase.g:7834:2: ( (lv_ownedActualParameter_0_0= ruleTypeRefCS ) ) |
| // InternalQVTbase.g:7835:3: (lv_ownedActualParameter_0_0= ruleTypeRefCS ) |
| { |
| // InternalQVTbase.g:7835:3: (lv_ownedActualParameter_0_0= ruleTypeRefCS ) |
| // InternalQVTbase.g:7836:4: lv_ownedActualParameter_0_0= ruleTypeRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateParameterSubstitutionCSAccess().getOwnedActualParameterTypeRefCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedActualParameter_0_0=ruleTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionCSRule()); |
| } |
| set( |
| current, |
| "ownedActualParameter", |
| lv_ownedActualParameter_0_0, |
| "org.eclipse.ocl.xtext.base.Base.TypeRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTemplateParameterSubstitutionCS" |
| |
| |
| // $ANTLR start "entryRuleTemplateSignatureCS" |
| // InternalQVTbase.g:7856:1: entryRuleTemplateSignatureCS returns [EObject current=null] : iv_ruleTemplateSignatureCS= ruleTemplateSignatureCS EOF ; |
| public final EObject entryRuleTemplateSignatureCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTemplateSignatureCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7856:60: (iv_ruleTemplateSignatureCS= ruleTemplateSignatureCS EOF ) |
| // InternalQVTbase.g:7857:2: iv_ruleTemplateSignatureCS= ruleTemplateSignatureCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTemplateSignatureCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTemplateSignatureCS=ruleTemplateSignatureCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTemplateSignatureCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTemplateSignatureCS" |
| |
| |
| // $ANTLR start "ruleTemplateSignatureCS" |
| // InternalQVTbase.g:7863:1: ruleTemplateSignatureCS returns [EObject current=null] : (otherlv_0= '(' ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* otherlv_4= ')' ) ; |
| public final EObject ruleTemplateSignatureCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedParameters_1_0 = null; |
| |
| EObject lv_ownedParameters_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7869:2: ( (otherlv_0= '(' ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* otherlv_4= ')' ) ) |
| // InternalQVTbase.g:7870:2: (otherlv_0= '(' ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* otherlv_4= ')' ) |
| { |
| // InternalQVTbase.g:7870:2: (otherlv_0= '(' ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* otherlv_4= ')' ) |
| // InternalQVTbase.g:7871:3: otherlv_0= '(' ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,51,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTemplateSignatureCSAccess().getLeftParenthesisKeyword_0()); |
| |
| } |
| // InternalQVTbase.g:7875:3: ( (lv_ownedParameters_1_0= ruleTypeParameterCS ) ) |
| // InternalQVTbase.g:7876:4: (lv_ownedParameters_1_0= ruleTypeParameterCS ) |
| { |
| // InternalQVTbase.g:7876:4: (lv_ownedParameters_1_0= ruleTypeParameterCS ) |
| // InternalQVTbase.g:7877:5: lv_ownedParameters_1_0= ruleTypeParameterCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateSignatureCSAccess().getOwnedParametersTypeParameterCSParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParameters_1_0=ruleTypeParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateSignatureCSRule()); |
| } |
| add( |
| current, |
| "ownedParameters", |
| lv_ownedParameters_1_0, |
| "org.eclipse.ocl.xtext.base.Base.TypeParameterCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7894:3: (otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) )* |
| loop172: |
| do { |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==39) ) { |
| alt172=1; |
| } |
| |
| |
| switch (alt172) { |
| case 1 : |
| // InternalQVTbase.g:7895:4: otherlv_2= ',' ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) |
| { |
| otherlv_2=(Token)match(input,39,FollowSets000.FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getTemplateSignatureCSAccess().getCommaKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:7899:4: ( (lv_ownedParameters_3_0= ruleTypeParameterCS ) ) |
| // InternalQVTbase.g:7900:5: (lv_ownedParameters_3_0= ruleTypeParameterCS ) |
| { |
| // InternalQVTbase.g:7900:5: (lv_ownedParameters_3_0= ruleTypeParameterCS ) |
| // InternalQVTbase.g:7901:6: lv_ownedParameters_3_0= ruleTypeParameterCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTemplateSignatureCSAccess().getOwnedParametersTypeParameterCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_ownedParameters_3_0=ruleTypeParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTemplateSignatureCSRule()); |
| } |
| add( |
| current, |
| "ownedParameters", |
| lv_ownedParameters_3_0, |
| "org.eclipse.ocl.xtext.base.Base.TypeParameterCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop172; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getTemplateSignatureCSAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTemplateSignatureCS" |
| |
| |
| // $ANTLR start "entryRuleTypeParameterCS" |
| // InternalQVTbase.g:7927:1: entryRuleTypeParameterCS returns [EObject current=null] : iv_ruleTypeParameterCS= ruleTypeParameterCS EOF ; |
| public final EObject entryRuleTypeParameterCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeParameterCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:7927:56: (iv_ruleTypeParameterCS= ruleTypeParameterCS EOF ) |
| // InternalQVTbase.g:7928:2: iv_ruleTypeParameterCS= ruleTypeParameterCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeParameterCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeParameterCS=ruleTypeParameterCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeParameterCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeParameterCS" |
| |
| |
| // $ANTLR start "ruleTypeParameterCS" |
| // InternalQVTbase.g:7934:1: ruleTypeParameterCS returns [EObject current=null] : ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? ) ; |
| public final EObject ruleTypeParameterCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| EObject lv_ownedExtends_2_0 = null; |
| |
| EObject lv_ownedExtends_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:7940:2: ( ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? ) ) |
| // InternalQVTbase.g:7941:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? ) |
| { |
| // InternalQVTbase.g:7941:2: ( ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? ) |
| // InternalQVTbase.g:7942:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? |
| { |
| // InternalQVTbase.g:7942:3: ( (lv_name_0_0= ruleUnrestrictedName ) ) |
| // InternalQVTbase.g:7943:4: (lv_name_0_0= ruleUnrestrictedName ) |
| { |
| // InternalQVTbase.g:7943:4: (lv_name_0_0= ruleUnrestrictedName ) |
| // InternalQVTbase.g:7944:5: lv_name_0_0= ruleUnrestrictedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeParameterCSAccess().getNameUnrestrictedNameParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_111); |
| lv_name_0_0=ruleUnrestrictedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeParameterCSRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.ocl.xtext.essentialocl.EssentialOCL.UnrestrictedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7961:3: (otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* )? |
| int alt174=2; |
| int LA174_0 = input.LA(1); |
| |
| if ( (LA174_0==67) ) { |
| alt174=1; |
| } |
| switch (alt174) { |
| case 1 : |
| // InternalQVTbase.g:7962:4: otherlv_1= 'extends' ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* |
| { |
| otherlv_1=(Token)match(input,67,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTypeParameterCSAccess().getExtendsKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:7966:4: ( (lv_ownedExtends_2_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:7967:5: (lv_ownedExtends_2_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:7967:5: (lv_ownedExtends_2_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:7968:6: lv_ownedExtends_2_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeParameterCSAccess().getOwnedExtendsTypedRefCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_112); |
| lv_ownedExtends_2_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeParameterCSRule()); |
| } |
| add( |
| current, |
| "ownedExtends", |
| lv_ownedExtends_2_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:7985:4: (otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) )* |
| loop173: |
| do { |
| int alt173=2; |
| int LA173_0 = input.LA(1); |
| |
| if ( (LA173_0==132) ) { |
| alt173=1; |
| } |
| |
| |
| switch (alt173) { |
| case 1 : |
| // InternalQVTbase.g:7986:5: otherlv_3= '&&' ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) |
| { |
| otherlv_3=(Token)match(input,132,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTypeParameterCSAccess().getAmpersandAmpersandKeyword_1_2_0()); |
| |
| } |
| // InternalQVTbase.g:7990:5: ( (lv_ownedExtends_4_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:7991:6: (lv_ownedExtends_4_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:7991:6: (lv_ownedExtends_4_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:7992:7: lv_ownedExtends_4_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeParameterCSAccess().getOwnedExtendsTypedRefCSParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_112); |
| lv_ownedExtends_4_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypeParameterCSRule()); |
| } |
| add( |
| current, |
| "ownedExtends", |
| lv_ownedExtends_4_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop173; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeParameterCS" |
| |
| |
| // $ANTLR start "entryRuleTypeRefCS" |
| // InternalQVTbase.g:8015:1: entryRuleTypeRefCS returns [EObject current=null] : iv_ruleTypeRefCS= ruleTypeRefCS EOF ; |
| public final EObject entryRuleTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypeRefCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8015:50: (iv_ruleTypeRefCS= ruleTypeRefCS EOF ) |
| // InternalQVTbase.g:8016:2: iv_ruleTypeRefCS= ruleTypeRefCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypeRefCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypeRefCS=ruleTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypeRefCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypeRefCS" |
| |
| |
| // $ANTLR start "ruleTypeRefCS" |
| // InternalQVTbase.g:8022:1: ruleTypeRefCS returns [EObject current=null] : (this_TypedRefCS_0= ruleTypedRefCS | this_WildcardTypeRefCS_1= ruleWildcardTypeRefCS ) ; |
| public final EObject ruleTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TypedRefCS_0 = null; |
| |
| EObject this_WildcardTypeRefCS_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8028:2: ( (this_TypedRefCS_0= ruleTypedRefCS | this_WildcardTypeRefCS_1= ruleWildcardTypeRefCS ) ) |
| // InternalQVTbase.g:8029:2: (this_TypedRefCS_0= ruleTypedRefCS | this_WildcardTypeRefCS_1= ruleWildcardTypeRefCS ) |
| { |
| // InternalQVTbase.g:8029:2: (this_TypedRefCS_0= ruleTypedRefCS | this_WildcardTypeRefCS_1= ruleWildcardTypeRefCS ) |
| int alt175=2; |
| int LA175_0 = input.LA(1); |
| |
| if ( ((LA175_0>=RULE_SIMPLE_ID && LA175_0<=RULE_ESCAPED_ID)||(LA175_0>=92 && LA175_0<=106)) ) { |
| alt175=1; |
| } |
| else if ( (LA175_0==130) ) { |
| alt175=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 175, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt175) { |
| case 1 : |
| // InternalQVTbase.g:8030:3: this_TypedRefCS_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeRefCSAccess().getTypedRefCSParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypedRefCS_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TypedRefCS_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:8042:3: this_WildcardTypeRefCS_1= ruleWildcardTypeRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypeRefCSAccess().getWildcardTypeRefCSParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_WildcardTypeRefCS_1=ruleWildcardTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_WildcardTypeRefCS_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypeRefCS" |
| |
| |
| // $ANTLR start "entryRuleTypedTypeRefCS" |
| // InternalQVTbase.g:8057:1: entryRuleTypedTypeRefCS returns [EObject current=null] : iv_ruleTypedTypeRefCS= ruleTypedTypeRefCS EOF ; |
| public final EObject entryRuleTypedTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTypedTypeRefCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8057:55: (iv_ruleTypedTypeRefCS= ruleTypedTypeRefCS EOF ) |
| // InternalQVTbase.g:8058:2: iv_ruleTypedTypeRefCS= ruleTypedTypeRefCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTypedTypeRefCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleTypedTypeRefCS=ruleTypedTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTypedTypeRefCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTypedTypeRefCS" |
| |
| |
| // $ANTLR start "ruleTypedTypeRefCS" |
| // InternalQVTbase.g:8064:1: ruleTypedTypeRefCS returns [EObject current=null] : ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? ) ; |
| public final EObject ruleTypedTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_ownedPathName_0_0 = null; |
| |
| EObject lv_ownedBinding_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8070:2: ( ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? ) ) |
| // InternalQVTbase.g:8071:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? ) |
| { |
| // InternalQVTbase.g:8071:2: ( ( (lv_ownedPathName_0_0= rulePathNameCS ) ) (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? ) |
| // InternalQVTbase.g:8072:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? |
| { |
| // InternalQVTbase.g:8072:3: ( (lv_ownedPathName_0_0= rulePathNameCS ) ) |
| // InternalQVTbase.g:8073:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| { |
| // InternalQVTbase.g:8073:4: (lv_ownedPathName_0_0= rulePathNameCS ) |
| // InternalQVTbase.g:8074:5: lv_ownedPathName_0_0= rulePathNameCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedTypeRefCSAccess().getOwnedPathNamePathNameCSParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_67); |
| lv_ownedPathName_0_0=rulePathNameCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypedTypeRefCSRule()); |
| } |
| set( |
| current, |
| "ownedPathName", |
| lv_ownedPathName_0_0, |
| "org.eclipse.ocl.xtext.base.Base.PathNameCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:8091:3: (otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' )? |
| int alt176=2; |
| int LA176_0 = input.LA(1); |
| |
| if ( (LA176_0==51) ) { |
| alt176=1; |
| } |
| switch (alt176) { |
| case 1 : |
| // InternalQVTbase.g:8092:4: otherlv_1= '(' ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) otherlv_3= ')' |
| { |
| otherlv_1=(Token)match(input,51,FollowSets000.FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTypedTypeRefCSAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| // InternalQVTbase.g:8096:4: ( (lv_ownedBinding_2_0= ruleTemplateBindingCS ) ) |
| // InternalQVTbase.g:8097:5: (lv_ownedBinding_2_0= ruleTemplateBindingCS ) |
| { |
| // InternalQVTbase.g:8097:5: (lv_ownedBinding_2_0= ruleTemplateBindingCS ) |
| // InternalQVTbase.g:8098:6: lv_ownedBinding_2_0= ruleTemplateBindingCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTypedTypeRefCSAccess().getOwnedBindingTemplateBindingCSParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_69); |
| lv_ownedBinding_2_0=ruleTemplateBindingCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTypedTypeRefCSRule()); |
| } |
| set( |
| current, |
| "ownedBinding", |
| lv_ownedBinding_2_0, |
| "org.eclipse.ocl.xtext.base.Base.TemplateBindingCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,52,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTypedTypeRefCSAccess().getRightParenthesisKeyword_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTypedTypeRefCS" |
| |
| |
| // $ANTLR start "entryRuleWildcardTypeRefCS" |
| // InternalQVTbase.g:8124:1: entryRuleWildcardTypeRefCS returns [EObject current=null] : iv_ruleWildcardTypeRefCS= ruleWildcardTypeRefCS EOF ; |
| public final EObject entryRuleWildcardTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleWildcardTypeRefCS = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8124:58: (iv_ruleWildcardTypeRefCS= ruleWildcardTypeRefCS EOF ) |
| // InternalQVTbase.g:8125:2: iv_ruleWildcardTypeRefCS= ruleWildcardTypeRefCS EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getWildcardTypeRefCSRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleWildcardTypeRefCS=ruleWildcardTypeRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleWildcardTypeRefCS; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleWildcardTypeRefCS" |
| |
| |
| // $ANTLR start "ruleWildcardTypeRefCS" |
| // InternalQVTbase.g:8131:1: ruleWildcardTypeRefCS returns [EObject current=null] : ( () otherlv_1= '?' (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? ) ; |
| public final EObject ruleWildcardTypeRefCS() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| EObject lv_ownedExtends_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8137:2: ( ( () otherlv_1= '?' (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? ) ) |
| // InternalQVTbase.g:8138:2: ( () otherlv_1= '?' (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? ) |
| { |
| // InternalQVTbase.g:8138:2: ( () otherlv_1= '?' (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? ) |
| // InternalQVTbase.g:8139:3: () otherlv_1= '?' (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? |
| { |
| // InternalQVTbase.g:8139:3: () |
| // InternalQVTbase.g:8140:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getWildcardTypeRefCSAccess().getWildcardTypeRefCSAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,130,FollowSets000.FOLLOW_111); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getWildcardTypeRefCSAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalQVTbase.g:8153:3: (otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) )? |
| int alt177=2; |
| int LA177_0 = input.LA(1); |
| |
| if ( (LA177_0==67) ) { |
| alt177=1; |
| } |
| switch (alt177) { |
| case 1 : |
| // InternalQVTbase.g:8154:4: otherlv_2= 'extends' ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) |
| { |
| otherlv_2=(Token)match(input,67,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getWildcardTypeRefCSAccess().getExtendsKeyword_2_0()); |
| |
| } |
| // InternalQVTbase.g:8158:4: ( (lv_ownedExtends_3_0= ruleTypedRefCS ) ) |
| // InternalQVTbase.g:8159:5: (lv_ownedExtends_3_0= ruleTypedRefCS ) |
| { |
| // InternalQVTbase.g:8159:5: (lv_ownedExtends_3_0= ruleTypedRefCS ) |
| // InternalQVTbase.g:8160:6: lv_ownedExtends_3_0= ruleTypedRefCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWildcardTypeRefCSAccess().getOwnedExtendsTypedRefCSParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedExtends_3_0=ruleTypedRefCS(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWildcardTypeRefCSRule()); |
| } |
| set( |
| current, |
| "ownedExtends", |
| lv_ownedExtends_3_0, |
| "org.eclipse.qvtd.xtext.qvtbase.QVTbase.TypedRefCS"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleWildcardTypeRefCS" |
| |
| |
| // $ANTLR start "entryRuleID" |
| // InternalQVTbase.g:8182:1: entryRuleID returns [String current=null] : iv_ruleID= ruleID EOF ; |
| public final String entryRuleID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleID = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8182:42: (iv_ruleID= ruleID EOF ) |
| // InternalQVTbase.g:8183:2: iv_ruleID= ruleID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIDRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleID=ruleID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleID.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleID" |
| |
| |
| // $ANTLR start "ruleID" |
| // InternalQVTbase.g:8189:1: ruleID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_SIMPLE_ID_0= RULE_SIMPLE_ID | this_ESCAPED_ID_1= RULE_ESCAPED_ID ) ; |
| public final AntlrDatatypeRuleToken ruleID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_SIMPLE_ID_0=null; |
| Token this_ESCAPED_ID_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8195:2: ( (this_SIMPLE_ID_0= RULE_SIMPLE_ID | this_ESCAPED_ID_1= RULE_ESCAPED_ID ) ) |
| // InternalQVTbase.g:8196:2: (this_SIMPLE_ID_0= RULE_SIMPLE_ID | this_ESCAPED_ID_1= RULE_ESCAPED_ID ) |
| { |
| // InternalQVTbase.g:8196:2: (this_SIMPLE_ID_0= RULE_SIMPLE_ID | this_ESCAPED_ID_1= RULE_ESCAPED_ID ) |
| int alt178=2; |
| int LA178_0 = input.LA(1); |
| |
| if ( (LA178_0==RULE_SIMPLE_ID) ) { |
| alt178=1; |
| } |
| else if ( (LA178_0==RULE_ESCAPED_ID) ) { |
| alt178=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 178, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt178) { |
| case 1 : |
| // InternalQVTbase.g:8197:3: this_SIMPLE_ID_0= RULE_SIMPLE_ID |
| { |
| this_SIMPLE_ID_0=(Token)match(input,RULE_SIMPLE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_SIMPLE_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_SIMPLE_ID_0, grammarAccess.getIDAccess().getSIMPLE_IDTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:8205:3: this_ESCAPED_ID_1= RULE_ESCAPED_ID |
| { |
| this_ESCAPED_ID_1=(Token)match(input,RULE_ESCAPED_ID,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ESCAPED_ID_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ESCAPED_ID_1, grammarAccess.getIDAccess().getESCAPED_IDTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleID" |
| |
| |
| // $ANTLR start "entryRuleIdentifier" |
| // InternalQVTbase.g:8216:1: entryRuleIdentifier returns [String current=null] : iv_ruleIdentifier= ruleIdentifier EOF ; |
| public final String entryRuleIdentifier() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdentifier = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8216:50: (iv_ruleIdentifier= ruleIdentifier EOF ) |
| // InternalQVTbase.g:8217:2: iv_ruleIdentifier= ruleIdentifier EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIdentifierRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleIdentifier=ruleIdentifier(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIdentifier.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIdentifier" |
| |
| |
| // $ANTLR start "ruleIdentifier" |
| // InternalQVTbase.g:8223:1: ruleIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= ruleID ; |
| public final AntlrDatatypeRuleToken ruleIdentifier() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| AntlrDatatypeRuleToken this_ID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8229:2: (this_ID_0= ruleID ) |
| // InternalQVTbase.g:8230:2: this_ID_0= ruleID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIdentifierAccess().getIDParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_ID_0=ruleID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIdentifier" |
| |
| |
| // $ANTLR start "entryRuleLOWER" |
| // InternalQVTbase.g:8243:1: entryRuleLOWER returns [String current=null] : iv_ruleLOWER= ruleLOWER EOF ; |
| public final String entryRuleLOWER() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLOWER = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8243:45: (iv_ruleLOWER= ruleLOWER EOF ) |
| // InternalQVTbase.g:8244:2: iv_ruleLOWER= ruleLOWER EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLOWERRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLOWER=ruleLOWER(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLOWER.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLOWER" |
| |
| |
| // $ANTLR start "ruleLOWER" |
| // InternalQVTbase.g:8250:1: ruleLOWER returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_INT_0= RULE_INT ; |
| public final AntlrDatatypeRuleToken ruleLOWER() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_INT_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8256:2: (this_INT_0= RULE_INT ) |
| // InternalQVTbase.g:8257:2: this_INT_0= RULE_INT |
| { |
| this_INT_0=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_0, grammarAccess.getLOWERAccess().getINTTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLOWER" |
| |
| |
| // $ANTLR start "entryRuleNUMBER_LITERAL" |
| // InternalQVTbase.g:8267:1: entryRuleNUMBER_LITERAL returns [String current=null] : iv_ruleNUMBER_LITERAL= ruleNUMBER_LITERAL EOF ; |
| public final String entryRuleNUMBER_LITERAL() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleNUMBER_LITERAL = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8267:54: (iv_ruleNUMBER_LITERAL= ruleNUMBER_LITERAL EOF ) |
| // InternalQVTbase.g:8268:2: iv_ruleNUMBER_LITERAL= ruleNUMBER_LITERAL EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNUMBER_LITERALRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleNUMBER_LITERAL=ruleNUMBER_LITERAL(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNUMBER_LITERAL.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNUMBER_LITERAL" |
| |
| |
| // $ANTLR start "ruleNUMBER_LITERAL" |
| // InternalQVTbase.g:8274:1: ruleNUMBER_LITERAL returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_INT_0= RULE_INT ; |
| public final AntlrDatatypeRuleToken ruleNUMBER_LITERAL() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_INT_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8280:2: (this_INT_0= RULE_INT ) |
| // InternalQVTbase.g:8281:2: this_INT_0= RULE_INT |
| { |
| this_INT_0=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_0, grammarAccess.getNUMBER_LITERALAccess().getINTTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNUMBER_LITERAL" |
| |
| |
| // $ANTLR start "entryRuleStringLiteral" |
| // InternalQVTbase.g:8291:1: entryRuleStringLiteral returns [String current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; |
| public final String entryRuleStringLiteral() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleStringLiteral = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8291:53: (iv_ruleStringLiteral= ruleStringLiteral EOF ) |
| // InternalQVTbase.g:8292:2: iv_ruleStringLiteral= ruleStringLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStringLiteralRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleStringLiteral=ruleStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStringLiteral.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStringLiteral" |
| |
| |
| // $ANTLR start "ruleStringLiteral" |
| // InternalQVTbase.g:8298:1: ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING ; |
| public final AntlrDatatypeRuleToken ruleStringLiteral() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_SINGLE_QUOTED_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8304:2: (this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:8305:2: this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING |
| { |
| this_SINGLE_QUOTED_STRING_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_SINGLE_QUOTED_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_SINGLE_QUOTED_STRING_0, grammarAccess.getStringLiteralAccess().getSINGLE_QUOTED_STRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStringLiteral" |
| |
| |
| // $ANTLR start "entryRuleUPPER" |
| // InternalQVTbase.g:8315:1: entryRuleUPPER returns [String current=null] : iv_ruleUPPER= ruleUPPER EOF ; |
| public final String entryRuleUPPER() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUPPER = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8315:45: (iv_ruleUPPER= ruleUPPER EOF ) |
| // InternalQVTbase.g:8316:2: iv_ruleUPPER= ruleUPPER EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUPPERRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUPPER=ruleUPPER(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUPPER.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUPPER" |
| |
| |
| // $ANTLR start "ruleUPPER" |
| // InternalQVTbase.g:8322:1: ruleUPPER returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ; |
| public final AntlrDatatypeRuleToken ruleUPPER() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_INT_0=null; |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8328:2: ( (this_INT_0= RULE_INT | kw= '*' ) ) |
| // InternalQVTbase.g:8329:2: (this_INT_0= RULE_INT | kw= '*' ) |
| { |
| // InternalQVTbase.g:8329:2: (this_INT_0= RULE_INT | kw= '*' ) |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==RULE_INT) ) { |
| alt179=1; |
| } |
| else if ( (LA179_0==72) ) { |
| alt179=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 179, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt179) { |
| case 1 : |
| // InternalQVTbase.g:8330:3: this_INT_0= RULE_INT |
| { |
| this_INT_0=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_0, grammarAccess.getUPPERAccess().getINTTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalQVTbase.g:8338:3: kw= '*' |
| { |
| kw=(Token)match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getUPPERAccess().getAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUPPER" |
| |
| |
| // $ANTLR start "entryRuleURI" |
| // InternalQVTbase.g:8347:1: entryRuleURI returns [String current=null] : iv_ruleURI= ruleURI EOF ; |
| public final String entryRuleURI() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleURI = null; |
| |
| |
| try { |
| // InternalQVTbase.g:8347:43: (iv_ruleURI= ruleURI EOF ) |
| // InternalQVTbase.g:8348:2: iv_ruleURI= ruleURI EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getURIRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleURI=ruleURI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleURI.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleURI" |
| |
| |
| // $ANTLR start "ruleURI" |
| // InternalQVTbase.g:8354:1: ruleURI returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING ; |
| public final AntlrDatatypeRuleToken ruleURI() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_SINGLE_QUOTED_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalQVTbase.g:8360:2: (this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING ) |
| // InternalQVTbase.g:8361:2: this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING |
| { |
| this_SINGLE_QUOTED_STRING_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_SINGLE_QUOTED_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_SINGLE_QUOTED_STRING_0, grammarAccess.getURIAccess().getSINGLE_QUOTED_STRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleURI" |
| |
| // $ANTLR start synpred208_InternalQVTbase |
| public final void synpred208_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_TypeLiteralCS_1 = null; |
| |
| |
| // InternalQVTbase.g:5273:3: (this_TypeLiteralCS_1= ruleTypeLiteralCS ) |
| // InternalQVTbase.g:5273:3: this_TypeLiteralCS_1= ruleTypeLiteralCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeLiteralCS_1=ruleTypeLiteralCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred208_InternalQVTbase |
| |
| // $ANTLR start synpred211_InternalQVTbase |
| public final void synpred211_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_PrefixedPrimaryExpCS_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_ownedRight_3_0 = null; |
| |
| |
| // InternalQVTbase.g:5364:3: ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) ) |
| // InternalQVTbase.g:5364:3: (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:5364:3: (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:5365:4: this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_82); |
| this_PrefixedPrimaryExpCS_0=rulePrefixedPrimaryExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| // InternalQVTbase.g:5376:4: ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? |
| int alt251=2; |
| int LA251_0 = input.LA(1); |
| |
| if ( (LA251_0==21||LA251_0==69||(LA251_0>=72 && LA251_0<=91)) ) { |
| alt251=1; |
| } |
| switch (alt251) { |
| case 1 : |
| // InternalQVTbase.g:5377:5: () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:5377:5: () |
| // InternalQVTbase.g:5378:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| |
| } |
| |
| // InternalQVTbase.g:5387:5: ( (lv_name_2_0= ruleBinaryOperatorName ) ) |
| // InternalQVTbase.g:5388:6: (lv_name_2_0= ruleBinaryOperatorName ) |
| { |
| // InternalQVTbase.g:5388:6: (lv_name_2_0= ruleBinaryOperatorName ) |
| // InternalQVTbase.g:5389:7: lv_name_2_0= ruleBinaryOperatorName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getNameBinaryOperatorNameParserRuleCall_0_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_75); |
| lv_name_2_0=ruleBinaryOperatorName(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:5406:5: ( (lv_ownedRight_3_0= ruleExpCS ) ) |
| // InternalQVTbase.g:5407:6: (lv_ownedRight_3_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:5407:6: (lv_ownedRight_3_0= ruleExpCS ) |
| // InternalQVTbase.g:5408:7: lv_ownedRight_3_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpCSAccess().getOwnedRightExpCSParserRuleCall_0_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedRight_3_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred211_InternalQVTbase |
| |
| // $ANTLR start synpred218_InternalQVTbase |
| public final void synpred218_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_TupleLiteralExpCS_4 = null; |
| |
| |
| // InternalQVTbase.g:5668:3: (this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS ) |
| // InternalQVTbase.g:5668:3: this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TupleLiteralExpCS_4=ruleTupleLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred218_InternalQVTbase |
| |
| // $ANTLR start synpred219_InternalQVTbase |
| public final void synpred219_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_MapLiteralExpCS_5 = null; |
| |
| |
| // InternalQVTbase.g:5680:3: (this_MapLiteralExpCS_5= ruleMapLiteralExpCS ) |
| // InternalQVTbase.g:5680:3: this_MapLiteralExpCS_5= ruleMapLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_MapLiteralExpCS_5=ruleMapLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred219_InternalQVTbase |
| |
| // $ANTLR start synpred220_InternalQVTbase |
| public final void synpred220_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_CollectionLiteralExpCS_6 = null; |
| |
| |
| // InternalQVTbase.g:5692:3: (this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS ) |
| // InternalQVTbase.g:5692:3: this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_CollectionLiteralExpCS_6=ruleCollectionLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred220_InternalQVTbase |
| |
| // $ANTLR start synpred222_InternalQVTbase |
| public final void synpred222_InternalQVTbase_fragment() throws RecognitionException { |
| EObject this_TypeLiteralExpCS_8 = null; |
| |
| |
| // InternalQVTbase.g:5716:3: (this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS ) |
| // InternalQVTbase.g:5716:3: this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_TypeLiteralExpCS_8=ruleTypeLiteralExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred222_InternalQVTbase |
| |
| // $ANTLR start synpred235_InternalQVTbase |
| public final void synpred235_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_ownedCoIterator_2_0 = null; |
| |
| EObject lv_ownedInitExpression_4_0 = null; |
| |
| |
| // InternalQVTbase.g:6159:5: ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) ) |
| // InternalQVTbase.g:6159:5: (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6159:5: (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6160:6: otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? |
| { |
| otherlv_1=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6164:6: ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6165:7: (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6165:7: (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6166:8: lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_2_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6183:6: (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? |
| int alt256=2; |
| int LA256_0 = input.LA(1); |
| |
| if ( (LA256_0==21) ) { |
| alt256=1; |
| } |
| switch (alt256) { |
| case 1 : |
| // InternalQVTbase.g:6184:7: otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| { |
| otherlv_3=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6188:7: ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6189:8: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6189:8: (lv_ownedInitExpression_4_0= ruleExpCS ) |
| // InternalQVTbase.g:6190:9: lv_ownedInitExpression_4_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_0_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_4_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred235_InternalQVTbase |
| |
| // $ANTLR start synpred238_InternalQVTbase |
| public final void synpred238_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| EObject lv_ownedType_6_0 = null; |
| |
| EObject lv_ownedCoIterator_8_0 = null; |
| |
| EObject lv_ownedInitExpression_10_0 = null; |
| |
| |
| // InternalQVTbase.g:6210:5: ( (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) ) |
| // InternalQVTbase.g:6210:5: (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6210:5: (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6211:6: otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? |
| { |
| otherlv_5=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return ; |
| // InternalQVTbase.g:6215:6: ( (lv_ownedType_6_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6216:7: (lv_ownedType_6_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6216:7: (lv_ownedType_6_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6217:8: lv_ownedType_6_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_95); |
| lv_ownedType_6_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6234:6: (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? |
| int alt257=2; |
| int LA257_0 = input.LA(1); |
| |
| if ( (LA257_0==110) ) { |
| alt257=1; |
| } |
| switch (alt257) { |
| case 1 : |
| // InternalQVTbase.g:6235:7: otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_7=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6239:7: ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6240:8: (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6240:8: (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6241:9: lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_1_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_8_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6259:6: (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? |
| int alt258=2; |
| int LA258_0 = input.LA(1); |
| |
| if ( (LA258_0==21) ) { |
| alt258=1; |
| } |
| switch (alt258) { |
| case 1 : |
| // InternalQVTbase.g:6260:7: otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) |
| { |
| otherlv_9=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6264:7: ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6265:8: (lv_ownedInitExpression_10_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6265:8: (lv_ownedInitExpression_10_0= ruleExpCS ) |
| // InternalQVTbase.g:6266:9: lv_ownedInitExpression_10_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_10_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred238_InternalQVTbase |
| |
| // $ANTLR start synpred241_InternalQVTbase |
| public final void synpred241_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| EObject lv_ownedType_12_0 = null; |
| |
| EObject lv_ownedCoIterator_14_0 = null; |
| |
| EObject lv_ownedInitExpression_16_0 = null; |
| |
| |
| // InternalQVTbase.g:6286:5: ( ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:6286:5: ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:6286:5: ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:6287:6: (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:6287:6: (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? |
| int alt259=2; |
| int LA259_0 = input.LA(1); |
| |
| if ( (LA259_0==20) ) { |
| alt259=1; |
| } |
| switch (alt259) { |
| case 1 : |
| // InternalQVTbase.g:6288:7: otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) |
| { |
| otherlv_11=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return ; |
| // InternalQVTbase.g:6292:7: ( (lv_ownedType_12_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6293:8: (lv_ownedType_12_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6293:8: (lv_ownedType_12_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6294:9: lv_ownedType_12_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_0_1_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_96); |
| lv_ownedType_12_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6312:6: (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? |
| int alt260=2; |
| int LA260_0 = input.LA(1); |
| |
| if ( (LA260_0==110) ) { |
| alt260=1; |
| } |
| switch (alt260) { |
| case 1 : |
| // InternalQVTbase.g:6313:7: otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_13=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6317:7: ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6318:8: (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6318:8: (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6319:9: lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_0_1_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_97); |
| lv_ownedCoIterator_14_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,119,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6341:6: ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6342:7: (lv_ownedInitExpression_16_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6342:7: (lv_ownedInitExpression_16_0= ruleExpCS ) |
| // InternalQVTbase.g:6343:8: lv_ownedInitExpression_16_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_0_1_2_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_16_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred241_InternalQVTbase |
| |
| // $ANTLR start synpred246_InternalQVTbase |
| public final void synpred246_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_ownedCoIterator_3_0 = null; |
| |
| EObject lv_ownedInitExpression_5_0 = null; |
| |
| |
| // InternalQVTbase.g:6544:4: ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) ) |
| // InternalQVTbase.g:6544:4: (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6544:4: (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6545:5: otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| { |
| otherlv_2=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6549:5: ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6550:6: (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6550:6: (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6551:7: lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_3_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6568:5: (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? |
| int alt268=2; |
| int LA268_0 = input.LA(1); |
| |
| if ( (LA268_0==21) ) { |
| alt268=1; |
| } |
| switch (alt268) { |
| case 1 : |
| // InternalQVTbase.g:6569:6: otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| { |
| otherlv_4=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6573:6: ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6574:7: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6574:7: (lv_ownedInitExpression_5_0= ruleExpCS ) |
| // InternalQVTbase.g:6575:8: lv_ownedInitExpression_5_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_0_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_5_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred246_InternalQVTbase |
| |
| // $ANTLR start synpred249_InternalQVTbase |
| public final void synpred249_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| EObject lv_ownedType_7_0 = null; |
| |
| EObject lv_ownedCoIterator_9_0 = null; |
| |
| EObject lv_ownedInitExpression_11_0 = null; |
| |
| |
| // InternalQVTbase.g:6595:4: ( (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) ) |
| // InternalQVTbase.g:6595:4: (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) |
| { |
| // InternalQVTbase.g:6595:4: (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) |
| // InternalQVTbase.g:6596:5: otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? |
| { |
| otherlv_6=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return ; |
| // InternalQVTbase.g:6600:5: ( (lv_ownedType_7_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6601:6: (lv_ownedType_7_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6601:6: (lv_ownedType_7_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6602:7: lv_ownedType_7_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_95); |
| lv_ownedType_7_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalQVTbase.g:6619:5: (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? |
| int alt269=2; |
| int LA269_0 = input.LA(1); |
| |
| if ( (LA269_0==110) ) { |
| alt269=1; |
| } |
| switch (alt269) { |
| case 1 : |
| // InternalQVTbase.g:6620:6: otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_8=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6624:6: ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6625:7: (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6625:7: (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6626:8: lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_1_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_94); |
| lv_ownedCoIterator_9_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6644:5: (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? |
| int alt270=2; |
| int LA270_0 = input.LA(1); |
| |
| if ( (LA270_0==21) ) { |
| alt270=1; |
| } |
| switch (alt270) { |
| case 1 : |
| // InternalQVTbase.g:6645:6: otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) |
| { |
| otherlv_10=(Token)match(input,21,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6649:6: ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6650:7: (lv_ownedInitExpression_11_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6650:7: (lv_ownedInitExpression_11_0= ruleExpCS ) |
| // InternalQVTbase.g:6651:8: lv_ownedInitExpression_11_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_11_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred249_InternalQVTbase |
| |
| // $ANTLR start synpred252_InternalQVTbase |
| public final void synpred252_InternalQVTbase_fragment() throws RecognitionException { |
| Token otherlv_12=null; |
| Token otherlv_14=null; |
| Token otherlv_16=null; |
| EObject lv_ownedType_13_0 = null; |
| |
| EObject lv_ownedCoIterator_15_0 = null; |
| |
| EObject lv_ownedInitExpression_17_0 = null; |
| |
| |
| // InternalQVTbase.g:6671:4: ( ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) ) |
| // InternalQVTbase.g:6671:4: ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) |
| { |
| // InternalQVTbase.g:6671:4: ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) |
| // InternalQVTbase.g:6672:5: (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) |
| { |
| // InternalQVTbase.g:6672:5: (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? |
| int alt271=2; |
| int LA271_0 = input.LA(1); |
| |
| if ( (LA271_0==20) ) { |
| alt271=1; |
| } |
| switch (alt271) { |
| case 1 : |
| // InternalQVTbase.g:6673:6: otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) |
| { |
| otherlv_12=(Token)match(input,20,FollowSets000.FOLLOW_8); if (state.failed) return ; |
| // InternalQVTbase.g:6677:6: ( (lv_ownedType_13_0= ruleTypeExpCS ) ) |
| // InternalQVTbase.g:6678:7: (lv_ownedType_13_0= ruleTypeExpCS ) |
| { |
| // InternalQVTbase.g:6678:7: (lv_ownedType_13_0= ruleTypeExpCS ) |
| // InternalQVTbase.g:6679:8: lv_ownedType_13_0= ruleTypeExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedTypeTypeExpCSParserRuleCall_2_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_96); |
| lv_ownedType_13_0=ruleTypeExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalQVTbase.g:6697:5: (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? |
| int alt272=2; |
| int LA272_0 = input.LA(1); |
| |
| if ( (LA272_0==110) ) { |
| alt272=1; |
| } |
| switch (alt272) { |
| case 1 : |
| // InternalQVTbase.g:6698:6: otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) |
| { |
| otherlv_14=(Token)match(input,110,FollowSets000.FOLLOW_6); if (state.failed) return ; |
| // InternalQVTbase.g:6702:6: ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) |
| // InternalQVTbase.g:6703:7: (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) |
| { |
| // InternalQVTbase.g:6703:7: (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) |
| // InternalQVTbase.g:6704:8: lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedCoIteratorCoIteratorVariableCSParserRuleCall_2_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_97); |
| lv_ownedCoIterator_15_0=ruleCoIteratorVariableCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_16=(Token)match(input,119,FollowSets000.FOLLOW_75); if (state.failed) return ; |
| // InternalQVTbase.g:6726:5: ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) |
| // InternalQVTbase.g:6727:6: (lv_ownedInitExpression_17_0= ruleExpCS ) |
| { |
| // InternalQVTbase.g:6727:6: (lv_ownedInitExpression_17_0= ruleExpCS ) |
| // InternalQVTbase.g:6728:7: lv_ownedInitExpression_17_0= ruleExpCS |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNavigatingCommaArgCSAccess().getOwnedInitExpressionExpCSParserRuleCall_2_2_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_ownedInitExpression_17_0=ruleExpCS(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred252_InternalQVTbase |
| |
| // Delegated rules |
| |
| public final boolean synpred219_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred219_InternalQVTbase_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 synpred246_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred246_InternalQVTbase_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 synpred252_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred252_InternalQVTbase_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 synpred220_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred220_InternalQVTbase_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 synpred241_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred241_InternalQVTbase_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 synpred249_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred249_InternalQVTbase_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 synpred211_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred211_InternalQVTbase_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 synpred208_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred208_InternalQVTbase_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 synpred238_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred238_InternalQVTbase_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 synpred235_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred235_InternalQVTbase_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 synpred218_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred218_InternalQVTbase_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 synpred222_InternalQVTbase() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred222_InternalQVTbase_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 DFA125 dfa125 = new DFA125(this); |
| protected DFA128 dfa128 = new DFA128(this); |
| protected DFA131 dfa131 = new DFA131(this); |
| protected DFA147 dfa147 = new DFA147(this); |
| protected DFA156 dfa156 = new DFA156(this); |
| static final String dfa_1s = "\23\uffff"; |
| static final String dfa_2s = "\1\7\12\uffff\5\0\3\uffff"; |
| static final String dfa_3s = "\1\152\12\uffff\5\0\3\uffff"; |
| static final String dfa_4s = "\1\uffff\1\1\1\uffff\1\2\16\uffff\1\3"; |
| static final String dfa_5s = "\13\uffff\1\0\1\1\1\2\1\3\1\4\3\uffff}>"; |
| static final String[] dfa_6s = { |
| "\2\1\123\uffff\12\3\1\13\1\14\1\15\1\16\1\17", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final char[] dfa_2 = DFA.unpackEncodedStringToUnsignedChars(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final short[] dfa_4 = DFA.unpackEncodedString(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[][] dfa_6 = unpackEncodedStringArray(dfa_6s); |
| |
| class DFA125 extends DFA { |
| |
| public DFA125(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 125; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_2; |
| this.max = dfa_3; |
| this.accept = dfa_4; |
| this.special = dfa_5; |
| this.transition = dfa_6; |
| } |
| public String getDescription() { |
| return "5260:2: (this_TypeNameExpCS_0= ruleTypeNameExpCS | this_TypeLiteralCS_1= ruleTypeLiteralCS | this_CollectionPatternCS_2= ruleCollectionPatternCS )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA125_11 = input.LA(1); |
| |
| |
| int index125_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred208_InternalQVTbase()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 18;} |
| |
| |
| input.seek(index125_11); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA125_12 = input.LA(1); |
| |
| |
| int index125_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred208_InternalQVTbase()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 18;} |
| |
| |
| input.seek(index125_12); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA125_13 = input.LA(1); |
| |
| |
| int index125_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred208_InternalQVTbase()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 18;} |
| |
| |
| input.seek(index125_13); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA125_14 = input.LA(1); |
| |
| |
| int index125_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred208_InternalQVTbase()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 18;} |
| |
| |
| input.seek(index125_14); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA125_15 = input.LA(1); |
| |
| |
| int index125_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred208_InternalQVTbase()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 18;} |
| |
| |
| input.seek(index125_15); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 125, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_7s = "\41\uffff"; |
| static final String dfa_8s = "\1\4\3\0\35\uffff"; |
| static final String dfa_9s = "\1\177\3\0\35\uffff"; |
| static final String dfa_10s = "\4\uffff\1\1\33\uffff\1\2"; |
| static final String dfa_11s = "\1\uffff\1\0\1\1\1\2\35\uffff}>"; |
| static final String[] dfa_12s = { |
| "\1\4\1\uffff\3\4\52\uffff\1\4\21\uffff\1\1\1\2\1\3\1\4\23\uffff\17\4\2\uffff\1\4\1\uffff\4\4\6\uffff\1\4\4\uffff\1\40\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_7 = DFA.unpackEncodedString(dfa_7s); |
| static final char[] dfa_8 = DFA.unpackEncodedStringToUnsignedChars(dfa_8s); |
| static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); |
| static final short[] dfa_10 = DFA.unpackEncodedString(dfa_10s); |
| static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); |
| static final short[][] dfa_12 = unpackEncodedStringArray(dfa_12s); |
| |
| class DFA128 extends DFA { |
| |
| public DFA128(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 128; |
| this.eot = dfa_7; |
| this.eof = dfa_7; |
| this.min = dfa_8; |
| this.max = dfa_9; |
| this.accept = dfa_10; |
| this.special = dfa_11; |
| this.transition = dfa_12; |
| } |
| public String getDescription() { |
| return "5363:2: ( (this_PrefixedPrimaryExpCS_0= rulePrefixedPrimaryExpCS ( () ( (lv_name_2_0= ruleBinaryOperatorName ) ) ( (lv_ownedRight_3_0= ruleExpCS ) ) )? ) | this_PrefixedLetExpCS_4= rulePrefixedLetExpCS )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA128_1 = input.LA(1); |
| |
| |
| int index128_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred211_InternalQVTbase()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 32;} |
| |
| |
| input.seek(index128_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA128_2 = input.LA(1); |
| |
| |
| int index128_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred211_InternalQVTbase()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 32;} |
| |
| |
| input.seek(index128_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA128_3 = input.LA(1); |
| |
| |
| int index128_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred211_InternalQVTbase()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 32;} |
| |
| |
| input.seek(index128_3); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 128, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_13s = "\40\uffff"; |
| static final String dfa_14s = "\1\4\12\uffff\7\0\16\uffff"; |
| static final String dfa_15s = "\1\177\12\uffff\7\0\16\uffff"; |
| static final String dfa_16s = "\1\uffff\1\1\1\2\1\3\1\4\15\uffff\1\10\1\11\7\uffff\1\12\1\uffff\1\5\1\6\1\7"; |
| static final String dfa_17s = "\13\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\16\uffff}>"; |
| static final String[] dfa_18s = { |
| "\1\4\1\uffff\1\4\2\33\52\uffff\1\1\24\uffff\1\4\23\uffff\1\14\1\13\10\23\1\15\1\16\1\17\1\20\1\21\2\uffff\1\22\1\uffff\4\4\6\uffff\1\2\5\uffff\1\3", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_13 = DFA.unpackEncodedString(dfa_13s); |
| static final char[] dfa_14 = DFA.unpackEncodedStringToUnsignedChars(dfa_14s); |
| static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); |
| static final short[] dfa_16 = DFA.unpackEncodedString(dfa_16s); |
| static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); |
| static final short[][] dfa_18 = unpackEncodedStringArray(dfa_18s); |
| |
| class DFA131 extends DFA { |
| |
| public DFA131(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 131; |
| this.eot = dfa_13; |
| this.eof = dfa_13; |
| this.min = dfa_14; |
| this.max = dfa_15; |
| this.accept = dfa_16; |
| this.special = dfa_17; |
| this.transition = dfa_18; |
| } |
| public String getDescription() { |
| return "5619:2: (this_NestedExpCS_0= ruleNestedExpCS | this_IfExpCS_1= ruleIfExpCS | this_SelfExpCS_2= ruleSelfExpCS | this_PrimitiveLiteralExpCS_3= rulePrimitiveLiteralExpCS | this_TupleLiteralExpCS_4= ruleTupleLiteralExpCS | this_MapLiteralExpCS_5= ruleMapLiteralExpCS | this_CollectionLiteralExpCS_6= ruleCollectionLiteralExpCS | this_LambdaLiteralExpCS_7= ruleLambdaLiteralExpCS | this_TypeLiteralExpCS_8= ruleTypeLiteralExpCS | this_NameExpCS_9= ruleNameExpCS )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA131_11 = input.LA(1); |
| |
| |
| int index131_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred218_InternalQVTbase()) ) {s = 29;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_11); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA131_12 = input.LA(1); |
| |
| |
| int index131_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred219_InternalQVTbase()) ) {s = 30;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_12); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA131_13 = input.LA(1); |
| |
| |
| int index131_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred220_InternalQVTbase()) ) {s = 31;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_13); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA131_14 = input.LA(1); |
| |
| |
| int index131_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred220_InternalQVTbase()) ) {s = 31;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_14); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA131_15 = input.LA(1); |
| |
| |
| int index131_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred220_InternalQVTbase()) ) {s = 31;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_15); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA131_16 = input.LA(1); |
| |
| |
| int index131_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred220_InternalQVTbase()) ) {s = 31;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_16); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA131_17 = input.LA(1); |
| |
| |
| int index131_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred220_InternalQVTbase()) ) {s = 31;} |
| |
| else if ( (synpred222_InternalQVTbase()) ) {s = 19;} |
| |
| |
| input.seek(index131_17); |
| 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; |
| } |
| } |
| static final String dfa_19s = "\13\uffff"; |
| static final String dfa_20s = "\1\4\12\uffff"; |
| static final String dfa_21s = "\1\24\2\0\10\uffff"; |
| static final String dfa_22s = "\1\170\2\0\10\uffff"; |
| static final String dfa_23s = "\3\uffff\1\3\1\4\4\uffff\1\1\1\2"; |
| static final String dfa_24s = "\1\uffff\1\0\1\1\10\uffff}>"; |
| static final String[] dfa_25s = { |
| "\1\2\22\uffff\1\4\2\uffff\1\4\11\uffff\1\4\71\uffff\1\1\10\uffff\1\3\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_19 = DFA.unpackEncodedString(dfa_19s); |
| static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); |
| static final char[] dfa_21 = DFA.unpackEncodedStringToUnsignedChars(dfa_21s); |
| static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); |
| static final short[] dfa_23 = DFA.unpackEncodedString(dfa_23s); |
| static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); |
| static final short[][] dfa_25 = unpackEncodedStringArray(dfa_25s); |
| |
| class DFA147 extends DFA { |
| |
| public DFA147(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 147; |
| this.eot = dfa_19; |
| this.eof = dfa_20; |
| this.min = dfa_21; |
| this.max = dfa_22; |
| this.accept = dfa_23; |
| this.special = dfa_24; |
| this.transition = dfa_25; |
| } |
| public String getDescription() { |
| return "6158:4: ( (otherlv_1= '<-' ( (lv_ownedCoIterator_2_0= ruleCoIteratorVariableCS ) ) (otherlv_3= '=' ( (lv_ownedInitExpression_4_0= ruleExpCS ) ) )? ) | (otherlv_5= ':' ( (lv_ownedType_6_0= ruleTypeExpCS ) ) (otherlv_7= '<-' ( (lv_ownedCoIterator_8_0= ruleCoIteratorVariableCS ) ) )? (otherlv_9= '=' ( (lv_ownedInitExpression_10_0= ruleExpCS ) ) )? ) | ( (otherlv_11= ':' ( (lv_ownedType_12_0= ruleTypeExpCS ) ) )? (otherlv_13= '<-' ( (lv_ownedCoIterator_14_0= ruleCoIteratorVariableCS ) ) )? otherlv_15= 'in' ( (lv_ownedInitExpression_16_0= ruleExpCS ) ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA147_1 = input.LA(1); |
| |
| |
| int index147_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred235_InternalQVTbase()) ) {s = 9;} |
| |
| else if ( (synpred241_InternalQVTbase()) ) {s = 3;} |
| |
| |
| input.seek(index147_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA147_2 = input.LA(1); |
| |
| |
| int index147_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred238_InternalQVTbase()) ) {s = 10;} |
| |
| else if ( (synpred241_InternalQVTbase()) ) {s = 3;} |
| |
| |
| input.seek(index147_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 147, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA156 extends DFA { |
| |
| public DFA156(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 156; |
| this.eot = dfa_19; |
| this.eof = dfa_20; |
| this.min = dfa_21; |
| this.max = dfa_22; |
| this.accept = dfa_23; |
| this.special = dfa_24; |
| this.transition = dfa_25; |
| } |
| public String getDescription() { |
| return "6543:3: ( (otherlv_2= '<-' ( (lv_ownedCoIterator_3_0= ruleCoIteratorVariableCS ) ) (otherlv_4= '=' ( (lv_ownedInitExpression_5_0= ruleExpCS ) ) )? ) | (otherlv_6= ':' ( (lv_ownedType_7_0= ruleTypeExpCS ) ) (otherlv_8= '<-' ( (lv_ownedCoIterator_9_0= ruleCoIteratorVariableCS ) ) )? (otherlv_10= '=' ( (lv_ownedInitExpression_11_0= ruleExpCS ) ) )? ) | ( (otherlv_12= ':' ( (lv_ownedType_13_0= ruleTypeExpCS ) ) )? (otherlv_14= '<-' ( (lv_ownedCoIterator_15_0= ruleCoIteratorVariableCS ) ) )? otherlv_16= 'in' ( (lv_ownedInitExpression_17_0= ruleExpCS ) ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA156_1 = input.LA(1); |
| |
| |
| int index156_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred246_InternalQVTbase()) ) {s = 9;} |
| |
| else if ( (synpred252_InternalQVTbase()) ) {s = 3;} |
| |
| |
| input.seek(index156_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA156_2 = input.LA(1); |
| |
| |
| int index156_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred249_InternalQVTbase()) ) {s = 10;} |
| |
| else if ( (synpred252_InternalQVTbase()) ) {s = 3;} |
| |
| |
| input.seek(index156_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 156, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| |
| private static class FollowSets000 { |
| 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[]{0x00000000000C0000L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000080000L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x00000000000A0000L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000180L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000040000700000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000180L,0x000007FFF0000000L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000040000600000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000040000400000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000007FFF800000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x000001FFFF800000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000017FFF800000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x00000B0000000000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000100180L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000100000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x00080400000001F0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000040000000000L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0xE000010000000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000040000000002L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000200000000000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0008040000500000L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000040000500000L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000C10000000000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000010000000000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0002010000000180L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0004000000040000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0004000000000000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0004000000020000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0008000000000180L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0008000000000000L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0010000000000180L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0010008000000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0020040000500000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0020040000400000L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000048000400000L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000619800000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000018619800000L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000010619800000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0040010000000000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000000000500002L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000400002L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000618000000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000018618000000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000010618000000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0080000000040000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0080000000000000L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0080000000020000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0100040000700000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x1E00007FF9800000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x1E0001FFF9800000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x1E00017FF9800000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000040000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000400180L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000010000000180L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000018000000000L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0008040000500000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000040000500000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000048000500000L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000010000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x00840100000E0000L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000002L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0008000000000002L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0010000000000000L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0010000000000000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000008000000000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000400000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x00080100001001D0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x00080000001001D0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000000002L,0x0000080000000000L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x00080000000001D0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000008000000000L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000200000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x00080100000001D0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000300000L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000012L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000200002L,0x000000000FFFFF20L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x00080000000001D0L,0x8207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0008000000400002L,0x0028000000000000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000400002L,0x0008000000000000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000002L,0x0008000000000000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000010000000190L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000190L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x00180000001001D0L,0xC207A7FFF00001E0L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0010048000000000L,0x0100000000000000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000008000000000L,0x0040000000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000100002L,0x0080400000000000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000200002L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000200002L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000000L,0x0080400000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000000L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000100002L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000000L,0x0400000000000000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x2800000000000000L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000000L,0x1000000000000000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000008000000000L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0008000000300000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000500L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000000000000L,0x0040000000000000L,0x0000000000000003L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000000L,0x0040000000000000L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000008000000002L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000180L,0x000007FFF0000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000010L}); |
| } |
| |
| |
| } |