| package org.eclipse.efm.sew.xtext.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.efm.sew.xtext.services.SEWGrammarAccess; |
| |
| |
| |
| 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) 2018 CEA LIST. |
| * |
| * 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 |
| * |
| * Contributors: |
| * Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr |
| * - Initial API and implementation |
| * |
| ****************************************************************************** |
| * Generated by Xtext 2.25.0 |
| *****************************************************************************/ |
| @SuppressWarnings("all") |
| public class InternalSEWParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_XIDENDIFIER", "RULE_CHARACTER", "RULE_INT", "RULE_STRING", "RULE_AT_IDENTIFIER", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'workflow'", "'symbex-workflow'", "'{'", "'}'", "'@sew'", "'@favm'", "'<'", "'sew'", "','", "'version:'", "'>:'", "'::'", "'.'", "':='", "'+:='", "'['", "']'", "':'", "'='", "';'", "'?'", "'||'", "'or'", "'&&'", "'and'", "'=='", "'!='", "'==='", "'=!='", "'=/='", "'<='", "'>'", "'>='", "'+'", "'*'", "'**'", "'/'", "'%'", "'-'", "'!'", "'not'", "'('", "')'", "'&'", "'null'", "'$time'", "'$delta'", "'$this'", "'$self'", "'$parent'", "'$super'", "'$system'", "'$env'", "'env'", "'true'", "'false'", "'form'", "'endform'", "'prototype'", "'endprototype'", "'section'", "'endsection'", "'as'", "'is'", "'${'", "'|;|'", "'|i|'" |
| }; |
| public static final int T__50=50; |
| public static final int RULE_CHARACTER=5; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__59=59; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__14=14; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__52=52; |
| public static final int T__53=53; |
| public static final int T__54=54; |
| public static final int T__60=60; |
| public static final int T__61=61; |
| public static final int RULE_XIDENDIFIER=4; |
| public static final int RULE_ID=9; |
| 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 RULE_INT=6; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=10; |
| public static final int T__23=23; |
| public static final int T__67=67; |
| public static final int T__24=24; |
| public static final int T__68=68; |
| public static final int T__25=25; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__63=63; |
| public static final int T__20=20; |
| public static final int T__64=64; |
| public static final int T__21=21; |
| public static final int T__65=65; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=7; |
| public static final int RULE_SL_COMMENT=11; |
| 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__77=77; |
| public static final int T__34=34; |
| public static final int T__78=78; |
| public static final int T__35=35; |
| public static final int T__79=79; |
| public static final int T__36=36; |
| public static final int T__73=73; |
| public static final int EOF=-1; |
| public static final int T__30=30; |
| public static final int T__74=74; |
| public static final int T__31=31; |
| public static final int T__75=75; |
| public static final int T__32=32; |
| public static final int T__76=76; |
| public static final int T__80=80; |
| public static final int RULE_WS=12; |
| public static final int RULE_ANY_OTHER=13; |
| public static final int RULE_AT_IDENTIFIER=8; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__41=41; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalSEWParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalSEWParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalSEWParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalSEW.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 SEWGrammarAccess grammarAccess; |
| |
| public InternalSEWParser(TokenStream input, SEWGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "Workflow"; |
| } |
| |
| @Override |
| protected SEWGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleWorkflow" |
| // InternalSEW.g:82:1: entryRuleWorkflow returns [EObject current=null] : iv_ruleWorkflow= ruleWorkflow EOF ; |
| public final EObject entryRuleWorkflow() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleWorkflow = null; |
| |
| |
| try { |
| // InternalSEW.g:82:49: (iv_ruleWorkflow= ruleWorkflow EOF ) |
| // InternalSEW.g:83:2: iv_ruleWorkflow= ruleWorkflow EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getWorkflowRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleWorkflow=ruleWorkflow(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleWorkflow; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleWorkflow" |
| |
| |
| // $ANTLR start "ruleWorkflow" |
| // InternalSEW.g:89:1: ruleWorkflow returns [EObject current=null] : ( () ( ruleProlog )? ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) ) ; |
| public final EObject ruleWorkflow() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_type_2_1=null; |
| Token lv_type_2_2=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_4_0 = null; |
| |
| EObject lv_element_6_1 = null; |
| |
| EObject lv_element_6_2 = null; |
| |
| EObject lv_element_8_1 = null; |
| |
| EObject lv_element_8_2 = null; |
| |
| EObject lv_element_9_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:95:2: ( ( () ( ruleProlog )? ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) ) ) |
| // InternalSEW.g:96:2: ( () ( ruleProlog )? ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) ) |
| { |
| // InternalSEW.g:96:2: ( () ( ruleProlog )? ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) ) |
| // InternalSEW.g:97:3: () ( ruleProlog )? ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) |
| { |
| // InternalSEW.g:97:3: () |
| // InternalSEW.g:98:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getWorkflowAccess().getSEWorkflowAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:107:3: ( ruleProlog )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( ((LA1_0>=18 && LA1_0<=19)) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalSEW.g:108:4: ruleProlog |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getPrologParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_3); |
| ruleProlog(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:119:3: ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) ) |
| int alt9=3; |
| alt9 = dfa9.predict(input); |
| switch (alt9) { |
| case 1 : |
| // InternalSEW.g:120:4: ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) |
| { |
| // InternalSEW.g:120:4: ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) |
| // InternalSEW.g:121:5: ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' |
| { |
| // InternalSEW.g:121:5: ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) |
| // InternalSEW.g:122:6: ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) |
| { |
| // InternalSEW.g:122:6: ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) |
| // InternalSEW.g:123:7: (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) |
| { |
| // InternalSEW.g:123:7: (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==14) ) { |
| alt2=1; |
| } |
| else if ( (LA2_0==15) ) { |
| alt2=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 2, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt2) { |
| case 1 : |
| // InternalSEW.g:124:8: lv_type_2_1= 'workflow' |
| { |
| lv_type_2_1=(Token)match(input,14,FollowSets000.FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_type_2_1, grammarAccess.getWorkflowAccess().getTypeWorkflowKeyword_2_0_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getWorkflowRule()); |
| } |
| setWithLastConsumed(current, "type", lv_type_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:135:8: lv_type_2_2= 'symbex-workflow' |
| { |
| lv_type_2_2=(Token)match(input,15,FollowSets000.FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_type_2_2, grammarAccess.getWorkflowAccess().getTypeSymbexWorkflowKeyword_2_0_0_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getWorkflowRule()); |
| } |
| setWithLastConsumed(current, "type", lv_type_2_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:148:5: ( (lv_name_3_0= ruleUFI ) )? |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==RULE_XIDENDIFIER||LA3_0==14||LA3_0==21||(LA3_0>=70 && LA3_0<=75)) ) { |
| alt3=1; |
| } |
| switch (alt3) { |
| case 1 : |
| // InternalSEW.g:149:6: (lv_name_3_0= ruleUFI ) |
| { |
| // InternalSEW.g:149:6: (lv_name_3_0= ruleUFI ) |
| // InternalSEW.g:150:7: lv_name_3_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getNameUFIParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_5); |
| lv_name_3_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:167:5: ( (lv_description_4_0= ruleEString ) )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==RULE_STRING) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalSEW.g:168:6: (lv_description_4_0= ruleEString ) |
| { |
| // InternalSEW.g:168:6: (lv_description_4_0= ruleEString ) |
| // InternalSEW.g:169:7: lv_description_4_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getDescriptionEStringParserRuleCall_2_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_6); |
| lv_description_4_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_4_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,16,FollowSets000.FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getWorkflowAccess().getLeftCurlyBracketKeyword_2_0_3()); |
| |
| } |
| // InternalSEW.g:190:5: ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* |
| loop6: |
| do { |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0==RULE_XIDENDIFIER||LA6_0==14||LA6_0==21||(LA6_0>=70 && LA6_0<=75)) ) { |
| alt6=1; |
| } |
| |
| |
| switch (alt6) { |
| case 1 : |
| // InternalSEW.g:191:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:191:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) |
| // InternalSEW.g:192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) |
| { |
| // InternalSEW.g:192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) |
| int alt5=2; |
| alt5 = dfa5.predict(input); |
| switch (alt5) { |
| case 1 : |
| // InternalSEW.g:193:8: lv_element_6_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementObjectParserRuleCall_2_0_4_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_6_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_6_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:209:8: lv_element_6_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementPropertyParserRuleCall_2_0_4_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_6_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_6_2, |
| "org.eclipse.efm.sew.xtext.SEW.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop6; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,17,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getWorkflowAccess().getRightCurlyBracketKeyword_2_0_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:233:4: ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* |
| { |
| // InternalSEW.g:233:4: ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==RULE_XIDENDIFIER||LA8_0==14||LA8_0==21||(LA8_0>=70 && LA8_0<=75)) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalSEW.g:234:5: ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:234:5: ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) |
| // InternalSEW.g:235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) |
| { |
| // InternalSEW.g:235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) |
| int alt7=2; |
| alt7 = dfa7.predict(input); |
| switch (alt7) { |
| case 1 : |
| // InternalSEW.g:236:7: lv_element_8_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementObjectParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_8_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_8_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:252:7: lv_element_8_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementPropertyParserRuleCall_2_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_8_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_8_2, |
| "org.eclipse.efm.sew.xtext.SEW.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:271:4: ( (lv_element_9_0= ruleDeprecatedObject ) ) |
| { |
| // InternalSEW.g:271:4: ( (lv_element_9_0= ruleDeprecatedObject ) ) |
| // InternalSEW.g:272:5: (lv_element_9_0= ruleDeprecatedObject ) |
| { |
| // InternalSEW.g:272:5: (lv_element_9_0= ruleDeprecatedObject ) |
| // InternalSEW.g:273:6: lv_element_9_0= ruleDeprecatedObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementDeprecatedObjectParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_9_0=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWorkflowRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_9_0, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedObject"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleWorkflow" |
| |
| |
| // $ANTLR start "entryRuleProlog" |
| // InternalSEW.g:295:1: entryRuleProlog returns [String current=null] : iv_ruleProlog= ruleProlog EOF ; |
| public final String entryRuleProlog() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleProlog = null; |
| |
| |
| try { |
| // InternalSEW.g:295:46: (iv_ruleProlog= ruleProlog EOF ) |
| // InternalSEW.g:296:2: iv_ruleProlog= ruleProlog EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrologRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleProlog=ruleProlog(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleProlog.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleProlog" |
| |
| |
| // $ANTLR start "ruleProlog" |
| // InternalSEW.g:302:1: ruleProlog returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '@sew' | kw= '@favm' ) kw= '<' (kw= 'workflow' | kw= 'sew' ) ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? kw= '>:' ) ; |
| public final AntlrDatatypeRuleToken ruleProlog() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_EDouble_7 = null; |
| |
| AntlrDatatypeRuleToken this_UFI_8 = null; |
| |
| AntlrDatatypeRuleToken this_EString_9 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:308:2: ( ( (kw= '@sew' | kw= '@favm' ) kw= '<' (kw= 'workflow' | kw= 'sew' ) ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? kw= '>:' ) ) |
| // InternalSEW.g:309:2: ( (kw= '@sew' | kw= '@favm' ) kw= '<' (kw= 'workflow' | kw= 'sew' ) ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? kw= '>:' ) |
| { |
| // InternalSEW.g:309:2: ( (kw= '@sew' | kw= '@favm' ) kw= '<' (kw= 'workflow' | kw= 'sew' ) ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? kw= '>:' ) |
| // InternalSEW.g:310:3: (kw= '@sew' | kw= '@favm' ) kw= '<' (kw= 'workflow' | kw= 'sew' ) ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? kw= '>:' |
| { |
| // InternalSEW.g:310:3: (kw= '@sew' | kw= '@favm' ) |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==18) ) { |
| alt10=1; |
| } |
| else if ( (LA10_0==19) ) { |
| alt10=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 10, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalSEW.g:311:4: kw= '@sew' |
| { |
| kw=(Token)match(input,18,FollowSets000.FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getSewKeyword_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:317:4: kw= '@favm' |
| { |
| kw=(Token)match(input,19,FollowSets000.FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getFavmKeyword_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,20,FollowSets000.FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getLessThanSignKeyword_1()); |
| |
| } |
| // InternalSEW.g:328:3: (kw= 'workflow' | kw= 'sew' ) |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==14) ) { |
| alt11=1; |
| } |
| else if ( (LA11_0==21) ) { |
| alt11=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 11, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalSEW.g:329:4: kw= 'workflow' |
| { |
| kw=(Token)match(input,14,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getWorkflowKeyword_2_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:335:4: kw= 'sew' |
| { |
| kw=(Token)match(input,21,FollowSets000.FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getSewKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:341:3: ( (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) | this_UFI_8= ruleUFI | this_EString_9= ruleEString )? |
| int alt13=4; |
| switch ( input.LA(1) ) { |
| case 22: |
| { |
| alt13=1; |
| } |
| break; |
| case RULE_XIDENDIFIER: |
| case 14: |
| case 21: |
| case 70: |
| case 71: |
| case 72: |
| case 73: |
| case 74: |
| case 75: |
| { |
| alt13=2; |
| } |
| break; |
| case RULE_STRING: |
| { |
| alt13=3; |
| } |
| break; |
| } |
| |
| switch (alt13) { |
| case 1 : |
| // InternalSEW.g:342:4: (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) |
| { |
| // InternalSEW.g:342:4: (kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble ) |
| // InternalSEW.g:343:5: kw= ',' (kw= 'version:' )? this_EDouble_7= ruleEDouble |
| { |
| kw=(Token)match(input,22,FollowSets000.FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getCommaKeyword_3_0_0()); |
| |
| } |
| // InternalSEW.g:348:5: (kw= 'version:' )? |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==23) ) { |
| alt12=1; |
| } |
| switch (alt12) { |
| case 1 : |
| // InternalSEW.g:349:6: kw= 'version:' |
| { |
| kw=(Token)match(input,23,FollowSets000.FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getVersionKeyword_3_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrologAccess().getEDoubleParserRuleCall_3_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_13); |
| this_EDouble_7=ruleEDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EDouble_7); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:367:4: this_UFI_8= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrologAccess().getUFIParserRuleCall_3_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_13); |
| this_UFI_8=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_UFI_8); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:378:4: this_EString_9= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrologAccess().getEStringParserRuleCall_3_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_13); |
| this_EString_9=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_EString_9); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,24,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getPrologAccess().getGreaterThanSignColonKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleProlog" |
| |
| |
| // $ANTLR start "entryRuleReservedWord" |
| // InternalSEW.g:398:1: entryRuleReservedWord returns [String current=null] : iv_ruleReservedWord= ruleReservedWord EOF ; |
| public final String entryRuleReservedWord() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleReservedWord = null; |
| |
| |
| try { |
| // InternalSEW.g:398:52: (iv_ruleReservedWord= ruleReservedWord EOF ) |
| // InternalSEW.g:399:2: iv_ruleReservedWord= ruleReservedWord EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getReservedWordRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleReservedWord=ruleReservedWord(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleReservedWord.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleReservedWord" |
| |
| |
| // $ANTLR start "ruleReservedWord" |
| // InternalSEW.g:405:1: ruleReservedWord returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'workflow' | kw= 'sew' | this_DeprecatedReservedWord_2= ruleDeprecatedReservedWord ) ; |
| public final AntlrDatatypeRuleToken ruleReservedWord() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_DeprecatedReservedWord_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:411:2: ( (kw= 'workflow' | kw= 'sew' | this_DeprecatedReservedWord_2= ruleDeprecatedReservedWord ) ) |
| // InternalSEW.g:412:2: (kw= 'workflow' | kw= 'sew' | this_DeprecatedReservedWord_2= ruleDeprecatedReservedWord ) |
| { |
| // InternalSEW.g:412:2: (kw= 'workflow' | kw= 'sew' | this_DeprecatedReservedWord_2= ruleDeprecatedReservedWord ) |
| int alt14=3; |
| switch ( input.LA(1) ) { |
| case 14: |
| { |
| alt14=1; |
| } |
| break; |
| case 21: |
| { |
| alt14=2; |
| } |
| break; |
| case 70: |
| case 71: |
| case 72: |
| case 73: |
| case 74: |
| case 75: |
| { |
| alt14=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 14, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt14) { |
| case 1 : |
| // InternalSEW.g:413:3: kw= 'workflow' |
| { |
| kw=(Token)match(input,14,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getReservedWordAccess().getWorkflowKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:419:3: kw= 'sew' |
| { |
| kw=(Token)match(input,21,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getReservedWordAccess().getSewKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:425:3: this_DeprecatedReservedWord_2= ruleDeprecatedReservedWord |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReservedWordAccess().getDeprecatedReservedWordParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_DeprecatedReservedWord_2=ruleDeprecatedReservedWord(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DeprecatedReservedWord_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleReservedWord" |
| |
| |
| // $ANTLR start "entryRuleXID" |
| // InternalSEW.g:439:1: entryRuleXID returns [String current=null] : iv_ruleXID= ruleXID EOF ; |
| public final String entryRuleXID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleXID = null; |
| |
| |
| try { |
| // InternalSEW.g:439:43: (iv_ruleXID= ruleXID EOF ) |
| // InternalSEW.g:440:2: iv_ruleXID= ruleXID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXIDRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleXID=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXID.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXID" |
| |
| |
| // $ANTLR start "ruleXID" |
| // InternalSEW.g:446:1: ruleXID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ReservedWord_0= ruleReservedWord | this_XIDENDIFIER_1= RULE_XIDENDIFIER ) ; |
| public final AntlrDatatypeRuleToken ruleXID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_XIDENDIFIER_1=null; |
| AntlrDatatypeRuleToken this_ReservedWord_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:452:2: ( (this_ReservedWord_0= ruleReservedWord | this_XIDENDIFIER_1= RULE_XIDENDIFIER ) ) |
| // InternalSEW.g:453:2: (this_ReservedWord_0= ruleReservedWord | this_XIDENDIFIER_1= RULE_XIDENDIFIER ) |
| { |
| // InternalSEW.g:453:2: (this_ReservedWord_0= ruleReservedWord | this_XIDENDIFIER_1= RULE_XIDENDIFIER ) |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==14||LA15_0==21||(LA15_0>=70 && LA15_0<=75)) ) { |
| alt15=1; |
| } |
| else if ( (LA15_0==RULE_XIDENDIFIER) ) { |
| 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 : |
| // InternalSEW.g:454:3: this_ReservedWord_0= ruleReservedWord |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIDAccess().getReservedWordParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_ReservedWord_0=ruleReservedWord(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ReservedWord_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:465:3: this_XIDENDIFIER_1= RULE_XIDENDIFIER |
| { |
| this_XIDENDIFIER_1=(Token)match(input,RULE_XIDENDIFIER,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_XIDENDIFIER_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_XIDENDIFIER_1, grammarAccess.getXIDAccess().getXIDENDIFIERTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXID" |
| |
| |
| // $ANTLR start "entryRuleUFI" |
| // InternalSEW.g:476:1: entryRuleUFI returns [String current=null] : iv_ruleUFI= ruleUFI EOF ; |
| public final String entryRuleUFI() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUFI = null; |
| |
| |
| try { |
| // InternalSEW.g:476:43: (iv_ruleUFI= ruleUFI EOF ) |
| // InternalSEW.g:477:2: iv_ruleUFI= ruleUFI EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUFIRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleUFI=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUFI.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUFI" |
| |
| |
| // $ANTLR start "ruleUFI" |
| // InternalSEW.g:483:1: ruleUFI returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_XID_0= ruleXID ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* ) ; |
| public final AntlrDatatypeRuleToken ruleUFI() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_XID_0 = null; |
| |
| AntlrDatatypeRuleToken this_XID_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:489:2: ( (this_XID_0= ruleXID ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* ) ) |
| // InternalSEW.g:490:2: (this_XID_0= ruleXID ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* ) |
| { |
| // InternalSEW.g:490:2: (this_XID_0= ruleXID ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* ) |
| // InternalSEW.g:491:3: this_XID_0= ruleXID ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getUFIAccess().getXIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_14); |
| this_XID_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_XID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:501:3: ( (kw= '::' | kw= '.' ) this_XID_3= ruleXID )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==26) ) { |
| int LA17_2 = input.LA(2); |
| |
| if ( (LA17_2==RULE_XIDENDIFIER||LA17_2==14||LA17_2==21||(LA17_2>=70 && LA17_2<=75)) ) { |
| alt17=1; |
| } |
| |
| |
| } |
| else if ( (LA17_0==25) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalSEW.g:502:4: (kw= '::' | kw= '.' ) this_XID_3= ruleXID |
| { |
| // InternalSEW.g:502:4: (kw= '::' | kw= '.' ) |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==25) ) { |
| alt16=1; |
| } |
| else if ( (LA16_0==26) ) { |
| alt16=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 16, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalSEW.g:503:5: kw= '::' |
| { |
| kw=(Token)match(input,25,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getUFIAccess().getColonColonKeyword_1_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:509:5: kw= '.' |
| { |
| kw=(Token)match(input,26,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getUFIAccess().getFullStopKeyword_1_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getUFIAccess().getXIDParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_14); |
| this_XID_3=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_XID_3); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUFI" |
| |
| |
| // $ANTLR start "entryRuleObject" |
| // InternalSEW.g:530:1: entryRuleObject returns [EObject current=null] : iv_ruleObject= ruleObject EOF ; |
| public final EObject entryRuleObject() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleObject = null; |
| |
| |
| try { |
| // InternalSEW.g:530:47: (iv_ruleObject= ruleObject EOF ) |
| // InternalSEW.g:531:2: iv_ruleObject= ruleObject EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getObjectRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleObject=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleObject; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleObject" |
| |
| |
| // $ANTLR start "ruleObject" |
| // InternalSEW.g:537:1: ruleObject returns [EObject current=null] : ( ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) | ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) ) ; |
| public final EObject ruleObject() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| AntlrDatatypeRuleToken lv_type_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_3_0 = null; |
| |
| EObject lv_element_5_1 = null; |
| |
| EObject lv_element_5_2 = null; |
| |
| AntlrDatatypeRuleToken lv_name_8_0 = null; |
| |
| AntlrDatatypeRuleToken lv_type_11_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_12_0 = null; |
| |
| EObject lv_element_14_1 = null; |
| |
| EObject lv_element_14_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:543:2: ( ( ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) | ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) ) ) |
| // InternalSEW.g:544:2: ( ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) | ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) ) |
| { |
| // InternalSEW.g:544:2: ( ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) | ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) ) |
| int alt27=2; |
| alt27 = dfa27.predict(input); |
| switch (alt27) { |
| case 1 : |
| // InternalSEW.g:545:3: ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) |
| { |
| // InternalSEW.g:545:3: ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) |
| // InternalSEW.g:546:4: () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' |
| { |
| // InternalSEW.g:546:4: () |
| // InternalSEW.g:547:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getObjectAccess().getWObjectAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:556:4: ( (lv_type_1_0= ruleUFI ) ) |
| // InternalSEW.g:557:5: (lv_type_1_0= ruleUFI ) |
| { |
| // InternalSEW.g:557:5: (lv_type_1_0= ruleUFI ) |
| // InternalSEW.g:558:6: lv_type_1_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getTypeUFIParserRuleCall_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_4); |
| lv_type_1_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_1_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:575:4: ( (lv_name_2_0= ruleUFI ) )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==RULE_XIDENDIFIER||LA18_0==14||LA18_0==21||(LA18_0>=70 && LA18_0<=75)) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalSEW.g:576:5: (lv_name_2_0= ruleUFI ) |
| { |
| // InternalSEW.g:576:5: (lv_name_2_0= ruleUFI ) |
| // InternalSEW.g:577:6: lv_name_2_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getNameUFIParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_5); |
| lv_name_2_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:594:4: ( (lv_description_3_0= ruleEString ) )? |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==RULE_STRING) ) { |
| alt19=1; |
| } |
| switch (alt19) { |
| case 1 : |
| // InternalSEW.g:595:5: (lv_description_3_0= ruleEString ) |
| { |
| // InternalSEW.g:595:5: (lv_description_3_0= ruleEString ) |
| // InternalSEW.g:596:6: lv_description_3_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getDescriptionEStringParserRuleCall_0_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_6); |
| lv_description_3_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,16,FollowSets000.FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getObjectAccess().getLeftCurlyBracketKeyword_0_4()); |
| |
| } |
| // InternalSEW.g:617:4: ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* |
| loop21: |
| do { |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==RULE_XIDENDIFIER||LA21_0==14||LA21_0==21||(LA21_0>=70 && LA21_0<=75)) ) { |
| alt21=1; |
| } |
| |
| |
| switch (alt21) { |
| case 1 : |
| // InternalSEW.g:618:5: ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:618:5: ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) |
| // InternalSEW.g:619:6: (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) |
| { |
| // InternalSEW.g:619:6: (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) |
| int alt20=2; |
| alt20 = dfa20.predict(input); |
| switch (alt20) { |
| case 1 : |
| // InternalSEW.g:620:7: lv_element_5_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getElementObjectParserRuleCall_0_5_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_5_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_5_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:636:7: lv_element_5_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getElementPropertyParserRuleCall_0_5_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_5_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_5_2, |
| "org.eclipse.efm.sew.xtext.SEW.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop21; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,17,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_0_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:660:3: ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) |
| { |
| // InternalSEW.g:660:3: ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) |
| // InternalSEW.g:661:4: () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' |
| { |
| // InternalSEW.g:661:4: () |
| // InternalSEW.g:662:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getObjectAccess().getWObjectAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:671:4: ( (lv_name_8_0= ruleUFI ) ) |
| // InternalSEW.g:672:5: (lv_name_8_0= ruleUFI ) |
| { |
| // InternalSEW.g:672:5: (lv_name_8_0= ruleUFI ) |
| // InternalSEW.g:673:6: lv_name_8_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getNameUFIParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_16); |
| lv_name_8_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_8_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:690:4: (otherlv_9= ':=' | otherlv_10= '+:=' ) |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==27) ) { |
| alt22=1; |
| } |
| else if ( (LA22_0==28) ) { |
| alt22=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 22, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalSEW.g:691:5: otherlv_9= ':=' |
| { |
| otherlv_9=(Token)match(input,27,FollowSets000.FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getObjectAccess().getColonEqualsSignKeyword_1_2_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:696:5: otherlv_10= '+:=' |
| { |
| otherlv_10=(Token)match(input,28,FollowSets000.FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getObjectAccess().getPlusSignColonEqualsSignKeyword_1_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:701:4: ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==RULE_XIDENDIFIER||LA24_0==14||LA24_0==21||(LA24_0>=70 && LA24_0<=75)) ) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalSEW.g:702:5: ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? |
| { |
| // InternalSEW.g:702:5: ( (lv_type_11_0= ruleUFI ) ) |
| // InternalSEW.g:703:6: (lv_type_11_0= ruleUFI ) |
| { |
| // InternalSEW.g:703:6: (lv_type_11_0= ruleUFI ) |
| // InternalSEW.g:704:7: lv_type_11_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getTypeUFIParserRuleCall_1_3_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_5); |
| lv_type_11_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_11_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:721:5: ( (lv_description_12_0= ruleEString ) )? |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==RULE_STRING) ) { |
| alt23=1; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalSEW.g:722:6: (lv_description_12_0= ruleEString ) |
| { |
| // InternalSEW.g:722:6: (lv_description_12_0= ruleEString ) |
| // InternalSEW.g:723:7: lv_description_12_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getDescriptionEStringParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_6); |
| lv_description_12_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_12_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,16,FollowSets000.FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getObjectAccess().getLeftCurlyBracketKeyword_1_4()); |
| |
| } |
| // InternalSEW.g:745:4: ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* |
| loop26: |
| do { |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==RULE_XIDENDIFIER||LA26_0==14||LA26_0==21||(LA26_0>=70 && LA26_0<=75)) ) { |
| alt26=1; |
| } |
| |
| |
| switch (alt26) { |
| case 1 : |
| // InternalSEW.g:746:5: ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:746:5: ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) |
| // InternalSEW.g:747:6: (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) |
| { |
| // InternalSEW.g:747:6: (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) |
| int alt25=2; |
| alt25 = dfa25.predict(input); |
| switch (alt25) { |
| case 1 : |
| // InternalSEW.g:748:7: lv_element_14_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getElementObjectParserRuleCall_1_5_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_14_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_14_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:764:7: lv_element_14_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getObjectAccess().getElementPropertyParserRuleCall_1_5_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_14_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_14_2, |
| "org.eclipse.efm.sew.xtext.SEW.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop26; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,17,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_1_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleObject" |
| |
| |
| // $ANTLR start "entryRuleProperty" |
| // InternalSEW.g:791:1: entryRuleProperty returns [EObject current=null] : iv_ruleProperty= ruleProperty EOF ; |
| public final EObject entryRuleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleProperty = null; |
| |
| |
| try { |
| // InternalSEW.g:791:49: (iv_ruleProperty= ruleProperty EOF ) |
| // InternalSEW.g:792:2: iv_ruleProperty= ruleProperty EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleProperty=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleProperty; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleProperty" |
| |
| |
| // $ANTLR start "ruleProperty" |
| // InternalSEW.g:798:1: ruleProperty returns [EObject current=null] : (this_Section_0= ruleSection | this_Attribute_1= ruleAttribute ) ; |
| public final EObject ruleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_Section_0 = null; |
| |
| EObject this_Attribute_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:804:2: ( (this_Section_0= ruleSection | this_Attribute_1= ruleAttribute ) ) |
| // InternalSEW.g:805:2: (this_Section_0= ruleSection | this_Attribute_1= ruleAttribute ) |
| { |
| // InternalSEW.g:805:2: (this_Section_0= ruleSection | this_Attribute_1= ruleAttribute ) |
| int alt28=2; |
| alt28 = dfa28.predict(input); |
| switch (alt28) { |
| case 1 : |
| // InternalSEW.g:806:3: this_Section_0= ruleSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getSectionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_Section_0=ruleSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_Section_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:818:3: this_Attribute_1= ruleAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getAttributeParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_Attribute_1=ruleAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_Attribute_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleProperty" |
| |
| |
| // $ANTLR start "entryRuleSection" |
| // InternalSEW.g:833:1: entryRuleSection returns [EObject current=null] : iv_ruleSection= ruleSection EOF ; |
| public final EObject entryRuleSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSection = null; |
| |
| |
| try { |
| // InternalSEW.g:833:48: (iv_ruleSection= ruleSection EOF ) |
| // InternalSEW.g:834:2: iv_ruleSection= ruleSection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSectionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleSection=ruleSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSection; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSection" |
| |
| |
| // $ANTLR start "ruleSection" |
| // InternalSEW.g:840:1: ruleSection returns [EObject current=null] : ( ( (lv_name_0_0= ruleXID ) ) ( (lv_description_1_0= ruleEString ) )? ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) ) ; |
| public final EObject ruleSection() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_1_0 = null; |
| |
| EObject lv_element_3_1 = null; |
| |
| EObject lv_element_3_2 = null; |
| |
| EObject lv_element_6_1 = null; |
| |
| EObject lv_element_6_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:846:2: ( ( ( (lv_name_0_0= ruleXID ) ) ( (lv_description_1_0= ruleEString ) )? ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) ) ) |
| // InternalSEW.g:847:2: ( ( (lv_name_0_0= ruleXID ) ) ( (lv_description_1_0= ruleEString ) )? ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) ) |
| { |
| // InternalSEW.g:847:2: ( ( (lv_name_0_0= ruleXID ) ) ( (lv_description_1_0= ruleEString ) )? ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) ) |
| // InternalSEW.g:848:3: ( (lv_name_0_0= ruleXID ) ) ( (lv_description_1_0= ruleEString ) )? ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) |
| { |
| // InternalSEW.g:848:3: ( (lv_name_0_0= ruleXID ) ) |
| // InternalSEW.g:849:4: (lv_name_0_0= ruleXID ) |
| { |
| // InternalSEW.g:849:4: (lv_name_0_0= ruleXID ) |
| // InternalSEW.g:850:5: lv_name_0_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getNameXIDParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_18); |
| lv_name_0_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.XID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:867:3: ( (lv_description_1_0= ruleEString ) )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==RULE_STRING) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalSEW.g:868:4: (lv_description_1_0= ruleEString ) |
| { |
| // InternalSEW.g:868:4: (lv_description_1_0= ruleEString ) |
| // InternalSEW.g:869:5: lv_description_1_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getDescriptionEStringParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_description_1_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_1_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:886:3: ( (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) | (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) ) |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==29) ) { |
| alt34=1; |
| } |
| else if ( (LA34_0==31) ) { |
| alt34=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalSEW.g:887:4: (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) |
| { |
| // InternalSEW.g:887:4: (otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' ) |
| // InternalSEW.g:888:5: otherlv_2= '[' ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* otherlv_4= ']' |
| { |
| otherlv_2=(Token)match(input,29,FollowSets000.FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getSectionAccess().getLeftSquareBracketKeyword_2_0_0()); |
| |
| } |
| // InternalSEW.g:892:5: ( ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) )* |
| loop31: |
| do { |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==RULE_XIDENDIFIER||LA31_0==14||LA31_0==21||(LA31_0>=70 && LA31_0<=75)) ) { |
| alt31=1; |
| } |
| |
| |
| switch (alt31) { |
| case 1 : |
| // InternalSEW.g:893:6: ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) |
| { |
| // InternalSEW.g:893:6: ( (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) ) |
| // InternalSEW.g:894:7: (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) |
| { |
| // InternalSEW.g:894:7: (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute ) |
| int alt30=2; |
| alt30 = dfa30.predict(input); |
| switch (alt30) { |
| case 1 : |
| // InternalSEW.g:895:8: lv_element_3_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getElementObjectParserRuleCall_2_0_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_20); |
| lv_element_3_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_3_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:911:8: lv_element_3_2= ruleAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getElementAttributeParserRuleCall_2_0_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_20); |
| lv_element_3_2=ruleAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_3_2, |
| "org.eclipse.efm.sew.xtext.SEW.Attribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop31; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,30,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getSectionAccess().getRightSquareBracketKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:935:4: (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) |
| { |
| // InternalSEW.g:935:4: (otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* ) |
| // InternalSEW.g:936:5: otherlv_5= ':' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* |
| { |
| otherlv_5=(Token)match(input,31,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getSectionAccess().getColonKeyword_2_1_0()); |
| |
| } |
| // InternalSEW.g:940:5: ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )* |
| loop33: |
| do { |
| int alt33=2; |
| alt33 = dfa33.predict(input); |
| switch (alt33) { |
| case 1 : |
| // InternalSEW.g:941:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) |
| { |
| // InternalSEW.g:941:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) |
| // InternalSEW.g:942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) |
| { |
| // InternalSEW.g:942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) |
| int alt32=2; |
| alt32 = dfa32.predict(input); |
| switch (alt32) { |
| case 1 : |
| // InternalSEW.g:943:8: lv_element_6_1= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getElementObjectParserRuleCall_2_1_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_6_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_6_1, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:959:8: lv_element_6_2= ruleAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getElementAttributeParserRuleCall_2_1_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_6_2=ruleAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_6_2, |
| "org.eclipse.efm.sew.xtext.SEW.Attribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop33; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSection" |
| |
| |
| // $ANTLR start "entryRuleAttribute" |
| // InternalSEW.g:983:1: entryRuleAttribute returns [EObject current=null] : iv_ruleAttribute= ruleAttribute EOF ; |
| public final EObject entryRuleAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleAttribute = null; |
| |
| |
| try { |
| // InternalSEW.g:983:50: (iv_ruleAttribute= ruleAttribute EOF ) |
| // InternalSEW.g:984:2: iv_ruleAttribute= ruleAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getAttributeRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleAttribute=ruleAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleAttribute; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleAttribute" |
| |
| |
| // $ANTLR start "ruleAttribute" |
| // InternalSEW.g:990:1: ruleAttribute returns [EObject current=null] : ( () ( (lv_name_1_0= ruleXID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) ; |
| public final EObject ruleAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_value_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:996:2: ( ( () ( (lv_name_1_0= ruleXID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) ) |
| // InternalSEW.g:997:2: ( () ( (lv_name_1_0= ruleXID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) |
| { |
| // InternalSEW.g:997:2: ( () ( (lv_name_1_0= ruleXID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) |
| // InternalSEW.g:998:3: () ( (lv_name_1_0= ruleXID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? |
| { |
| // InternalSEW.g:998:3: () |
| // InternalSEW.g:999:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getAttributeAccess().getWAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1008:3: ( (lv_name_1_0= ruleXID ) ) |
| // InternalSEW.g:1009:4: (lv_name_1_0= ruleXID ) |
| { |
| // InternalSEW.g:1009:4: (lv_name_1_0= ruleXID ) |
| // InternalSEW.g:1010:5: lv_name_1_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeAccess().getNameXIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_21); |
| lv_name_1_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.efm.sew.xtext.SEW.XID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,32,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getAttributeAccess().getEqualsSignKeyword_2()); |
| |
| } |
| // InternalSEW.g:1031:3: ( (lv_value_3_0= ruleValueSpecification ) ) |
| // InternalSEW.g:1032:4: (lv_value_3_0= ruleValueSpecification ) |
| { |
| // InternalSEW.g:1032:4: (lv_value_3_0= ruleValueSpecification ) |
| // InternalSEW.g:1033:5: lv_value_3_0= ruleValueSpecification |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeAccess().getValueValueSpecificationParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_23); |
| lv_value_3_0=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.ValueSpecification"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1050:3: (otherlv_4= ';' )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==33) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalSEW.g:1051:4: otherlv_4= ';' |
| { |
| otherlv_4=(Token)match(input,33,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getAttributeAccess().getSemicolonKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAttribute" |
| |
| |
| // $ANTLR start "entryRuleValueSpecification" |
| // InternalSEW.g:1060:1: entryRuleValueSpecification returns [EObject current=null] : iv_ruleValueSpecification= ruleValueSpecification EOF ; |
| public final EObject entryRuleValueSpecification() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleValueSpecification = null; |
| |
| |
| try { |
| // InternalSEW.g:1060:59: (iv_ruleValueSpecification= ruleValueSpecification EOF ) |
| // InternalSEW.g:1061:2: iv_ruleValueSpecification= ruleValueSpecification EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getValueSpecificationRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleValueSpecification=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleValueSpecification; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleValueSpecification" |
| |
| |
| // $ANTLR start "ruleValueSpecification" |
| // InternalSEW.g:1067:1: ruleValueSpecification returns [EObject current=null] : this_Expression_0= ruleExpression ; |
| public final EObject ruleValueSpecification() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_Expression_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1073:2: (this_Expression_0= ruleExpression ) |
| // InternalSEW.g:1074:2: this_Expression_0= ruleExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getValueSpecificationAccess().getExpressionParserRuleCall()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_Expression_0=ruleExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_Expression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleValueSpecification" |
| |
| |
| // $ANTLR start "entryRuleExpression" |
| // InternalSEW.g:1088:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ; |
| public final EObject entryRuleExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1088:51: (iv_ruleExpression= ruleExpression EOF ) |
| // InternalSEW.g:1089:2: iv_ruleExpression= ruleExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleExpression=ruleExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleExpression" |
| |
| |
| // $ANTLR start "ruleExpression" |
| // InternalSEW.g:1095:1: ruleExpression returns [EObject current=null] : (this_conditionalExpression_0= ruleconditionalExpression | this_DeprecatedExpression_1= ruleDeprecatedExpression ) ; |
| public final EObject ruleExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_conditionalExpression_0 = null; |
| |
| EObject this_DeprecatedExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1101:2: ( (this_conditionalExpression_0= ruleconditionalExpression | this_DeprecatedExpression_1= ruleDeprecatedExpression ) ) |
| // InternalSEW.g:1102:2: (this_conditionalExpression_0= ruleconditionalExpression | this_DeprecatedExpression_1= ruleDeprecatedExpression ) |
| { |
| // InternalSEW.g:1102:2: (this_conditionalExpression_0= ruleconditionalExpression | this_DeprecatedExpression_1= ruleDeprecatedExpression ) |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( ((LA36_0>=RULE_XIDENDIFIER && LA36_0<=RULE_STRING)||LA36_0==14||LA36_0==21||LA36_0==26||LA36_0==29||LA36_0==47||(LA36_0>=52 && LA36_0<=55)||(LA36_0>=57 && LA36_0<=75)) ) { |
| alt36=1; |
| } |
| else if ( (LA36_0==78) ) { |
| alt36=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalSEW.g:1103:3: this_conditionalExpression_0= ruleconditionalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpressionAccess().getConditionalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_conditionalExpression_0=ruleconditionalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_conditionalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1115:3: this_DeprecatedExpression_1= ruleDeprecatedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getExpressionAccess().getDeprecatedExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_DeprecatedExpression_1=ruleDeprecatedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DeprecatedExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleExpression" |
| |
| |
| // $ANTLR start "entryRuleconditionalExpression" |
| // InternalSEW.g:1130:1: entryRuleconditionalExpression returns [EObject current=null] : iv_ruleconditionalExpression= ruleconditionalExpression EOF ; |
| public final EObject entryRuleconditionalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleconditionalExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1130:62: (iv_ruleconditionalExpression= ruleconditionalExpression EOF ) |
| // InternalSEW.g:1131:2: iv_ruleconditionalExpression= ruleconditionalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getConditionalExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleconditionalExpression=ruleconditionalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleconditionalExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleconditionalExpression" |
| |
| |
| // $ANTLR start "ruleconditionalExpression" |
| // InternalSEW.g:1137:1: ruleconditionalExpression returns [EObject current=null] : (this_conditionalOrExpression_0= ruleconditionalOrExpression ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? ) ; |
| public final EObject ruleconditionalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_0=null; |
| Token otherlv_4=null; |
| EObject this_conditionalOrExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1143:2: ( (this_conditionalOrExpression_0= ruleconditionalOrExpression ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? ) ) |
| // InternalSEW.g:1144:2: (this_conditionalOrExpression_0= ruleconditionalOrExpression ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? ) |
| { |
| // InternalSEW.g:1144:2: (this_conditionalOrExpression_0= ruleconditionalOrExpression ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? ) |
| // InternalSEW.g:1145:3: this_conditionalOrExpression_0= ruleconditionalOrExpression ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalExpressionAccess().getConditionalOrExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_24); |
| this_conditionalOrExpression_0=ruleconditionalOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_conditionalOrExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1156:3: ( () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) )? |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==34) ) { |
| alt37=1; |
| } |
| switch (alt37) { |
| case 1 : |
| // InternalSEW.g:1157:4: () ( (lv_operator_2_0= '?' ) ) ( (lv_operand_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand_5_0= ruleExpression ) ) |
| { |
| // InternalSEW.g:1157:4: () |
| // InternalSEW.g:1158:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getConditionalExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1167:4: ( (lv_operator_2_0= '?' ) ) |
| // InternalSEW.g:1168:5: (lv_operator_2_0= '?' ) |
| { |
| // InternalSEW.g:1168:5: (lv_operator_2_0= '?' ) |
| // InternalSEW.g:1169:6: lv_operator_2_0= '?' |
| { |
| lv_operator_2_0=(Token)match(input,34,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_0, grammarAccess.getConditionalExpressionAccess().getOperatorQuestionMarkKeyword_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getConditionalExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_0, "?"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1181:4: ( (lv_operand_3_0= ruleExpression ) ) |
| // InternalSEW.g:1182:5: (lv_operand_3_0= ruleExpression ) |
| { |
| // InternalSEW.g:1182:5: (lv_operand_3_0= ruleExpression ) |
| // InternalSEW.g:1183:6: lv_operand_3_0= ruleExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperandExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_25); |
| lv_operand_3_0=ruleExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.Expression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,31,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3()); |
| |
| } |
| // InternalSEW.g:1204:4: ( (lv_operand_5_0= ruleExpression ) ) |
| // InternalSEW.g:1205:5: (lv_operand_5_0= ruleExpression ) |
| { |
| // InternalSEW.g:1205:5: (lv_operand_5_0= ruleExpression ) |
| // InternalSEW.g:1206:6: lv_operand_5_0= ruleExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperandExpressionParserRuleCall_1_4_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_5_0=ruleExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_5_0, |
| "org.eclipse.efm.sew.xtext.SEW.Expression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleconditionalExpression" |
| |
| |
| // $ANTLR start "entryRuleconditionalOrExpression" |
| // InternalSEW.g:1228:1: entryRuleconditionalOrExpression returns [EObject current=null] : iv_ruleconditionalOrExpression= ruleconditionalOrExpression EOF ; |
| public final EObject entryRuleconditionalOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleconditionalOrExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1228:64: (iv_ruleconditionalOrExpression= ruleconditionalOrExpression EOF ) |
| // InternalSEW.g:1229:2: iv_ruleconditionalOrExpression= ruleconditionalOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getConditionalOrExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleconditionalOrExpression=ruleconditionalOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleconditionalOrExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleconditionalOrExpression" |
| |
| |
| // $ANTLR start "ruleconditionalOrExpression" |
| // InternalSEW.g:1235:1: ruleconditionalOrExpression returns [EObject current=null] : (this_conditionalAndExpression_0= ruleconditionalAndExpression ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? ) ; |
| public final EObject ruleconditionalOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_1=null; |
| Token lv_operator_2_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject this_conditionalAndExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1241:2: ( (this_conditionalAndExpression_0= ruleconditionalAndExpression ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? ) ) |
| // InternalSEW.g:1242:2: (this_conditionalAndExpression_0= ruleconditionalAndExpression ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? ) |
| { |
| // InternalSEW.g:1242:2: (this_conditionalAndExpression_0= ruleconditionalAndExpression ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? ) |
| // InternalSEW.g:1243:3: this_conditionalAndExpression_0= ruleconditionalAndExpression ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| this_conditionalAndExpression_0=ruleconditionalAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_conditionalAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1254:3: ( () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* )? |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( ((LA41_0>=35 && LA41_0<=36)) ) { |
| alt41=1; |
| } |
| switch (alt41) { |
| case 1 : |
| // InternalSEW.g:1255:4: () ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) ( (lv_operand_3_0= ruleconditionalAndExpression ) ) ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* |
| { |
| // InternalSEW.g:1255:4: () |
| // InternalSEW.g:1256:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getConditionalOrExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1265:4: ( ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) ) |
| // InternalSEW.g:1266:5: ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) |
| { |
| // InternalSEW.g:1266:5: ( (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) ) |
| // InternalSEW.g:1267:6: (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) |
| { |
| // InternalSEW.g:1267:6: (lv_operator_2_1= '||' | lv_operator_2_2= 'or' ) |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==35) ) { |
| alt38=1; |
| } |
| else if ( (LA38_0==36) ) { |
| alt38=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 38, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalSEW.g:1268:7: lv_operator_2_1= '||' |
| { |
| lv_operator_2_1=(Token)match(input,35,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_1, grammarAccess.getConditionalOrExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getConditionalOrExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1279:7: lv_operator_2_2= 'or' |
| { |
| lv_operator_2_2=(Token)match(input,36,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_2, grammarAccess.getConditionalOrExpressionAccess().getOperatorOrKeyword_1_1_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getConditionalOrExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1292:4: ( (lv_operand_3_0= ruleconditionalAndExpression ) ) |
| // InternalSEW.g:1293:5: (lv_operand_3_0= ruleconditionalAndExpression ) |
| { |
| // InternalSEW.g:1293:5: (lv_operand_3_0= ruleconditionalAndExpression ) |
| // InternalSEW.g:1294:6: lv_operand_3_0= ruleconditionalAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperandConditionalAndExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| lv_operand_3_0=ruleconditionalAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.conditionalAndExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1311:4: ( (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) )* |
| loop40: |
| do { |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( ((LA40_0>=35 && LA40_0<=36)) ) { |
| alt40=1; |
| } |
| |
| |
| switch (alt40) { |
| case 1 : |
| // InternalSEW.g:1312:5: (otherlv_4= '||' | otherlv_5= 'or' ) ( (lv_operand_6_0= ruleconditionalAndExpression ) ) |
| { |
| // InternalSEW.g:1312:5: (otherlv_4= '||' | otherlv_5= 'or' ) |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==35) ) { |
| alt39=1; |
| } |
| else if ( (LA39_0==36) ) { |
| alt39=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 39, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalSEW.g:1313:6: otherlv_4= '||' |
| { |
| otherlv_4=(Token)match(input,35,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getConditionalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_3_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1318:6: otherlv_5= 'or' |
| { |
| otherlv_5=(Token)match(input,36,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getConditionalOrExpressionAccess().getOrKeyword_1_3_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:1323:5: ( (lv_operand_6_0= ruleconditionalAndExpression ) ) |
| // InternalSEW.g:1324:6: (lv_operand_6_0= ruleconditionalAndExpression ) |
| { |
| // InternalSEW.g:1324:6: (lv_operand_6_0= ruleconditionalAndExpression ) |
| // InternalSEW.g:1325:7: lv_operand_6_0= ruleconditionalAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperandConditionalAndExpressionParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_26); |
| lv_operand_6_0=ruleconditionalAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_6_0, |
| "org.eclipse.efm.sew.xtext.SEW.conditionalAndExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop40; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleconditionalOrExpression" |
| |
| |
| // $ANTLR start "entryRuleconditionalAndExpression" |
| // InternalSEW.g:1348:1: entryRuleconditionalAndExpression returns [EObject current=null] : iv_ruleconditionalAndExpression= ruleconditionalAndExpression EOF ; |
| public final EObject entryRuleconditionalAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleconditionalAndExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1348:65: (iv_ruleconditionalAndExpression= ruleconditionalAndExpression EOF ) |
| // InternalSEW.g:1349:2: iv_ruleconditionalAndExpression= ruleconditionalAndExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getConditionalAndExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleconditionalAndExpression=ruleconditionalAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleconditionalAndExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleconditionalAndExpression" |
| |
| |
| // $ANTLR start "ruleconditionalAndExpression" |
| // InternalSEW.g:1355:1: ruleconditionalAndExpression returns [EObject current=null] : (this_equalityExpression_0= ruleequalityExpression ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? ) ; |
| public final EObject ruleconditionalAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_1=null; |
| Token lv_operator_2_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject this_equalityExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1361:2: ( (this_equalityExpression_0= ruleequalityExpression ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? ) ) |
| // InternalSEW.g:1362:2: (this_equalityExpression_0= ruleequalityExpression ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? ) |
| { |
| // InternalSEW.g:1362:2: (this_equalityExpression_0= ruleequalityExpression ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? ) |
| // InternalSEW.g:1363:3: this_equalityExpression_0= ruleequalityExpression ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_28); |
| this_equalityExpression_0=ruleequalityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_equalityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1374:3: ( () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( ((LA45_0>=37 && LA45_0<=38)) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalSEW.g:1375:4: () ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) ( (lv_operand_3_0= ruleequalityExpression ) ) ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* |
| { |
| // InternalSEW.g:1375:4: () |
| // InternalSEW.g:1376:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getConditionalAndExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1385:4: ( ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) ) |
| // InternalSEW.g:1386:5: ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) |
| { |
| // InternalSEW.g:1386:5: ( (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) ) |
| // InternalSEW.g:1387:6: (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) |
| { |
| // InternalSEW.g:1387:6: (lv_operator_2_1= '&&' | lv_operator_2_2= 'and' ) |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==37) ) { |
| alt42=1; |
| } |
| else if ( (LA42_0==38) ) { |
| alt42=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 42, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt42) { |
| case 1 : |
| // InternalSEW.g:1388:7: lv_operator_2_1= '&&' |
| { |
| lv_operator_2_1=(Token)match(input,37,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_1, grammarAccess.getConditionalAndExpressionAccess().getOperatorAmpersandAmpersandKeyword_1_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getConditionalAndExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1399:7: lv_operator_2_2= 'and' |
| { |
| lv_operator_2_2=(Token)match(input,38,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_2, grammarAccess.getConditionalAndExpressionAccess().getOperatorAndKeyword_1_1_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getConditionalAndExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1412:4: ( (lv_operand_3_0= ruleequalityExpression ) ) |
| // InternalSEW.g:1413:5: (lv_operand_3_0= ruleequalityExpression ) |
| { |
| // InternalSEW.g:1413:5: (lv_operand_3_0= ruleequalityExpression ) |
| // InternalSEW.g:1414:6: lv_operand_3_0= ruleequalityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperandEqualityExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_28); |
| lv_operand_3_0=ruleequalityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.equalityExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1431:4: ( (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) )* |
| loop44: |
| do { |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( ((LA44_0>=37 && LA44_0<=38)) ) { |
| alt44=1; |
| } |
| |
| |
| switch (alt44) { |
| case 1 : |
| // InternalSEW.g:1432:5: (otherlv_4= '&&' | otherlv_5= 'and' ) ( (lv_operand_6_0= ruleequalityExpression ) ) |
| { |
| // InternalSEW.g:1432:5: (otherlv_4= '&&' | otherlv_5= 'and' ) |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==37) ) { |
| alt43=1; |
| } |
| else if ( (LA43_0==38) ) { |
| alt43=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 43, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalSEW.g:1433:6: otherlv_4= '&&' |
| { |
| otherlv_4=(Token)match(input,37,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getConditionalAndExpressionAccess().getAmpersandAmpersandKeyword_1_3_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1438:6: otherlv_5= 'and' |
| { |
| otherlv_5=(Token)match(input,38,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getConditionalAndExpressionAccess().getAndKeyword_1_3_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:1443:5: ( (lv_operand_6_0= ruleequalityExpression ) ) |
| // InternalSEW.g:1444:6: (lv_operand_6_0= ruleequalityExpression ) |
| { |
| // InternalSEW.g:1444:6: (lv_operand_6_0= ruleequalityExpression ) |
| // InternalSEW.g:1445:7: lv_operand_6_0= ruleequalityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperandEqualityExpressionParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_28); |
| lv_operand_6_0=ruleequalityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_6_0, |
| "org.eclipse.efm.sew.xtext.SEW.equalityExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop44; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleconditionalAndExpression" |
| |
| |
| // $ANTLR start "entryRuleequalityExpression" |
| // InternalSEW.g:1468:1: entryRuleequalityExpression returns [EObject current=null] : iv_ruleequalityExpression= ruleequalityExpression EOF ; |
| public final EObject entryRuleequalityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleequalityExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1468:59: (iv_ruleequalityExpression= ruleequalityExpression EOF ) |
| // InternalSEW.g:1469:2: iv_ruleequalityExpression= ruleequalityExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEqualityExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleequalityExpression=ruleequalityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleequalityExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleequalityExpression" |
| |
| |
| // $ANTLR start "ruleequalityExpression" |
| // InternalSEW.g:1475:1: ruleequalityExpression returns [EObject current=null] : (this_relationalExpression_0= rulerelationalExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? ) ; |
| public final EObject ruleequalityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_1=null; |
| Token lv_operator_2_2=null; |
| Token lv_operator_2_3=null; |
| Token lv_operator_2_4=null; |
| Token lv_operator_2_5=null; |
| EObject this_relationalExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1481:2: ( (this_relationalExpression_0= rulerelationalExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? ) ) |
| // InternalSEW.g:1482:2: (this_relationalExpression_0= rulerelationalExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? ) |
| { |
| // InternalSEW.g:1482:2: (this_relationalExpression_0= rulerelationalExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? ) |
| // InternalSEW.g:1483:3: this_relationalExpression_0= rulerelationalExpression ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEqualityExpressionAccess().getRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_29); |
| this_relationalExpression_0=rulerelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_relationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1494:3: ( () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( ((LA47_0>=39 && LA47_0<=43)) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalSEW.g:1495:4: () ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) ( (lv_operand_3_0= rulerelationalExpression ) ) |
| { |
| // InternalSEW.g:1495:4: () |
| // InternalSEW.g:1496:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getEqualityExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1505:4: ( ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) ) |
| // InternalSEW.g:1506:5: ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) |
| { |
| // InternalSEW.g:1506:5: ( (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) ) |
| // InternalSEW.g:1507:6: (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) |
| { |
| // InternalSEW.g:1507:6: (lv_operator_2_1= '==' | lv_operator_2_2= '!=' | lv_operator_2_3= '===' | lv_operator_2_4= '=!=' | lv_operator_2_5= '=/=' ) |
| int alt46=5; |
| switch ( input.LA(1) ) { |
| case 39: |
| { |
| alt46=1; |
| } |
| break; |
| case 40: |
| { |
| alt46=2; |
| } |
| break; |
| case 41: |
| { |
| alt46=3; |
| } |
| break; |
| case 42: |
| { |
| alt46=4; |
| } |
| break; |
| case 43: |
| { |
| alt46=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt46) { |
| case 1 : |
| // InternalSEW.g:1508:7: lv_operator_2_1= '==' |
| { |
| lv_operator_2_1=(Token)match(input,39,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_1, grammarAccess.getEqualityExpressionAccess().getOperatorEqualsSignEqualsSignKeyword_1_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEqualityExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1519:7: lv_operator_2_2= '!=' |
| { |
| lv_operator_2_2=(Token)match(input,40,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_2, grammarAccess.getEqualityExpressionAccess().getOperatorExclamationMarkEqualsSignKeyword_1_1_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEqualityExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_2, null); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:1530:7: lv_operator_2_3= '===' |
| { |
| lv_operator_2_3=(Token)match(input,41,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_3, grammarAccess.getEqualityExpressionAccess().getOperatorEqualsSignEqualsSignEqualsSignKeyword_1_1_0_2()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEqualityExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_3, null); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:1541:7: lv_operator_2_4= '=!=' |
| { |
| lv_operator_2_4=(Token)match(input,42,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_4, grammarAccess.getEqualityExpressionAccess().getOperatorEqualsSignExclamationMarkEqualsSignKeyword_1_1_0_3()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEqualityExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_4, null); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSEW.g:1552:7: lv_operator_2_5= '=/=' |
| { |
| lv_operator_2_5=(Token)match(input,43,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_5, grammarAccess.getEqualityExpressionAccess().getOperatorEqualsSignSolidusEqualsSignKeyword_1_1_0_4()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEqualityExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_5, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1565:4: ( (lv_operand_3_0= rulerelationalExpression ) ) |
| // InternalSEW.g:1566:5: (lv_operand_3_0= rulerelationalExpression ) |
| { |
| // InternalSEW.g:1566:5: (lv_operand_3_0= rulerelationalExpression ) |
| // InternalSEW.g:1567:6: lv_operand_3_0= rulerelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperandRelationalExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_3_0=rulerelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEqualityExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.relationalExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleequalityExpression" |
| |
| |
| // $ANTLR start "entryRulerelationalExpression" |
| // InternalSEW.g:1589:1: entryRulerelationalExpression returns [EObject current=null] : iv_rulerelationalExpression= rulerelationalExpression EOF ; |
| public final EObject entryRulerelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulerelationalExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1589:61: (iv_rulerelationalExpression= rulerelationalExpression EOF ) |
| // InternalSEW.g:1590:2: iv_rulerelationalExpression= rulerelationalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getRelationalExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulerelationalExpression=rulerelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulerelationalExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulerelationalExpression" |
| |
| |
| // $ANTLR start "rulerelationalExpression" |
| // InternalSEW.g:1596:1: rulerelationalExpression returns [EObject current=null] : (this_additiveExpression_0= ruleadditiveExpression ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? ) ; |
| public final EObject rulerelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_1=null; |
| Token lv_operator_2_2=null; |
| Token lv_operator_2_3=null; |
| Token lv_operator_2_4=null; |
| EObject this_additiveExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1602:2: ( (this_additiveExpression_0= ruleadditiveExpression ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? ) ) |
| // InternalSEW.g:1603:2: (this_additiveExpression_0= ruleadditiveExpression ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? ) |
| { |
| // InternalSEW.g:1603:2: (this_additiveExpression_0= ruleadditiveExpression ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? ) |
| // InternalSEW.g:1604:3: this_additiveExpression_0= ruleadditiveExpression ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRelationalExpressionAccess().getAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_30); |
| this_additiveExpression_0=ruleadditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_additiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1615:3: ( () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) )? |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==20||(LA49_0>=44 && LA49_0<=46)) ) { |
| alt49=1; |
| } |
| switch (alt49) { |
| case 1 : |
| // InternalSEW.g:1616:4: () ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) ( (lv_operand_3_0= ruleadditiveExpression ) ) |
| { |
| // InternalSEW.g:1616:4: () |
| // InternalSEW.g:1617:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getRelationalExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1626:4: ( ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) ) |
| // InternalSEW.g:1627:5: ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) |
| { |
| // InternalSEW.g:1627:5: ( (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) ) |
| // InternalSEW.g:1628:6: (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) |
| { |
| // InternalSEW.g:1628:6: (lv_operator_2_1= '<' | lv_operator_2_2= '<=' | lv_operator_2_3= '>' | lv_operator_2_4= '>=' ) |
| int alt48=4; |
| switch ( input.LA(1) ) { |
| case 20: |
| { |
| alt48=1; |
| } |
| break; |
| case 44: |
| { |
| alt48=2; |
| } |
| break; |
| case 45: |
| { |
| alt48=3; |
| } |
| break; |
| case 46: |
| { |
| alt48=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt48) { |
| case 1 : |
| // InternalSEW.g:1629:7: lv_operator_2_1= '<' |
| { |
| lv_operator_2_1=(Token)match(input,20,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_1, grammarAccess.getRelationalExpressionAccess().getOperatorLessThanSignKeyword_1_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRelationalExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1640:7: lv_operator_2_2= '<=' |
| { |
| lv_operator_2_2=(Token)match(input,44,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_2, grammarAccess.getRelationalExpressionAccess().getOperatorLessThanSignEqualsSignKeyword_1_1_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRelationalExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_2, null); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:1651:7: lv_operator_2_3= '>' |
| { |
| lv_operator_2_3=(Token)match(input,45,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_3, grammarAccess.getRelationalExpressionAccess().getOperatorGreaterThanSignKeyword_1_1_0_2()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRelationalExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_3, null); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:1662:7: lv_operator_2_4= '>=' |
| { |
| lv_operator_2_4=(Token)match(input,46,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_4, grammarAccess.getRelationalExpressionAccess().getOperatorGreaterThanSignEqualsSignKeyword_1_1_0_3()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRelationalExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_4, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1675:4: ( (lv_operand_3_0= ruleadditiveExpression ) ) |
| // InternalSEW.g:1676:5: (lv_operand_3_0= ruleadditiveExpression ) |
| { |
| // InternalSEW.g:1676:5: (lv_operand_3_0= ruleadditiveExpression ) |
| // InternalSEW.g:1677:6: lv_operand_3_0= ruleadditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperandAdditiveExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_3_0=ruleadditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRelationalExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.additiveExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulerelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleadditiveExpression" |
| // InternalSEW.g:1699:1: entryRuleadditiveExpression returns [EObject current=null] : iv_ruleadditiveExpression= ruleadditiveExpression EOF ; |
| public final EObject entryRuleadditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleadditiveExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1699:59: (iv_ruleadditiveExpression= ruleadditiveExpression EOF ) |
| // InternalSEW.g:1700:2: iv_ruleadditiveExpression= ruleadditiveExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getAdditiveExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleadditiveExpression=ruleadditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleadditiveExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleadditiveExpression" |
| |
| |
| // $ANTLR start "ruleadditiveExpression" |
| // InternalSEW.g:1706:1: ruleadditiveExpression returns [EObject current=null] : (this_multiplicativeExpression_0= rulemultiplicativeExpression ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? ) ; |
| public final EObject ruleadditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_0=null; |
| Token otherlv_4=null; |
| EObject this_multiplicativeExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1712:2: ( (this_multiplicativeExpression_0= rulemultiplicativeExpression ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? ) ) |
| // InternalSEW.g:1713:2: (this_multiplicativeExpression_0= rulemultiplicativeExpression ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? ) |
| { |
| // InternalSEW.g:1713:2: (this_multiplicativeExpression_0= rulemultiplicativeExpression ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? ) |
| // InternalSEW.g:1714:3: this_multiplicativeExpression_0= rulemultiplicativeExpression ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_31); |
| this_multiplicativeExpression_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_multiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1725:3: ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )? |
| int alt51=2; |
| alt51 = dfa51.predict(input); |
| switch (alt51) { |
| case 1 : |
| // InternalSEW.g:1726:4: () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* |
| { |
| // InternalSEW.g:1726:4: () |
| // InternalSEW.g:1727:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getAdditiveExpressionAccess().getExpressionOperandAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1736:4: ( (lv_operator_2_0= '+' ) ) |
| // InternalSEW.g:1737:5: (lv_operator_2_0= '+' ) |
| { |
| // InternalSEW.g:1737:5: (lv_operator_2_0= '+' ) |
| // InternalSEW.g:1738:6: lv_operator_2_0= '+' |
| { |
| lv_operator_2_0=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_0, grammarAccess.getAdditiveExpressionAccess().getOperatorPlusSignKeyword_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAdditiveExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_0, "+"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1750:4: ( (lv_operand_3_0= rulemultiplicativeExpression ) ) |
| // InternalSEW.g:1751:5: (lv_operand_3_0= rulemultiplicativeExpression ) |
| { |
| // InternalSEW.g:1751:5: (lv_operand_3_0= rulemultiplicativeExpression ) |
| // InternalSEW.g:1752:6: lv_operand_3_0= rulemultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperandMultiplicativeExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_31); |
| lv_operand_3_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.multiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1769:4: (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* |
| loop50: |
| do { |
| int alt50=2; |
| alt50 = dfa50.predict(input); |
| switch (alt50) { |
| case 1 : |
| // InternalSEW.g:1770:5: otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| { |
| otherlv_4=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getAdditiveExpressionAccess().getPlusSignKeyword_1_3_0()); |
| |
| } |
| // InternalSEW.g:1774:5: ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| { |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| // InternalSEW.g:1776:7: lv_operand_5_0= rulemultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperandMultiplicativeExpressionParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_31); |
| lv_operand_5_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_5_0, |
| "org.eclipse.efm.sew.xtext.SEW.multiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop50; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleadditiveExpression" |
| |
| |
| // $ANTLR start "entryRulemultiplicativeExpression" |
| // InternalSEW.g:1799:1: entryRulemultiplicativeExpression returns [EObject current=null] : iv_rulemultiplicativeExpression= rulemultiplicativeExpression EOF ; |
| public final EObject entryRulemultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulemultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:1799:65: (iv_rulemultiplicativeExpression= rulemultiplicativeExpression EOF ) |
| // InternalSEW.g:1800:2: iv_rulemultiplicativeExpression= rulemultiplicativeExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_rulemultiplicativeExpression=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulemultiplicativeExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulemultiplicativeExpression" |
| |
| |
| // $ANTLR start "rulemultiplicativeExpression" |
| // InternalSEW.g:1806:1: rulemultiplicativeExpression returns [EObject current=null] : (this_primaryExpression_0= ruleprimaryExpression ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? ) ; |
| public final EObject rulemultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_operator_2_0=null; |
| Token otherlv_4=null; |
| Token lv_operator_7_0=null; |
| Token otherlv_9=null; |
| Token lv_operator_12_0=null; |
| Token otherlv_14=null; |
| Token lv_operator_17_0=null; |
| Token otherlv_19=null; |
| EObject this_primaryExpression_0 = null; |
| |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_5_0 = null; |
| |
| EObject lv_operand_8_0 = null; |
| |
| EObject lv_operand_10_0 = null; |
| |
| EObject lv_operand_13_0 = null; |
| |
| EObject lv_operand_15_0 = null; |
| |
| EObject lv_operand_18_0 = null; |
| |
| EObject lv_operand_20_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:1812:2: ( (this_primaryExpression_0= ruleprimaryExpression ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? ) ) |
| // InternalSEW.g:1813:2: (this_primaryExpression_0= ruleprimaryExpression ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? ) |
| { |
| // InternalSEW.g:1813:2: (this_primaryExpression_0= ruleprimaryExpression ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? ) |
| // InternalSEW.g:1814:3: this_primaryExpression_0= ruleprimaryExpression ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getPrimaryExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_32); |
| this_primaryExpression_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_primaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSEW.g:1825:3: ( ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) | ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) )? |
| int alt56=5; |
| switch ( input.LA(1) ) { |
| case 48: |
| { |
| alt56=1; |
| } |
| break; |
| case 49: |
| { |
| alt56=2; |
| } |
| break; |
| case 50: |
| { |
| alt56=3; |
| } |
| break; |
| case 51: |
| { |
| alt56=4; |
| } |
| break; |
| } |
| |
| switch (alt56) { |
| case 1 : |
| // InternalSEW.g:1826:4: ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) |
| { |
| // InternalSEW.g:1826:4: ( () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* ) |
| // InternalSEW.g:1827:5: () ( (lv_operator_2_0= '*' ) ) ( (lv_operand_3_0= ruleprimaryExpression ) ) (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* |
| { |
| // InternalSEW.g:1827:5: () |
| // InternalSEW.g:1828:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getMultiplicativeExpressionAccess().getExpressionOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1837:5: ( (lv_operator_2_0= '*' ) ) |
| // InternalSEW.g:1838:6: (lv_operator_2_0= '*' ) |
| { |
| // InternalSEW.g:1838:6: (lv_operator_2_0= '*' ) |
| // InternalSEW.g:1839:7: lv_operator_2_0= '*' |
| { |
| lv_operator_2_0=(Token)match(input,48,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_0, grammarAccess.getMultiplicativeExpressionAccess().getOperatorAsteriskKeyword_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_0, "*"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1851:5: ( (lv_operand_3_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:1852:6: (lv_operand_3_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:1852:6: (lv_operand_3_0= ruleprimaryExpression ) |
| // InternalSEW.g:1853:7: lv_operand_3_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_33); |
| lv_operand_3_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1870:5: (otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) )* |
| loop52: |
| do { |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==48) ) { |
| alt52=1; |
| } |
| |
| |
| switch (alt52) { |
| case 1 : |
| // InternalSEW.g:1871:6: otherlv_4= '*' ( (lv_operand_5_0= ruleprimaryExpression ) ) |
| { |
| otherlv_4=(Token)match(input,48,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getMultiplicativeExpressionAccess().getAsteriskKeyword_1_0_3_0()); |
| |
| } |
| // InternalSEW.g:1875:6: ( (lv_operand_5_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:1876:7: (lv_operand_5_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:1876:7: (lv_operand_5_0= ruleprimaryExpression ) |
| // InternalSEW.g:1877:8: lv_operand_5_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_0_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_33); |
| lv_operand_5_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_5_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop52; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:1897:4: ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) |
| { |
| // InternalSEW.g:1897:4: ( () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* ) |
| // InternalSEW.g:1898:5: () ( (lv_operator_7_0= '**' ) ) ( (lv_operand_8_0= ruleprimaryExpression ) ) (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* |
| { |
| // InternalSEW.g:1898:5: () |
| // InternalSEW.g:1899:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getMultiplicativeExpressionAccess().getExpressionOperandAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1908:5: ( (lv_operator_7_0= '**' ) ) |
| // InternalSEW.g:1909:6: (lv_operator_7_0= '**' ) |
| { |
| // InternalSEW.g:1909:6: (lv_operator_7_0= '**' ) |
| // InternalSEW.g:1910:7: lv_operator_7_0= '**' |
| { |
| lv_operator_7_0=(Token)match(input,49,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_7_0, grammarAccess.getMultiplicativeExpressionAccess().getOperatorAsteriskAsteriskKeyword_1_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_7_0, "**"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1922:5: ( (lv_operand_8_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:1923:6: (lv_operand_8_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:1923:6: (lv_operand_8_0= ruleprimaryExpression ) |
| // InternalSEW.g:1924:7: lv_operand_8_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_34); |
| lv_operand_8_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_8_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1941:5: (otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) )* |
| loop53: |
| do { |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==49) ) { |
| alt53=1; |
| } |
| |
| |
| switch (alt53) { |
| case 1 : |
| // InternalSEW.g:1942:6: otherlv_9= '**' ( (lv_operand_10_0= ruleprimaryExpression ) ) |
| { |
| otherlv_9=(Token)match(input,49,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getMultiplicativeExpressionAccess().getAsteriskAsteriskKeyword_1_1_3_0()); |
| |
| } |
| // InternalSEW.g:1946:6: ( (lv_operand_10_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:1947:7: (lv_operand_10_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:1947:7: (lv_operand_10_0= ruleprimaryExpression ) |
| // InternalSEW.g:1948:8: lv_operand_10_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_34); |
| lv_operand_10_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_10_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop53; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:1968:4: ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) |
| { |
| // InternalSEW.g:1968:4: ( () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* ) |
| // InternalSEW.g:1969:5: () ( (lv_operator_12_0= '/' ) ) ( (lv_operand_13_0= ruleprimaryExpression ) ) (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* |
| { |
| // InternalSEW.g:1969:5: () |
| // InternalSEW.g:1970:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getMultiplicativeExpressionAccess().getExpressionOperandAction_1_2_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1979:5: ( (lv_operator_12_0= '/' ) ) |
| // InternalSEW.g:1980:6: (lv_operator_12_0= '/' ) |
| { |
| // InternalSEW.g:1980:6: (lv_operator_12_0= '/' ) |
| // InternalSEW.g:1981:7: lv_operator_12_0= '/' |
| { |
| lv_operator_12_0=(Token)match(input,50,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_12_0, grammarAccess.getMultiplicativeExpressionAccess().getOperatorSolidusKeyword_1_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_12_0, "/"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1993:5: ( (lv_operand_13_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:1994:6: (lv_operand_13_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:1994:6: (lv_operand_13_0= ruleprimaryExpression ) |
| // InternalSEW.g:1995:7: lv_operand_13_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_2_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_operand_13_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_13_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2012:5: (otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) )* |
| loop54: |
| do { |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==50) ) { |
| alt54=1; |
| } |
| |
| |
| switch (alt54) { |
| case 1 : |
| // InternalSEW.g:2013:6: otherlv_14= '/' ( (lv_operand_15_0= ruleprimaryExpression ) ) |
| { |
| otherlv_14=(Token)match(input,50,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getMultiplicativeExpressionAccess().getSolidusKeyword_1_2_3_0()); |
| |
| } |
| // InternalSEW.g:2017:6: ( (lv_operand_15_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2018:7: (lv_operand_15_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2018:7: (lv_operand_15_0= ruleprimaryExpression ) |
| // InternalSEW.g:2019:8: lv_operand_15_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_2_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_35); |
| lv_operand_15_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_15_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop54; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:2039:4: ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) |
| { |
| // InternalSEW.g:2039:4: ( () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* ) |
| // InternalSEW.g:2040:5: () ( (lv_operator_17_0= '%' ) ) ( (lv_operand_18_0= ruleprimaryExpression ) ) (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* |
| { |
| // InternalSEW.g:2040:5: () |
| // InternalSEW.g:2041:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getMultiplicativeExpressionAccess().getExpressionOperandAction_1_3_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:2050:5: ( (lv_operator_17_0= '%' ) ) |
| // InternalSEW.g:2051:6: (lv_operator_17_0= '%' ) |
| { |
| // InternalSEW.g:2051:6: (lv_operator_17_0= '%' ) |
| // InternalSEW.g:2052:7: lv_operator_17_0= '%' |
| { |
| lv_operator_17_0=(Token)match(input,51,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_17_0, grammarAccess.getMultiplicativeExpressionAccess().getOperatorPercentSignKeyword_1_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_17_0, "%"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2064:5: ( (lv_operand_18_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2065:6: (lv_operand_18_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2065:6: (lv_operand_18_0= ruleprimaryExpression ) |
| // InternalSEW.g:2066:7: lv_operand_18_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_3_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_36); |
| lv_operand_18_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_18_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2083:5: (otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) )* |
| loop55: |
| do { |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==51) ) { |
| alt55=1; |
| } |
| |
| |
| switch (alt55) { |
| case 1 : |
| // InternalSEW.g:2084:6: otherlv_19= '%' ( (lv_operand_20_0= ruleprimaryExpression ) ) |
| { |
| otherlv_19=(Token)match(input,51,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getMultiplicativeExpressionAccess().getPercentSignKeyword_1_3_3_0()); |
| |
| } |
| // InternalSEW.g:2088:6: ( (lv_operand_20_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2089:7: (lv_operand_20_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2089:7: (lv_operand_20_0= ruleprimaryExpression ) |
| // InternalSEW.g:2090:8: lv_operand_20_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_3_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_36); |
| lv_operand_20_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_20_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop55; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulemultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleprimaryExpression" |
| // InternalSEW.g:2114:1: entryRuleprimaryExpression returns [EObject current=null] : iv_ruleprimaryExpression= ruleprimaryExpression EOF ; |
| public final EObject entryRuleprimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleprimaryExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:2114:58: (iv_ruleprimaryExpression= ruleprimaryExpression EOF ) |
| // InternalSEW.g:2115:2: iv_ruleprimaryExpression= ruleprimaryExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPrimaryExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleprimaryExpression=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleprimaryExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleprimaryExpression" |
| |
| |
| // $ANTLR start "ruleprimaryExpression" |
| // InternalSEW.g:2121:1: ruleprimaryExpression returns [EObject current=null] : ( (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) | ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) | ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) | (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) | this_LiteralExpression_11= ruleLiteralExpression ) ; |
| public final EObject ruleprimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_operator_3_0=null; |
| Token lv_operator_6_1=null; |
| Token lv_operator_6_2=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| EObject this_primaryExpression_1 = null; |
| |
| EObject lv_operand_4_0 = null; |
| |
| EObject lv_operand_7_0 = null; |
| |
| EObject this_Expression_9 = null; |
| |
| EObject this_LiteralExpression_11 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2127:2: ( ( (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) | ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) | ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) | (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) | this_LiteralExpression_11= ruleLiteralExpression ) ) |
| // InternalSEW.g:2128:2: ( (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) | ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) | ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) | (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) | this_LiteralExpression_11= ruleLiteralExpression ) |
| { |
| // InternalSEW.g:2128:2: ( (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) | ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) | ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) | (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) | this_LiteralExpression_11= ruleLiteralExpression ) |
| int alt58=5; |
| switch ( input.LA(1) ) { |
| case 47: |
| { |
| alt58=1; |
| } |
| break; |
| case 52: |
| { |
| int LA58_2 = input.LA(2); |
| |
| if ( (synpred70_InternalSEW()) ) { |
| alt58=2; |
| } |
| else if ( (true) ) { |
| alt58=5; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 58, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 53: |
| case 54: |
| { |
| alt58=3; |
| } |
| break; |
| case 55: |
| { |
| alt58=4; |
| } |
| break; |
| case RULE_XIDENDIFIER: |
| case RULE_CHARACTER: |
| case RULE_INT: |
| case RULE_STRING: |
| case 14: |
| case 21: |
| case 26: |
| case 29: |
| case 57: |
| case 58: |
| case 59: |
| case 60: |
| case 61: |
| case 62: |
| case 63: |
| case 64: |
| case 65: |
| case 66: |
| case 67: |
| case 68: |
| case 69: |
| case 70: |
| case 71: |
| case 72: |
| case 73: |
| case 74: |
| case 75: |
| { |
| alt58=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 58, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt58) { |
| case 1 : |
| // InternalSEW.g:2129:3: (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2129:3: (otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression ) |
| // InternalSEW.g:2130:4: otherlv_0= '+' this_primaryExpression_1= ruleprimaryExpression |
| { |
| otherlv_0=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPrimaryExpressionAccess().getPlusSignKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getPrimaryExpressionParserRuleCall_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_primaryExpression_1=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_primaryExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:2147:3: ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) |
| { |
| // InternalSEW.g:2147:3: ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) |
| // InternalSEW.g:2148:4: () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) |
| { |
| // InternalSEW.g:2148:4: () |
| // InternalSEW.g:2149:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPrimaryExpressionAccess().getExpressionAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:2158:4: ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) |
| // InternalSEW.g:2159:5: ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) |
| { |
| // InternalSEW.g:2159:5: ( (lv_operator_3_0= '-' ) ) |
| // InternalSEW.g:2160:6: (lv_operator_3_0= '-' ) |
| { |
| // InternalSEW.g:2160:6: (lv_operator_3_0= '-' ) |
| // InternalSEW.g:2161:7: lv_operator_3_0= '-' |
| { |
| lv_operator_3_0=(Token)match(input,52,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_3_0, grammarAccess.getPrimaryExpressionAccess().getOperatorHyphenMinusKeyword_1_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPrimaryExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_3_0, "-"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2173:5: ( (lv_operand_4_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2174:6: (lv_operand_4_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2174:6: (lv_operand_4_0= ruleprimaryExpression ) |
| // InternalSEW.g:2175:7: lv_operand_4_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_4_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_4_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:2195:3: ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) |
| { |
| // InternalSEW.g:2195:3: ( () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) ) |
| // InternalSEW.g:2196:4: () ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) |
| { |
| // InternalSEW.g:2196:4: () |
| // InternalSEW.g:2197:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPrimaryExpressionAccess().getExpressionAction_2_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:2206:4: ( ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) ) |
| // InternalSEW.g:2207:5: ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) ( (lv_operand_7_0= ruleprimaryExpression ) ) |
| { |
| // InternalSEW.g:2207:5: ( ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) ) |
| // InternalSEW.g:2208:6: ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) |
| { |
| // InternalSEW.g:2208:6: ( (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) ) |
| // InternalSEW.g:2209:7: (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) |
| { |
| // InternalSEW.g:2209:7: (lv_operator_6_1= '!' | lv_operator_6_2= 'not' ) |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==53) ) { |
| alt57=1; |
| } |
| else if ( (LA57_0==54) ) { |
| alt57=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalSEW.g:2210:8: lv_operator_6_1= '!' |
| { |
| lv_operator_6_1=(Token)match(input,53,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_6_1, grammarAccess.getPrimaryExpressionAccess().getOperatorExclamationMarkKeyword_2_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPrimaryExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_6_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:2221:8: lv_operator_6_2= 'not' |
| { |
| lv_operator_6_2=(Token)match(input,54,FollowSets000.FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_6_2, grammarAccess.getPrimaryExpressionAccess().getOperatorNotKeyword_2_1_0_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPrimaryExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_6_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2234:5: ( (lv_operand_7_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2235:6: (lv_operand_7_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2235:6: (lv_operand_7_0= ruleprimaryExpression ) |
| // InternalSEW.g:2236:7: lv_operand_7_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperandPrimaryExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_7_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_7_0, |
| "org.eclipse.efm.sew.xtext.SEW.primaryExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:2256:3: (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) |
| { |
| // InternalSEW.g:2256:3: (otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' ) |
| // InternalSEW.g:2257:4: otherlv_8= '(' this_Expression_9= ruleExpression otherlv_10= ')' |
| { |
| otherlv_8=(Token)match(input,55,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getExpressionParserRuleCall_3_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_37); |
| this_Expression_9=ruleExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_Expression_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_10=(Token)match(input,56,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPrimaryExpressionAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalSEW.g:2278:3: this_LiteralExpression_11= ruleLiteralExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getLiteralExpressionParserRuleCall_4()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralExpression_11=ruleLiteralExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralExpression_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleprimaryExpression" |
| |
| |
| // $ANTLR start "entryRuleLiteralExpression" |
| // InternalSEW.g:2293:1: entryRuleLiteralExpression returns [EObject current=null] : iv_ruleLiteralExpression= ruleLiteralExpression EOF ; |
| public final EObject entryRuleLiteralExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:2293:58: (iv_ruleLiteralExpression= ruleLiteralExpression EOF ) |
| // InternalSEW.g:2294:2: iv_ruleLiteralExpression= ruleLiteralExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralExpression=ruleLiteralExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralExpression" |
| |
| |
| // $ANTLR start "ruleLiteralExpression" |
| // InternalSEW.g:2300:1: ruleLiteralExpression returns [EObject current=null] : (this_LiteralBooleanValue_0= ruleLiteralBooleanValue | this_LiteralCharacterValue_1= ruleLiteralCharacterValue | this_LiteralIntegerValue_2= ruleLiteralIntegerValue | this_LiteralRationalValue_3= ruleLiteralRationalValue | this_LiteralFloatValue_4= ruleLiteralFloatValue | this_LiteralStringValue_5= ruleLiteralStringValue | this_LiteralNullValue_6= ruleLiteralNullValue | this_LiteralArrayValue_7= ruleLiteralArrayValue | this_LiteralObjectReference_8= ruleLiteralObjectReference | this_LiteralVariableReference_9= ruleLiteralVariableReference | this_LiteralInstanceReference_10= ruleLiteralInstanceReference ) ; |
| public final EObject ruleLiteralExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_LiteralBooleanValue_0 = null; |
| |
| EObject this_LiteralCharacterValue_1 = null; |
| |
| EObject this_LiteralIntegerValue_2 = null; |
| |
| EObject this_LiteralRationalValue_3 = null; |
| |
| EObject this_LiteralFloatValue_4 = null; |
| |
| EObject this_LiteralStringValue_5 = null; |
| |
| EObject this_LiteralNullValue_6 = null; |
| |
| EObject this_LiteralArrayValue_7 = null; |
| |
| EObject this_LiteralObjectReference_8 = null; |
| |
| EObject this_LiteralVariableReference_9 = null; |
| |
| EObject this_LiteralInstanceReference_10 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2306:2: ( (this_LiteralBooleanValue_0= ruleLiteralBooleanValue | this_LiteralCharacterValue_1= ruleLiteralCharacterValue | this_LiteralIntegerValue_2= ruleLiteralIntegerValue | this_LiteralRationalValue_3= ruleLiteralRationalValue | this_LiteralFloatValue_4= ruleLiteralFloatValue | this_LiteralStringValue_5= ruleLiteralStringValue | this_LiteralNullValue_6= ruleLiteralNullValue | this_LiteralArrayValue_7= ruleLiteralArrayValue | this_LiteralObjectReference_8= ruleLiteralObjectReference | this_LiteralVariableReference_9= ruleLiteralVariableReference | this_LiteralInstanceReference_10= ruleLiteralInstanceReference ) ) |
| // InternalSEW.g:2307:2: (this_LiteralBooleanValue_0= ruleLiteralBooleanValue | this_LiteralCharacterValue_1= ruleLiteralCharacterValue | this_LiteralIntegerValue_2= ruleLiteralIntegerValue | this_LiteralRationalValue_3= ruleLiteralRationalValue | this_LiteralFloatValue_4= ruleLiteralFloatValue | this_LiteralStringValue_5= ruleLiteralStringValue | this_LiteralNullValue_6= ruleLiteralNullValue | this_LiteralArrayValue_7= ruleLiteralArrayValue | this_LiteralObjectReference_8= ruleLiteralObjectReference | this_LiteralVariableReference_9= ruleLiteralVariableReference | this_LiteralInstanceReference_10= ruleLiteralInstanceReference ) |
| { |
| // InternalSEW.g:2307:2: (this_LiteralBooleanValue_0= ruleLiteralBooleanValue | this_LiteralCharacterValue_1= ruleLiteralCharacterValue | this_LiteralIntegerValue_2= ruleLiteralIntegerValue | this_LiteralRationalValue_3= ruleLiteralRationalValue | this_LiteralFloatValue_4= ruleLiteralFloatValue | this_LiteralStringValue_5= ruleLiteralStringValue | this_LiteralNullValue_6= ruleLiteralNullValue | this_LiteralArrayValue_7= ruleLiteralArrayValue | this_LiteralObjectReference_8= ruleLiteralObjectReference | this_LiteralVariableReference_9= ruleLiteralVariableReference | this_LiteralInstanceReference_10= ruleLiteralInstanceReference ) |
| int alt59=11; |
| alt59 = dfa59.predict(input); |
| switch (alt59) { |
| case 1 : |
| // InternalSEW.g:2308:3: this_LiteralBooleanValue_0= ruleLiteralBooleanValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralBooleanValueParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralBooleanValue_0=ruleLiteralBooleanValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralBooleanValue_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:2320:3: this_LiteralCharacterValue_1= ruleLiteralCharacterValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralCharacterValueParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralCharacterValue_1=ruleLiteralCharacterValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralCharacterValue_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:2332:3: this_LiteralIntegerValue_2= ruleLiteralIntegerValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralIntegerValueParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralIntegerValue_2=ruleLiteralIntegerValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralIntegerValue_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:2344:3: this_LiteralRationalValue_3= ruleLiteralRationalValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralRationalValueParserRuleCall_3()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralRationalValue_3=ruleLiteralRationalValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralRationalValue_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSEW.g:2356:3: this_LiteralFloatValue_4= ruleLiteralFloatValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralFloatValueParserRuleCall_4()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralFloatValue_4=ruleLiteralFloatValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralFloatValue_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalSEW.g:2368:3: this_LiteralStringValue_5= ruleLiteralStringValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralStringValueParserRuleCall_5()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralStringValue_5=ruleLiteralStringValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralStringValue_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalSEW.g:2380:3: this_LiteralNullValue_6= ruleLiteralNullValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralNullValueParserRuleCall_6()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralNullValue_6=ruleLiteralNullValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralNullValue_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalSEW.g:2392:3: this_LiteralArrayValue_7= ruleLiteralArrayValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralArrayValueParserRuleCall_7()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralArrayValue_7=ruleLiteralArrayValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralArrayValue_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalSEW.g:2404:3: this_LiteralObjectReference_8= ruleLiteralObjectReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralObjectReferenceParserRuleCall_8()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralObjectReference_8=ruleLiteralObjectReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralObjectReference_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalSEW.g:2416:3: this_LiteralVariableReference_9= ruleLiteralVariableReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralVariableReferenceParserRuleCall_9()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralVariableReference_9=ruleLiteralVariableReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralVariableReference_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalSEW.g:2428:3: this_LiteralInstanceReference_10= ruleLiteralInstanceReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLiteralInstanceReferenceParserRuleCall_10()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralInstanceReference_10=ruleLiteralInstanceReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralInstanceReference_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralExpression" |
| |
| |
| // $ANTLR start "entryRuleLiteralArrayValue" |
| // InternalSEW.g:2443:1: entryRuleLiteralArrayValue returns [EObject current=null] : iv_ruleLiteralArrayValue= ruleLiteralArrayValue EOF ; |
| public final EObject entryRuleLiteralArrayValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralArrayValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2443:58: (iv_ruleLiteralArrayValue= ruleLiteralArrayValue EOF ) |
| // InternalSEW.g:2444:2: iv_ruleLiteralArrayValue= ruleLiteralArrayValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralArrayValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralArrayValue=ruleLiteralArrayValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralArrayValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralArrayValue" |
| |
| |
| // $ANTLR start "ruleLiteralArrayValue" |
| // InternalSEW.g:2450:1: ruleLiteralArrayValue returns [EObject current=null] : ( () otherlv_1= '[' ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? otherlv_5= ']' ) ; |
| public final EObject ruleLiteralArrayValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_values_2_0 = null; |
| |
| EObject lv_values_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2456:2: ( ( () otherlv_1= '[' ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? otherlv_5= ']' ) ) |
| // InternalSEW.g:2457:2: ( () otherlv_1= '[' ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? otherlv_5= ']' ) |
| { |
| // InternalSEW.g:2457:2: ( () otherlv_1= '[' ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? otherlv_5= ']' ) |
| // InternalSEW.g:2458:3: () otherlv_1= '[' ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? otherlv_5= ']' |
| { |
| // InternalSEW.g:2458:3: () |
| // InternalSEW.g:2459:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralArrayValueAccess().getLiteralArrayValueAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FollowSets000.FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getLiteralArrayValueAccess().getLeftSquareBracketKeyword_1()); |
| |
| } |
| // InternalSEW.g:2472:3: ( ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* )? |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( ((LA61_0>=RULE_XIDENDIFIER && LA61_0<=RULE_STRING)||LA61_0==14||LA61_0==21||LA61_0==26||LA61_0==29||LA61_0==47||(LA61_0>=52 && LA61_0<=55)||(LA61_0>=57 && LA61_0<=75)||LA61_0==78) ) { |
| alt61=1; |
| } |
| switch (alt61) { |
| case 1 : |
| // InternalSEW.g:2473:4: ( (lv_values_2_0= ruleValueSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* |
| { |
| // InternalSEW.g:2473:4: ( (lv_values_2_0= ruleValueSpecification ) ) |
| // InternalSEW.g:2474:5: (lv_values_2_0= ruleValueSpecification ) |
| { |
| // InternalSEW.g:2474:5: (lv_values_2_0= ruleValueSpecification ) |
| // InternalSEW.g:2475:6: lv_values_2_0= ruleValueSpecification |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralArrayValueAccess().getValuesValueSpecificationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_39); |
| lv_values_2_0=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralArrayValueRule()); |
| } |
| add( |
| current, |
| "values", |
| lv_values_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.ValueSpecification"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2492:4: (otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) )* |
| loop60: |
| do { |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==22) ) { |
| alt60=1; |
| } |
| |
| |
| switch (alt60) { |
| case 1 : |
| // InternalSEW.g:2493:5: otherlv_3= ',' ( (lv_values_4_0= ruleValueSpecification ) ) |
| { |
| otherlv_3=(Token)match(input,22,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getLiteralArrayValueAccess().getCommaKeyword_2_1_0()); |
| |
| } |
| // InternalSEW.g:2497:5: ( (lv_values_4_0= ruleValueSpecification ) ) |
| // InternalSEW.g:2498:6: (lv_values_4_0= ruleValueSpecification ) |
| { |
| // InternalSEW.g:2498:6: (lv_values_4_0= ruleValueSpecification ) |
| // InternalSEW.g:2499:7: lv_values_4_0= ruleValueSpecification |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralArrayValueAccess().getValuesValueSpecificationParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_39); |
| lv_values_4_0=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralArrayValueRule()); |
| } |
| add( |
| current, |
| "values", |
| lv_values_4_0, |
| "org.eclipse.efm.sew.xtext.SEW.ValueSpecification"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop60; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,30,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getLiteralArrayValueAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralArrayValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralObjectReference" |
| // InternalSEW.g:2526:1: entryRuleLiteralObjectReference returns [EObject current=null] : iv_ruleLiteralObjectReference= ruleLiteralObjectReference EOF ; |
| public final EObject entryRuleLiteralObjectReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralObjectReference = null; |
| |
| |
| try { |
| // InternalSEW.g:2526:63: (iv_ruleLiteralObjectReference= ruleLiteralObjectReference EOF ) |
| // InternalSEW.g:2527:2: iv_ruleLiteralObjectReference= ruleLiteralObjectReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralObjectReferenceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralObjectReference=ruleLiteralObjectReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralObjectReference; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralObjectReference" |
| |
| |
| // $ANTLR start "ruleLiteralObjectReference" |
| // InternalSEW.g:2533:1: ruleLiteralObjectReference returns [EObject current=null] : ( (otherlv_0= '&' )? ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) ) ; |
| public final EObject ruleLiteralObjectReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| AntlrDatatypeRuleToken lv_symbol_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2539:2: ( ( (otherlv_0= '&' )? ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) ) ) |
| // InternalSEW.g:2540:2: ( (otherlv_0= '&' )? ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) ) |
| { |
| // InternalSEW.g:2540:2: ( (otherlv_0= '&' )? ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) ) |
| // InternalSEW.g:2541:3: (otherlv_0= '&' )? ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) |
| { |
| // InternalSEW.g:2541:3: (otherlv_0= '&' )? |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==57) ) { |
| alt62=1; |
| } |
| switch (alt62) { |
| case 1 : |
| // InternalSEW.g:2542:4: otherlv_0= '&' |
| { |
| otherlv_0=(Token)match(input,57,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getLiteralObjectReferenceAccess().getAmpersandKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:2547:3: ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) ) |
| int alt63=2; |
| alt63 = dfa63.predict(input); |
| switch (alt63) { |
| case 1 : |
| // InternalSEW.g:2548:4: ( ( ruleUFI ) ) |
| { |
| // InternalSEW.g:2548:4: ( ( ruleUFI ) ) |
| // InternalSEW.g:2549:5: ( ruleUFI ) |
| { |
| // InternalSEW.g:2549:5: ( ruleUFI ) |
| // InternalSEW.g:2550:6: ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralObjectReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralObjectReferenceAccess().getObjectWObjectCrossReference_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:2568:4: ( (lv_symbol_2_0= ruleUFI ) ) |
| { |
| // InternalSEW.g:2568:4: ( (lv_symbol_2_0= ruleUFI ) ) |
| // InternalSEW.g:2569:5: (lv_symbol_2_0= ruleUFI ) |
| { |
| // InternalSEW.g:2569:5: (lv_symbol_2_0= ruleUFI ) |
| // InternalSEW.g:2570:6: lv_symbol_2_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralObjectReferenceAccess().getSymbolUFIParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_symbol_2_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralObjectReferenceRule()); |
| } |
| set( |
| current, |
| "symbol", |
| lv_symbol_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralObjectReference" |
| |
| |
| // $ANTLR start "entryRuleLiteralBooleanValue" |
| // InternalSEW.g:2592:1: entryRuleLiteralBooleanValue returns [EObject current=null] : iv_ruleLiteralBooleanValue= ruleLiteralBooleanValue EOF ; |
| public final EObject entryRuleLiteralBooleanValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralBooleanValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2592:60: (iv_ruleLiteralBooleanValue= ruleLiteralBooleanValue EOF ) |
| // InternalSEW.g:2593:2: iv_ruleLiteralBooleanValue= ruleLiteralBooleanValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralBooleanValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralBooleanValue=ruleLiteralBooleanValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralBooleanValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralBooleanValue" |
| |
| |
| // $ANTLR start "ruleLiteralBooleanValue" |
| // InternalSEW.g:2599:1: ruleLiteralBooleanValue returns [EObject current=null] : ( (lv_value_0_0= ruleEBoolean ) ) ; |
| public final EObject ruleLiteralBooleanValue() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2605:2: ( ( (lv_value_0_0= ruleEBoolean ) ) ) |
| // InternalSEW.g:2606:2: ( (lv_value_0_0= ruleEBoolean ) ) |
| { |
| // InternalSEW.g:2606:2: ( (lv_value_0_0= ruleEBoolean ) ) |
| // InternalSEW.g:2607:3: (lv_value_0_0= ruleEBoolean ) |
| { |
| // InternalSEW.g:2607:3: (lv_value_0_0= ruleEBoolean ) |
| // InternalSEW.g:2608:4: lv_value_0_0= ruleEBoolean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralBooleanValueAccess().getValueEBooleanParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_value_0_0=ruleEBoolean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralBooleanValueRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.EBoolean"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralBooleanValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralCharacterValue" |
| // InternalSEW.g:2628:1: entryRuleLiteralCharacterValue returns [EObject current=null] : iv_ruleLiteralCharacterValue= ruleLiteralCharacterValue EOF ; |
| public final EObject entryRuleLiteralCharacterValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralCharacterValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2628:62: (iv_ruleLiteralCharacterValue= ruleLiteralCharacterValue EOF ) |
| // InternalSEW.g:2629:2: iv_ruleLiteralCharacterValue= ruleLiteralCharacterValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralCharacterValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralCharacterValue=ruleLiteralCharacterValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralCharacterValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralCharacterValue" |
| |
| |
| // $ANTLR start "ruleLiteralCharacterValue" |
| // InternalSEW.g:2635:1: ruleLiteralCharacterValue returns [EObject current=null] : ( (lv_value_0_0= ruleEChar ) ) ; |
| public final EObject ruleLiteralCharacterValue() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2641:2: ( ( (lv_value_0_0= ruleEChar ) ) ) |
| // InternalSEW.g:2642:2: ( (lv_value_0_0= ruleEChar ) ) |
| { |
| // InternalSEW.g:2642:2: ( (lv_value_0_0= ruleEChar ) ) |
| // InternalSEW.g:2643:3: (lv_value_0_0= ruleEChar ) |
| { |
| // InternalSEW.g:2643:3: (lv_value_0_0= ruleEChar ) |
| // InternalSEW.g:2644:4: lv_value_0_0= ruleEChar |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralCharacterValueAccess().getValueECharParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_value_0_0=ruleEChar(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralCharacterValueRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.EChar"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralCharacterValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralIntegerValue" |
| // InternalSEW.g:2664:1: entryRuleLiteralIntegerValue returns [EObject current=null] : iv_ruleLiteralIntegerValue= ruleLiteralIntegerValue EOF ; |
| public final EObject entryRuleLiteralIntegerValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralIntegerValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2664:60: (iv_ruleLiteralIntegerValue= ruleLiteralIntegerValue EOF ) |
| // InternalSEW.g:2665:2: iv_ruleLiteralIntegerValue= ruleLiteralIntegerValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralIntegerValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralIntegerValue=ruleLiteralIntegerValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralIntegerValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralIntegerValue" |
| |
| |
| // $ANTLR start "ruleLiteralIntegerValue" |
| // InternalSEW.g:2671:1: ruleLiteralIntegerValue returns [EObject current=null] : ( (lv_value_0_0= ruleELong ) ) ; |
| public final EObject ruleLiteralIntegerValue() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2677:2: ( ( (lv_value_0_0= ruleELong ) ) ) |
| // InternalSEW.g:2678:2: ( (lv_value_0_0= ruleELong ) ) |
| { |
| // InternalSEW.g:2678:2: ( (lv_value_0_0= ruleELong ) ) |
| // InternalSEW.g:2679:3: (lv_value_0_0= ruleELong ) |
| { |
| // InternalSEW.g:2679:3: (lv_value_0_0= ruleELong ) |
| // InternalSEW.g:2680:4: lv_value_0_0= ruleELong |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralIntegerValueAccess().getValueELongParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_value_0_0=ruleELong(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralIntegerValueRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.ELong"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralIntegerValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralRationalValue" |
| // InternalSEW.g:2700:1: entryRuleLiteralRationalValue returns [EObject current=null] : iv_ruleLiteralRationalValue= ruleLiteralRationalValue EOF ; |
| public final EObject entryRuleLiteralRationalValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralRationalValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2700:61: (iv_ruleLiteralRationalValue= ruleLiteralRationalValue EOF ) |
| // InternalSEW.g:2701:2: iv_ruleLiteralRationalValue= ruleLiteralRationalValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralRationalValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralRationalValue=ruleLiteralRationalValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralRationalValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralRationalValue" |
| |
| |
| // $ANTLR start "ruleLiteralRationalValue" |
| // InternalSEW.g:2707:1: ruleLiteralRationalValue returns [EObject current=null] : ( ( (lv_numerator_0_0= ruleELong ) ) otherlv_1= '/' ( (lv_denominator_2_0= ruleELong ) ) ) ; |
| public final EObject ruleLiteralRationalValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_numerator_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_denominator_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2713:2: ( ( ( (lv_numerator_0_0= ruleELong ) ) otherlv_1= '/' ( (lv_denominator_2_0= ruleELong ) ) ) ) |
| // InternalSEW.g:2714:2: ( ( (lv_numerator_0_0= ruleELong ) ) otherlv_1= '/' ( (lv_denominator_2_0= ruleELong ) ) ) |
| { |
| // InternalSEW.g:2714:2: ( ( (lv_numerator_0_0= ruleELong ) ) otherlv_1= '/' ( (lv_denominator_2_0= ruleELong ) ) ) |
| // InternalSEW.g:2715:3: ( (lv_numerator_0_0= ruleELong ) ) otherlv_1= '/' ( (lv_denominator_2_0= ruleELong ) ) |
| { |
| // InternalSEW.g:2715:3: ( (lv_numerator_0_0= ruleELong ) ) |
| // InternalSEW.g:2716:4: (lv_numerator_0_0= ruleELong ) |
| { |
| // InternalSEW.g:2716:4: (lv_numerator_0_0= ruleELong ) |
| // InternalSEW.g:2717:5: lv_numerator_0_0= ruleELong |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralRationalValueAccess().getNumeratorELongParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_40); |
| lv_numerator_0_0=ruleELong(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralRationalValueRule()); |
| } |
| set( |
| current, |
| "numerator", |
| lv_numerator_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.ELong"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FollowSets000.FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getLiteralRationalValueAccess().getSolidusKeyword_1()); |
| |
| } |
| // InternalSEW.g:2738:3: ( (lv_denominator_2_0= ruleELong ) ) |
| // InternalSEW.g:2739:4: (lv_denominator_2_0= ruleELong ) |
| { |
| // InternalSEW.g:2739:4: (lv_denominator_2_0= ruleELong ) |
| // InternalSEW.g:2740:5: lv_denominator_2_0= ruleELong |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralRationalValueAccess().getDenominatorELongParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_denominator_2_0=ruleELong(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralRationalValueRule()); |
| } |
| set( |
| current, |
| "denominator", |
| lv_denominator_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.ELong"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralRationalValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralFloatValue" |
| // InternalSEW.g:2761:1: entryRuleLiteralFloatValue returns [EObject current=null] : iv_ruleLiteralFloatValue= ruleLiteralFloatValue EOF ; |
| public final EObject entryRuleLiteralFloatValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralFloatValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2761:58: (iv_ruleLiteralFloatValue= ruleLiteralFloatValue EOF ) |
| // InternalSEW.g:2762:2: iv_ruleLiteralFloatValue= ruleLiteralFloatValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralFloatValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralFloatValue=ruleLiteralFloatValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralFloatValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralFloatValue" |
| |
| |
| // $ANTLR start "ruleLiteralFloatValue" |
| // InternalSEW.g:2768:1: ruleLiteralFloatValue returns [EObject current=null] : ( (lv_value_0_0= ruleEDouble ) ) ; |
| public final EObject ruleLiteralFloatValue() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2774:2: ( ( (lv_value_0_0= ruleEDouble ) ) ) |
| // InternalSEW.g:2775:2: ( (lv_value_0_0= ruleEDouble ) ) |
| { |
| // InternalSEW.g:2775:2: ( (lv_value_0_0= ruleEDouble ) ) |
| // InternalSEW.g:2776:3: (lv_value_0_0= ruleEDouble ) |
| { |
| // InternalSEW.g:2776:3: (lv_value_0_0= ruleEDouble ) |
| // InternalSEW.g:2777:4: lv_value_0_0= ruleEDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralFloatValueAccess().getValueEDoubleParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_value_0_0=ruleEDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralFloatValueRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.EDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralFloatValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralStringValue" |
| // InternalSEW.g:2797:1: entryRuleLiteralStringValue returns [EObject current=null] : iv_ruleLiteralStringValue= ruleLiteralStringValue EOF ; |
| public final EObject entryRuleLiteralStringValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralStringValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2797:59: (iv_ruleLiteralStringValue= ruleLiteralStringValue EOF ) |
| // InternalSEW.g:2798:2: iv_ruleLiteralStringValue= ruleLiteralStringValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralStringValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralStringValue=ruleLiteralStringValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralStringValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralStringValue" |
| |
| |
| // $ANTLR start "ruleLiteralStringValue" |
| // InternalSEW.g:2804:1: ruleLiteralStringValue returns [EObject current=null] : ( (lv_value_0_0= ruleEString ) ) ; |
| public final EObject ruleLiteralStringValue() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2810:2: ( ( (lv_value_0_0= ruleEString ) ) ) |
| // InternalSEW.g:2811:2: ( (lv_value_0_0= ruleEString ) ) |
| { |
| // InternalSEW.g:2811:2: ( (lv_value_0_0= ruleEString ) ) |
| // InternalSEW.g:2812:3: (lv_value_0_0= ruleEString ) |
| { |
| // InternalSEW.g:2812:3: (lv_value_0_0= ruleEString ) |
| // InternalSEW.g:2813:4: lv_value_0_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralStringValueAccess().getValueEStringParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_value_0_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralStringValueRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralStringValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralNullValue" |
| // InternalSEW.g:2833:1: entryRuleLiteralNullValue returns [EObject current=null] : iv_ruleLiteralNullValue= ruleLiteralNullValue EOF ; |
| public final EObject entryRuleLiteralNullValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralNullValue = null; |
| |
| |
| try { |
| // InternalSEW.g:2833:57: (iv_ruleLiteralNullValue= ruleLiteralNullValue EOF ) |
| // InternalSEW.g:2834:2: iv_ruleLiteralNullValue= ruleLiteralNullValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralNullValueRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralNullValue=ruleLiteralNullValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralNullValue; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralNullValue" |
| |
| |
| // $ANTLR start "ruleLiteralNullValue" |
| // InternalSEW.g:2840:1: ruleLiteralNullValue returns [EObject current=null] : ( () otherlv_1= 'null' (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? ) ; |
| public final EObject ruleLiteralNullValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_type_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2846:2: ( ( () otherlv_1= 'null' (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? ) ) |
| // InternalSEW.g:2847:2: ( () otherlv_1= 'null' (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? ) |
| { |
| // InternalSEW.g:2847:2: ( () otherlv_1= 'null' (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? ) |
| // InternalSEW.g:2848:3: () otherlv_1= 'null' (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? |
| { |
| // InternalSEW.g:2848:3: () |
| // InternalSEW.g:2849:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralNullValueAccess().getLiteralNullValueAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FollowSets000.FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getLiteralNullValueAccess().getNullKeyword_1()); |
| |
| } |
| // InternalSEW.g:2862:3: (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )? |
| int alt64=2; |
| alt64 = dfa64.predict(input); |
| switch (alt64) { |
| case 1 : |
| // InternalSEW.g:2863:4: otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' |
| { |
| otherlv_2=(Token)match(input,20,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getLiteralNullValueAccess().getLessThanSignKeyword_2_0()); |
| |
| } |
| // InternalSEW.g:2867:4: ( (lv_type_3_0= ruleXID ) ) |
| // InternalSEW.g:2868:5: (lv_type_3_0= ruleXID ) |
| { |
| // InternalSEW.g:2868:5: (lv_type_3_0= ruleXID ) |
| // InternalSEW.g:2869:6: lv_type_3_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralNullValueAccess().getTypeXIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_43); |
| lv_type_3_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getLiteralNullValueRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.XID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,45,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getLiteralNullValueAccess().getGreaterThanSignKeyword_2_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralNullValue" |
| |
| |
| // $ANTLR start "entryRuleLiteralVariableReference" |
| // InternalSEW.g:2895:1: entryRuleLiteralVariableReference returns [EObject current=null] : iv_ruleLiteralVariableReference= ruleLiteralVariableReference EOF ; |
| public final EObject entryRuleLiteralVariableReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralVariableReference = null; |
| |
| |
| try { |
| // InternalSEW.g:2895:65: (iv_ruleLiteralVariableReference= ruleLiteralVariableReference EOF ) |
| // InternalSEW.g:2896:2: iv_ruleLiteralVariableReference= ruleLiteralVariableReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralVariableReferenceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralVariableReference=ruleLiteralVariableReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralVariableReference; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralVariableReference" |
| |
| |
| // $ANTLR start "ruleLiteralVariableReference" |
| // InternalSEW.g:2902:1: ruleLiteralVariableReference returns [EObject current=null] : (this_LiteralTimeVariable_0= ruleLiteralTimeVariable | this_LiteralTimeDeltaVariable_1= ruleLiteralTimeDeltaVariable ) ; |
| public final EObject ruleLiteralVariableReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_LiteralTimeVariable_0 = null; |
| |
| EObject this_LiteralTimeDeltaVariable_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2908:2: ( (this_LiteralTimeVariable_0= ruleLiteralTimeVariable | this_LiteralTimeDeltaVariable_1= ruleLiteralTimeDeltaVariable ) ) |
| // InternalSEW.g:2909:2: (this_LiteralTimeVariable_0= ruleLiteralTimeVariable | this_LiteralTimeDeltaVariable_1= ruleLiteralTimeDeltaVariable ) |
| { |
| // InternalSEW.g:2909:2: (this_LiteralTimeVariable_0= ruleLiteralTimeVariable | this_LiteralTimeDeltaVariable_1= ruleLiteralTimeDeltaVariable ) |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==59) ) { |
| alt65=1; |
| } |
| else if ( (LA65_0==60) ) { |
| alt65=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 65, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt65) { |
| case 1 : |
| // InternalSEW.g:2910:3: this_LiteralTimeVariable_0= ruleLiteralTimeVariable |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralVariableReferenceAccess().getLiteralTimeVariableParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralTimeVariable_0=ruleLiteralTimeVariable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralTimeVariable_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:2922:3: this_LiteralTimeDeltaVariable_1= ruleLiteralTimeDeltaVariable |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralVariableReferenceAccess().getLiteralTimeDeltaVariableParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralTimeDeltaVariable_1=ruleLiteralTimeDeltaVariable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralTimeDeltaVariable_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralVariableReference" |
| |
| |
| // $ANTLR start "entryRuleLiteralTimeVariable" |
| // InternalSEW.g:2937:1: entryRuleLiteralTimeVariable returns [EObject current=null] : iv_ruleLiteralTimeVariable= ruleLiteralTimeVariable EOF ; |
| public final EObject entryRuleLiteralTimeVariable() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralTimeVariable = null; |
| |
| |
| try { |
| // InternalSEW.g:2937:60: (iv_ruleLiteralTimeVariable= ruleLiteralTimeVariable EOF ) |
| // InternalSEW.g:2938:2: iv_ruleLiteralTimeVariable= ruleLiteralTimeVariable EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralTimeVariableRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralTimeVariable=ruleLiteralTimeVariable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralTimeVariable; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralTimeVariable" |
| |
| |
| // $ANTLR start "ruleLiteralTimeVariable" |
| // InternalSEW.g:2944:1: ruleLiteralTimeVariable returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$time' ) ) ) ; |
| public final EObject ruleLiteralTimeVariable() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2950:2: ( ( () ( (lv_symbol_1_0= '$time' ) ) ) ) |
| // InternalSEW.g:2951:2: ( () ( (lv_symbol_1_0= '$time' ) ) ) |
| { |
| // InternalSEW.g:2951:2: ( () ( (lv_symbol_1_0= '$time' ) ) ) |
| // InternalSEW.g:2952:3: () ( (lv_symbol_1_0= '$time' ) ) |
| { |
| // InternalSEW.g:2952:3: () |
| // InternalSEW.g:2953:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralTimeVariableAccess().getLiteralTimeVariableAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:2962:3: ( (lv_symbol_1_0= '$time' ) ) |
| // InternalSEW.g:2963:4: (lv_symbol_1_0= '$time' ) |
| { |
| // InternalSEW.g:2963:4: (lv_symbol_1_0= '$time' ) |
| // InternalSEW.g:2964:5: lv_symbol_1_0= '$time' |
| { |
| lv_symbol_1_0=(Token)match(input,59,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralTimeVariableAccess().getSymbolTimeKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralTimeVariableRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$time"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralTimeVariable" |
| |
| |
| // $ANTLR start "entryRuleLiteralTimeDeltaVariable" |
| // InternalSEW.g:2980:1: entryRuleLiteralTimeDeltaVariable returns [EObject current=null] : iv_ruleLiteralTimeDeltaVariable= ruleLiteralTimeDeltaVariable EOF ; |
| public final EObject entryRuleLiteralTimeDeltaVariable() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralTimeDeltaVariable = null; |
| |
| |
| try { |
| // InternalSEW.g:2980:65: (iv_ruleLiteralTimeDeltaVariable= ruleLiteralTimeDeltaVariable EOF ) |
| // InternalSEW.g:2981:2: iv_ruleLiteralTimeDeltaVariable= ruleLiteralTimeDeltaVariable EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralTimeDeltaVariableRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralTimeDeltaVariable=ruleLiteralTimeDeltaVariable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralTimeDeltaVariable; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralTimeDeltaVariable" |
| |
| |
| // $ANTLR start "ruleLiteralTimeDeltaVariable" |
| // InternalSEW.g:2987:1: ruleLiteralTimeDeltaVariable returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$delta' ) ) ) ; |
| public final EObject ruleLiteralTimeDeltaVariable() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:2993:2: ( ( () ( (lv_symbol_1_0= '$delta' ) ) ) ) |
| // InternalSEW.g:2994:2: ( () ( (lv_symbol_1_0= '$delta' ) ) ) |
| { |
| // InternalSEW.g:2994:2: ( () ( (lv_symbol_1_0= '$delta' ) ) ) |
| // InternalSEW.g:2995:3: () ( (lv_symbol_1_0= '$delta' ) ) |
| { |
| // InternalSEW.g:2995:3: () |
| // InternalSEW.g:2996:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralTimeDeltaVariableAccess().getLiteralTimeDeltaVariableAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3005:3: ( (lv_symbol_1_0= '$delta' ) ) |
| // InternalSEW.g:3006:4: (lv_symbol_1_0= '$delta' ) |
| { |
| // InternalSEW.g:3006:4: (lv_symbol_1_0= '$delta' ) |
| // InternalSEW.g:3007:5: lv_symbol_1_0= '$delta' |
| { |
| lv_symbol_1_0=(Token)match(input,60,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralTimeDeltaVariableAccess().getSymbolDeltaKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralTimeDeltaVariableRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$delta"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralTimeDeltaVariable" |
| |
| |
| // $ANTLR start "entryRuleLiteralInstanceReference" |
| // InternalSEW.g:3023:1: entryRuleLiteralInstanceReference returns [EObject current=null] : iv_ruleLiteralInstanceReference= ruleLiteralInstanceReference EOF ; |
| public final EObject entryRuleLiteralInstanceReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralInstanceReference = null; |
| |
| |
| try { |
| // InternalSEW.g:3023:65: (iv_ruleLiteralInstanceReference= ruleLiteralInstanceReference EOF ) |
| // InternalSEW.g:3024:2: iv_ruleLiteralInstanceReference= ruleLiteralInstanceReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralInstanceReference=ruleLiteralInstanceReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralInstanceReference; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralInstanceReference" |
| |
| |
| // $ANTLR start "ruleLiteralInstanceReference" |
| // InternalSEW.g:3030:1: ruleLiteralInstanceReference returns [EObject current=null] : (this_LiteralThisInstance_0= ruleLiteralThisInstance | this_LiteralSelfInstance_1= ruleLiteralSelfInstance | this_LiteralParentInstance_2= ruleLiteralParentInstance | this_LiteralSuperInstance_3= ruleLiteralSuperInstance | this_LiteralSystemInstance_4= ruleLiteralSystemInstance | this_LiteralEnvInstance_5= ruleLiteralEnvInstance ) ; |
| public final EObject ruleLiteralInstanceReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_LiteralThisInstance_0 = null; |
| |
| EObject this_LiteralSelfInstance_1 = null; |
| |
| EObject this_LiteralParentInstance_2 = null; |
| |
| EObject this_LiteralSuperInstance_3 = null; |
| |
| EObject this_LiteralSystemInstance_4 = null; |
| |
| EObject this_LiteralEnvInstance_5 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3036:2: ( (this_LiteralThisInstance_0= ruleLiteralThisInstance | this_LiteralSelfInstance_1= ruleLiteralSelfInstance | this_LiteralParentInstance_2= ruleLiteralParentInstance | this_LiteralSuperInstance_3= ruleLiteralSuperInstance | this_LiteralSystemInstance_4= ruleLiteralSystemInstance | this_LiteralEnvInstance_5= ruleLiteralEnvInstance ) ) |
| // InternalSEW.g:3037:2: (this_LiteralThisInstance_0= ruleLiteralThisInstance | this_LiteralSelfInstance_1= ruleLiteralSelfInstance | this_LiteralParentInstance_2= ruleLiteralParentInstance | this_LiteralSuperInstance_3= ruleLiteralSuperInstance | this_LiteralSystemInstance_4= ruleLiteralSystemInstance | this_LiteralEnvInstance_5= ruleLiteralEnvInstance ) |
| { |
| // InternalSEW.g:3037:2: (this_LiteralThisInstance_0= ruleLiteralThisInstance | this_LiteralSelfInstance_1= ruleLiteralSelfInstance | this_LiteralParentInstance_2= ruleLiteralParentInstance | this_LiteralSuperInstance_3= ruleLiteralSuperInstance | this_LiteralSystemInstance_4= ruleLiteralSystemInstance | this_LiteralEnvInstance_5= ruleLiteralEnvInstance ) |
| int alt66=6; |
| switch ( input.LA(1) ) { |
| case 61: |
| { |
| alt66=1; |
| } |
| break; |
| case 62: |
| { |
| alt66=2; |
| } |
| break; |
| case 63: |
| { |
| alt66=3; |
| } |
| break; |
| case 64: |
| { |
| alt66=4; |
| } |
| break; |
| case 65: |
| { |
| alt66=5; |
| } |
| break; |
| case 66: |
| case 67: |
| { |
| alt66=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 66, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt66) { |
| case 1 : |
| // InternalSEW.g:3038:3: this_LiteralThisInstance_0= ruleLiteralThisInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralThisInstanceParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralThisInstance_0=ruleLiteralThisInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralThisInstance_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3050:3: this_LiteralSelfInstance_1= ruleLiteralSelfInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralSelfInstanceParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralSelfInstance_1=ruleLiteralSelfInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralSelfInstance_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:3062:3: this_LiteralParentInstance_2= ruleLiteralParentInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralParentInstanceParserRuleCall_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralParentInstance_2=ruleLiteralParentInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralParentInstance_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:3074:3: this_LiteralSuperInstance_3= ruleLiteralSuperInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralSuperInstanceParserRuleCall_3()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralSuperInstance_3=ruleLiteralSuperInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralSuperInstance_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSEW.g:3086:3: this_LiteralSystemInstance_4= ruleLiteralSystemInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralSystemInstanceParserRuleCall_4()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralSystemInstance_4=ruleLiteralSystemInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralSystemInstance_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalSEW.g:3098:3: this_LiteralEnvInstance_5= ruleLiteralEnvInstance |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLiteralInstanceReferenceAccess().getLiteralEnvInstanceParserRuleCall_5()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralEnvInstance_5=ruleLiteralEnvInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_LiteralEnvInstance_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralInstanceReference" |
| |
| |
| // $ANTLR start "entryRuleLiteralThisInstance" |
| // InternalSEW.g:3113:1: entryRuleLiteralThisInstance returns [EObject current=null] : iv_ruleLiteralThisInstance= ruleLiteralThisInstance EOF ; |
| public final EObject entryRuleLiteralThisInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralThisInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3113:60: (iv_ruleLiteralThisInstance= ruleLiteralThisInstance EOF ) |
| // InternalSEW.g:3114:2: iv_ruleLiteralThisInstance= ruleLiteralThisInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralThisInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralThisInstance=ruleLiteralThisInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralThisInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralThisInstance" |
| |
| |
| // $ANTLR start "ruleLiteralThisInstance" |
| // InternalSEW.g:3120:1: ruleLiteralThisInstance returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$this' ) ) ) ; |
| public final EObject ruleLiteralThisInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3126:2: ( ( () ( (lv_symbol_1_0= '$this' ) ) ) ) |
| // InternalSEW.g:3127:2: ( () ( (lv_symbol_1_0= '$this' ) ) ) |
| { |
| // InternalSEW.g:3127:2: ( () ( (lv_symbol_1_0= '$this' ) ) ) |
| // InternalSEW.g:3128:3: () ( (lv_symbol_1_0= '$this' ) ) |
| { |
| // InternalSEW.g:3128:3: () |
| // InternalSEW.g:3129:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralThisInstanceAccess().getLiteralThisInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3138:3: ( (lv_symbol_1_0= '$this' ) ) |
| // InternalSEW.g:3139:4: (lv_symbol_1_0= '$this' ) |
| { |
| // InternalSEW.g:3139:4: (lv_symbol_1_0= '$this' ) |
| // InternalSEW.g:3140:5: lv_symbol_1_0= '$this' |
| { |
| lv_symbol_1_0=(Token)match(input,61,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralThisInstanceAccess().getSymbolThisKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralThisInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$this"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralThisInstance" |
| |
| |
| // $ANTLR start "entryRuleLiteralSelfInstance" |
| // InternalSEW.g:3156:1: entryRuleLiteralSelfInstance returns [EObject current=null] : iv_ruleLiteralSelfInstance= ruleLiteralSelfInstance EOF ; |
| public final EObject entryRuleLiteralSelfInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralSelfInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3156:60: (iv_ruleLiteralSelfInstance= ruleLiteralSelfInstance EOF ) |
| // InternalSEW.g:3157:2: iv_ruleLiteralSelfInstance= ruleLiteralSelfInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralSelfInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralSelfInstance=ruleLiteralSelfInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralSelfInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralSelfInstance" |
| |
| |
| // $ANTLR start "ruleLiteralSelfInstance" |
| // InternalSEW.g:3163:1: ruleLiteralSelfInstance returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$self' ) ) ) ; |
| public final EObject ruleLiteralSelfInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3169:2: ( ( () ( (lv_symbol_1_0= '$self' ) ) ) ) |
| // InternalSEW.g:3170:2: ( () ( (lv_symbol_1_0= '$self' ) ) ) |
| { |
| // InternalSEW.g:3170:2: ( () ( (lv_symbol_1_0= '$self' ) ) ) |
| // InternalSEW.g:3171:3: () ( (lv_symbol_1_0= '$self' ) ) |
| { |
| // InternalSEW.g:3171:3: () |
| // InternalSEW.g:3172:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralSelfInstanceAccess().getLiteralSelfInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3181:3: ( (lv_symbol_1_0= '$self' ) ) |
| // InternalSEW.g:3182:4: (lv_symbol_1_0= '$self' ) |
| { |
| // InternalSEW.g:3182:4: (lv_symbol_1_0= '$self' ) |
| // InternalSEW.g:3183:5: lv_symbol_1_0= '$self' |
| { |
| lv_symbol_1_0=(Token)match(input,62,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralSelfInstanceAccess().getSymbolSelfKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralSelfInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$self"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralSelfInstance" |
| |
| |
| // $ANTLR start "entryRuleLiteralParentInstance" |
| // InternalSEW.g:3199:1: entryRuleLiteralParentInstance returns [EObject current=null] : iv_ruleLiteralParentInstance= ruleLiteralParentInstance EOF ; |
| public final EObject entryRuleLiteralParentInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralParentInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3199:62: (iv_ruleLiteralParentInstance= ruleLiteralParentInstance EOF ) |
| // InternalSEW.g:3200:2: iv_ruleLiteralParentInstance= ruleLiteralParentInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralParentInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralParentInstance=ruleLiteralParentInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralParentInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralParentInstance" |
| |
| |
| // $ANTLR start "ruleLiteralParentInstance" |
| // InternalSEW.g:3206:1: ruleLiteralParentInstance returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$parent' ) ) ) ; |
| public final EObject ruleLiteralParentInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3212:2: ( ( () ( (lv_symbol_1_0= '$parent' ) ) ) ) |
| // InternalSEW.g:3213:2: ( () ( (lv_symbol_1_0= '$parent' ) ) ) |
| { |
| // InternalSEW.g:3213:2: ( () ( (lv_symbol_1_0= '$parent' ) ) ) |
| // InternalSEW.g:3214:3: () ( (lv_symbol_1_0= '$parent' ) ) |
| { |
| // InternalSEW.g:3214:3: () |
| // InternalSEW.g:3215:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralParentInstanceAccess().getLiteralParentInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3224:3: ( (lv_symbol_1_0= '$parent' ) ) |
| // InternalSEW.g:3225:4: (lv_symbol_1_0= '$parent' ) |
| { |
| // InternalSEW.g:3225:4: (lv_symbol_1_0= '$parent' ) |
| // InternalSEW.g:3226:5: lv_symbol_1_0= '$parent' |
| { |
| lv_symbol_1_0=(Token)match(input,63,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralParentInstanceAccess().getSymbolParentKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralParentInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$parent"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralParentInstance" |
| |
| |
| // $ANTLR start "entryRuleLiteralSuperInstance" |
| // InternalSEW.g:3242:1: entryRuleLiteralSuperInstance returns [EObject current=null] : iv_ruleLiteralSuperInstance= ruleLiteralSuperInstance EOF ; |
| public final EObject entryRuleLiteralSuperInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralSuperInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3242:61: (iv_ruleLiteralSuperInstance= ruleLiteralSuperInstance EOF ) |
| // InternalSEW.g:3243:2: iv_ruleLiteralSuperInstance= ruleLiteralSuperInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralSuperInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralSuperInstance=ruleLiteralSuperInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralSuperInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralSuperInstance" |
| |
| |
| // $ANTLR start "ruleLiteralSuperInstance" |
| // InternalSEW.g:3249:1: ruleLiteralSuperInstance returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$super' ) ) ) ; |
| public final EObject ruleLiteralSuperInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3255:2: ( ( () ( (lv_symbol_1_0= '$super' ) ) ) ) |
| // InternalSEW.g:3256:2: ( () ( (lv_symbol_1_0= '$super' ) ) ) |
| { |
| // InternalSEW.g:3256:2: ( () ( (lv_symbol_1_0= '$super' ) ) ) |
| // InternalSEW.g:3257:3: () ( (lv_symbol_1_0= '$super' ) ) |
| { |
| // InternalSEW.g:3257:3: () |
| // InternalSEW.g:3258:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralSuperInstanceAccess().getLiteralSuperInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3267:3: ( (lv_symbol_1_0= '$super' ) ) |
| // InternalSEW.g:3268:4: (lv_symbol_1_0= '$super' ) |
| { |
| // InternalSEW.g:3268:4: (lv_symbol_1_0= '$super' ) |
| // InternalSEW.g:3269:5: lv_symbol_1_0= '$super' |
| { |
| lv_symbol_1_0=(Token)match(input,64,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralSuperInstanceAccess().getSymbolSuperKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralSuperInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$super"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralSuperInstance" |
| |
| |
| // $ANTLR start "entryRuleLiteralSystemInstance" |
| // InternalSEW.g:3285:1: entryRuleLiteralSystemInstance returns [EObject current=null] : iv_ruleLiteralSystemInstance= ruleLiteralSystemInstance EOF ; |
| public final EObject entryRuleLiteralSystemInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralSystemInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3285:62: (iv_ruleLiteralSystemInstance= ruleLiteralSystemInstance EOF ) |
| // InternalSEW.g:3286:2: iv_ruleLiteralSystemInstance= ruleLiteralSystemInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralSystemInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralSystemInstance=ruleLiteralSystemInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralSystemInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralSystemInstance" |
| |
| |
| // $ANTLR start "ruleLiteralSystemInstance" |
| // InternalSEW.g:3292:1: ruleLiteralSystemInstance returns [EObject current=null] : ( () ( (lv_symbol_1_0= '$system' ) ) ) ; |
| public final EObject ruleLiteralSystemInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3298:2: ( ( () ( (lv_symbol_1_0= '$system' ) ) ) ) |
| // InternalSEW.g:3299:2: ( () ( (lv_symbol_1_0= '$system' ) ) ) |
| { |
| // InternalSEW.g:3299:2: ( () ( (lv_symbol_1_0= '$system' ) ) ) |
| // InternalSEW.g:3300:3: () ( (lv_symbol_1_0= '$system' ) ) |
| { |
| // InternalSEW.g:3300:3: () |
| // InternalSEW.g:3301:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralSystemInstanceAccess().getLiteralSystemInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3310:3: ( (lv_symbol_1_0= '$system' ) ) |
| // InternalSEW.g:3311:4: (lv_symbol_1_0= '$system' ) |
| { |
| // InternalSEW.g:3311:4: (lv_symbol_1_0= '$system' ) |
| // InternalSEW.g:3312:5: lv_symbol_1_0= '$system' |
| { |
| lv_symbol_1_0=(Token)match(input,65,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_0, grammarAccess.getLiteralSystemInstanceAccess().getSymbolSystemKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralSystemInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_0, "$system"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralSystemInstance" |
| |
| |
| // $ANTLR start "entryRuleLiteralEnvInstance" |
| // InternalSEW.g:3328:1: entryRuleLiteralEnvInstance returns [EObject current=null] : iv_ruleLiteralEnvInstance= ruleLiteralEnvInstance EOF ; |
| public final EObject entryRuleLiteralEnvInstance() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleLiteralEnvInstance = null; |
| |
| |
| try { |
| // InternalSEW.g:3328:59: (iv_ruleLiteralEnvInstance= ruleLiteralEnvInstance EOF ) |
| // InternalSEW.g:3329:2: iv_ruleLiteralEnvInstance= ruleLiteralEnvInstance EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLiteralEnvInstanceRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleLiteralEnvInstance=ruleLiteralEnvInstance(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLiteralEnvInstance; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLiteralEnvInstance" |
| |
| |
| // $ANTLR start "ruleLiteralEnvInstance" |
| // InternalSEW.g:3335:1: ruleLiteralEnvInstance returns [EObject current=null] : ( () ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) ) ; |
| public final EObject ruleLiteralEnvInstance() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_symbol_1_1=null; |
| Token lv_symbol_1_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3341:2: ( ( () ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) ) ) |
| // InternalSEW.g:3342:2: ( () ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) ) |
| { |
| // InternalSEW.g:3342:2: ( () ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) ) |
| // InternalSEW.g:3343:3: () ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) |
| { |
| // InternalSEW.g:3343:3: () |
| // InternalSEW.g:3344:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getLiteralEnvInstanceAccess().getLiteralEnvInstanceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:3353:3: ( ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) ) |
| // InternalSEW.g:3354:4: ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) |
| { |
| // InternalSEW.g:3354:4: ( (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) ) |
| // InternalSEW.g:3355:5: (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) |
| { |
| // InternalSEW.g:3355:5: (lv_symbol_1_1= '$env' | lv_symbol_1_2= 'env' ) |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( (LA67_0==66) ) { |
| alt67=1; |
| } |
| else if ( (LA67_0==67) ) { |
| alt67=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalSEW.g:3356:6: lv_symbol_1_1= '$env' |
| { |
| lv_symbol_1_1=(Token)match(input,66,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_1, grammarAccess.getLiteralEnvInstanceAccess().getSymbolEnvKeyword_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralEnvInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3367:6: lv_symbol_1_2= 'env' |
| { |
| lv_symbol_1_2=(Token)match(input,67,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_symbol_1_2, grammarAccess.getLiteralEnvInstanceAccess().getSymbolEnvKeyword_1_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getLiteralEnvInstanceRule()); |
| } |
| setWithLastConsumed(current, "symbol", lv_symbol_1_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLiteralEnvInstance" |
| |
| |
| // $ANTLR start "entryRuleEBoolean" |
| // InternalSEW.g:3384:1: entryRuleEBoolean returns [String current=null] : iv_ruleEBoolean= ruleEBoolean EOF ; |
| public final String entryRuleEBoolean() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEBoolean = null; |
| |
| |
| try { |
| // InternalSEW.g:3384:48: (iv_ruleEBoolean= ruleEBoolean EOF ) |
| // InternalSEW.g:3385:2: iv_ruleEBoolean= ruleEBoolean EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEBooleanRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEBoolean=ruleEBoolean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEBoolean.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEBoolean" |
| |
| |
| // $ANTLR start "ruleEBoolean" |
| // InternalSEW.g:3391:1: ruleEBoolean returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'true' | kw= 'false' ) ; |
| public final AntlrDatatypeRuleToken ruleEBoolean() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3397:2: ( (kw= 'true' | kw= 'false' ) ) |
| // InternalSEW.g:3398:2: (kw= 'true' | kw= 'false' ) |
| { |
| // InternalSEW.g:3398:2: (kw= 'true' | kw= 'false' ) |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==68) ) { |
| alt68=1; |
| } |
| else if ( (LA68_0==69) ) { |
| alt68=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalSEW.g:3399:3: kw= 'true' |
| { |
| kw=(Token)match(input,68,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEBooleanAccess().getTrueKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3405:3: kw= 'false' |
| { |
| kw=(Token)match(input,69,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEBooleanAccess().getFalseKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEBoolean" |
| |
| |
| // $ANTLR start "entryRuleEChar" |
| // InternalSEW.g:3414:1: entryRuleEChar returns [String current=null] : iv_ruleEChar= ruleEChar EOF ; |
| public final String entryRuleEChar() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEChar = null; |
| |
| |
| try { |
| // InternalSEW.g:3414:45: (iv_ruleEChar= ruleEChar EOF ) |
| // InternalSEW.g:3415:2: iv_ruleEChar= ruleEChar EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getECharRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEChar=ruleEChar(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEChar.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEChar" |
| |
| |
| // $ANTLR start "ruleEChar" |
| // InternalSEW.g:3421:1: ruleEChar returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_CHARACTER_0= RULE_CHARACTER ; |
| public final AntlrDatatypeRuleToken ruleEChar() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_CHARACTER_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3427:2: (this_CHARACTER_0= RULE_CHARACTER ) |
| // InternalSEW.g:3428:2: this_CHARACTER_0= RULE_CHARACTER |
| { |
| this_CHARACTER_0=(Token)match(input,RULE_CHARACTER,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_CHARACTER_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_CHARACTER_0, grammarAccess.getECharAccess().getCHARACTERTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEChar" |
| |
| |
| // $ANTLR start "entryRuleELong" |
| // InternalSEW.g:3438:1: entryRuleELong returns [String current=null] : iv_ruleELong= ruleELong EOF ; |
| public final String entryRuleELong() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleELong = null; |
| |
| |
| try { |
| // InternalSEW.g:3438:45: (iv_ruleELong= ruleELong EOF ) |
| // InternalSEW.g:3439:2: iv_ruleELong= ruleELong EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getELongRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleELong=ruleELong(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleELong.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleELong" |
| |
| |
| // $ANTLR start "ruleELong" |
| // InternalSEW.g:3445:1: ruleELong returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_INT_1= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleELong() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3451:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) |
| // InternalSEW.g:3452:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| { |
| // InternalSEW.g:3452:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| // InternalSEW.g:3453:3: (kw= '-' )? this_INT_1= RULE_INT |
| { |
| // InternalSEW.g:3453:3: (kw= '-' )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( (LA69_0==52) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalSEW.g:3454:4: kw= '-' |
| { |
| kw=(Token)match(input,52,FollowSets000.FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getELongAccess().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.getELongAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleELong" |
| |
| |
| // $ANTLR start "entryRuleEDouble" |
| // InternalSEW.g:3471:1: entryRuleEDouble returns [String current=null] : iv_ruleEDouble= ruleEDouble EOF ; |
| public final String entryRuleEDouble() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEDouble = null; |
| |
| |
| try { |
| // InternalSEW.g:3471:47: (iv_ruleEDouble= ruleEDouble EOF ) |
| // InternalSEW.g:3472:2: iv_ruleEDouble= ruleEDouble EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEDoubleRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEDouble=ruleEDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEDouble.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEDouble" |
| |
| |
| // $ANTLR start "ruleEDouble" |
| // InternalSEW.g:3478:1: ruleEDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? (this_INT_1= RULE_INT )? kw= '.' this_INT_3= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleEDouble() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_1=null; |
| Token this_INT_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3484:2: ( ( (kw= '-' )? (this_INT_1= RULE_INT )? kw= '.' this_INT_3= RULE_INT ) ) |
| // InternalSEW.g:3485:2: ( (kw= '-' )? (this_INT_1= RULE_INT )? kw= '.' this_INT_3= RULE_INT ) |
| { |
| // InternalSEW.g:3485:2: ( (kw= '-' )? (this_INT_1= RULE_INT )? kw= '.' this_INT_3= RULE_INT ) |
| // InternalSEW.g:3486:3: (kw= '-' )? (this_INT_1= RULE_INT )? kw= '.' this_INT_3= RULE_INT |
| { |
| // InternalSEW.g:3486:3: (kw= '-' )? |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==52) ) { |
| alt70=1; |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalSEW.g:3487:4: kw= '-' |
| { |
| kw=(Token)match(input,52,FollowSets000.FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEDoubleAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:3493:3: (this_INT_1= RULE_INT )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==RULE_INT) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalSEW.g:3494:4: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getEDoubleAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,26,FollowSets000.FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEDoubleAccess().getFullStopKeyword_2()); |
| |
| } |
| this_INT_3=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_3); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_3, grammarAccess.getEDoubleAccess().getINTTerminalRuleCall_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEDouble" |
| |
| |
| // $ANTLR start "entryRuleEBigDecimal" |
| // InternalSEW.g:3518:1: entryRuleEBigDecimal returns [String current=null] : iv_ruleEBigDecimal= ruleEBigDecimal EOF ; |
| public final String entryRuleEBigDecimal() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEBigDecimal = null; |
| |
| |
| try { |
| // InternalSEW.g:3518:51: (iv_ruleEBigDecimal= ruleEBigDecimal EOF ) |
| // InternalSEW.g:3519:2: iv_ruleEBigDecimal= ruleEBigDecimal EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEBigDecimalRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEBigDecimal=ruleEBigDecimal(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEBigDecimal.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEBigDecimal" |
| |
| |
| // $ANTLR start "ruleEBigDecimal" |
| // InternalSEW.g:3525:1: ruleEBigDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (this_INT_0= RULE_INT )? kw= '.' this_INT_2= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleEBigDecimal() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_INT_0=null; |
| Token kw=null; |
| Token this_INT_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3531:2: ( ( (this_INT_0= RULE_INT )? kw= '.' this_INT_2= RULE_INT ) ) |
| // InternalSEW.g:3532:2: ( (this_INT_0= RULE_INT )? kw= '.' this_INT_2= RULE_INT ) |
| { |
| // InternalSEW.g:3532:2: ( (this_INT_0= RULE_INT )? kw= '.' this_INT_2= RULE_INT ) |
| // InternalSEW.g:3533:3: (this_INT_0= RULE_INT )? kw= '.' this_INT_2= RULE_INT |
| { |
| // InternalSEW.g:3533:3: (this_INT_0= RULE_INT )? |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( (LA72_0==RULE_INT) ) { |
| alt72=1; |
| } |
| switch (alt72) { |
| case 1 : |
| // InternalSEW.g:3534:4: this_INT_0= RULE_INT |
| { |
| this_INT_0=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_0, grammarAccess.getEBigDecimalAccess().getINTTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,26,FollowSets000.FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getEBigDecimalAccess().getFullStopKeyword_1()); |
| |
| } |
| this_INT_2=(Token)match(input,RULE_INT,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_2, grammarAccess.getEBigDecimalAccess().getINTTerminalRuleCall_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEBigDecimal" |
| |
| |
| // $ANTLR start "entryRuleEString" |
| // InternalSEW.g:3558:1: entryRuleEString returns [String current=null] : iv_ruleEString= ruleEString EOF ; |
| public final String entryRuleEString() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleEString = null; |
| |
| |
| try { |
| // InternalSEW.g:3558:47: (iv_ruleEString= ruleEString EOF ) |
| // InternalSEW.g:3559:2: iv_ruleEString= ruleEString EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEStringRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleEString=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEString.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEString" |
| |
| |
| // $ANTLR start "ruleEString" |
| // InternalSEW.g:3565:1: ruleEString returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; |
| public final AntlrDatatypeRuleToken ruleEString() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3571:2: (this_STRING_0= RULE_STRING ) |
| // InternalSEW.g:3572:2: this_STRING_0= RULE_STRING |
| { |
| this_STRING_0=(Token)match(input,RULE_STRING,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_STRING_0, grammarAccess.getEStringAccess().getSTRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEString" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedReservedWord" |
| // InternalSEW.g:3582:1: entryRuleDeprecatedReservedWord returns [String current=null] : iv_ruleDeprecatedReservedWord= ruleDeprecatedReservedWord EOF ; |
| public final String entryRuleDeprecatedReservedWord() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleDeprecatedReservedWord = null; |
| |
| |
| try { |
| // InternalSEW.g:3582:62: (iv_ruleDeprecatedReservedWord= ruleDeprecatedReservedWord EOF ) |
| // InternalSEW.g:3583:2: iv_ruleDeprecatedReservedWord= ruleDeprecatedReservedWord EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedReservedWordRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedReservedWord=ruleDeprecatedReservedWord(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedReservedWord.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedReservedWord" |
| |
| |
| // $ANTLR start "ruleDeprecatedReservedWord" |
| // InternalSEW.g:3589:1: ruleDeprecatedReservedWord returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'form' | kw= 'endform' | kw= 'prototype' | kw= 'endprototype' | kw= 'section' | kw= 'endsection' ) ; |
| public final AntlrDatatypeRuleToken ruleDeprecatedReservedWord() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3595:2: ( (kw= 'form' | kw= 'endform' | kw= 'prototype' | kw= 'endprototype' | kw= 'section' | kw= 'endsection' ) ) |
| // InternalSEW.g:3596:2: (kw= 'form' | kw= 'endform' | kw= 'prototype' | kw= 'endprototype' | kw= 'section' | kw= 'endsection' ) |
| { |
| // InternalSEW.g:3596:2: (kw= 'form' | kw= 'endform' | kw= 'prototype' | kw= 'endprototype' | kw= 'section' | kw= 'endsection' ) |
| int alt73=6; |
| switch ( input.LA(1) ) { |
| case 70: |
| { |
| alt73=1; |
| } |
| break; |
| case 71: |
| { |
| alt73=2; |
| } |
| break; |
| case 72: |
| { |
| alt73=3; |
| } |
| break; |
| case 73: |
| { |
| alt73=4; |
| } |
| break; |
| case 74: |
| { |
| alt73=5; |
| } |
| break; |
| case 75: |
| { |
| alt73=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 73, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt73) { |
| case 1 : |
| // InternalSEW.g:3597:3: kw= 'form' |
| { |
| kw=(Token)match(input,70,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getFormKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3603:3: kw= 'endform' |
| { |
| kw=(Token)match(input,71,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getEndformKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:3609:3: kw= 'prototype' |
| { |
| kw=(Token)match(input,72,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getPrototypeKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSEW.g:3615:3: kw= 'endprototype' |
| { |
| kw=(Token)match(input,73,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getEndprototypeKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSEW.g:3621:3: kw= 'section' |
| { |
| kw=(Token)match(input,74,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getSectionKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalSEW.g:3627:3: kw= 'endsection' |
| { |
| kw=(Token)match(input,75,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getDeprecatedReservedWordAccess().getEndsectionKeyword_5()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedReservedWord" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedObject" |
| // InternalSEW.g:3636:1: entryRuleDeprecatedObject returns [EObject current=null] : iv_ruleDeprecatedObject= ruleDeprecatedObject EOF ; |
| public final EObject entryRuleDeprecatedObject() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDeprecatedObject = null; |
| |
| |
| try { |
| // InternalSEW.g:3636:57: (iv_ruleDeprecatedObject= ruleDeprecatedObject EOF ) |
| // InternalSEW.g:3637:2: iv_ruleDeprecatedObject= ruleDeprecatedObject EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedObjectRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedObject=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedObject; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedObject" |
| |
| |
| // $ANTLR start "ruleDeprecatedObject" |
| // InternalSEW.g:3643:1: ruleDeprecatedObject returns [EObject current=null] : ( ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) | ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) ) ; |
| public final EObject ruleDeprecatedObject() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_14=null; |
| Token otherlv_15=null; |
| Token otherlv_17=null; |
| Token otherlv_19=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_type_6_0 = null; |
| |
| EObject lv_element_8_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_12_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_13_0 = null; |
| |
| AntlrDatatypeRuleToken lv_type_16_0 = null; |
| |
| EObject lv_element_18_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3649:2: ( ( ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) | ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) ) ) |
| // InternalSEW.g:3650:2: ( ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) | ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) ) |
| { |
| // InternalSEW.g:3650:2: ( ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) | ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) ) |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==70) ) { |
| alt80=1; |
| } |
| else if ( (LA80_0==72) ) { |
| alt80=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 80, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt80) { |
| case 1 : |
| // InternalSEW.g:3651:3: ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) |
| { |
| // InternalSEW.g:3651:3: ( () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' ) |
| // InternalSEW.g:3652:4: () otherlv_1= 'form' ( (lv_name_2_0= ruleUFI ) ) ( (lv_description_3_0= ruleEString ) )? otherlv_4= 'as' (otherlv_5= '&' )? ( (lv_type_6_0= ruleUFI ) ) otherlv_7= 'is' ( (lv_element_8_0= ruleDeprecatedProperty ) )* otherlv_9= 'endform' |
| { |
| // InternalSEW.g:3652:4: () |
| // InternalSEW.g:3653:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDeprecatedObjectAccess().getWObjectAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,70,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDeprecatedObjectAccess().getFormKeyword_0_1()); |
| |
| } |
| // InternalSEW.g:3666:4: ( (lv_name_2_0= ruleUFI ) ) |
| // InternalSEW.g:3667:5: (lv_name_2_0= ruleUFI ) |
| { |
| // InternalSEW.g:3667:5: (lv_name_2_0= ruleUFI ) |
| // InternalSEW.g:3668:6: lv_name_2_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getNameUFIParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_47); |
| lv_name_2_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:3685:4: ( (lv_description_3_0= ruleEString ) )? |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==RULE_STRING) ) { |
| alt74=1; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalSEW.g:3686:5: (lv_description_3_0= ruleEString ) |
| { |
| // InternalSEW.g:3686:5: (lv_description_3_0= ruleEString ) |
| // InternalSEW.g:3687:6: lv_description_3_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getDescriptionEStringParserRuleCall_0_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_48); |
| lv_description_3_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,76,FollowSets000.FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDeprecatedObjectAccess().getAsKeyword_0_4()); |
| |
| } |
| // InternalSEW.g:3708:4: (otherlv_5= '&' )? |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==57) ) { |
| alt75=1; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalSEW.g:3709:5: otherlv_5= '&' |
| { |
| otherlv_5=(Token)match(input,57,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDeprecatedObjectAccess().getAmpersandKeyword_0_5()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:3714:4: ( (lv_type_6_0= ruleUFI ) ) |
| // InternalSEW.g:3715:5: (lv_type_6_0= ruleUFI ) |
| { |
| // InternalSEW.g:3715:5: (lv_type_6_0= ruleUFI ) |
| // InternalSEW.g:3716:6: lv_type_6_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getTypeUFIParserRuleCall_0_6_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_50); |
| lv_type_6_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_6_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,77,FollowSets000.FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDeprecatedObjectAccess().getIsKeyword_0_7()); |
| |
| } |
| // InternalSEW.g:3737:4: ( (lv_element_8_0= ruleDeprecatedProperty ) )* |
| loop76: |
| do { |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==71) ) { |
| int LA76_1 = input.LA(2); |
| |
| if ( (LA76_1==RULE_STRING||LA76_1==29||(LA76_1>=31 && LA76_1<=32)) ) { |
| alt76=1; |
| } |
| |
| |
| } |
| else if ( (LA76_0==RULE_XIDENDIFIER||LA76_0==RULE_AT_IDENTIFIER||LA76_0==14||LA76_0==21||LA76_0==70||(LA76_0>=72 && LA76_0<=75)) ) { |
| alt76=1; |
| } |
| |
| |
| switch (alt76) { |
| case 1 : |
| // InternalSEW.g:3738:5: (lv_element_8_0= ruleDeprecatedProperty ) |
| { |
| // InternalSEW.g:3738:5: (lv_element_8_0= ruleDeprecatedProperty ) |
| // InternalSEW.g:3739:6: lv_element_8_0= ruleDeprecatedProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getElementDeprecatedPropertyParserRuleCall_0_8_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_51); |
| lv_element_8_0=ruleDeprecatedProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_8_0, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedProperty"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop76; |
| } |
| } while (true); |
| |
| otherlv_9=(Token)match(input,71,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDeprecatedObjectAccess().getEndformKeyword_0_9()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3762:3: ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) |
| { |
| // InternalSEW.g:3762:3: ( () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' ) |
| // InternalSEW.g:3763:4: () otherlv_11= 'prototype' ( (lv_name_12_0= ruleUFI ) ) ( (lv_description_13_0= ruleEString ) )? otherlv_14= 'as' (otherlv_15= '&' )? ( (lv_type_16_0= ruleUFI ) ) otherlv_17= 'is' ( (lv_element_18_0= ruleDeprecatedProperty ) )* otherlv_19= 'endprototype' |
| { |
| // InternalSEW.g:3763:4: () |
| // InternalSEW.g:3764:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDeprecatedObjectAccess().getWObjectAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_11=(Token)match(input,72,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDeprecatedObjectAccess().getPrototypeKeyword_1_1()); |
| |
| } |
| // InternalSEW.g:3777:4: ( (lv_name_12_0= ruleUFI ) ) |
| // InternalSEW.g:3778:5: (lv_name_12_0= ruleUFI ) |
| { |
| // InternalSEW.g:3778:5: (lv_name_12_0= ruleUFI ) |
| // InternalSEW.g:3779:6: lv_name_12_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getNameUFIParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_47); |
| lv_name_12_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_12_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:3796:4: ( (lv_description_13_0= ruleEString ) )? |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==RULE_STRING) ) { |
| alt77=1; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalSEW.g:3797:5: (lv_description_13_0= ruleEString ) |
| { |
| // InternalSEW.g:3797:5: (lv_description_13_0= ruleEString ) |
| // InternalSEW.g:3798:6: lv_description_13_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getDescriptionEStringParserRuleCall_1_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_48); |
| lv_description_13_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_13_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_14=(Token)match(input,76,FollowSets000.FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getDeprecatedObjectAccess().getAsKeyword_1_4()); |
| |
| } |
| // InternalSEW.g:3819:4: (otherlv_15= '&' )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==57) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalSEW.g:3820:5: otherlv_15= '&' |
| { |
| otherlv_15=(Token)match(input,57,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDeprecatedObjectAccess().getAmpersandKeyword_1_5()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:3825:4: ( (lv_type_16_0= ruleUFI ) ) |
| // InternalSEW.g:3826:5: (lv_type_16_0= ruleUFI ) |
| { |
| // InternalSEW.g:3826:5: (lv_type_16_0= ruleUFI ) |
| // InternalSEW.g:3827:6: lv_type_16_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getTypeUFIParserRuleCall_1_6_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_50); |
| lv_type_16_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_16_0, |
| "org.eclipse.efm.sew.xtext.SEW.UFI"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_17=(Token)match(input,77,FollowSets000.FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getDeprecatedObjectAccess().getIsKeyword_1_7()); |
| |
| } |
| // InternalSEW.g:3848:4: ( (lv_element_18_0= ruleDeprecatedProperty ) )* |
| loop79: |
| do { |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==73) ) { |
| int LA79_1 = input.LA(2); |
| |
| if ( (LA79_1==RULE_STRING||LA79_1==29||(LA79_1>=31 && LA79_1<=32)) ) { |
| alt79=1; |
| } |
| |
| |
| } |
| else if ( (LA79_0==RULE_XIDENDIFIER||LA79_0==RULE_AT_IDENTIFIER||LA79_0==14||LA79_0==21||(LA79_0>=70 && LA79_0<=72)||(LA79_0>=74 && LA79_0<=75)) ) { |
| alt79=1; |
| } |
| |
| |
| switch (alt79) { |
| case 1 : |
| // InternalSEW.g:3849:5: (lv_element_18_0= ruleDeprecatedProperty ) |
| { |
| // InternalSEW.g:3849:5: (lv_element_18_0= ruleDeprecatedProperty ) |
| // InternalSEW.g:3850:6: lv_element_18_0= ruleDeprecatedProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedObjectAccess().getElementDeprecatedPropertyParserRuleCall_1_8_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_51); |
| lv_element_18_0=ruleDeprecatedProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedObjectRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_18_0, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedProperty"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop79; |
| } |
| } while (true); |
| |
| otherlv_19=(Token)match(input,73,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getDeprecatedObjectAccess().getEndprototypeKeyword_1_9()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedObject" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedProperty" |
| // InternalSEW.g:3876:1: entryRuleDeprecatedProperty returns [EObject current=null] : iv_ruleDeprecatedProperty= ruleDeprecatedProperty EOF ; |
| public final EObject entryRuleDeprecatedProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDeprecatedProperty = null; |
| |
| |
| try { |
| // InternalSEW.g:3876:59: (iv_ruleDeprecatedProperty= ruleDeprecatedProperty EOF ) |
| // InternalSEW.g:3877:2: iv_ruleDeprecatedProperty= ruleDeprecatedProperty EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedPropertyRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedProperty=ruleDeprecatedProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedProperty; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedProperty" |
| |
| |
| // $ANTLR start "ruleDeprecatedProperty" |
| // InternalSEW.g:3883:1: ruleDeprecatedProperty returns [EObject current=null] : (this_DeprecatedSection_0= ruleDeprecatedSection | this_DeprecatedAttribute_1= ruleDeprecatedAttribute ) ; |
| public final EObject ruleDeprecatedProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DeprecatedSection_0 = null; |
| |
| EObject this_DeprecatedAttribute_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3889:2: ( (this_DeprecatedSection_0= ruleDeprecatedSection | this_DeprecatedAttribute_1= ruleDeprecatedAttribute ) ) |
| // InternalSEW.g:3890:2: (this_DeprecatedSection_0= ruleDeprecatedSection | this_DeprecatedAttribute_1= ruleDeprecatedAttribute ) |
| { |
| // InternalSEW.g:3890:2: (this_DeprecatedSection_0= ruleDeprecatedSection | this_DeprecatedAttribute_1= ruleDeprecatedAttribute ) |
| int alt81=2; |
| alt81 = dfa81.predict(input); |
| switch (alt81) { |
| case 1 : |
| // InternalSEW.g:3891:3: this_DeprecatedSection_0= ruleDeprecatedSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedPropertyAccess().getDeprecatedSectionParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_DeprecatedSection_0=ruleDeprecatedSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DeprecatedSection_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3903:3: this_DeprecatedAttribute_1= ruleDeprecatedAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedPropertyAccess().getDeprecatedAttributeParserRuleCall_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_DeprecatedAttribute_1=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DeprecatedAttribute_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedProperty" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedSection" |
| // InternalSEW.g:3918:1: entryRuleDeprecatedSection returns [EObject current=null] : iv_ruleDeprecatedSection= ruleDeprecatedSection EOF ; |
| public final EObject entryRuleDeprecatedSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDeprecatedSection = null; |
| |
| |
| try { |
| // InternalSEW.g:3918:58: (iv_ruleDeprecatedSection= ruleDeprecatedSection EOF ) |
| // InternalSEW.g:3919:2: iv_ruleDeprecatedSection= ruleDeprecatedSection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedSectionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedSection=ruleDeprecatedSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedSection; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedSection" |
| |
| |
| // $ANTLR start "ruleDeprecatedSection" |
| // InternalSEW.g:3925:1: ruleDeprecatedSection returns [EObject current=null] : ( ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) | ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) ) ; |
| public final EObject ruleDeprecatedSection() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_element_3_1 = null; |
| |
| EObject lv_element_3_2 = null; |
| |
| EObject lv_element_3_3 = null; |
| |
| AntlrDatatypeRuleToken lv_name_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_7_0 = null; |
| |
| EObject lv_element_9_1 = null; |
| |
| EObject lv_element_9_2 = null; |
| |
| EObject lv_element_9_3 = null; |
| |
| EObject lv_element_12_1 = null; |
| |
| EObject lv_element_12_2 = null; |
| |
| EObject lv_element_12_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:3931:2: ( ( ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) | ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) ) ) |
| // InternalSEW.g:3932:2: ( ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) | ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) ) |
| { |
| // InternalSEW.g:3932:2: ( ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) | ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) ) |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==74) ) { |
| int LA91_1 = input.LA(2); |
| |
| if ( (LA91_1==RULE_XIDENDIFIER||LA91_1==14||LA91_1==21||(LA91_1>=70 && LA91_1<=75)) ) { |
| alt91=1; |
| } |
| else if ( (LA91_1==RULE_STRING||LA91_1==29||LA91_1==31) ) { |
| alt91=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA91_0==RULE_XIDENDIFIER||LA91_0==14||LA91_0==21||(LA91_0>=70 && LA91_0<=73)||LA91_0==75) ) { |
| alt91=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalSEW.g:3933:3: ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) |
| { |
| // InternalSEW.g:3933:3: ( () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? ) |
| // InternalSEW.g:3934:4: () otherlv_1= 'section' ( (lv_name_2_0= ruleXID ) ) ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* otherlv_4= 'endsection' ( ruleXID )? |
| { |
| // InternalSEW.g:3934:4: () |
| // InternalSEW.g:3935:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDeprecatedSectionAccess().getWSectionAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,74,FollowSets000.FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDeprecatedSectionAccess().getSectionKeyword_0_1()); |
| |
| } |
| // InternalSEW.g:3948:4: ( (lv_name_2_0= ruleXID ) ) |
| // InternalSEW.g:3949:5: (lv_name_2_0= ruleXID ) |
| { |
| // InternalSEW.g:3949:5: (lv_name_2_0= ruleXID ) |
| // InternalSEW.g:3950:6: lv_name_2_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getNameXIDParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_52); |
| lv_name_2_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.efm.sew.xtext.SEW.XID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:3967:4: ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )* |
| loop83: |
| do { |
| int alt83=2; |
| alt83 = dfa83.predict(input); |
| switch (alt83) { |
| case 1 : |
| // InternalSEW.g:3968:5: ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) |
| { |
| // InternalSEW.g:3968:5: ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) |
| // InternalSEW.g:3969:6: (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) |
| { |
| // InternalSEW.g:3969:6: (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) |
| int alt82=3; |
| alt82 = dfa82.predict(input); |
| switch (alt82) { |
| case 1 : |
| // InternalSEW.g:3970:7: lv_element_3_1= ruleDeprecatedAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedAttributeParserRuleCall_0_3_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_52); |
| lv_element_3_1=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_3_1, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:3986:7: lv_element_3_2= ruleDeprecatedObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedObjectParserRuleCall_0_3_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_52); |
| lv_element_3_2=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_3_2, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedObject"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:4002:7: lv_element_3_3= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementObjectParserRuleCall_0_3_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_52); |
| lv_element_3_3=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_3_3, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop83; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,75,FollowSets000.FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDeprecatedSectionAccess().getEndsectionKeyword_0_4()); |
| |
| } |
| // InternalSEW.g:4024:4: ( ruleXID )? |
| int alt84=2; |
| alt84 = dfa84.predict(input); |
| switch (alt84) { |
| case 1 : |
| // InternalSEW.g:4025:5: ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getXIDParserRuleCall_0_5()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4038:3: ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) |
| { |
| // InternalSEW.g:4038:3: ( ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) ) |
| // InternalSEW.g:4039:4: ( (lv_name_6_0= ruleXID ) ) ( (lv_description_7_0= ruleEString ) )? ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) |
| { |
| // InternalSEW.g:4039:4: ( (lv_name_6_0= ruleXID ) ) |
| // InternalSEW.g:4040:5: (lv_name_6_0= ruleXID ) |
| { |
| // InternalSEW.g:4040:5: (lv_name_6_0= ruleXID ) |
| // InternalSEW.g:4041:6: lv_name_6_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getNameXIDParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_18); |
| lv_name_6_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_6_0, |
| "org.eclipse.efm.sew.xtext.SEW.XID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:4058:4: ( (lv_description_7_0= ruleEString ) )? |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==RULE_STRING) ) { |
| alt85=1; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalSEW.g:4059:5: (lv_description_7_0= ruleEString ) |
| { |
| // InternalSEW.g:4059:5: (lv_description_7_0= ruleEString ) |
| // InternalSEW.g:4060:6: lv_description_7_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getDescriptionEStringParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_19); |
| lv_description_7_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| set( |
| current, |
| "description", |
| lv_description_7_0, |
| "org.eclipse.efm.sew.xtext.SEW.EString"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:4077:4: ( (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) | (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) ) |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==29) ) { |
| alt90=1; |
| } |
| else if ( (LA90_0==31) ) { |
| alt90=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 90, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalSEW.g:4078:5: (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) |
| { |
| // InternalSEW.g:4078:5: (otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' ) |
| // InternalSEW.g:4079:6: otherlv_8= '[' ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* otherlv_10= ']' |
| { |
| otherlv_8=(Token)match(input,29,FollowSets000.FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDeprecatedSectionAccess().getLeftSquareBracketKeyword_1_2_0_0()); |
| |
| } |
| // InternalSEW.g:4083:6: ( ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) )* |
| loop87: |
| do { |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==RULE_XIDENDIFIER||LA87_0==RULE_AT_IDENTIFIER||LA87_0==14||LA87_0==21||(LA87_0>=70 && LA87_0<=75)) ) { |
| alt87=1; |
| } |
| |
| |
| switch (alt87) { |
| case 1 : |
| // InternalSEW.g:4084:7: ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) |
| { |
| // InternalSEW.g:4084:7: ( (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) ) |
| // InternalSEW.g:4085:8: (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) |
| { |
| // InternalSEW.g:4085:8: (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject ) |
| int alt86=3; |
| alt86 = dfa86.predict(input); |
| switch (alt86) { |
| case 1 : |
| // InternalSEW.g:4086:9: lv_element_9_1= ruleDeprecatedAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedAttributeParserRuleCall_1_2_0_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_53); |
| lv_element_9_1=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_9_1, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4102:9: lv_element_9_2= ruleDeprecatedObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedObjectParserRuleCall_1_2_0_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_53); |
| lv_element_9_2=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_9_2, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedObject"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:4118:9: lv_element_9_3= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementObjectParserRuleCall_1_2_0_1_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_53); |
| lv_element_9_3=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_9_3, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop87; |
| } |
| } while (true); |
| |
| otherlv_10=(Token)match(input,30,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getDeprecatedSectionAccess().getRightSquareBracketKeyword_1_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4142:5: (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) |
| { |
| // InternalSEW.g:4142:5: (otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* ) |
| // InternalSEW.g:4143:6: otherlv_11= ':' ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* |
| { |
| otherlv_11=(Token)match(input,31,FollowSets000.FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDeprecatedSectionAccess().getColonKeyword_1_2_1_0()); |
| |
| } |
| // InternalSEW.g:4147:6: ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )* |
| loop89: |
| do { |
| int alt89=2; |
| alt89 = dfa89.predict(input); |
| switch (alt89) { |
| case 1 : |
| // InternalSEW.g:4148:7: ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) |
| { |
| // InternalSEW.g:4148:7: ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) |
| // InternalSEW.g:4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) |
| { |
| // InternalSEW.g:4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) |
| int alt88=3; |
| alt88 = dfa88.predict(input); |
| switch (alt88) { |
| case 1 : |
| // InternalSEW.g:4150:9: lv_element_12_1= ruleDeprecatedAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedAttributeParserRuleCall_1_2_1_1_0_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_54); |
| lv_element_12_1=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_12_1, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4166:9: lv_element_12_2= ruleDeprecatedObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementDeprecatedObjectParserRuleCall_1_2_1_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_54); |
| lv_element_12_2=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_12_2, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedObject"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:4182:9: lv_element_12_3= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementObjectParserRuleCall_1_2_1_1_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_54); |
| lv_element_12_3=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedSectionRule()); |
| } |
| add( |
| current, |
| "element", |
| lv_element_12_3, |
| "org.eclipse.efm.sew.xtext.SEW.Object"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop89; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedSection" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedAttribute" |
| // InternalSEW.g:4207:1: entryRuleDeprecatedAttribute returns [EObject current=null] : iv_ruleDeprecatedAttribute= ruleDeprecatedAttribute EOF ; |
| public final EObject entryRuleDeprecatedAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDeprecatedAttribute = null; |
| |
| |
| try { |
| // InternalSEW.g:4207:60: (iv_ruleDeprecatedAttribute= ruleDeprecatedAttribute EOF ) |
| // InternalSEW.g:4208:2: iv_ruleDeprecatedAttribute= ruleDeprecatedAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedAttributeRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedAttribute=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedAttribute; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedAttribute" |
| |
| |
| // $ANTLR start "ruleDeprecatedAttribute" |
| // InternalSEW.g:4214:1: ruleDeprecatedAttribute returns [EObject current=null] : ( () ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) ; |
| public final EObject ruleDeprecatedAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_value_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:4220:2: ( ( () ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) ) |
| // InternalSEW.g:4221:2: ( () ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) |
| { |
| // InternalSEW.g:4221:2: ( () ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? ) |
| // InternalSEW.g:4222:3: () ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) otherlv_2= '=' ( (lv_value_3_0= ruleValueSpecification ) ) (otherlv_4= ';' )? |
| { |
| // InternalSEW.g:4222:3: () |
| // InternalSEW.g:4223:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDeprecatedAttributeAccess().getWAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:4232:3: ( (lv_name_1_0= ruleDeprecatedAttributeID ) ) |
| // InternalSEW.g:4233:4: (lv_name_1_0= ruleDeprecatedAttributeID ) |
| { |
| // InternalSEW.g:4233:4: (lv_name_1_0= ruleDeprecatedAttributeID ) |
| // InternalSEW.g:4234:5: lv_name_1_0= ruleDeprecatedAttributeID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedAttributeAccess().getNameDeprecatedAttributeIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_21); |
| lv_name_1_0=ruleDeprecatedAttributeID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedAttributeRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.efm.sew.xtext.SEW.DeprecatedAttributeID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,32,FollowSets000.FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDeprecatedAttributeAccess().getEqualsSignKeyword_2()); |
| |
| } |
| // InternalSEW.g:4255:3: ( (lv_value_3_0= ruleValueSpecification ) ) |
| // InternalSEW.g:4256:4: (lv_value_3_0= ruleValueSpecification ) |
| { |
| // InternalSEW.g:4256:4: (lv_value_3_0= ruleValueSpecification ) |
| // InternalSEW.g:4257:5: lv_value_3_0= ruleValueSpecification |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedAttributeAccess().getValueValueSpecificationParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_23); |
| lv_value_3_0=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedAttributeRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.ValueSpecification"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:4274:3: (otherlv_4= ';' )? |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==33) ) { |
| alt92=1; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalSEW.g:4275:4: otherlv_4= ';' |
| { |
| otherlv_4=(Token)match(input,33,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDeprecatedAttributeAccess().getSemicolonKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedAttribute" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedAttributeID" |
| // InternalSEW.g:4284:1: entryRuleDeprecatedAttributeID returns [String current=null] : iv_ruleDeprecatedAttributeID= ruleDeprecatedAttributeID EOF ; |
| public final String entryRuleDeprecatedAttributeID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleDeprecatedAttributeID = null; |
| |
| |
| try { |
| // InternalSEW.g:4284:61: (iv_ruleDeprecatedAttributeID= ruleDeprecatedAttributeID EOF ) |
| // InternalSEW.g:4285:2: iv_ruleDeprecatedAttributeID= ruleDeprecatedAttributeID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedAttributeIDRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedAttributeID=ruleDeprecatedAttributeID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedAttributeID.getText(); |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedAttributeID" |
| |
| |
| // $ANTLR start "ruleDeprecatedAttributeID" |
| // InternalSEW.g:4291:1: ruleDeprecatedAttributeID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_XID_0= ruleXID | this_AT_IDENTIFIER_1= RULE_AT_IDENTIFIER ) ; |
| public final AntlrDatatypeRuleToken ruleDeprecatedAttributeID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_AT_IDENTIFIER_1=null; |
| AntlrDatatypeRuleToken this_XID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:4297:2: ( (this_XID_0= ruleXID | this_AT_IDENTIFIER_1= RULE_AT_IDENTIFIER ) ) |
| // InternalSEW.g:4298:2: (this_XID_0= ruleXID | this_AT_IDENTIFIER_1= RULE_AT_IDENTIFIER ) |
| { |
| // InternalSEW.g:4298:2: (this_XID_0= ruleXID | this_AT_IDENTIFIER_1= RULE_AT_IDENTIFIER ) |
| int alt93=2; |
| int LA93_0 = input.LA(1); |
| |
| if ( (LA93_0==RULE_XIDENDIFIER||LA93_0==14||LA93_0==21||(LA93_0>=70 && LA93_0<=75)) ) { |
| alt93=1; |
| } |
| else if ( (LA93_0==RULE_AT_IDENTIFIER) ) { |
| alt93=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 93, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt93) { |
| case 1 : |
| // InternalSEW.g:4299:3: this_XID_0= ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedAttributeIDAccess().getXIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_XID_0=ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_XID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4310:3: this_AT_IDENTIFIER_1= RULE_AT_IDENTIFIER |
| { |
| this_AT_IDENTIFIER_1=(Token)match(input,RULE_AT_IDENTIFIER,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_AT_IDENTIFIER_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_AT_IDENTIFIER_1, grammarAccess.getDeprecatedAttributeIDAccess().getAT_IDENTIFIERTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedAttributeID" |
| |
| |
| // $ANTLR start "entryRuleDeprecatedExpression" |
| // InternalSEW.g:4321:1: entryRuleDeprecatedExpression returns [EObject current=null] : iv_ruleDeprecatedExpression= ruleDeprecatedExpression EOF ; |
| public final EObject entryRuleDeprecatedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDeprecatedExpression = null; |
| |
| |
| try { |
| // InternalSEW.g:4321:61: (iv_ruleDeprecatedExpression= ruleDeprecatedExpression EOF ) |
| // InternalSEW.g:4322:2: iv_ruleDeprecatedExpression= ruleDeprecatedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDeprecatedExpressionRule()); |
| } |
| pushFollow(FollowSets000.FOLLOW_1); |
| iv_ruleDeprecatedExpression=ruleDeprecatedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDeprecatedExpression; |
| } |
| match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDeprecatedExpression" |
| |
| |
| // $ANTLR start "ruleDeprecatedExpression" |
| // InternalSEW.g:4328:1: ruleDeprecatedExpression returns [EObject current=null] : ( () otherlv_1= '${' ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) ( (lv_operand_3_0= ruleValueSpecification ) )* otherlv_4= '}' ) ; |
| public final EObject ruleDeprecatedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_operator_2_1=null; |
| Token lv_operator_2_2=null; |
| Token otherlv_4=null; |
| EObject lv_operand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSEW.g:4334:2: ( ( () otherlv_1= '${' ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) ( (lv_operand_3_0= ruleValueSpecification ) )* otherlv_4= '}' ) ) |
| // InternalSEW.g:4335:2: ( () otherlv_1= '${' ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) ( (lv_operand_3_0= ruleValueSpecification ) )* otherlv_4= '}' ) |
| { |
| // InternalSEW.g:4335:2: ( () otherlv_1= '${' ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) ( (lv_operand_3_0= ruleValueSpecification ) )* otherlv_4= '}' ) |
| // InternalSEW.g:4336:3: () otherlv_1= '${' ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) ( (lv_operand_3_0= ruleValueSpecification ) )* otherlv_4= '}' |
| { |
| // InternalSEW.g:4336:3: () |
| // InternalSEW.g:4337:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDeprecatedExpressionAccess().getExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,78,FollowSets000.FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDeprecatedExpressionAccess().getDollarSignLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalSEW.g:4350:3: ( ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) ) |
| // InternalSEW.g:4351:4: ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) |
| { |
| // InternalSEW.g:4351:4: ( (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) ) |
| // InternalSEW.g:4352:5: (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) |
| { |
| // InternalSEW.g:4352:5: (lv_operator_2_1= '|;|' | lv_operator_2_2= '|i|' ) |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==79) ) { |
| alt94=1; |
| } |
| else if ( (LA94_0==80) ) { |
| 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 : |
| // InternalSEW.g:4353:6: lv_operator_2_1= '|;|' |
| { |
| lv_operator_2_1=(Token)match(input,79,FollowSets000.FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_1, grammarAccess.getDeprecatedExpressionAccess().getOperatorVerticalLineSemicolonVerticalLineKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDeprecatedExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_1, null); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4364:6: lv_operator_2_2= '|i|' |
| { |
| lv_operator_2_2=(Token)match(input,80,FollowSets000.FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_operator_2_2, grammarAccess.getDeprecatedExpressionAccess().getOperatorIKeyword_2_0_1()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDeprecatedExpressionRule()); |
| } |
| setWithLastConsumed(current, "operator", lv_operator_2_2, null); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:4377:3: ( (lv_operand_3_0= ruleValueSpecification ) )* |
| loop95: |
| do { |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( ((LA95_0>=RULE_XIDENDIFIER && LA95_0<=RULE_STRING)||LA95_0==14||LA95_0==21||LA95_0==26||LA95_0==29||LA95_0==47||(LA95_0>=52 && LA95_0<=55)||(LA95_0>=57 && LA95_0<=75)||LA95_0==78) ) { |
| alt95=1; |
| } |
| |
| |
| switch (alt95) { |
| case 1 : |
| // InternalSEW.g:4378:4: (lv_operand_3_0= ruleValueSpecification ) |
| { |
| // InternalSEW.g:4378:4: (lv_operand_3_0= ruleValueSpecification ) |
| // InternalSEW.g:4379:5: lv_operand_3_0= ruleValueSpecification |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedExpressionAccess().getOperandValueSpecificationParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_56); |
| lv_operand_3_0=ruleValueSpecification(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDeprecatedExpressionRule()); |
| } |
| add( |
| current, |
| "operand", |
| lv_operand_3_0, |
| "org.eclipse.efm.sew.xtext.SEW.ValueSpecification"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop95; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,17,FollowSets000.FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDeprecatedExpressionAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDeprecatedExpression" |
| |
| // $ANTLR start synpred7_InternalSEW |
| public final void synpred7_InternalSEW_fragment() throws RecognitionException { |
| Token lv_type_2_1=null; |
| Token lv_type_2_2=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_description_4_0 = null; |
| |
| EObject lv_element_6_1 = null; |
| |
| EObject lv_element_6_2 = null; |
| |
| |
| // InternalSEW.g:120:4: ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) ) |
| // InternalSEW.g:120:4: ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) |
| { |
| // InternalSEW.g:120:4: ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) |
| // InternalSEW.g:121:5: ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' |
| { |
| // InternalSEW.g:121:5: ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) |
| // InternalSEW.g:122:6: ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) |
| { |
| // InternalSEW.g:122:6: ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) |
| // InternalSEW.g:123:7: (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) |
| { |
| // InternalSEW.g:123:7: (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==14) ) { |
| alt97=1; |
| } |
| else if ( (LA97_0==15) ) { |
| alt97=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalSEW.g:124:8: lv_type_2_1= 'workflow' |
| { |
| lv_type_2_1=(Token)match(input,14,FollowSets000.FOLLOW_4); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:135:8: lv_type_2_2= 'symbex-workflow' |
| { |
| lv_type_2_2=(Token)match(input,15,FollowSets000.FOLLOW_4); if (state.failed) return ; |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:148:5: ( (lv_name_3_0= ruleUFI ) )? |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( (LA98_0==RULE_XIDENDIFIER||LA98_0==14||LA98_0==21||(LA98_0>=70 && LA98_0<=75)) ) { |
| alt98=1; |
| } |
| switch (alt98) { |
| case 1 : |
| // InternalSEW.g:149:6: (lv_name_3_0= ruleUFI ) |
| { |
| // InternalSEW.g:149:6: (lv_name_3_0= ruleUFI ) |
| // InternalSEW.g:150:7: lv_name_3_0= ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getNameUFIParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_5); |
| lv_name_3_0=ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSEW.g:167:5: ( (lv_description_4_0= ruleEString ) )? |
| int alt99=2; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==RULE_STRING) ) { |
| alt99=1; |
| } |
| switch (alt99) { |
| case 1 : |
| // InternalSEW.g:168:6: (lv_description_4_0= ruleEString ) |
| { |
| // InternalSEW.g:168:6: (lv_description_4_0= ruleEString ) |
| // InternalSEW.g:169:7: lv_description_4_0= ruleEString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getDescriptionEStringParserRuleCall_2_0_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_6); |
| lv_description_4_0=ruleEString(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,16,FollowSets000.FOLLOW_7); if (state.failed) return ; |
| // InternalSEW.g:190:5: ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* |
| loop101: |
| do { |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==RULE_XIDENDIFIER||LA101_0==14||LA101_0==21||(LA101_0>=70 && LA101_0<=75)) ) { |
| alt101=1; |
| } |
| |
| |
| switch (alt101) { |
| case 1 : |
| // InternalSEW.g:191:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:191:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) |
| // InternalSEW.g:192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) |
| { |
| // InternalSEW.g:192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) |
| int alt100=2; |
| alt100 = dfa100.predict(input); |
| switch (alt100) { |
| case 1 : |
| // InternalSEW.g:193:8: lv_element_6_1= ruleObject |
| { |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_6_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:209:8: lv_element_6_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementPropertyParserRuleCall_2_0_4_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_7); |
| lv_element_6_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop101; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,17,FollowSets000.FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalSEW |
| |
| // $ANTLR start synpred10_InternalSEW |
| public final void synpred10_InternalSEW_fragment() throws RecognitionException { |
| EObject lv_element_8_1 = null; |
| |
| EObject lv_element_8_2 = null; |
| |
| |
| // InternalSEW.g:233:4: ( ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* ) |
| // InternalSEW.g:233:4: ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* |
| { |
| // InternalSEW.g:233:4: ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* |
| loop104: |
| do { |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( (LA104_0==RULE_XIDENDIFIER||LA104_0==14||LA104_0==21||(LA104_0>=70 && LA104_0<=75)) ) { |
| alt104=1; |
| } |
| |
| |
| switch (alt104) { |
| case 1 : |
| // InternalSEW.g:234:5: ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) |
| { |
| // InternalSEW.g:234:5: ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) |
| // InternalSEW.g:235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) |
| { |
| // InternalSEW.g:235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) |
| int alt103=2; |
| alt103 = dfa103.predict(input); |
| switch (alt103) { |
| case 1 : |
| // InternalSEW.g:236:7: lv_element_8_1= ruleObject |
| { |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_8_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:252:7: lv_element_8_2= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWorkflowAccess().getElementPropertyParserRuleCall_2_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_8); |
| lv_element_8_2=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop104; |
| } |
| } while (true); |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalSEW |
| |
| // $ANTLR start synpred38_InternalSEW |
| public final void synpred38_InternalSEW_fragment() throws RecognitionException { |
| EObject lv_element_6_1 = null; |
| |
| EObject lv_element_6_2 = null; |
| |
| |
| // InternalSEW.g:941:6: ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) ) |
| // InternalSEW.g:941:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) |
| { |
| // InternalSEW.g:941:6: ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) |
| // InternalSEW.g:942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) |
| { |
| // InternalSEW.g:942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) |
| int alt117=2; |
| alt117 = dfa117.predict(input); |
| switch (alt117) { |
| case 1 : |
| // InternalSEW.g:943:8: lv_element_6_1= ruleObject |
| { |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_6_1=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:959:8: lv_element_6_2= ruleAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSectionAccess().getElementAttributeParserRuleCall_2_1_1_0_1()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_6_2=ruleAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalSEW |
| |
| // $ANTLR start synpred59_InternalSEW |
| public final void synpred59_InternalSEW_fragment() throws RecognitionException { |
| Token otherlv_4=null; |
| EObject lv_operand_5_0 = null; |
| |
| |
| // InternalSEW.g:1770:5: (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) ) |
| // InternalSEW.g:1770:5: otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| { |
| otherlv_4=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return ; |
| // InternalSEW.g:1774:5: ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| { |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| // InternalSEW.g:1776:7: lv_operand_5_0= rulemultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperandMultiplicativeExpressionParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_5_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred59_InternalSEW |
| |
| // $ANTLR start synpred60_InternalSEW |
| public final void synpred60_InternalSEW_fragment() throws RecognitionException { |
| Token lv_operator_2_0=null; |
| Token otherlv_4=null; |
| EObject lv_operand_3_0 = null; |
| |
| EObject lv_operand_5_0 = null; |
| |
| |
| // InternalSEW.g:1726:4: ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* ) |
| // InternalSEW.g:1726:4: () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* |
| { |
| // InternalSEW.g:1726:4: () |
| // InternalSEW.g:1727:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:1736:4: ( (lv_operator_2_0= '+' ) ) |
| // InternalSEW.g:1737:5: (lv_operator_2_0= '+' ) |
| { |
| // InternalSEW.g:1737:5: (lv_operator_2_0= '+' ) |
| // InternalSEW.g:1738:6: lv_operator_2_0= '+' |
| { |
| lv_operator_2_0=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1750:4: ( (lv_operand_3_0= rulemultiplicativeExpression ) ) |
| // InternalSEW.g:1751:5: (lv_operand_3_0= rulemultiplicativeExpression ) |
| { |
| // InternalSEW.g:1751:5: (lv_operand_3_0= rulemultiplicativeExpression ) |
| // InternalSEW.g:1752:6: lv_operand_3_0= rulemultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperandMultiplicativeExpressionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_31); |
| lv_operand_3_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:1769:4: (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* |
| loop128: |
| do { |
| int alt128=2; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==47) ) { |
| alt128=1; |
| } |
| |
| |
| switch (alt128) { |
| case 1 : |
| // InternalSEW.g:1770:5: otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| { |
| otherlv_4=(Token)match(input,47,FollowSets000.FOLLOW_27); if (state.failed) return ; |
| // InternalSEW.g:1774:5: ( (lv_operand_5_0= rulemultiplicativeExpression ) ) |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| { |
| // InternalSEW.g:1775:6: (lv_operand_5_0= rulemultiplicativeExpression ) |
| // InternalSEW.g:1776:7: lv_operand_5_0= rulemultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperandMultiplicativeExpressionParserRuleCall_1_3_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_31); |
| lv_operand_5_0=rulemultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop128; |
| } |
| } while (true); |
| |
| |
| } |
| } |
| // $ANTLR end synpred60_InternalSEW |
| |
| // $ANTLR start synpred70_InternalSEW |
| public final void synpred70_InternalSEW_fragment() throws RecognitionException { |
| Token lv_operator_3_0=null; |
| EObject lv_operand_4_0 = null; |
| |
| |
| // InternalSEW.g:2147:3: ( ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) ) |
| // InternalSEW.g:2147:3: ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) |
| { |
| // InternalSEW.g:2147:3: ( () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) ) |
| // InternalSEW.g:2148:4: () ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) |
| { |
| // InternalSEW.g:2148:4: () |
| // InternalSEW.g:2149:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| |
| } |
| |
| // InternalSEW.g:2158:4: ( ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) ) |
| // InternalSEW.g:2159:5: ( (lv_operator_3_0= '-' ) ) ( (lv_operand_4_0= ruleprimaryExpression ) ) |
| { |
| // InternalSEW.g:2159:5: ( (lv_operator_3_0= '-' ) ) |
| // InternalSEW.g:2160:6: (lv_operator_3_0= '-' ) |
| { |
| // InternalSEW.g:2160:6: (lv_operator_3_0= '-' ) |
| // InternalSEW.g:2161:7: lv_operator_3_0= '-' |
| { |
| lv_operator_3_0=(Token)match(input,52,FollowSets000.FOLLOW_27); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSEW.g:2173:5: ( (lv_operand_4_0= ruleprimaryExpression ) ) |
| // InternalSEW.g:2174:6: (lv_operand_4_0= ruleprimaryExpression ) |
| { |
| // InternalSEW.g:2174:6: (lv_operand_4_0= ruleprimaryExpression ) |
| // InternalSEW.g:2175:7: lv_operand_4_0= ruleprimaryExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperandPrimaryExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_operand_4_0=ruleprimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred70_InternalSEW |
| |
| // $ANTLR start synpred76_InternalSEW |
| public final void synpred76_InternalSEW_fragment() throws RecognitionException { |
| EObject this_LiteralIntegerValue_2 = null; |
| |
| |
| // InternalSEW.g:2332:3: (this_LiteralIntegerValue_2= ruleLiteralIntegerValue ) |
| // InternalSEW.g:2332:3: this_LiteralIntegerValue_2= ruleLiteralIntegerValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralIntegerValue_2=ruleLiteralIntegerValue(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred76_InternalSEW |
| |
| // $ANTLR start synpred78_InternalSEW |
| public final void synpred78_InternalSEW_fragment() throws RecognitionException { |
| EObject this_LiteralFloatValue_4 = null; |
| |
| |
| // InternalSEW.g:2356:3: (this_LiteralFloatValue_4= ruleLiteralFloatValue ) |
| // InternalSEW.g:2356:3: this_LiteralFloatValue_4= ruleLiteralFloatValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| this_LiteralFloatValue_4=ruleLiteralFloatValue(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred78_InternalSEW |
| |
| // $ANTLR start synpred87_InternalSEW |
| public final void synpred87_InternalSEW_fragment() throws RecognitionException { |
| // InternalSEW.g:2548:4: ( ( ( ruleUFI ) ) ) |
| // InternalSEW.g:2548:4: ( ( ruleUFI ) ) |
| { |
| // InternalSEW.g:2548:4: ( ( ruleUFI ) ) |
| // InternalSEW.g:2549:5: ( ruleUFI ) |
| { |
| // InternalSEW.g:2549:5: ( ruleUFI ) |
| // InternalSEW.g:2550:6: ruleUFI |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleUFI(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred87_InternalSEW |
| |
| // $ANTLR start synpred117_InternalSEW |
| public final void synpred117_InternalSEW_fragment() throws RecognitionException { |
| // InternalSEW.g:4025:5: ( ruleXID ) |
| // InternalSEW.g:4025:5: ruleXID |
| { |
| if ( state.backtracking==0 ) { |
| |
| /* */ |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| ruleXID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred117_InternalSEW |
| |
| // $ANTLR start synpred126_InternalSEW |
| public final void synpred126_InternalSEW_fragment() throws RecognitionException { |
| EObject lv_element_12_1 = null; |
| |
| EObject lv_element_12_2 = null; |
| |
| EObject lv_element_12_3 = null; |
| |
| |
| // InternalSEW.g:4148:7: ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) ) |
| // InternalSEW.g:4148:7: ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) |
| { |
| // InternalSEW.g:4148:7: ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) |
| // InternalSEW.g:4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) |
| { |
| // InternalSEW.g:4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) |
| int alt145=3; |
| alt145 = dfa145.predict(input); |
| switch (alt145) { |
| case 1 : |
| // InternalSEW.g:4150:9: lv_element_12_1= ruleDeprecatedAttribute |
| { |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_12_1=ruleDeprecatedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSEW.g:4166:9: lv_element_12_2= ruleDeprecatedObject |
| { |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_12_2=ruleDeprecatedObject(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| case 3 : |
| // InternalSEW.g:4182:9: lv_element_12_3= ruleObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDeprecatedSectionAccess().getElementObjectParserRuleCall_1_2_1_1_0_2()); |
| |
| } |
| pushFollow(FollowSets000.FOLLOW_2); |
| lv_element_12_3=ruleObject(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred126_InternalSEW |
| |
| // Delegated rules |
| |
| public final boolean synpred70_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred70_InternalSEW_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 synpred78_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred78_InternalSEW_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 synpred60_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred60_InternalSEW_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 synpred117_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred117_InternalSEW_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 synpred126_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred126_InternalSEW_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred10_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalSEW_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred38_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalSEW_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 synpred76_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred76_InternalSEW_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred7_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalSEW_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 synpred59_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred59_InternalSEW_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 synpred87_InternalSEW() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred87_InternalSEW_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 DFA9 dfa9 = new DFA9(this); |
| protected DFA5 dfa5 = new DFA5(this); |
| protected DFA7 dfa7 = new DFA7(this); |
| protected DFA27 dfa27 = new DFA27(this); |
| protected DFA20 dfa20 = new DFA20(this); |
| protected DFA25 dfa25 = new DFA25(this); |
| protected DFA28 dfa28 = new DFA28(this); |
| protected DFA30 dfa30 = new DFA30(this); |
| protected DFA33 dfa33 = new DFA33(this); |
| protected DFA32 dfa32 = new DFA32(this); |
| protected DFA51 dfa51 = new DFA51(this); |
| protected DFA50 dfa50 = new DFA50(this); |
| protected DFA59 dfa59 = new DFA59(this); |
| protected DFA63 dfa63 = new DFA63(this); |
| protected DFA64 dfa64 = new DFA64(this); |
| protected DFA81 dfa81 = new DFA81(this); |
| protected DFA83 dfa83 = new DFA83(this); |
| protected DFA82 dfa82 = new DFA82(this); |
| protected DFA84 dfa84 = new DFA84(this); |
| protected DFA86 dfa86 = new DFA86(this); |
| protected DFA89 dfa89 = new DFA89(this); |
| protected DFA88 dfa88 = new DFA88(this); |
| protected DFA100 dfa100 = new DFA100(this); |
| protected DFA103 dfa103 = new DFA103(this); |
| protected DFA117 dfa117 = new DFA117(this); |
| protected DFA145 dfa145 = new DFA145(this); |
| static final String dfa_1s = "\15\uffff"; |
| static final String dfa_2s = "\1\3\14\uffff"; |
| static final String dfa_3s = "\1\4\1\0\2\uffff\1\0\1\uffff\1\0\6\uffff"; |
| static final String dfa_4s = "\1\113\1\0\2\uffff\1\0\1\uffff\1\0\6\uffff"; |
| static final String dfa_5s = "\2\uffff\1\1\1\2\10\uffff\1\3"; |
| static final String dfa_6s = "\1\uffff\1\0\2\uffff\1\1\1\uffff\1\2\6\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\3\11\uffff\1\1\1\2\5\uffff\1\3\60\uffff\1\4\1\3\1\6\3\3", |
| "\1\uffff", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); |
| static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); |
| |
| class DFA9 extends DFA { |
| |
| public DFA9(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 9; |
| this.eot = dfa_1; |
| this.eof = dfa_2; |
| this.min = dfa_3; |
| this.max = dfa_4; |
| this.accept = dfa_5; |
| this.special = dfa_6; |
| this.transition = dfa_7; |
| } |
| public String getDescription() { |
| return "119:3: ( ( ( ( (lv_type_2_1= 'workflow' | lv_type_2_2= 'symbex-workflow' ) ) ) ( (lv_name_3_0= ruleUFI ) )? ( (lv_description_4_0= ruleEString ) )? otherlv_5= '{' ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty ) ) )* otherlv_7= '}' ) | ( ( (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty ) ) )* | ( (lv_element_9_0= ruleDeprecatedObject ) ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA9_1 = input.LA(1); |
| |
| |
| int index9_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSEW()) ) {s = 2;} |
| |
| else if ( (synpred10_InternalSEW()) ) {s = 3;} |
| |
| |
| input.seek(index9_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA9_4 = input.LA(1); |
| |
| |
| int index9_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred10_InternalSEW()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 12;} |
| |
| |
| input.seek(index9_4); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA9_6 = input.LA(1); |
| |
| |
| int index9_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred10_InternalSEW()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 12;} |
| |
| |
| input.seek(index9_6); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 9, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_8s = "\12\4\2\uffff\1\20"; |
| static final String dfa_9s = "\12\113\2\uffff\1\37"; |
| static final String dfa_10s = "\12\uffff\1\2\1\1\1\uffff"; |
| static final String dfa_11s = "\15\uffff}>"; |
| static final String[] dfa_12s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\14\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\1\12\1\uffff\2\12\45\uffff\6\13", |
| "", |
| "", |
| "\1\13\14\uffff\1\12\1\uffff\1\12" |
| }; |
| 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 DFA5 extends DFA { |
| |
| public DFA5(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 5; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_8; |
| this.max = dfa_9; |
| this.accept = dfa_10; |
| this.special = dfa_11; |
| this.transition = dfa_12; |
| } |
| public String getDescription() { |
| return "192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty )"; |
| } |
| } |
| |
| class DFA7 extends DFA { |
| |
| public DFA7(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 7; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_8; |
| this.max = dfa_9; |
| this.accept = dfa_10; |
| this.special = dfa_11; |
| this.transition = dfa_12; |
| } |
| public String getDescription() { |
| return "235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty )"; |
| } |
| } |
| static final String dfa_13s = "\27\uffff"; |
| static final String dfa_14s = "\14\4\2\uffff\11\4"; |
| static final String dfa_15s = "\14\113\2\uffff\11\113"; |
| static final String dfa_16s = "\14\uffff\1\2\1\1\11\uffff"; |
| static final String dfa_17s = "\27\uffff}>"; |
| static final String[] dfa_18s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\26\11\uffff\1\16\6\uffff\1\17\60\uffff\1\20\1\21\1\22\1\23\1\24\1\25", |
| "\1\26\11\uffff\1\16\6\uffff\1\17\60\uffff\1\20\1\21\1\22\1\23\1\24\1\25", |
| "", |
| "", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15", |
| "\1\15\2\uffff\1\15\6\uffff\1\15\1\uffff\1\15\4\uffff\1\15\3\uffff\1\12\1\13\2\14\51\uffff\6\15" |
| }; |
| |
| 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 DFA27 extends DFA { |
| |
| public DFA27(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 27; |
| 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 "544:2: ( ( () ( (lv_type_1_0= ruleUFI ) ) ( (lv_name_2_0= ruleUFI ) )? ( (lv_description_3_0= ruleEString ) )? otherlv_4= '{' ( ( (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty ) ) )* otherlv_6= '}' ) | ( () ( (lv_name_8_0= ruleUFI ) ) (otherlv_9= ':=' | otherlv_10= '+:=' ) ( ( (lv_type_11_0= ruleUFI ) ) ( (lv_description_12_0= ruleEString ) )? )? otherlv_13= '{' ( ( (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty ) ) )* otherlv_15= '}' ) )"; |
| } |
| } |
| |
| class DFA20 extends DFA { |
| |
| public DFA20(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 20; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_8; |
| this.max = dfa_9; |
| this.accept = dfa_10; |
| this.special = dfa_11; |
| this.transition = dfa_12; |
| } |
| public String getDescription() { |
| return "619:6: (lv_element_5_1= ruleObject | lv_element_5_2= ruleProperty )"; |
| } |
| } |
| static final String dfa_19s = "\12\4\1\uffff\1\20\1\uffff"; |
| static final String dfa_20s = "\12\113\1\uffff\1\37\1\uffff"; |
| static final String dfa_21s = "\12\uffff\1\1\1\uffff\1\2"; |
| static final String[] dfa_22s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "\1\12\2\uffff\1\13\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\1\14\1\uffff\2\14\45\uffff\6\12", |
| "", |
| "\1\12\14\uffff\1\14\1\uffff\1\14", |
| "" |
| }; |
| static final char[] dfa_19 = DFA.unpackEncodedStringToUnsignedChars(dfa_19s); |
| static final char[] dfa_20 = DFA.unpackEncodedStringToUnsignedChars(dfa_20s); |
| static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s); |
| static final short[][] dfa_22 = unpackEncodedStringArray(dfa_22s); |
| |
| class DFA25 extends DFA { |
| |
| public DFA25(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 25; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_19; |
| this.max = dfa_20; |
| this.accept = dfa_21; |
| this.special = dfa_11; |
| this.transition = dfa_22; |
| } |
| public String getDescription() { |
| return "747:6: (lv_element_14_1= ruleObject | lv_element_14_2= ruleProperty )"; |
| } |
| } |
| static final String dfa_23s = "\14\uffff"; |
| static final String dfa_24s = "\1\4\11\7\2\uffff"; |
| static final String dfa_25s = "\1\113\11\40\2\uffff"; |
| static final String dfa_26s = "\12\uffff\1\2\1\1"; |
| static final String dfa_27s = "\14\uffff}>"; |
| static final String[] dfa_28s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_23 = DFA.unpackEncodedString(dfa_23s); |
| static final char[] dfa_24 = DFA.unpackEncodedStringToUnsignedChars(dfa_24s); |
| static final char[] dfa_25 = DFA.unpackEncodedStringToUnsignedChars(dfa_25s); |
| static final short[] dfa_26 = DFA.unpackEncodedString(dfa_26s); |
| static final short[] dfa_27 = DFA.unpackEncodedString(dfa_27s); |
| static final short[][] dfa_28 = unpackEncodedStringArray(dfa_28s); |
| |
| class DFA28 extends DFA { |
| |
| public DFA28(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 28; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_24; |
| this.max = dfa_25; |
| this.accept = dfa_26; |
| this.special = dfa_27; |
| this.transition = dfa_28; |
| } |
| public String getDescription() { |
| return "805:2: (this_Section_0= ruleSection | this_Attribute_1= ruleAttribute )"; |
| } |
| } |
| static final String dfa_29s = "\12\4\2\uffff"; |
| static final String dfa_30s = "\12\113\2\uffff"; |
| static final String dfa_31s = "\12\uffff\1\1\1\2"; |
| static final String[] dfa_32s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "\1\12\2\uffff\1\12\6\uffff\1\12\1\uffff\1\12\4\uffff\1\12\3\uffff\4\12\3\uffff\1\13\45\uffff\6\12", |
| "", |
| "" |
| }; |
| static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s); |
| static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s); |
| static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); |
| static final short[][] dfa_32 = unpackEncodedStringArray(dfa_32s); |
| |
| class DFA30 extends DFA { |
| |
| public DFA30(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 30; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_27; |
| this.transition = dfa_32; |
| } |
| public String getDescription() { |
| return "894:7: (lv_element_3_1= ruleObject | lv_element_3_2= ruleAttribute )"; |
| } |
| } |
| static final String dfa_33s = "\1\1\14\uffff"; |
| static final String dfa_34s = "\1\4\1\uffff\11\0\2\uffff"; |
| static final String dfa_35s = "\1\113\1\uffff\11\0\2\uffff"; |
| static final String dfa_36s = "\1\uffff\1\2\12\uffff\1\1"; |
| static final String dfa_37s = "\2\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\2\uffff}>"; |
| static final String[] dfa_38s = { |
| "\1\12\11\uffff\1\2\2\uffff\1\1\3\uffff\1\3\60\uffff\1\4\1\5\1\6\1\7\1\10\1\11", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| static final short[] dfa_33 = DFA.unpackEncodedString(dfa_33s); |
| static final char[] dfa_34 = DFA.unpackEncodedStringToUnsignedChars(dfa_34s); |
| static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s); |
| static final short[] dfa_36 = DFA.unpackEncodedString(dfa_36s); |
| static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s); |
| static final short[][] dfa_38 = unpackEncodedStringArray(dfa_38s); |
| |
| class DFA33 extends DFA { |
| |
| public DFA33(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 33; |
| this.eot = dfa_1; |
| this.eof = dfa_33; |
| this.min = dfa_34; |
| this.max = dfa_35; |
| this.accept = dfa_36; |
| this.special = dfa_37; |
| this.transition = dfa_38; |
| } |
| public String getDescription() { |
| return "()* loopback of 940:5: ( ( (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA33_2 = input.LA(1); |
| |
| |
| int index33_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_2); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA33_3 = input.LA(1); |
| |
| |
| int index33_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_3); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA33_4 = input.LA(1); |
| |
| |
| int index33_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_4); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA33_5 = input.LA(1); |
| |
| |
| int index33_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_5); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA33_6 = input.LA(1); |
| |
| |
| int index33_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_6); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA33_7 = input.LA(1); |
| |
| |
| int index33_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_7); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA33_8 = input.LA(1); |
| |
| |
| int index33_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_8); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA33_9 = input.LA(1); |
| |
| |
| int index33_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_9); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA33_10 = input.LA(1); |
| |
| |
| int index33_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index33_10); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 33, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA32 extends DFA { |
| |
| public DFA32(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 32; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_27; |
| this.transition = dfa_32; |
| } |
| public String getDescription() { |
| return "942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute )"; |
| } |
| } |
| static final String dfa_39s = "\71\uffff"; |
| static final String dfa_40s = "\1\2\70\uffff"; |
| static final String dfa_41s = "\1\4\1\0\67\uffff"; |
| static final String dfa_42s = "\1\116\1\0\67\uffff"; |
| static final String dfa_43s = "\2\uffff\1\2\65\uffff\1\1"; |
| static final String dfa_44s = "\1\uffff\1\0\67\uffff}>"; |
| static final String[] dfa_45s = { |
| "\5\2\5\uffff\1\2\2\uffff\1\2\2\uffff\3\2\3\uffff\1\2\2\uffff\3\2\1\uffff\16\2\1\1\4\uffff\30\2\2\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_39 = DFA.unpackEncodedString(dfa_39s); |
| static final short[] dfa_40 = DFA.unpackEncodedString(dfa_40s); |
| static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s); |
| static final char[] dfa_42 = DFA.unpackEncodedStringToUnsignedChars(dfa_42s); |
| static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s); |
| static final short[] dfa_44 = DFA.unpackEncodedString(dfa_44s); |
| static final short[][] dfa_45 = unpackEncodedStringArray(dfa_45s); |
| |
| class DFA51 extends DFA { |
| |
| public DFA51(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 51; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "1725:3: ( () ( (lv_operator_2_0= '+' ) ) ( (lv_operand_3_0= rulemultiplicativeExpression ) ) (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )* )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA51_1 = input.LA(1); |
| |
| |
| int index51_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred60_InternalSEW()) ) {s = 56;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index51_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 51, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\1\70\uffff"; |
| static final String dfa_47s = "\1\4\35\uffff\1\0\32\uffff"; |
| static final String dfa_48s = "\1\116\35\uffff\1\0\32\uffff"; |
| static final String dfa_49s = "\1\uffff\1\2\66\uffff\1\1"; |
| static final String dfa_50s = "\36\uffff\1\0\32\uffff}>"; |
| static final String[] dfa_51s = { |
| "\5\1\5\uffff\1\1\2\uffff\1\1\2\uffff\3\1\3\uffff\1\1\2\uffff\3\1\1\uffff\16\1\1\36\4\uffff\30\1\2\uffff\1\1", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_46 = DFA.unpackEncodedString(dfa_46s); |
| static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); |
| static final char[] dfa_48 = DFA.unpackEncodedStringToUnsignedChars(dfa_48s); |
| static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); |
| static final short[] dfa_50 = DFA.unpackEncodedString(dfa_50s); |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA50 extends DFA { |
| |
| public DFA50(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 50; |
| this.eot = dfa_39; |
| this.eof = dfa_46; |
| this.min = dfa_47; |
| this.max = dfa_48; |
| this.accept = dfa_49; |
| this.special = dfa_50; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "()* loopback of 1769:4: (otherlv_4= '+' ( (lv_operand_5_0= rulemultiplicativeExpression ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA50_30 = input.LA(1); |
| |
| |
| int index50_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred59_InternalSEW()) ) {s = 56;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index50_30); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 50, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_52s = "\16\uffff"; |
| static final String dfa_53s = "\1\4\2\uffff\1\6\1\62\11\uffff"; |
| static final String dfa_54s = "\1\113\2\uffff\1\32\1\62\11\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\2\uffff\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\4\1\3"; |
| static final String dfa_56s = "\4\uffff\1\0\11\uffff}>"; |
| static final String[] dfa_57s = { |
| "\1\11\1\2\1\4\1\6\6\uffff\1\11\6\uffff\1\11\4\uffff\1\5\2\uffff\1\10\26\uffff\1\3\4\uffff\1\11\1\7\2\12\7\13\2\1\6\11", |
| "", |
| "", |
| "\1\4\23\uffff\1\5", |
| "\1\14", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); |
| static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); |
| static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); |
| static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); |
| static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); |
| static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); |
| |
| class DFA59 extends DFA { |
| |
| public DFA59(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 59; |
| this.eot = dfa_52; |
| this.eof = dfa_52; |
| this.min = dfa_53; |
| this.max = dfa_54; |
| this.accept = dfa_55; |
| this.special = dfa_56; |
| this.transition = dfa_57; |
| } |
| public String getDescription() { |
| return "2307:2: (this_LiteralBooleanValue_0= ruleLiteralBooleanValue | this_LiteralCharacterValue_1= ruleLiteralCharacterValue | this_LiteralIntegerValue_2= ruleLiteralIntegerValue | this_LiteralRationalValue_3= ruleLiteralRationalValue | this_LiteralFloatValue_4= ruleLiteralFloatValue | this_LiteralStringValue_5= ruleLiteralStringValue | this_LiteralNullValue_6= ruleLiteralNullValue | this_LiteralArrayValue_7= ruleLiteralArrayValue | this_LiteralObjectReference_8= ruleLiteralObjectReference | this_LiteralVariableReference_9= ruleLiteralVariableReference | this_LiteralInstanceReference_10= ruleLiteralInstanceReference )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA59_4 = input.LA(1); |
| |
| |
| int index59_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA59_4==50) ) {s = 12;} |
| |
| else if ( (synpred76_InternalSEW()) ) {s = 13;} |
| |
| else if ( (synpred78_InternalSEW()) ) {s = 5;} |
| |
| |
| input.seek(index59_4); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 59, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_58s = "\1\4\11\0\2\uffff"; |
| static final String dfa_59s = "\1\113\11\0\2\uffff"; |
| static final String dfa_60s = "\1\uffff\1\0\1\5\1\1\1\6\1\2\1\7\1\3\1\4\1\10\2\uffff}>"; |
| static final String[] dfa_61s = { |
| "\1\11\11\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| static final char[] dfa_58 = DFA.unpackEncodedStringToUnsignedChars(dfa_58s); |
| static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); |
| static final short[] dfa_60 = DFA.unpackEncodedString(dfa_60s); |
| static final short[][] dfa_61 = unpackEncodedStringArray(dfa_61s); |
| |
| class DFA63 extends DFA { |
| |
| public DFA63(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 63; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_58; |
| this.max = dfa_59; |
| this.accept = dfa_31; |
| this.special = dfa_60; |
| this.transition = dfa_61; |
| } |
| public String getDescription() { |
| return "2547:3: ( ( ( ruleUFI ) ) | ( (lv_symbol_2_0= ruleUFI ) ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA63_1 = input.LA(1); |
| |
| |
| int index63_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA63_3 = input.LA(1); |
| |
| |
| int index63_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_3); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA63_5 = input.LA(1); |
| |
| |
| int index63_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_5); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA63_7 = input.LA(1); |
| |
| |
| int index63_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_7); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA63_8 = input.LA(1); |
| |
| |
| int index63_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_8); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA63_2 = input.LA(1); |
| |
| |
| int index63_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_2); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA63_4 = input.LA(1); |
| |
| |
| int index63_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_4); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA63_6 = input.LA(1); |
| |
| |
| int index63_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_6); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA63_9 = input.LA(1); |
| |
| |
| int index63_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred87_InternalSEW()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index63_9); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 63, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_62s = "\1\2\2\uffff\11\2\1\uffff"; |
| static final String dfa_63s = "\2\4\1\uffff\11\4\1\uffff"; |
| static final String dfa_64s = "\1\116\1\113\1\uffff\11\116\1\uffff"; |
| static final String dfa_65s = "\2\uffff\1\2\11\uffff\1\1"; |
| static final String[] dfa_66s = { |
| "\5\2\5\uffff\1\2\2\uffff\1\2\2\uffff\1\1\2\2\3\uffff\1\2\2\uffff\3\2\1\uffff\53\2\2\uffff\1\2", |
| "\1\13\3\2\6\uffff\1\3\6\uffff\1\4\4\uffff\1\2\2\uffff\1\2\21\uffff\1\2\4\uffff\4\2\1\uffff\15\2\1\5\1\6\1\7\1\10\1\11\1\12", |
| "", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "\5\2\5\uffff\1\2\2\uffff\1\2\3\uffff\2\2\2\uffff\2\2\2\uffff\3\2\1\uffff\13\2\1\uffff\1\14\1\uffff\35\2\2\uffff\1\2", |
| "" |
| }; |
| static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); |
| static final char[] dfa_63 = DFA.unpackEncodedStringToUnsignedChars(dfa_63s); |
| static final char[] dfa_64 = DFA.unpackEncodedStringToUnsignedChars(dfa_64s); |
| static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); |
| static final short[][] dfa_66 = unpackEncodedStringArray(dfa_66s); |
| |
| class DFA64 extends DFA { |
| |
| public DFA64(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 64; |
| this.eot = dfa_1; |
| this.eof = dfa_62; |
| this.min = dfa_63; |
| this.max = dfa_64; |
| this.accept = dfa_65; |
| this.special = dfa_11; |
| this.transition = dfa_66; |
| } |
| public String getDescription() { |
| return "2862:3: (otherlv_2= '<' ( (lv_type_3_0= ruleXID ) ) otherlv_4= '>' )?"; |
| } |
| } |
| static final String dfa_67s = "\2\4\10\7\2\uffff"; |
| static final String dfa_68s = "\2\113\10\40\2\uffff"; |
| static final String[] dfa_69s = { |
| "\1\11\3\uffff\1\12\5\uffff\1\2\6\uffff\1\3\60\uffff\1\4\1\5\1\6\1\7\1\1\1\10", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\6\uffff\1\13\7\uffff\1\13\1\uffff\1\13\1\12\45\uffff\6\13", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "\1\13\25\uffff\1\13\1\uffff\1\13\1\12", |
| "", |
| "" |
| }; |
| static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); |
| static final char[] dfa_68 = DFA.unpackEncodedStringToUnsignedChars(dfa_68s); |
| static final short[][] dfa_69 = unpackEncodedStringArray(dfa_69s); |
| |
| class DFA81 extends DFA { |
| |
| public DFA81(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 81; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_67; |
| this.max = dfa_68; |
| this.accept = dfa_26; |
| this.special = dfa_27; |
| this.transition = dfa_69; |
| } |
| public String getDescription() { |
| return "3890:2: (this_DeprecatedSection_0= ruleDeprecatedSection | this_DeprecatedAttribute_1= ruleDeprecatedAttribute )"; |
| } |
| } |
| static final String dfa_70s = "\1\uffff\1\14\1\uffff\11\14\2\uffff"; |
| static final String dfa_71s = "\2\4\1\uffff\11\4\1\uffff\1\20"; |
| static final String dfa_72s = "\2\113\1\uffff\11\113\1\uffff\1\37"; |
| static final String dfa_73s = "\2\uffff\1\1\11\uffff\1\2\1\uffff"; |
| static final String dfa_74s = "\16\uffff}>"; |
| static final String[] dfa_75s = { |
| "\1\2\3\uffff\1\2\5\uffff\1\2\6\uffff\1\2\60\uffff\5\2\1\1", |
| "\1\13\2\uffff\1\2\1\14\5\uffff\1\3\1\uffff\1\2\4\uffff\1\4\3\uffff\4\2\3\uffff\1\2\45\uffff\1\5\1\6\1\7\1\10\1\11\1\12", |
| "", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\4\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\4\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "\1\14\2\uffff\1\15\1\14\5\uffff\1\14\1\uffff\1\2\4\uffff\1\14\3\uffff\2\2\2\uffff\1\14\1\uffff\2\14\45\uffff\6\14", |
| "", |
| "\1\2\14\uffff\1\14\1\uffff\1\14" |
| }; |
| static final short[] dfa_70 = DFA.unpackEncodedString(dfa_70s); |
| static final char[] dfa_71 = DFA.unpackEncodedStringToUnsignedChars(dfa_71s); |
| static final char[] dfa_72 = DFA.unpackEncodedStringToUnsignedChars(dfa_72s); |
| static final short[] dfa_73 = DFA.unpackEncodedString(dfa_73s); |
| static final short[] dfa_74 = DFA.unpackEncodedString(dfa_74s); |
| static final short[][] dfa_75 = unpackEncodedStringArray(dfa_75s); |
| |
| class DFA83 extends DFA { |
| |
| public DFA83(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 83; |
| this.eot = dfa_52; |
| this.eof = dfa_70; |
| this.min = dfa_71; |
| this.max = dfa_72; |
| this.accept = dfa_73; |
| this.special = dfa_74; |
| this.transition = dfa_75; |
| } |
| public String getDescription() { |
| return "()* loopback of 3967:4: ( ( (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject ) ) )*"; |
| } |
| } |
| static final String dfa_76s = "\67\uffff"; |
| static final String dfa_77s = "\12\4\2\uffff\22\7\2\4\1\20\1\uffff\2\4\1\20\22\7"; |
| static final String dfa_78s = "\12\113\2\uffff\22\114\2\113\1\114\1\uffff\2\113\23\114"; |
| static final String dfa_79s = "\12\uffff\1\1\1\3\25\uffff\1\2\25\uffff"; |
| static final String dfa_80s = "\67\uffff}>"; |
| static final String[] dfa_81s = { |
| "\1\11\3\uffff\1\12\5\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\24\2\uffff\1\13\6\uffff\1\14\1\uffff\1\13\4\uffff\1\15\3\uffff\4\13\3\uffff\1\12\45\uffff\1\16\1\17\1\20\1\21\1\22\1\23", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\35\2\uffff\1\13\6\uffff\1\25\1\uffff\1\13\4\uffff\1\26\3\uffff\4\13\3\uffff\1\12\45\uffff\1\27\1\30\1\31\1\32\1\33\1\34", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "\1\13\2\uffff\1\13\6\uffff\1\13\1\uffff\1\13\4\uffff\1\13\3\uffff\4\13\3\uffff\1\12\45\uffff\6\13", |
| "", |
| "", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\55\11\uffff\1\45\6\uffff\1\46\60\uffff\1\47\1\50\1\51\1\52\1\53\1\54", |
| "\1\55\11\uffff\1\45\6\uffff\1\46\60\uffff\1\47\1\50\1\51\1\52\1\53\1\54", |
| "\1\13\73\uffff\1\41", |
| "", |
| "\1\66\11\uffff\1\56\6\uffff\1\57\60\uffff\1\60\1\61\1\62\1\63\1\64\1\65", |
| "\1\66\11\uffff\1\56\6\uffff\1\57\60\uffff\1\60\1\61\1\62\1\63\1\64\1\65", |
| "\1\13\73\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\40\10\uffff\1\13\10\uffff\1\36\1\37\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41", |
| "\1\44\10\uffff\1\13\10\uffff\1\42\1\43\61\uffff\1\41" |
| }; |
| |
| static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); |
| static final char[] dfa_77 = DFA.unpackEncodedStringToUnsignedChars(dfa_77s); |
| static final char[] dfa_78 = DFA.unpackEncodedStringToUnsignedChars(dfa_78s); |
| static final short[] dfa_79 = DFA.unpackEncodedString(dfa_79s); |
| static final short[] dfa_80 = DFA.unpackEncodedString(dfa_80s); |
| static final short[][] dfa_81 = unpackEncodedStringArray(dfa_81s); |
| |
| class DFA82 extends DFA { |
| |
| public DFA82(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 82; |
| this.eot = dfa_76; |
| this.eof = dfa_76; |
| this.min = dfa_77; |
| this.max = dfa_78; |
| this.accept = dfa_79; |
| this.special = dfa_80; |
| this.transition = dfa_81; |
| } |
| public String getDescription() { |
| return "3969:6: (lv_element_3_1= ruleDeprecatedAttribute | lv_element_3_2= ruleDeprecatedObject | lv_element_3_3= ruleObject )"; |
| } |
| } |
| static final String dfa_82s = "\1\12\14\uffff"; |
| static final String dfa_83s = "\1\4\11\0\3\uffff"; |
| static final String dfa_84s = "\1\113\11\0\3\uffff"; |
| static final String dfa_85s = "\12\uffff\1\2\1\uffff\1\1"; |
| static final String dfa_86s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\3\uffff}>"; |
| static final String[] dfa_87s = { |
| "\1\11\3\uffff\1\12\5\uffff\1\1\6\uffff\1\2\60\uffff\1\3\1\4\1\5\1\6\1\7\1\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_82 = DFA.unpackEncodedString(dfa_82s); |
| static final char[] dfa_83 = DFA.unpackEncodedStringToUnsignedChars(dfa_83s); |
| static final char[] dfa_84 = DFA.unpackEncodedStringToUnsignedChars(dfa_84s); |
| static final short[] dfa_85 = DFA.unpackEncodedString(dfa_85s); |
| static final short[] dfa_86 = DFA.unpackEncodedString(dfa_86s); |
| static final short[][] dfa_87 = unpackEncodedStringArray(dfa_87s); |
| |
| class DFA84 extends DFA { |
| |
| public DFA84(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 84; |
| this.eot = dfa_1; |
| this.eof = dfa_82; |
| this.min = dfa_83; |
| this.max = dfa_84; |
| this.accept = dfa_85; |
| this.special = dfa_86; |
| this.transition = dfa_87; |
| } |
| public String getDescription() { |
| return "4024:4: ( ruleXID )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA84_1 = input.LA(1); |
| |
| |
| int index84_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA84_2 = input.LA(1); |
| |
| |
| int index84_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA84_3 = input.LA(1); |
| |
| |
| int index84_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA84_4 = input.LA(1); |
| |
| |
| int index84_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA84_5 = input.LA(1); |
| |
| |
| int index84_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA84_6 = input.LA(1); |
| |
| |
| int index84_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA84_7 = input.LA(1); |
| |
| |
| int index84_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA84_8 = input.LA(1); |
| |
| |
| int index84_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA84_9 = input.LA(1); |
| |
| |
| int index84_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred117_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 10;} |
| |
| |
| input.seek(index84_9); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 84, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA86 extends DFA { |
| |
| public DFA86(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 86; |
| this.eot = dfa_76; |
| this.eof = dfa_76; |
| this.min = dfa_77; |
| this.max = dfa_78; |
| this.accept = dfa_79; |
| this.special = dfa_80; |
| this.transition = dfa_81; |
| } |
| public String getDescription() { |
| return "4085:8: (lv_element_9_1= ruleDeprecatedAttribute | lv_element_9_2= ruleDeprecatedObject | lv_element_9_3= ruleObject )"; |
| } |
| } |
| static final String dfa_88s = "\1\13\14\uffff"; |
| static final String dfa_89s = "\1\4\12\0\2\uffff"; |
| static final String dfa_90s = "\1\113\12\0\2\uffff"; |
| static final String dfa_91s = "\13\uffff\1\2\1\1"; |
| static final String dfa_92s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\2\uffff}>"; |
| static final String[] dfa_93s = { |
| "\1\11\3\uffff\1\12\5\uffff\1\3\6\uffff\1\4\60\uffff\1\5\1\1\1\6\1\7\1\2\1\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| static final short[] dfa_88 = DFA.unpackEncodedString(dfa_88s); |
| static final char[] dfa_89 = DFA.unpackEncodedStringToUnsignedChars(dfa_89s); |
| static final char[] dfa_90 = DFA.unpackEncodedStringToUnsignedChars(dfa_90s); |
| static final short[] dfa_91 = DFA.unpackEncodedString(dfa_91s); |
| static final short[] dfa_92 = DFA.unpackEncodedString(dfa_92s); |
| static final short[][] dfa_93 = unpackEncodedStringArray(dfa_93s); |
| |
| class DFA89 extends DFA { |
| |
| public DFA89(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 89; |
| this.eot = dfa_1; |
| this.eof = dfa_88; |
| this.min = dfa_89; |
| this.max = dfa_90; |
| this.accept = dfa_91; |
| this.special = dfa_92; |
| this.transition = dfa_93; |
| } |
| public String getDescription() { |
| return "()* loopback of 4147:6: ( ( (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA89_1 = input.LA(1); |
| |
| |
| int index89_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA89_2 = input.LA(1); |
| |
| |
| int index89_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA89_3 = input.LA(1); |
| |
| |
| int index89_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA89_4 = input.LA(1); |
| |
| |
| int index89_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA89_5 = input.LA(1); |
| |
| |
| int index89_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA89_6 = input.LA(1); |
| |
| |
| int index89_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA89_7 = input.LA(1); |
| |
| |
| int index89_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA89_8 = input.LA(1); |
| |
| |
| int index89_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA89_9 = input.LA(1); |
| |
| |
| int index89_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA89_10 = input.LA(1); |
| |
| |
| int index89_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred126_InternalSEW()) ) {s = 12;} |
| |
| else if ( (true) ) {s = 11;} |
| |
| |
| input.seek(index89_10); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 89, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA88 extends DFA { |
| |
| public DFA88(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 88; |
| this.eot = dfa_76; |
| this.eof = dfa_76; |
| this.min = dfa_77; |
| this.max = dfa_78; |
| this.accept = dfa_79; |
| this.special = dfa_80; |
| this.transition = dfa_81; |
| } |
| public String getDescription() { |
| return "4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject )"; |
| } |
| } |
| |
| class DFA100 extends DFA { |
| |
| public DFA100(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 100; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_19; |
| this.max = dfa_20; |
| this.accept = dfa_21; |
| this.special = dfa_11; |
| this.transition = dfa_22; |
| } |
| public String getDescription() { |
| return "192:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleProperty )"; |
| } |
| } |
| |
| class DFA103 extends DFA { |
| |
| public DFA103(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 103; |
| this.eot = dfa_1; |
| this.eof = dfa_1; |
| this.min = dfa_19; |
| this.max = dfa_20; |
| this.accept = dfa_21; |
| this.special = dfa_11; |
| this.transition = dfa_22; |
| } |
| public String getDescription() { |
| return "235:6: (lv_element_8_1= ruleObject | lv_element_8_2= ruleProperty )"; |
| } |
| } |
| |
| class DFA117 extends DFA { |
| |
| public DFA117(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 117; |
| this.eot = dfa_23; |
| this.eof = dfa_23; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_27; |
| this.transition = dfa_32; |
| } |
| public String getDescription() { |
| return "942:7: (lv_element_6_1= ruleObject | lv_element_6_2= ruleAttribute )"; |
| } |
| } |
| |
| class DFA145 extends DFA { |
| |
| public DFA145(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 145; |
| this.eot = dfa_76; |
| this.eof = dfa_76; |
| this.min = dfa_77; |
| this.max = dfa_78; |
| this.accept = dfa_79; |
| this.special = dfa_80; |
| this.transition = dfa_81; |
| } |
| public String getDescription() { |
| return "4149:8: (lv_element_12_1= ruleDeprecatedAttribute | lv_element_12_2= ruleDeprecatedObject | lv_element_12_3= ruleObject )"; |
| } |
| } |
| |
| |
| |
| 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[]{0x000000000020C012L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000214090L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000010080L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000010000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000224010L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000204012L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000100000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000204000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000001604090L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0010000004800040L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001000000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000006000002L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000204010L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000018000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000214010L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x00000000A0000080L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x00000000A0000000L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000040204010L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000100000000L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0xFEF0800024A040F0L,0x0000000000004FFFL}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000200000002L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000400000002L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000080000000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000001800000002L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0xFEF0800024A040F0L,0x0000000000000FFFL}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000006000000002L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x00000F8000000002L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000700000100002L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000800000000002L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x000F000000000002L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0001000000000002L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0002000000000002L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0004000000000002L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0008000000000002L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0100000000000000L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0xFEF0800064A040F0L,0x0000000000004FFFL}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000040400000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0004000000000000L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0010000000000040L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000100002L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000200000000000L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000004000040L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000004000000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000000080L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0200000000204010L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000000204110L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x000000000020C110L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x000000004020C110L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x000000000020C112L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000000L,0x0000000000018000L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0xFEF0800024A240F0L,0x0000000000004FFFL}); |
| } |
| |
| |
| } |