| package org.eclipse.osbp.xtext.datainterchange.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.common.util.Enumerator; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.osbp.xtext.datainterchange.services.DataDSLGrammarAccess; |
| |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| import java.util.Map; |
| import java.util.HashMap; |
| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| @SuppressWarnings("all") |
| public class InternalDataDSLParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_INT", "RULE_ID", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'title'", "'{'", "'}'", "'interchange'", "'describedBy'", "'vectorName'", "'report'", "'elementSize'", "'deleteFileAfterImport'", "'file'", "'path'", "'XML'", "'mapByAttribute'", "'encoding'", "'locale'", "'CSV'", "'delimiter'", "'quoteCharacter'", "'skipLines'", "'indent'", "'EDI'", "'mappingModel'", "'validate'", "'entity'", "'nodeName'", "'createOn'", "'latestImport'", "'latestExport'", "'expression'", "'lookup'", "'format'", "'expose'", "'mapping'", "'keys'", "'exportFilter'", "'key'", "'for'", "'on'", "'with'", "'cacheSize'", "'mapTo'", "'allowNoResult'", "'allowNonuniqueResult'", "'markerPath'", "'markerEntity'", "'markedBy'", "'coding'", "'copy'", "'from'", "'property'", "'ref'", "'where'", "'hide'", "'assign'", "'as'", "'map'", "'to'", "'mapBlob'", "'extension'", "'mimeType'", "'.'", "'import'", "'static'", "'*'", "'ns'", "';'", "'@'", "'('", "','", "')'", "'='", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'-'", "'**'", "'/'", "'%'", "'!'", "'++'", "'--'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'default'", "'case'", "'while'", "'do'", "'var'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'plain'", "'jpg'", "'png'", "'mpeg'", "'octet-stream'", "'pdf'", "'NowDate'", "'StartDate'", "'UniversallyUniqueIdentifier'", "'Date'", "'Milliseconds'", "'Nanoseconds'", "'Random'", "'ExecuteContext'", "'persist'", "'merge'", "'remove'", "'<='", "'isnull'", "'isnotnull'", "'and'", "'or'" |
| }; |
| public static final int T__144=144; |
| public static final int T__143=143; |
| public static final int T__146=146; |
| public static final int RULE_HEX=7; |
| public static final int T__50=50; |
| public static final int T__145=145; |
| public static final int T__140=140; |
| public static final int T__142=142; |
| public static final int T__141=141; |
| public static final int T__59=59; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__137=137; |
| public static final int T__52=52; |
| public static final int T__136=136; |
| public static final int T__53=53; |
| public static final int T__139=139; |
| public static final int T__54=54; |
| public static final int T__138=138; |
| public static final int T__133=133; |
| public static final int T__132=132; |
| public static final int T__60=60; |
| public static final int T__135=135; |
| public static final int T__61=61; |
| public static final int T__134=134; |
| public static final int RULE_ID=6; |
| public static final int T__131=131; |
| public static final int T__130=130; |
| public static final int RULE_INT=5; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__67=67; |
| public static final int T__129=129; |
| public static final int T__68=68; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__126=126; |
| public static final int T__63=63; |
| public static final int T__125=125; |
| public static final int T__64=64; |
| public static final int T__128=128; |
| public static final int T__65=65; |
| public static final int T__127=127; |
| public static final int T__166=166; |
| public static final int T__165=165; |
| public static final int T__162=162; |
| public static final int T__161=161; |
| public static final int T__164=164; |
| public static final int T__163=163; |
| public static final int T__160=160; |
| public static final int T__37=37; |
| public static final int T__38=38; |
| public static final int T__39=39; |
| public static final int T__33=33; |
| public static final int T__34=34; |
| public static final int T__35=35; |
| public static final int T__36=36; |
| public static final int T__159=159; |
| public static final int T__30=30; |
| public static final int T__158=158; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int T__155=155; |
| public static final int T__154=154; |
| public static final int T__157=157; |
| public static final int T__156=156; |
| public static final int T__151=151; |
| public static final int T__150=150; |
| public static final int T__153=153; |
| public static final int T__152=152; |
| 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__148=148; |
| public static final int T__41=41; |
| public static final int T__147=147; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| public static final int T__149=149; |
| public static final int T__91=91; |
| public static final int T__100=100; |
| public static final int T__92=92; |
| public static final int T__93=93; |
| public static final int T__102=102; |
| public static final int T__94=94; |
| public static final int T__101=101; |
| public static final int T__90=90; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__99=99; |
| public static final int T__13=13; |
| public static final int T__14=14; |
| public static final int T__95=95; |
| public static final int T__96=96; |
| public static final int T__97=97; |
| public static final int T__98=98; |
| public static final int RULE_DECIMAL=8; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int T__122=122; |
| public static final int T__70=70; |
| public static final int T__121=121; |
| public static final int T__71=71; |
| public static final int T__124=124; |
| public static final int T__72=72; |
| public static final int T__123=123; |
| public static final int T__120=120; |
| public static final int RULE_STRING=4; |
| public static final int RULE_SL_COMMENT=10; |
| public static final int T__77=77; |
| public static final int T__119=119; |
| public static final int T__78=78; |
| public static final int T__118=118; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int T__115=115; |
| public static final int EOF=-1; |
| public static final int T__74=74; |
| public static final int T__114=114; |
| public static final int T__75=75; |
| public static final int T__117=117; |
| public static final int T__76=76; |
| public static final int T__116=116; |
| public static final int T__80=80; |
| public static final int T__111=111; |
| public static final int T__81=81; |
| public static final int T__110=110; |
| public static final int T__82=82; |
| public static final int T__113=113; |
| public static final int T__83=83; |
| public static final int T__112=112; |
| public static final int RULE_WS=11; |
| public static final int RULE_ANY_OTHER=12; |
| public static final int T__88=88; |
| public static final int T__108=108; |
| public static final int T__89=89; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__84=84; |
| public static final int T__104=104; |
| public static final int T__85=85; |
| public static final int T__103=103; |
| public static final int T__86=86; |
| public static final int T__106=106; |
| public static final int T__87=87; |
| public static final int T__105=105; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalDataDSLParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalDataDSLParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalDataDSLParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalDataDSL.g"; } |
| |
| |
| |
| private DataDSLGrammarAccess grammarAccess; |
| |
| public InternalDataDSLParser(TokenStream input, DataDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "DataInterchangeModel"; |
| } |
| |
| @Override |
| protected DataDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeModel" |
| // InternalDataDSL.g:78:1: entryRuleDataInterchangeModel returns [EObject current=null] : iv_ruleDataInterchangeModel= ruleDataInterchangeModel EOF ; |
| public final EObject entryRuleDataInterchangeModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeModel = null; |
| |
| |
| try { |
| // InternalDataDSL.g:78:61: (iv_ruleDataInterchangeModel= ruleDataInterchangeModel EOF ) |
| // InternalDataDSL.g:79:2: iv_ruleDataInterchangeModel= ruleDataInterchangeModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeModel=ruleDataInterchangeModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeModel" |
| |
| |
| // $ANTLR start "ruleDataInterchangeModel" |
| // InternalDataDSL.g:85:1: ruleDataInterchangeModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) ; |
| public final EObject ruleDataInterchangeModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:91:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) ) |
| // InternalDataDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) |
| { |
| // InternalDataDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) |
| // InternalDataDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* |
| { |
| // InternalDataDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==75) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalDataDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalDataDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalDataDSL.g:95:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeModelAccess().getImportSectionXImportSectionParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_importSection_0_0=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:112:3: ( (lv_packages_1_0= ruleDataInterchangePackage ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==13) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalDataDSL.g:113:4: (lv_packages_1_0= ruleDataInterchangePackage ) |
| { |
| // InternalDataDSL.g:113:4: (lv_packages_1_0= ruleDataInterchangePackage ) |
| // InternalDataDSL.g:114:5: lv_packages_1_0= ruleDataInterchangePackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeModelAccess().getPackagesDataInterchangePackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_packages_1_0=ruleDataInterchangePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeModelRule()); |
| } |
| add( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangePackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeModel" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangePackage" |
| // InternalDataDSL.g:135:1: entryRuleDataInterchangePackage returns [EObject current=null] : iv_ruleDataInterchangePackage= ruleDataInterchangePackage EOF ; |
| public final EObject entryRuleDataInterchangePackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangePackage = null; |
| |
| |
| try { |
| // InternalDataDSL.g:135:63: (iv_ruleDataInterchangePackage= ruleDataInterchangePackage EOF ) |
| // InternalDataDSL.g:136:2: iv_ruleDataInterchangePackage= ruleDataInterchangePackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangePackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangePackage=ruleDataInterchangePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangePackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangePackage" |
| |
| |
| // $ANTLR start "ruleDataInterchangePackage" |
| // InternalDataDSL.g:142:1: ruleDataInterchangePackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= 'title' ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? ) ; |
| public final EObject ruleDataInterchangePackage() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_title_4_0 = null; |
| |
| EObject lv_datInts_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:148:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= 'title' ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? ) ) |
| // InternalDataDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= 'title' ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? ) |
| { |
| // InternalDataDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= 'title' ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? ) |
| // InternalDataDSL.g:150:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) otherlv_3= 'title' ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? |
| { |
| // InternalDataDSL.g:150:3: () |
| // InternalDataDSL.g:151:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangePackageAccess().getDataInterchangePackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangePackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:161:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalDataDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalDataDSL.g:163:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePackageAccess().getNameQualifiedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_2_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangePackageAccess().getTitleKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:184:3: ( (lv_title_4_0= ruleTRANSLATABLESTRING ) ) |
| // InternalDataDSL.g:185:4: (lv_title_4_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalDataDSL.g:185:4: (lv_title_4_0= ruleTRANSLATABLESTRING ) |
| // InternalDataDSL.g:186:5: lv_title_4_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePackageAccess().getTitleTRANSLATABLESTRINGParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_title_4_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePackageRule()); |
| } |
| set( |
| current, |
| "title", |
| lv_title_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:203:3: (otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==15) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalDataDSL.g:204:4: otherlv_5= '{' ( (lv_datInts_6_0= ruleDataInterchange ) )* otherlv_7= '}' |
| { |
| otherlv_5=(Token)match(input,15,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangePackageAccess().getLeftCurlyBracketKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:208:4: ( (lv_datInts_6_0= ruleDataInterchange ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==17) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalDataDSL.g:209:5: (lv_datInts_6_0= ruleDataInterchange ) |
| { |
| // InternalDataDSL.g:209:5: (lv_datInts_6_0= ruleDataInterchange ) |
| // InternalDataDSL.g:210:6: lv_datInts_6_0= ruleDataInterchange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePackageAccess().getDatIntsDataInterchangeParserRuleCall_5_1_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_datInts_6_0=ruleDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePackageRule()); |
| } |
| add( |
| current, |
| "datInts", |
| lv_datInts_6_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchange"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangePackageAccess().getRightCurlyBracketKeyword_5_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangePackage" |
| |
| |
| // $ANTLR start "entryRuleDataInterchange" |
| // InternalDataDSL.g:236:1: entryRuleDataInterchange returns [EObject current=null] : iv_ruleDataInterchange= ruleDataInterchange EOF ; |
| public final EObject entryRuleDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchange = null; |
| |
| |
| try { |
| // InternalDataDSL.g:236:56: (iv_ruleDataInterchange= ruleDataInterchange EOF ) |
| // InternalDataDSL.g:237:2: iv_ruleDataInterchange= ruleDataInterchange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchange=ruleDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchange" |
| |
| |
| // $ANTLR start "ruleDataInterchange" |
| // InternalDataDSL.g:243:1: ruleDataInterchange returns [EObject current=null] : ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? ( (lv_createReport_8_0= 'report' ) )? (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? otherlv_12= 'file' ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) otherlv_14= 'path' otherlv_15= '{' ( (lv_path_16_0= ruleDataInterchangeBean ) )* otherlv_17= '}' ) ; |
| public final EObject ruleDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_description_3_0=null; |
| Token otherlv_6=null; |
| Token lv_vectorName_7_0=null; |
| Token lv_createReport_8_0=null; |
| Token otherlv_9=null; |
| Token lv_elementSize_10_0=null; |
| Token lv_deleteFileAfterImport_11_0=null; |
| Token otherlv_12=null; |
| Token otherlv_14=null; |
| Token otherlv_15=null; |
| Token otherlv_17=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_descriptionValue_4_0 = null; |
| |
| Enumerator lv_mode_5_0 = null; |
| |
| EObject lv_fileEndpoint_13_0 = null; |
| |
| EObject lv_path_16_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:249:2: ( ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? ( (lv_createReport_8_0= 'report' ) )? (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? otherlv_12= 'file' ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) otherlv_14= 'path' otherlv_15= '{' ( (lv_path_16_0= ruleDataInterchangeBean ) )* otherlv_17= '}' ) ) |
| // InternalDataDSL.g:250:2: ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? ( (lv_createReport_8_0= 'report' ) )? (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? otherlv_12= 'file' ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) otherlv_14= 'path' otherlv_15= '{' ( (lv_path_16_0= ruleDataInterchangeBean ) )* otherlv_17= '}' ) |
| { |
| // InternalDataDSL.g:250:2: ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? ( (lv_createReport_8_0= 'report' ) )? (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? otherlv_12= 'file' ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) otherlv_14= 'path' otherlv_15= '{' ( (lv_path_16_0= ruleDataInterchangeBean ) )* otherlv_17= '}' ) |
| // InternalDataDSL.g:251:3: () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? ( (lv_createReport_8_0= 'report' ) )? (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? otherlv_12= 'file' ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) otherlv_14= 'path' otherlv_15= '{' ( (lv_path_16_0= ruleDataInterchangeBean ) )* otherlv_17= '}' |
| { |
| // InternalDataDSL.g:251:3: () |
| // InternalDataDSL.g:252:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeAccess().getDataInterchangeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,17,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeAccess().getInterchangeKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:262:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalDataDSL.g:263:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalDataDSL.g:263:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalDataDSL.g:264:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_name_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:281:3: ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==18) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalDataDSL.g:282:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalDataDSL.g:282:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalDataDSL.g:283:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalDataDSL.g:283:5: (lv_description_3_0= 'describedBy' ) |
| // InternalDataDSL.g:284:6: lv_description_3_0= 'describedBy' |
| { |
| lv_description_3_0=(Token)match(input,18,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_description_3_0, grammarAccess.getDataInterchangeAccess().getDescriptionDescribedByKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed(current, "description", true, "describedBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:296:4: ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| // InternalDataDSL.g:297:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalDataDSL.g:297:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| // InternalDataDSL.g:298:6: lv_descriptionValue_4_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_descriptionValue_4_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "descriptionValue", |
| lv_descriptionValue_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:316:3: ( (lv_mode_5_0= ruleEntityManagerMode ) ) |
| // InternalDataDSL.g:317:4: (lv_mode_5_0= ruleEntityManagerMode ) |
| { |
| // InternalDataDSL.g:317:4: (lv_mode_5_0= ruleEntityManagerMode ) |
| // InternalDataDSL.g:318:5: lv_mode_5_0= ruleEntityManagerMode |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getModeEntityManagerModeEnumRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_10); |
| lv_mode_5_0=ruleEntityManagerMode(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "mode", |
| lv_mode_5_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.EntityManagerMode"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:335:3: (otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) )? |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0==19) ) { |
| alt6=1; |
| } |
| switch (alt6) { |
| case 1 : |
| // InternalDataDSL.g:336:4: otherlv_6= 'vectorName' ( (lv_vectorName_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,19,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeAccess().getVectorNameKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:340:4: ( (lv_vectorName_7_0= RULE_STRING ) ) |
| // InternalDataDSL.g:341:5: (lv_vectorName_7_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:341:5: (lv_vectorName_7_0= RULE_STRING ) |
| // InternalDataDSL.g:342:6: lv_vectorName_7_0= RULE_STRING |
| { |
| lv_vectorName_7_0=(Token)match(input,RULE_STRING,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_vectorName_7_0, grammarAccess.getDataInterchangeAccess().getVectorNameSTRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "vectorName", |
| lv_vectorName_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:359:3: ( (lv_createReport_8_0= 'report' ) )? |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==20) ) { |
| alt7=1; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalDataDSL.g:360:4: (lv_createReport_8_0= 'report' ) |
| { |
| // InternalDataDSL.g:360:4: (lv_createReport_8_0= 'report' ) |
| // InternalDataDSL.g:361:5: lv_createReport_8_0= 'report' |
| { |
| lv_createReport_8_0=(Token)match(input,20,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_createReport_8_0, grammarAccess.getDataInterchangeAccess().getCreateReportReportKeyword_6_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed(current, "createReport", true, "report"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:373:3: (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==21) ) { |
| alt8=1; |
| } |
| switch (alt8) { |
| case 1 : |
| // InternalDataDSL.g:374:4: otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) |
| { |
| otherlv_9=(Token)match(input,21,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDataInterchangeAccess().getElementSizeKeyword_7_0()); |
| |
| } |
| // InternalDataDSL.g:378:4: ( (lv_elementSize_10_0= RULE_INT ) ) |
| // InternalDataDSL.g:379:5: (lv_elementSize_10_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:379:5: (lv_elementSize_10_0= RULE_INT ) |
| // InternalDataDSL.g:380:6: lv_elementSize_10_0= RULE_INT |
| { |
| lv_elementSize_10_0=(Token)match(input,RULE_INT,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementSize_10_0, grammarAccess.getDataInterchangeAccess().getElementSizeINTTerminalRuleCall_7_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementSize", |
| lv_elementSize_10_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:397:3: ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==22) ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalDataDSL.g:398:4: (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) |
| { |
| // InternalDataDSL.g:398:4: (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) |
| // InternalDataDSL.g:399:5: lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' |
| { |
| lv_deleteFileAfterImport_11_0=(Token)match(input,22,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_deleteFileAfterImport_11_0, grammarAccess.getDataInterchangeAccess().getDeleteFileAfterImportDeleteFileAfterImportKeyword_8_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed(current, "deleteFileAfterImport", true, "deleteFileAfterImport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,23,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataInterchangeAccess().getFileKeyword_9()); |
| |
| } |
| // InternalDataDSL.g:415:3: ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) |
| // InternalDataDSL.g:416:4: (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) |
| { |
| // InternalDataDSL.g:416:4: (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) |
| // InternalDataDSL.g:417:5: lv_fileEndpoint_13_0= ruleDataInterchangeFile |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getFileEndpointDataInterchangeFileParserRuleCall_10_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| lv_fileEndpoint_13_0=ruleDataInterchangeFile(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "fileEndpoint", |
| lv_fileEndpoint_13_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFile"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_14=(Token)match(input,24,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getDataInterchangeAccess().getPathKeyword_11()); |
| |
| } |
| otherlv_15=(Token)match(input,15,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDataInterchangeAccess().getLeftCurlyBracketKeyword_12()); |
| |
| } |
| // InternalDataDSL.g:442:3: ( (lv_path_16_0= ruleDataInterchangeBean ) )* |
| loop10: |
| do { |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==37) ) { |
| alt10=1; |
| } |
| |
| |
| switch (alt10) { |
| case 1 : |
| // InternalDataDSL.g:443:4: (lv_path_16_0= ruleDataInterchangeBean ) |
| { |
| // InternalDataDSL.g:443:4: (lv_path_16_0= ruleDataInterchangeBean ) |
| // InternalDataDSL.g:444:5: lv_path_16_0= ruleDataInterchangeBean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getPathDataInterchangeBeanParserRuleCall_13_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_path_16_0=ruleDataInterchangeBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| add( |
| current, |
| "path", |
| lv_path_16_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeBean"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop10; |
| } |
| } while (true); |
| |
| otherlv_17=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getDataInterchangeAccess().getRightCurlyBracketKeyword_14()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchange" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFile" |
| // InternalDataDSL.g:469:1: entryRuleDataInterchangeFile returns [EObject current=null] : iv_ruleDataInterchangeFile= ruleDataInterchangeFile EOF ; |
| public final EObject entryRuleDataInterchangeFile() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFile = null; |
| |
| |
| try { |
| // InternalDataDSL.g:469:60: (iv_ruleDataInterchangeFile= ruleDataInterchangeFile EOF ) |
| // InternalDataDSL.g:470:2: iv_ruleDataInterchangeFile= ruleDataInterchangeFile EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFileRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFile=ruleDataInterchangeFile(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFile; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFile" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFile" |
| // InternalDataDSL.g:476:1: ruleDataInterchangeFile returns [EObject current=null] : (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI ) ; |
| public final EObject ruleDataInterchangeFile() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeFileXML_0 = null; |
| |
| EObject this_DataInterchangeFileCSV_1 = null; |
| |
| EObject this_DataInterchangeFileEDI_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:482:2: ( (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI ) ) |
| // InternalDataDSL.g:483:2: (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI ) |
| { |
| // InternalDataDSL.g:483:2: (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI ) |
| int alt11=3; |
| switch ( input.LA(1) ) { |
| case 25: |
| { |
| alt11=1; |
| } |
| break; |
| case 29: |
| { |
| alt11=2; |
| } |
| break; |
| case 34: |
| { |
| alt11=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 11, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt11) { |
| case 1 : |
| // InternalDataDSL.g:484:3: this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFileAccess().getDataInterchangeFileXMLParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeFileXML_0=ruleDataInterchangeFileXML(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeFileXML_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:493:3: this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFileAccess().getDataInterchangeFileCSVParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeFileCSV_1=ruleDataInterchangeFileCSV(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeFileCSV_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:502:3: this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFileAccess().getDataInterchangeFileEDIParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeFileEDI_2=ruleDataInterchangeFileEDI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeFileEDI_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFile" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFileXML" |
| // InternalDataDSL.g:514:1: entryRuleDataInterchangeFileXML returns [EObject current=null] : iv_ruleDataInterchangeFileXML= ruleDataInterchangeFileXML EOF ; |
| public final EObject entryRuleDataInterchangeFileXML() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFileXML = null; |
| |
| |
| try { |
| // InternalDataDSL.g:514:63: (iv_ruleDataInterchangeFileXML= ruleDataInterchangeFileXML EOF ) |
| // InternalDataDSL.g:515:2: iv_ruleDataInterchangeFileXML= ruleDataInterchangeFileXML EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFileXML=ruleDataInterchangeFileXML(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFileXML; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFileXML" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFileXML" |
| // InternalDataDSL.g:521:1: ruleDataInterchangeFileXML returns [EObject current=null] : ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleDataInterchangeFileXML() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token lv_byAttribute_4_0=null; |
| Token otherlv_5=null; |
| Token lv_encoding_6_0=null; |
| Token otherlv_7=null; |
| Token lv_locale_8_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:527:2: ( ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ) |
| // InternalDataDSL.g:528:2: ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalDataDSL.g:528:2: ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| // InternalDataDSL.g:529:3: () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| { |
| // InternalDataDSL.g:529:3: () |
| // InternalDataDSL.g:530:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileXMLAccess().getDataInterchangeFileXMLAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,25,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileXMLAccess().getXMLKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:540:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:541:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:541:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:542:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileURL_2_0, grammarAccess.getDataInterchangeFileXMLAccess().getFileURLSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileURL", |
| lv_fileURL_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:558:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalDataDSL.g:559:4: ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalDataDSL.g:559:4: ( ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalDataDSL.g:560:5: ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3()); |
| // InternalDataDSL.g:563:5: ( ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalDataDSL.g:564:6: ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalDataDSL.g:564:6: ( ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) )* |
| loop12: |
| do { |
| int alt12=4; |
| int LA12_0 = input.LA(1); |
| |
| if ( LA12_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 0) ) { |
| alt12=1; |
| } |
| else if ( LA12_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 1) ) { |
| alt12=2; |
| } |
| else if ( LA12_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 2) ) { |
| alt12=3; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalDataDSL.g:565:4: ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) |
| { |
| // InternalDataDSL.g:565:4: ({...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) ) |
| // InternalDataDSL.g:566:5: {...}? => ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalDataDSL.g:566:119: ( ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) ) |
| // InternalDataDSL.g:567:6: ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 0); |
| // InternalDataDSL.g:570:9: ({...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) ) |
| // InternalDataDSL.g:570:10: {...}? => ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "true"); |
| } |
| // InternalDataDSL.g:570:19: ( (lv_byAttribute_4_0= 'mapByAttribute' ) ) |
| // InternalDataDSL.g:570:20: (lv_byAttribute_4_0= 'mapByAttribute' ) |
| { |
| // InternalDataDSL.g:570:20: (lv_byAttribute_4_0= 'mapByAttribute' ) |
| // InternalDataDSL.g:571:10: lv_byAttribute_4_0= 'mapByAttribute' |
| { |
| lv_byAttribute_4_0=(Token)match(input,26,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_byAttribute_4_0, grammarAccess.getDataInterchangeFileXMLAccess().getByAttributeMapByAttributeKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed(current, "byAttribute", true, "mapByAttribute"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:588:4: ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:588:4: ({...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:589:5: {...}? => ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalDataDSL.g:589:119: ( ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:590:6: ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 1); |
| // InternalDataDSL.g:593:9: ({...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:593:10: {...}? => (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "true"); |
| } |
| // InternalDataDSL.g:593:19: (otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:593:20: otherlv_5= 'encoding' ( (lv_encoding_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,27,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeFileXMLAccess().getEncodingKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:597:9: ( (lv_encoding_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:598:10: (lv_encoding_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:598:10: (lv_encoding_6_0= RULE_STRING ) |
| // InternalDataDSL.g:599:11: lv_encoding_6_0= RULE_STRING |
| { |
| lv_encoding_6_0=(Token)match(input,RULE_STRING,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_6_0, grammarAccess.getDataInterchangeFileXMLAccess().getEncodingSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:621:4: ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:621:4: ({...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:622:5: {...}? => ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalDataDSL.g:622:119: ( ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:623:6: ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3(), 2); |
| // InternalDataDSL.g:626:9: ({...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:626:10: {...}? => (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileXML", "true"); |
| } |
| // InternalDataDSL.g:626:19: (otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:626:20: otherlv_7= 'locale' ( (lv_locale_8_0= RULE_STRING ) ) |
| { |
| otherlv_7=(Token)match(input,28,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeFileXMLAccess().getLocaleKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:630:9: ( (lv_locale_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:631:10: (lv_locale_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:631:10: (lv_locale_8_0= RULE_STRING ) |
| // InternalDataDSL.g:632:11: lv_locale_8_0= RULE_STRING |
| { |
| lv_locale_8_0=(Token)match(input,RULE_STRING,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_8_0, grammarAccess.getDataInterchangeFileXMLAccess().getLocaleSTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop12; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDataInterchangeFileXMLAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileXML" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFileCSV" |
| // InternalDataDSL.g:665:1: entryRuleDataInterchangeFileCSV returns [EObject current=null] : iv_ruleDataInterchangeFileCSV= ruleDataInterchangeFileCSV EOF ; |
| public final EObject entryRuleDataInterchangeFileCSV() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFileCSV = null; |
| |
| |
| try { |
| // InternalDataDSL.g:665:63: (iv_ruleDataInterchangeFileCSV= ruleDataInterchangeFileCSV EOF ) |
| // InternalDataDSL.g:666:2: iv_ruleDataInterchangeFileCSV= ruleDataInterchangeFileCSV EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFileCSV=ruleDataInterchangeFileCSV(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFileCSV; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFileCSV" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFileCSV" |
| // InternalDataDSL.g:672:1: ruleDataInterchangeFileCSV returns [EObject current=null] : ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleDataInterchangeFileCSV() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token otherlv_4=null; |
| Token lv_delimiter_5_0=null; |
| Token otherlv_6=null; |
| Token lv_quoteCharacter_7_0=null; |
| Token otherlv_8=null; |
| Token lv_skipLines_9_0=null; |
| Token lv_indent_10_0=null; |
| Token otherlv_11=null; |
| Token lv_encoding_12_0=null; |
| Token otherlv_13=null; |
| Token lv_locale_14_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:678:2: ( ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ) |
| // InternalDataDSL.g:679:2: ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalDataDSL.g:679:2: ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| // InternalDataDSL.g:680:3: () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| { |
| // InternalDataDSL.g:680:3: () |
| // InternalDataDSL.g:681:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileCSVAccess().getDataInterchangeFileCSVAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileCSVAccess().getCSVKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:691:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:692:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:692:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:693:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileURL_2_0, grammarAccess.getDataInterchangeFileCSVAccess().getFileURLSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileURL", |
| lv_fileURL_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:709:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalDataDSL.g:710:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalDataDSL.g:710:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalDataDSL.g:711:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| // InternalDataDSL.g:714:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalDataDSL.g:715:6: ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalDataDSL.g:715:6: ( ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) )* |
| loop13: |
| do { |
| int alt13=7; |
| int LA13_0 = input.LA(1); |
| |
| if ( LA13_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 0) ) { |
| alt13=1; |
| } |
| else if ( LA13_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 1) ) { |
| alt13=2; |
| } |
| else if ( LA13_0 == 32 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 2) ) { |
| alt13=3; |
| } |
| else if ( LA13_0 == 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 3) ) { |
| alt13=4; |
| } |
| else if ( LA13_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 4) ) { |
| alt13=5; |
| } |
| else if ( LA13_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 5) ) { |
| alt13=6; |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalDataDSL.g:716:4: ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:716:4: ({...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:717:5: {...}? => ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalDataDSL.g:717:119: ( ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:718:6: ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 0); |
| // InternalDataDSL.g:721:9: ({...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:721:10: {...}? => (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:721:19: (otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:721:20: otherlv_4= 'delimiter' ( (lv_delimiter_5_0= RULE_STRING ) ) |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeFileCSVAccess().getDelimiterKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:725:9: ( (lv_delimiter_5_0= RULE_STRING ) ) |
| // InternalDataDSL.g:726:10: (lv_delimiter_5_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:726:10: (lv_delimiter_5_0= RULE_STRING ) |
| // InternalDataDSL.g:727:11: lv_delimiter_5_0= RULE_STRING |
| { |
| lv_delimiter_5_0=(Token)match(input,RULE_STRING,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_delimiter_5_0, grammarAccess.getDataInterchangeFileCSVAccess().getDelimiterSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "delimiter", |
| lv_delimiter_5_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:749:4: ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:749:4: ({...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:750:5: {...}? => ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalDataDSL.g:750:119: ( ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:751:6: ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 1); |
| // InternalDataDSL.g:754:9: ({...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:754:10: {...}? => (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:754:19: (otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:754:20: otherlv_6= 'quoteCharacter' ( (lv_quoteCharacter_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,31,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeFileCSVAccess().getQuoteCharacterKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:758:9: ( (lv_quoteCharacter_7_0= RULE_STRING ) ) |
| // InternalDataDSL.g:759:10: (lv_quoteCharacter_7_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:759:10: (lv_quoteCharacter_7_0= RULE_STRING ) |
| // InternalDataDSL.g:760:11: lv_quoteCharacter_7_0= RULE_STRING |
| { |
| lv_quoteCharacter_7_0=(Token)match(input,RULE_STRING,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_quoteCharacter_7_0, grammarAccess.getDataInterchangeFileCSVAccess().getQuoteCharacterSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "quoteCharacter", |
| lv_quoteCharacter_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:782:4: ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:782:4: ({...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) ) |
| // InternalDataDSL.g:783:5: {...}? => ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalDataDSL.g:783:119: ( ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) ) |
| // InternalDataDSL.g:784:6: ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 2); |
| // InternalDataDSL.g:787:9: ({...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) ) |
| // InternalDataDSL.g:787:10: {...}? => (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:787:19: (otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) ) |
| // InternalDataDSL.g:787:20: otherlv_8= 'skipLines' ( (lv_skipLines_9_0= RULE_INT ) ) |
| { |
| otherlv_8=(Token)match(input,32,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataInterchangeFileCSVAccess().getSkipLinesKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:791:9: ( (lv_skipLines_9_0= RULE_INT ) ) |
| // InternalDataDSL.g:792:10: (lv_skipLines_9_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:792:10: (lv_skipLines_9_0= RULE_INT ) |
| // InternalDataDSL.g:793:11: lv_skipLines_9_0= RULE_INT |
| { |
| lv_skipLines_9_0=(Token)match(input,RULE_INT,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_skipLines_9_0, grammarAccess.getDataInterchangeFileCSVAccess().getSkipLinesINTTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "skipLines", |
| lv_skipLines_9_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:815:4: ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) |
| { |
| // InternalDataDSL.g:815:4: ({...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) ) |
| // InternalDataDSL.g:816:5: {...}? => ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalDataDSL.g:816:119: ( ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) ) |
| // InternalDataDSL.g:817:6: ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 3); |
| // InternalDataDSL.g:820:9: ({...}? => ( (lv_indent_10_0= 'indent' ) ) ) |
| // InternalDataDSL.g:820:10: {...}? => ( (lv_indent_10_0= 'indent' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:820:19: ( (lv_indent_10_0= 'indent' ) ) |
| // InternalDataDSL.g:820:20: (lv_indent_10_0= 'indent' ) |
| { |
| // InternalDataDSL.g:820:20: (lv_indent_10_0= 'indent' ) |
| // InternalDataDSL.g:821:10: lv_indent_10_0= 'indent' |
| { |
| lv_indent_10_0=(Token)match(input,33,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_indent_10_0, grammarAccess.getDataInterchangeFileCSVAccess().getIndentIndentKeyword_3_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed(current, "indent", true, "indent"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:838:4: ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:838:4: ({...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:839:5: {...}? => ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 4)"); |
| } |
| // InternalDataDSL.g:839:119: ( ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:840:6: ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 4); |
| // InternalDataDSL.g:843:9: ({...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:843:10: {...}? => (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:843:19: (otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:843:20: otherlv_11= 'encoding' ( (lv_encoding_12_0= RULE_STRING ) ) |
| { |
| otherlv_11=(Token)match(input,27,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDataInterchangeFileCSVAccess().getEncodingKeyword_3_4_0()); |
| |
| } |
| // InternalDataDSL.g:847:9: ( (lv_encoding_12_0= RULE_STRING ) ) |
| // InternalDataDSL.g:848:10: (lv_encoding_12_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:848:10: (lv_encoding_12_0= RULE_STRING ) |
| // InternalDataDSL.g:849:11: lv_encoding_12_0= RULE_STRING |
| { |
| lv_encoding_12_0=(Token)match(input,RULE_STRING,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_12_0, grammarAccess.getDataInterchangeFileCSVAccess().getEncodingSTRINGTerminalRuleCall_3_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_12_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:871:4: ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:871:4: ({...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:872:5: {...}? => ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 5) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 5)"); |
| } |
| // InternalDataDSL.g:872:119: ( ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:873:6: ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3(), 5); |
| // InternalDataDSL.g:876:9: ({...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:876:10: {...}? => (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileCSV", "true"); |
| } |
| // InternalDataDSL.g:876:19: (otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:876:20: otherlv_13= 'locale' ( (lv_locale_14_0= RULE_STRING ) ) |
| { |
| otherlv_13=(Token)match(input,28,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getDataInterchangeFileCSVAccess().getLocaleKeyword_3_5_0()); |
| |
| } |
| // InternalDataDSL.g:880:9: ( (lv_locale_14_0= RULE_STRING ) ) |
| // InternalDataDSL.g:881:10: (lv_locale_14_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:881:10: (lv_locale_14_0= RULE_STRING ) |
| // InternalDataDSL.g:882:11: lv_locale_14_0= RULE_STRING |
| { |
| lv_locale_14_0=(Token)match(input,RULE_STRING,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_14_0, grammarAccess.getDataInterchangeFileCSVAccess().getLocaleSTRINGTerminalRuleCall_3_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_14_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop13; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDataInterchangeFileCSVAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileCSV" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFileEDI" |
| // InternalDataDSL.g:915:1: entryRuleDataInterchangeFileEDI returns [EObject current=null] : iv_ruleDataInterchangeFileEDI= ruleDataInterchangeFileEDI EOF ; |
| public final EObject entryRuleDataInterchangeFileEDI() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFileEDI = null; |
| |
| |
| try { |
| // InternalDataDSL.g:915:63: (iv_ruleDataInterchangeFileEDI= ruleDataInterchangeFileEDI EOF ) |
| // InternalDataDSL.g:916:2: iv_ruleDataInterchangeFileEDI= ruleDataInterchangeFileEDI EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFileEDI=ruleDataInterchangeFileEDI(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFileEDI; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFileEDI" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFileEDI" |
| // InternalDataDSL.g:922:1: ruleDataInterchangeFileEDI returns [EObject current=null] : ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_8= 'mappingModel' ( (lv_mappingModel_9_0= RULE_STRING ) ) ( (lv_validate_10_0= 'validate' ) )? ) ; |
| public final EObject ruleDataInterchangeFileEDI() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token otherlv_4=null; |
| Token lv_encoding_5_0=null; |
| Token otherlv_6=null; |
| Token lv_locale_7_0=null; |
| Token otherlv_8=null; |
| Token lv_mappingModel_9_0=null; |
| Token lv_validate_10_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:928:2: ( ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_8= 'mappingModel' ( (lv_mappingModel_9_0= RULE_STRING ) ) ( (lv_validate_10_0= 'validate' ) )? ) ) |
| // InternalDataDSL.g:929:2: ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_8= 'mappingModel' ( (lv_mappingModel_9_0= RULE_STRING ) ) ( (lv_validate_10_0= 'validate' ) )? ) |
| { |
| // InternalDataDSL.g:929:2: ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_8= 'mappingModel' ( (lv_mappingModel_9_0= RULE_STRING ) ) ( (lv_validate_10_0= 'validate' ) )? ) |
| // InternalDataDSL.g:930:3: () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) otherlv_8= 'mappingModel' ( (lv_mappingModel_9_0= RULE_STRING ) ) ( (lv_validate_10_0= 'validate' ) )? |
| { |
| // InternalDataDSL.g:930:3: () |
| // InternalDataDSL.g:931:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileEDIAccess().getDataInterchangeFileEDIAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,34,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileEDIAccess().getEDIKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:941:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:942:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:942:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:943:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileURL_2_0, grammarAccess.getDataInterchangeFileEDIAccess().getFileURLSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileURL", |
| lv_fileURL_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:959:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalDataDSL.g:960:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalDataDSL.g:960:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalDataDSL.g:961:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3()); |
| // InternalDataDSL.g:964:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalDataDSL.g:965:6: ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalDataDSL.g:965:6: ( ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) )* |
| loop14: |
| do { |
| int alt14=3; |
| int LA14_0 = input.LA(1); |
| |
| if ( LA14_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 0) ) { |
| alt14=1; |
| } |
| else if ( LA14_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 1) ) { |
| alt14=2; |
| } |
| |
| |
| switch (alt14) { |
| case 1 : |
| // InternalDataDSL.g:966:4: ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:966:4: ({...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:967:5: {...}? => ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileEDI", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalDataDSL.g:967:119: ( ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:968:6: ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 0); |
| // InternalDataDSL.g:971:9: ({...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:971:10: {...}? => (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileEDI", "true"); |
| } |
| // InternalDataDSL.g:971:19: (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:971:20: otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) |
| { |
| otherlv_4=(Token)match(input,27,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeFileEDIAccess().getEncodingKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:975:9: ( (lv_encoding_5_0= RULE_STRING ) ) |
| // InternalDataDSL.g:976:10: (lv_encoding_5_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:976:10: (lv_encoding_5_0= RULE_STRING ) |
| // InternalDataDSL.g:977:11: lv_encoding_5_0= RULE_STRING |
| { |
| lv_encoding_5_0=(Token)match(input,RULE_STRING,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_5_0, grammarAccess.getDataInterchangeFileEDIAccess().getEncodingSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_5_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:999:4: ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalDataDSL.g:999:4: ({...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) ) |
| // InternalDataDSL.g:1000:5: {...}? => ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileEDI", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalDataDSL.g:1000:119: ( ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) ) |
| // InternalDataDSL.g:1001:6: ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3(), 1); |
| // InternalDataDSL.g:1004:9: ({...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:1004:10: {...}? => (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeFileEDI", "true"); |
| } |
| // InternalDataDSL.g:1004:19: (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:1004:20: otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,28,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeFileEDIAccess().getLocaleKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:1008:9: ( (lv_locale_7_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1009:10: (lv_locale_7_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1009:10: (lv_locale_7_0= RULE_STRING ) |
| // InternalDataDSL.g:1010:11: lv_locale_7_0= RULE_STRING |
| { |
| lv_locale_7_0=(Token)match(input,RULE_STRING,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_7_0, grammarAccess.getDataInterchangeFileEDIAccess().getLocaleSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop14; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDataInterchangeFileEDIAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| otherlv_8=(Token)match(input,35,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataInterchangeFileEDIAccess().getMappingModelKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:1043:3: ( (lv_mappingModel_9_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1044:4: (lv_mappingModel_9_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1044:4: (lv_mappingModel_9_0= RULE_STRING ) |
| // InternalDataDSL.g:1045:5: lv_mappingModel_9_0= RULE_STRING |
| { |
| lv_mappingModel_9_0=(Token)match(input,RULE_STRING,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_mappingModel_9_0, grammarAccess.getDataInterchangeFileEDIAccess().getMappingModelSTRINGTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "mappingModel", |
| lv_mappingModel_9_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1061:3: ( (lv_validate_10_0= 'validate' ) )? |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==36) ) { |
| alt15=1; |
| } |
| switch (alt15) { |
| case 1 : |
| // InternalDataDSL.g:1062:4: (lv_validate_10_0= 'validate' ) |
| { |
| // InternalDataDSL.g:1062:4: (lv_validate_10_0= 'validate' ) |
| // InternalDataDSL.g:1063:5: lv_validate_10_0= 'validate' |
| { |
| lv_validate_10_0=(Token)match(input,36,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_validate_10_0, grammarAccess.getDataInterchangeFileEDIAccess().getValidateValidateKeyword_6_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed(current, "validate", true, "validate"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileEDI" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeBean" |
| // InternalDataDSL.g:1079:1: entryRuleDataInterchangeBean returns [EObject current=null] : iv_ruleDataInterchangeBean= ruleDataInterchangeBean EOF ; |
| public final EObject entryRuleDataInterchangeBean() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeBean = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1079:60: (iv_ruleDataInterchangeBean= ruleDataInterchangeBean EOF ) |
| // InternalDataDSL.g:1080:2: iv_ruleDataInterchangeBean= ruleDataInterchangeBean EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeBean=ruleDataInterchangeBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeBean; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeBean" |
| |
| |
| // $ANTLR start "ruleDataInterchangeBean" |
| // InternalDataDSL.g:1086:1: ruleDataInterchangeBean returns [EObject current=null] : ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? ) ; |
| public final EObject ruleDataInterchangeBean() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_nodeName_4_0=null; |
| Token otherlv_5=null; |
| Token lv_elementMap_6_0=null; |
| Token lv_markLatestImport_7_0=null; |
| Token otherlv_8=null; |
| Token lv_markLatestExport_9_0=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token otherlv_14=null; |
| Token otherlv_15=null; |
| Token otherlv_16=null; |
| Token otherlv_18=null; |
| Token otherlv_19=null; |
| Token otherlv_20=null; |
| Token otherlv_22=null; |
| Token otherlv_23=null; |
| Token otherlv_24=null; |
| Token otherlv_26=null; |
| Token otherlv_27=null; |
| Token otherlv_28=null; |
| Token otherlv_30=null; |
| Token otherlv_31=null; |
| Token otherlv_32=null; |
| Token otherlv_34=null; |
| Token otherlv_35=null; |
| Token otherlv_36=null; |
| Token otherlv_38=null; |
| EObject lv_expression_13_0 = null; |
| |
| EObject lv_lookup_17_0 = null; |
| |
| EObject lv_format_21_0 = null; |
| |
| EObject lv_exportExposes_25_0 = null; |
| |
| EObject lv_mappings_29_0 = null; |
| |
| EObject lv_lookupKeys_33_0 = null; |
| |
| EObject lv_exportFilter_37_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1092:2: ( ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? ) ) |
| // InternalDataDSL.g:1093:2: ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? ) |
| { |
| // InternalDataDSL.g:1093:2: ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? ) |
| // InternalDataDSL.g:1094:3: () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? |
| { |
| // InternalDataDSL.g:1094:3: () |
| // InternalDataDSL.g:1095:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeBeanAccess().getDataInterchangeBeanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,37,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeBeanAccess().getEntityKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1105:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:1106:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:1106:4: ( ruleLFQN ) |
| // InternalDataDSL.g:1107:5: ruleLFQN |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getEntityLEntityCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_24); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1121:3: (otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==38) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalDataDSL.g:1122:4: otherlv_3= 'nodeName' ( (lv_nodeName_4_0= RULE_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,38,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeBeanAccess().getNodeNameKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:1126:4: ( (lv_nodeName_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1127:5: (lv_nodeName_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1127:5: (lv_nodeName_4_0= RULE_STRING ) |
| // InternalDataDSL.g:1128:6: lv_nodeName_4_0= RULE_STRING |
| { |
| lv_nodeName_4_0=(Token)match(input,RULE_STRING,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nodeName_4_0, grammarAccess.getDataInterchangeBeanAccess().getNodeNameSTRINGTerminalRuleCall_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "nodeName", |
| lv_nodeName_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1145:3: (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==39) ) { |
| alt17=1; |
| } |
| switch (alt17) { |
| case 1 : |
| // InternalDataDSL.g:1146:4: otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,39,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeBeanAccess().getCreateOnKeyword_4_0()); |
| |
| } |
| // InternalDataDSL.g:1150:4: ( (lv_elementMap_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1151:5: (lv_elementMap_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1151:5: (lv_elementMap_6_0= RULE_STRING ) |
| // InternalDataDSL.g:1152:6: lv_elementMap_6_0= RULE_STRING |
| { |
| lv_elementMap_6_0=(Token)match(input,RULE_STRING,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementMap_6_0, grammarAccess.getDataInterchangeBeanAccess().getElementMapSTRINGTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementMap", |
| lv_elementMap_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1169:3: ( ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==40) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalDataDSL.g:1170:4: ( (lv_markLatestImport_7_0= 'latestImport' ) ) ( (otherlv_8= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1170:4: ( (lv_markLatestImport_7_0= 'latestImport' ) ) |
| // InternalDataDSL.g:1171:5: (lv_markLatestImport_7_0= 'latestImport' ) |
| { |
| // InternalDataDSL.g:1171:5: (lv_markLatestImport_7_0= 'latestImport' ) |
| // InternalDataDSL.g:1172:6: lv_markLatestImport_7_0= 'latestImport' |
| { |
| lv_markLatestImport_7_0=(Token)match(input,40,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_markLatestImport_7_0, grammarAccess.getDataInterchangeBeanAccess().getMarkLatestImportLatestImportKeyword_5_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed(current, "markLatestImport", true, "latestImport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1184:4: ( (otherlv_8= RULE_ID ) ) |
| // InternalDataDSL.g:1185:5: (otherlv_8= RULE_ID ) |
| { |
| // InternalDataDSL.g:1185:5: (otherlv_8= RULE_ID ) |
| // InternalDataDSL.g:1186:6: otherlv_8= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| otherlv_8=(Token)match(input,RULE_ID,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataInterchangeBeanAccess().getLatestPropertyLEntityAttributeCrossReference_5_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1198:3: ( ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) )? |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==41) ) { |
| alt19=1; |
| } |
| switch (alt19) { |
| case 1 : |
| // InternalDataDSL.g:1199:4: ( (lv_markLatestExport_9_0= 'latestExport' ) ) ( (otherlv_10= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1199:4: ( (lv_markLatestExport_9_0= 'latestExport' ) ) |
| // InternalDataDSL.g:1200:5: (lv_markLatestExport_9_0= 'latestExport' ) |
| { |
| // InternalDataDSL.g:1200:5: (lv_markLatestExport_9_0= 'latestExport' ) |
| // InternalDataDSL.g:1201:6: lv_markLatestExport_9_0= 'latestExport' |
| { |
| lv_markLatestExport_9_0=(Token)match(input,41,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_markLatestExport_9_0, grammarAccess.getDataInterchangeBeanAccess().getMarkLatestExportLatestExportKeyword_6_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed(current, "markLatestExport", true, "latestExport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1213:4: ( (otherlv_10= RULE_ID ) ) |
| // InternalDataDSL.g:1214:5: (otherlv_10= RULE_ID ) |
| { |
| // InternalDataDSL.g:1214:5: (otherlv_10= RULE_ID ) |
| // InternalDataDSL.g:1215:6: otherlv_10= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| otherlv_10=(Token)match(input,RULE_ID,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getDataInterchangeBeanAccess().getLatestExpPropertyLEntityAttributeCrossReference_6_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1227:3: (otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' )? |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==42) ) { |
| alt21=1; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalDataDSL.g:1228:4: otherlv_11= 'expression' otherlv_12= '{' ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* otherlv_14= '}' |
| { |
| otherlv_11=(Token)match(input,42,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDataInterchangeBeanAccess().getExpressionKeyword_7_0()); |
| |
| } |
| otherlv_12=(Token)match(input,15,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_7_1()); |
| |
| } |
| // InternalDataDSL.g:1236:4: ( (lv_expression_13_0= ruleDataInterchangeExpression ) )* |
| loop20: |
| do { |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==61||LA20_0==67) ) { |
| alt20=1; |
| } |
| |
| |
| switch (alt20) { |
| case 1 : |
| // InternalDataDSL.g:1237:5: (lv_expression_13_0= ruleDataInterchangeExpression ) |
| { |
| // InternalDataDSL.g:1237:5: (lv_expression_13_0= ruleDataInterchangeExpression ) |
| // InternalDataDSL.g:1238:6: lv_expression_13_0= ruleDataInterchangeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getExpressionDataInterchangeExpressionParserRuleCall_7_2_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_expression_13_0=ruleDataInterchangeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "expression", |
| lv_expression_13_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop20; |
| } |
| } while (true); |
| |
| otherlv_14=(Token)match(input,16,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_7_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1260:3: (otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' )? |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==43) ) { |
| alt23=1; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalDataDSL.g:1261:4: otherlv_15= 'lookup' otherlv_16= '{' ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* otherlv_18= '}' |
| { |
| otherlv_15=(Token)match(input,43,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDataInterchangeBeanAccess().getLookupKeyword_8_0()); |
| |
| } |
| otherlv_16=(Token)match(input,15,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_8_1()); |
| |
| } |
| // InternalDataDSL.g:1269:4: ( (lv_lookup_17_0= ruleDataInterchangeLookup ) )* |
| loop22: |
| do { |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==50) ) { |
| alt22=1; |
| } |
| |
| |
| switch (alt22) { |
| case 1 : |
| // InternalDataDSL.g:1270:5: (lv_lookup_17_0= ruleDataInterchangeLookup ) |
| { |
| // InternalDataDSL.g:1270:5: (lv_lookup_17_0= ruleDataInterchangeLookup ) |
| // InternalDataDSL.g:1271:6: lv_lookup_17_0= ruleDataInterchangeLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getLookupDataInterchangeLookupParserRuleCall_8_2_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| lv_lookup_17_0=ruleDataInterchangeLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "lookup", |
| lv_lookup_17_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeLookup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop22; |
| } |
| } while (true); |
| |
| otherlv_18=(Token)match(input,16,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_8_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1293:3: (otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' )? |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==44) ) { |
| alt25=1; |
| } |
| switch (alt25) { |
| case 1 : |
| // InternalDataDSL.g:1294:4: otherlv_19= 'format' otherlv_20= '{' ( (lv_format_21_0= ruleDataInterchangeFormat ) )* otherlv_22= '}' |
| { |
| otherlv_19=(Token)match(input,44,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getDataInterchangeBeanAccess().getFormatKeyword_9_0()); |
| |
| } |
| otherlv_20=(Token)match(input,15,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_1()); |
| |
| } |
| // InternalDataDSL.g:1302:4: ( (lv_format_21_0= ruleDataInterchangeFormat ) )* |
| loop24: |
| do { |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==50) ) { |
| alt24=1; |
| } |
| |
| |
| switch (alt24) { |
| case 1 : |
| // InternalDataDSL.g:1303:5: (lv_format_21_0= ruleDataInterchangeFormat ) |
| { |
| // InternalDataDSL.g:1303:5: (lv_format_21_0= ruleDataInterchangeFormat ) |
| // InternalDataDSL.g:1304:6: lv_format_21_0= ruleDataInterchangeFormat |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getFormatDataInterchangeFormatParserRuleCall_9_2_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| lv_format_21_0=ruleDataInterchangeFormat(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "format", |
| lv_format_21_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFormat"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop24; |
| } |
| } while (true); |
| |
| otherlv_22=(Token)match(input,16,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1326:3: (otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' )? |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==45) ) { |
| alt27=1; |
| } |
| switch (alt27) { |
| case 1 : |
| // InternalDataDSL.g:1327:4: otherlv_23= 'expose' otherlv_24= '{' ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* otherlv_26= '}' |
| { |
| otherlv_23=(Token)match(input,45,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_23, grammarAccess.getDataInterchangeBeanAccess().getExposeKeyword_10_0()); |
| |
| } |
| otherlv_24=(Token)match(input,15,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_24, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_10_1()); |
| |
| } |
| // InternalDataDSL.g:1335:4: ( (lv_exportExposes_25_0= ruleDataInterchangeExpose ) )* |
| loop26: |
| do { |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==64) ) { |
| alt26=1; |
| } |
| |
| |
| switch (alt26) { |
| case 1 : |
| // InternalDataDSL.g:1336:5: (lv_exportExposes_25_0= ruleDataInterchangeExpose ) |
| { |
| // InternalDataDSL.g:1336:5: (lv_exportExposes_25_0= ruleDataInterchangeExpose ) |
| // InternalDataDSL.g:1337:6: lv_exportExposes_25_0= ruleDataInterchangeExpose |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getExportExposesDataInterchangeExposeParserRuleCall_10_2_0()); |
| |
| } |
| pushFollow(FOLLOW_34); |
| lv_exportExposes_25_0=ruleDataInterchangeExpose(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "exportExposes", |
| lv_exportExposes_25_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExpose"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop26; |
| } |
| } while (true); |
| |
| otherlv_26=(Token)match(input,16,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_26, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_10_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1359:3: (otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==46) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalDataDSL.g:1360:4: otherlv_27= 'mapping' otherlv_28= '{' ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* otherlv_30= '}' |
| { |
| otherlv_27=(Token)match(input,46,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_27, grammarAccess.getDataInterchangeBeanAccess().getMappingKeyword_11_0()); |
| |
| } |
| otherlv_28=(Token)match(input,15,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_28, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_11_1()); |
| |
| } |
| // InternalDataDSL.g:1368:4: ( (lv_mappings_29_0= ruleDataInterchangeMapping ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==69||LA28_0==71) ) { |
| alt28=1; |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalDataDSL.g:1369:5: (lv_mappings_29_0= ruleDataInterchangeMapping ) |
| { |
| // InternalDataDSL.g:1369:5: (lv_mappings_29_0= ruleDataInterchangeMapping ) |
| // InternalDataDSL.g:1370:6: lv_mappings_29_0= ruleDataInterchangeMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getMappingsDataInterchangeMappingParserRuleCall_11_2_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| lv_mappings_29_0=ruleDataInterchangeMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "mappings", |
| lv_mappings_29_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeMapping"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop28; |
| } |
| } while (true); |
| |
| otherlv_30=(Token)match(input,16,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_30, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_11_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1392:3: (otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' )? |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==47) ) { |
| alt31=1; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalDataDSL.g:1393:4: otherlv_31= 'keys' otherlv_32= '{' ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* otherlv_34= '}' |
| { |
| otherlv_31=(Token)match(input,47,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_31, grammarAccess.getDataInterchangeBeanAccess().getKeysKeyword_12_0()); |
| |
| } |
| otherlv_32=(Token)match(input,15,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_32, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_12_1()); |
| |
| } |
| // InternalDataDSL.g:1401:4: ( (lv_lookupKeys_33_0= ruleDataInterchangeKey ) )* |
| loop30: |
| do { |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==49) ) { |
| alt30=1; |
| } |
| |
| |
| switch (alt30) { |
| case 1 : |
| // InternalDataDSL.g:1402:5: (lv_lookupKeys_33_0= ruleDataInterchangeKey ) |
| { |
| // InternalDataDSL.g:1402:5: (lv_lookupKeys_33_0= ruleDataInterchangeKey ) |
| // InternalDataDSL.g:1403:6: lv_lookupKeys_33_0= ruleDataInterchangeKey |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getLookupKeysDataInterchangeKeyParserRuleCall_12_2_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_lookupKeys_33_0=ruleDataInterchangeKey(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| add( |
| current, |
| "lookupKeys", |
| lv_lookupKeys_33_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeKey"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop30; |
| } |
| } while (true); |
| |
| otherlv_34=(Token)match(input,16,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_34, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_12_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1425:3: (otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' )? |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==48) ) { |
| alt32=1; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalDataDSL.g:1426:4: otherlv_35= 'exportFilter' otherlv_36= '{' ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) otherlv_38= '}' |
| { |
| otherlv_35=(Token)match(input,48,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_35, grammarAccess.getDataInterchangeBeanAccess().getExportFilterKeyword_13_0()); |
| |
| } |
| otherlv_36=(Token)match(input,15,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_36, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_13_1()); |
| |
| } |
| // InternalDataDSL.g:1434:4: ( (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) ) |
| // InternalDataDSL.g:1435:5: (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) |
| { |
| // InternalDataDSL.g:1435:5: (lv_exportFilter_37_0= ruleDataInterchangeExportFilter ) |
| // InternalDataDSL.g:1436:6: lv_exportFilter_37_0= ruleDataInterchangeExportFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getExportFilterDataInterchangeExportFilterParserRuleCall_13_2_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_exportFilter_37_0=ruleDataInterchangeExportFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| set( |
| current, |
| "exportFilter", |
| lv_exportFilter_37_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExportFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_38=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_38, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_13_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeBean" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeKey" |
| // InternalDataDSL.g:1462:1: entryRuleDataInterchangeKey returns [EObject current=null] : iv_ruleDataInterchangeKey= ruleDataInterchangeKey EOF ; |
| public final EObject entryRuleDataInterchangeKey() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeKey = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1462:59: (iv_ruleDataInterchangeKey= ruleDataInterchangeKey EOF ) |
| // InternalDataDSL.g:1463:2: iv_ruleDataInterchangeKey= ruleDataInterchangeKey EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeKeyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeKey=ruleDataInterchangeKey(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeKey; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeKey" |
| |
| |
| // $ANTLR start "ruleDataInterchangeKey" |
| // InternalDataDSL.g:1469:1: ruleDataInterchangeKey returns [EObject current=null] : ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeKey() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1475:2: ( ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:1476:2: ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:1476:2: ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalDataDSL.g:1477:3: () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1477:3: () |
| // InternalDataDSL.g:1478:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeKeyAccess().getDataInterchangeKeyAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,49,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeKeyAccess().getKeyKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1488:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:1489:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:1489:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:1490:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeKeyRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeKeyAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeKey" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookup" |
| // InternalDataDSL.g:1505:1: entryRuleDataInterchangeLookup returns [EObject current=null] : iv_ruleDataInterchangeLookup= ruleDataInterchangeLookup EOF ; |
| public final EObject entryRuleDataInterchangeLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookup = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1505:62: (iv_ruleDataInterchangeLookup= ruleDataInterchangeLookup EOF ) |
| // InternalDataDSL.g:1506:2: iv_ruleDataInterchangeLookup= ruleDataInterchangeLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookup=ruleDataInterchangeLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookup" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookup" |
| // InternalDataDSL.g:1512:1: ruleDataInterchangeLookup returns [EObject current=null] : ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? otherlv_7= 'with' ( (otherlv_8= RULE_ID ) ) ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleDataInterchangeLookup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token lv_elementMap_6_0=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token lv_cached_9_0=null; |
| Token lv_cacheSize_10_0=null; |
| Token otherlv_11=null; |
| Token lv_dataMap_12_0=null; |
| Token lv_allowNoResult_14_0=null; |
| Token lv_allowNonuniqueResult_15_0=null; |
| EObject lv_markerPath_16_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1518:2: ( ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? otherlv_7= 'with' ( (otherlv_8= RULE_ID ) ) ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) ) ) |
| // InternalDataDSL.g:1519:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? otherlv_7= 'with' ( (otherlv_8= RULE_ID ) ) ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalDataDSL.g:1519:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? otherlv_7= 'with' ( (otherlv_8= RULE_ID ) ) ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) ) |
| // InternalDataDSL.g:1520:3: () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? otherlv_7= 'with' ( (otherlv_8= RULE_ID ) ) ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) |
| { |
| // InternalDataDSL.g:1520:3: () |
| // InternalDataDSL.g:1521:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeLookupAccess().getDataInterchangeLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeLookupAccess().getForKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1531:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:1532:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:1532:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:1533:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeLookupAccess().getTargetPropertyLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,51,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeLookupAccess().getOnKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:1548:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:1549:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:1549:4: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:1550:5: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeLookupAccess().getEntityLEntityCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1561:3: (otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) )? |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==39) ) { |
| alt33=1; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalDataDSL.g:1562:4: otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,39,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeLookupAccess().getCreateOnKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:1566:4: ( (lv_elementMap_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1567:5: (lv_elementMap_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1567:5: (lv_elementMap_6_0= RULE_STRING ) |
| // InternalDataDSL.g:1568:6: lv_elementMap_6_0= RULE_STRING |
| { |
| lv_elementMap_6_0=(Token)match(input,RULE_STRING,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementMap_6_0, grammarAccess.getDataInterchangeLookupAccess().getElementMapSTRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementMap", |
| lv_elementMap_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_7=(Token)match(input,52,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeLookupAccess().getWithKeyword_6()); |
| |
| } |
| // InternalDataDSL.g:1589:3: ( (otherlv_8= RULE_ID ) ) |
| // InternalDataDSL.g:1590:4: (otherlv_8= RULE_ID ) |
| { |
| // InternalDataDSL.g:1590:4: (otherlv_8= RULE_ID ) |
| // InternalDataDSL.g:1591:5: otherlv_8= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_8=(Token)match(input,RULE_ID,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataInterchangeLookupAccess().getQueryPropertyLEntityAttributeCrossReference_7_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1602:3: ( ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==53) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalDataDSL.g:1603:4: ( (lv_cached_9_0= 'cacheSize' ) ) ( (lv_cacheSize_10_0= RULE_INT ) ) |
| { |
| // InternalDataDSL.g:1603:4: ( (lv_cached_9_0= 'cacheSize' ) ) |
| // InternalDataDSL.g:1604:5: (lv_cached_9_0= 'cacheSize' ) |
| { |
| // InternalDataDSL.g:1604:5: (lv_cached_9_0= 'cacheSize' ) |
| // InternalDataDSL.g:1605:6: lv_cached_9_0= 'cacheSize' |
| { |
| lv_cached_9_0=(Token)match(input,53,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_cached_9_0, grammarAccess.getDataInterchangeLookupAccess().getCachedCacheSizeKeyword_8_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed(current, "cached", true, "cacheSize"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1617:4: ( (lv_cacheSize_10_0= RULE_INT ) ) |
| // InternalDataDSL.g:1618:5: (lv_cacheSize_10_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:1618:5: (lv_cacheSize_10_0= RULE_INT ) |
| // InternalDataDSL.g:1619:6: lv_cacheSize_10_0= RULE_INT |
| { |
| lv_cacheSize_10_0=(Token)match(input,RULE_INT,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_cacheSize_10_0, grammarAccess.getDataInterchangeLookupAccess().getCacheSizeINTTerminalRuleCall_8_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "cacheSize", |
| lv_cacheSize_10_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1636:3: (otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==54) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalDataDSL.g:1637:4: otherlv_11= 'mapTo' ( (lv_dataMap_12_0= RULE_STRING ) ) |
| { |
| otherlv_11=(Token)match(input,54,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDataInterchangeLookupAccess().getMapToKeyword_9_0()); |
| |
| } |
| // InternalDataDSL.g:1641:4: ( (lv_dataMap_12_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1642:5: (lv_dataMap_12_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1642:5: (lv_dataMap_12_0= RULE_STRING ) |
| // InternalDataDSL.g:1643:6: lv_dataMap_12_0= RULE_STRING |
| { |
| lv_dataMap_12_0=(Token)match(input,RULE_STRING,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dataMap_12_0, grammarAccess.getDataInterchangeLookupAccess().getDataMapSTRINGTerminalRuleCall_9_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dataMap", |
| lv_dataMap_12_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1660:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) ) |
| // InternalDataDSL.g:1661:4: ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) |
| { |
| // InternalDataDSL.g:1661:4: ( ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) ) |
| // InternalDataDSL.g:1662:5: ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10()); |
| // InternalDataDSL.g:1665:5: ( ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* ) |
| // InternalDataDSL.g:1666:6: ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* |
| { |
| // InternalDataDSL.g:1666:6: ( ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) )* |
| loop36: |
| do { |
| int alt36=4; |
| int LA36_0 = input.LA(1); |
| |
| if ( LA36_0 == 55 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 0) ) { |
| alt36=1; |
| } |
| else if ( LA36_0 == 56 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 1) ) { |
| alt36=2; |
| } |
| else if ( LA36_0 == 57 && getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 2) ) { |
| alt36=3; |
| } |
| |
| |
| switch (alt36) { |
| case 1 : |
| // InternalDataDSL.g:1667:4: ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) |
| { |
| // InternalDataDSL.g:1667:4: ({...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) ) |
| // InternalDataDSL.g:1668:5: {...}? => ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 0)"); |
| } |
| // InternalDataDSL.g:1668:119: ( ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) ) |
| // InternalDataDSL.g:1669:6: ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 0); |
| // InternalDataDSL.g:1672:9: ({...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) ) |
| // InternalDataDSL.g:1672:10: {...}? => ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "true"); |
| } |
| // InternalDataDSL.g:1672:19: ( (lv_allowNoResult_14_0= 'allowNoResult' ) ) |
| // InternalDataDSL.g:1672:20: (lv_allowNoResult_14_0= 'allowNoResult' ) |
| { |
| // InternalDataDSL.g:1672:20: (lv_allowNoResult_14_0= 'allowNoResult' ) |
| // InternalDataDSL.g:1673:10: lv_allowNoResult_14_0= 'allowNoResult' |
| { |
| lv_allowNoResult_14_0=(Token)match(input,55,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_allowNoResult_14_0, grammarAccess.getDataInterchangeLookupAccess().getAllowNoResultAllowNoResultKeyword_10_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed(current, "allowNoResult", true, "allowNoResult"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:1690:4: ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) |
| { |
| // InternalDataDSL.g:1690:4: ({...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) ) |
| // InternalDataDSL.g:1691:5: {...}? => ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 1)"); |
| } |
| // InternalDataDSL.g:1691:119: ( ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) ) |
| // InternalDataDSL.g:1692:6: ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 1); |
| // InternalDataDSL.g:1695:9: ({...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) ) |
| // InternalDataDSL.g:1695:10: {...}? => ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "true"); |
| } |
| // InternalDataDSL.g:1695:19: ( (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) ) |
| // InternalDataDSL.g:1695:20: (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) |
| { |
| // InternalDataDSL.g:1695:20: (lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' ) |
| // InternalDataDSL.g:1696:10: lv_allowNonuniqueResult_15_0= 'allowNonuniqueResult' |
| { |
| lv_allowNonuniqueResult_15_0=(Token)match(input,56,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_allowNonuniqueResult_15_0, grammarAccess.getDataInterchangeLookupAccess().getAllowNonuniqueResultAllowNonuniqueResultKeyword_10_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed(current, "allowNonuniqueResult", true, "allowNonuniqueResult"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:1713:4: ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) |
| { |
| // InternalDataDSL.g:1713:4: ({...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) ) |
| // InternalDataDSL.g:1714:5: {...}? => ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "getUnorderedGroupHelper().canSelect(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 2)"); |
| } |
| // InternalDataDSL.g:1714:119: ( ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) ) |
| // InternalDataDSL.g:1715:6: ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10(), 2); |
| // InternalDataDSL.g:1718:9: ({...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) ) |
| // InternalDataDSL.g:1718:10: {...}? => ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDataInterchangeLookup", "true"); |
| } |
| // InternalDataDSL.g:1718:19: ( (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) ) |
| // InternalDataDSL.g:1718:20: (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) |
| { |
| // InternalDataDSL.g:1718:20: (lv_markerPath_16_0= ruleDataInterchangeMarkerPath ) |
| // InternalDataDSL.g:1719:10: lv_markerPath_16_0= ruleDataInterchangeMarkerPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupAccess().getMarkerPathDataInterchangeMarkerPathParserRuleCall_10_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_markerPath_16_0=ruleDataInterchangeMarkerPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| set( |
| current, |
| "markerPath", |
| lv_markerPath_16_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeMarkerPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop36; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDataInterchangeLookupAccess().getUnorderedGroup_10()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookup" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeMarkerPath" |
| // InternalDataDSL.g:1752:1: entryRuleDataInterchangeMarkerPath returns [EObject current=null] : iv_ruleDataInterchangeMarkerPath= ruleDataInterchangeMarkerPath EOF ; |
| public final EObject entryRuleDataInterchangeMarkerPath() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeMarkerPath = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1752:66: (iv_ruleDataInterchangeMarkerPath= ruleDataInterchangeMarkerPath EOF ) |
| // InternalDataDSL.g:1753:2: iv_ruleDataInterchangeMarkerPath= ruleDataInterchangeMarkerPath EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeMarkerPathRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeMarkerPath=ruleDataInterchangeMarkerPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeMarkerPath; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeMarkerPath" |
| |
| |
| // $ANTLR start "ruleDataInterchangeMarkerPath" |
| // InternalDataDSL.g:1759:1: ruleDataInterchangeMarkerPath returns [EObject current=null] : ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) ; |
| public final EObject ruleDataInterchangeMarkerPath() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_path_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1765:2: ( ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) ) |
| // InternalDataDSL.g:1766:2: ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) |
| { |
| // InternalDataDSL.g:1766:2: ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) |
| // InternalDataDSL.g:1767:3: () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' |
| { |
| // InternalDataDSL.g:1767:3: () |
| // InternalDataDSL.g:1768:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeMarkerPathAccess().getDataInterchangeMarkerPathAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,57,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeMarkerPathAccess().getMarkerPathKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,15,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeMarkerPathAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:1782:3: ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* |
| loop37: |
| do { |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==58) ) { |
| alt37=1; |
| } |
| |
| |
| switch (alt37) { |
| case 1 : |
| // InternalDataDSL.g:1783:4: (lv_path_3_0= ruleDataInterchangeMarkerEntity ) |
| { |
| // InternalDataDSL.g:1783:4: (lv_path_3_0= ruleDataInterchangeMarkerEntity ) |
| // InternalDataDSL.g:1784:5: lv_path_3_0= ruleDataInterchangeMarkerEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMarkerPathAccess().getPathDataInterchangeMarkerEntityParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| lv_path_3_0=ruleDataInterchangeMarkerEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeMarkerPathRule()); |
| } |
| add( |
| current, |
| "path", |
| lv_path_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeMarkerEntity"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop37; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeMarkerPathAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeMarkerPath" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeMarkerEntity" |
| // InternalDataDSL.g:1809:1: entryRuleDataInterchangeMarkerEntity returns [EObject current=null] : iv_ruleDataInterchangeMarkerEntity= ruleDataInterchangeMarkerEntity EOF ; |
| public final EObject entryRuleDataInterchangeMarkerEntity() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeMarkerEntity = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1809:68: (iv_ruleDataInterchangeMarkerEntity= ruleDataInterchangeMarkerEntity EOF ) |
| // InternalDataDSL.g:1810:2: iv_ruleDataInterchangeMarkerEntity= ruleDataInterchangeMarkerEntity EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeMarkerEntityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeMarkerEntity=ruleDataInterchangeMarkerEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeMarkerEntity; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeMarkerEntity" |
| |
| |
| // $ANTLR start "ruleDataInterchangeMarkerEntity" |
| // InternalDataDSL.g:1816:1: ruleDataInterchangeMarkerEntity returns [EObject current=null] : ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) ; |
| public final EObject ruleDataInterchangeMarkerEntity() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_markLatest_3_0=null; |
| Token otherlv_4=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1822:2: ( ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) ) |
| // InternalDataDSL.g:1823:2: ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) |
| { |
| // InternalDataDSL.g:1823:2: ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) |
| // InternalDataDSL.g:1824:3: () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? |
| { |
| // InternalDataDSL.g:1824:3: () |
| // InternalDataDSL.g:1825:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeMarkerEntityAccess().getDataInterchangeMarkerEntityAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeMarkerEntityAccess().getMarkerEntityKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1835:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:1836:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:1836:4: ( ruleLFQN ) |
| // InternalDataDSL.g:1837:5: ruleLFQN |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeMarkerEntityRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMarkerEntityAccess().getMarkerEntityLEntityCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1851:3: ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==59) ) { |
| alt38=1; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalDataDSL.g:1852:4: ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1852:4: ( (lv_markLatest_3_0= 'markedBy' ) ) |
| // InternalDataDSL.g:1853:5: (lv_markLatest_3_0= 'markedBy' ) |
| { |
| // InternalDataDSL.g:1853:5: (lv_markLatest_3_0= 'markedBy' ) |
| // InternalDataDSL.g:1854:6: lv_markLatest_3_0= 'markedBy' |
| { |
| lv_markLatest_3_0=(Token)match(input,59,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_markLatest_3_0, grammarAccess.getDataInterchangeMarkerEntityAccess().getMarkLatestMarkedByKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeMarkerEntityRule()); |
| } |
| setWithLastConsumed(current, "markLatest", true, "markedBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1866:4: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:1867:5: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:1867:5: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:1868:6: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeMarkerEntityRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeMarkerEntityAccess().getMarkerPropertyLEntityAttributeCrossReference_3_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeMarkerEntity" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFormat" |
| // InternalDataDSL.g:1884:1: entryRuleDataInterchangeFormat returns [EObject current=null] : iv_ruleDataInterchangeFormat= ruleDataInterchangeFormat EOF ; |
| public final EObject entryRuleDataInterchangeFormat() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFormat = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1884:62: (iv_ruleDataInterchangeFormat= ruleDataInterchangeFormat EOF ) |
| // InternalDataDSL.g:1885:2: iv_ruleDataInterchangeFormat= ruleDataInterchangeFormat EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFormatRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFormat=ruleDataInterchangeFormat(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFormat; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFormat" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFormat" |
| // InternalDataDSL.g:1891:1: ruleDataInterchangeFormat returns [EObject current=null] : ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) ; |
| public final EObject ruleDataInterchangeFormat() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token lv_format_4_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1897:2: ( ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:1898:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:1898:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:1899:3: () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:1899:3: () |
| // InternalDataDSL.g:1900:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFormatAccess().getDataInterchangeFormatAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFormatAccess().getForKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1910:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:1911:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:1911:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:1912:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFormatRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeFormatAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,60,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFormatAccess().getCodingKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:1927:3: ( (lv_format_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1928:4: (lv_format_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1928:4: (lv_format_4_0= RULE_STRING ) |
| // InternalDataDSL.g:1929:5: lv_format_4_0= RULE_STRING |
| { |
| lv_format_4_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_format_4_0, grammarAccess.getDataInterchangeFormatAccess().getFormatSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFormatRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "format", |
| lv_format_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFormat" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeExpression" |
| // InternalDataDSL.g:1949:1: entryRuleDataInterchangeExpression returns [EObject current=null] : iv_ruleDataInterchangeExpression= ruleDataInterchangeExpression EOF ; |
| public final EObject entryRuleDataInterchangeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1949:66: (iv_ruleDataInterchangeExpression= ruleDataInterchangeExpression EOF ) |
| // InternalDataDSL.g:1950:2: iv_ruleDataInterchangeExpression= ruleDataInterchangeExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeExpression=ruleDataInterchangeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeExpression" |
| |
| |
| // $ANTLR start "ruleDataInterchangeExpression" |
| // InternalDataDSL.g:1956:1: ruleDataInterchangeExpression returns [EObject current=null] : (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) ; |
| public final EObject ruleDataInterchangeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeEntityExpression_0 = null; |
| |
| EObject this_DataInterchangePredefinedExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1962:2: ( (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) ) |
| // InternalDataDSL.g:1963:2: (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) |
| { |
| // InternalDataDSL.g:1963:2: (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==61) ) { |
| alt39=1; |
| } |
| else if ( (LA39_0==67) ) { |
| 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 : |
| // InternalDataDSL.g:1964:3: this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExpressionAccess().getDataInterchangeEntityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeEntityExpression_0=ruleDataInterchangeEntityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeEntityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:1973:3: this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExpressionAccess().getDataInterchangePredefinedExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangePredefinedExpression_1=ruleDataInterchangePredefinedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangePredefinedExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeExpression" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeEntityExpression" |
| // InternalDataDSL.g:1985:1: entryRuleDataInterchangeEntityExpression returns [EObject current=null] : iv_ruleDataInterchangeEntityExpression= ruleDataInterchangeEntityExpression EOF ; |
| public final EObject entryRuleDataInterchangeEntityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeEntityExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1985:72: (iv_ruleDataInterchangeEntityExpression= ruleDataInterchangeEntityExpression EOF ) |
| // InternalDataDSL.g:1986:2: iv_ruleDataInterchangeEntityExpression= ruleDataInterchangeEntityExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeEntityExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeEntityExpression=ruleDataInterchangeEntityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeEntityExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeEntityExpression" |
| |
| |
| // $ANTLR start "ruleDataInterchangeEntityExpression" |
| // InternalDataDSL.g:1992:1: ruleDataInterchangeEntityExpression returns [EObject current=null] : ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeEntityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1998:2: ( ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:1999:2: ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:1999:2: ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) |
| // InternalDataDSL.g:2000:3: () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:2000:3: () |
| // InternalDataDSL.g:2001:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeEntityExpressionAccess().getDataInterchangeEntityExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeEntityExpressionAccess().getCopyKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2011:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2012:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2012:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2013:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeEntityExpressionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeEntityExpressionAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,62,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeEntityExpressionAccess().getFromKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2028:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:2029:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:2029:4: ( ruleLFQN ) |
| // InternalDataDSL.g:2030:5: ruleLFQN |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeEntityExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeEntityExpressionAccess().getEntityLEntityCrossReference_4_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,63,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeEntityExpressionAccess().getPropertyKeyword_5()); |
| |
| } |
| // InternalDataDSL.g:2048:3: ( (otherlv_6= RULE_ID ) ) |
| // InternalDataDSL.g:2049:4: (otherlv_6= RULE_ID ) |
| { |
| // InternalDataDSL.g:2049:4: (otherlv_6= RULE_ID ) |
| // InternalDataDSL.g:2050:5: otherlv_6= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeEntityExpressionRule()); |
| } |
| |
| } |
| otherlv_6=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeEntityExpressionAccess().getPropertyLEntityAttributeCrossReference_6_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeEntityExpression" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeExpose" |
| // InternalDataDSL.g:2065:1: entryRuleDataInterchangeExpose returns [EObject current=null] : iv_ruleDataInterchangeExpose= ruleDataInterchangeExpose EOF ; |
| public final EObject entryRuleDataInterchangeExpose() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeExpose = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2065:62: (iv_ruleDataInterchangeExpose= ruleDataInterchangeExpose EOF ) |
| // InternalDataDSL.g:2066:2: iv_ruleDataInterchangeExpose= ruleDataInterchangeExpose EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeExposeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeExpose=ruleDataInterchangeExpose(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeExpose; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeExpose" |
| |
| |
| // $ANTLR start "ruleDataInterchangeExpose" |
| // InternalDataDSL.g:2072:1: ruleDataInterchangeExpose returns [EObject current=null] : ( () otherlv_1= 'ref' ( (otherlv_2= RULE_ID ) ) ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) ) ; |
| public final EObject ruleDataInterchangeExpose() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| EObject lv_subExpose_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2078:2: ( ( () otherlv_1= 'ref' ( (otherlv_2= RULE_ID ) ) ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) ) ) |
| // InternalDataDSL.g:2079:2: ( () otherlv_1= 'ref' ( (otherlv_2= RULE_ID ) ) ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) ) |
| { |
| // InternalDataDSL.g:2079:2: ( () otherlv_1= 'ref' ( (otherlv_2= RULE_ID ) ) ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) ) |
| // InternalDataDSL.g:2080:3: () otherlv_1= 'ref' ( (otherlv_2= RULE_ID ) ) ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) |
| { |
| // InternalDataDSL.g:2080:3: () |
| // InternalDataDSL.g:2081:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExposeAccess().getDataInterchangeExposeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,64,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeExposeAccess().getRefKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2091:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2092:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2092:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2093:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeExposeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeExposeAccess().getRefEntityLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2104:3: ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==51) ) { |
| alt40=1; |
| } |
| else if ( (LA40_0==45) ) { |
| alt40=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 40, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt40) { |
| case 1 : |
| // InternalDataDSL.g:2105:4: (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:2105:4: (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalDataDSL.g:2106:5: otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) |
| { |
| otherlv_3=(Token)match(input,51,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeExposeAccess().getOnKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:2110:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:2111:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:2111:6: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:2112:7: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeExposeRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeExposeAccess().getRefPropertyLEntityAttributeCrossReference_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:2125:4: (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) |
| { |
| // InternalDataDSL.g:2125:4: (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) |
| // InternalDataDSL.g:2126:5: otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' |
| { |
| otherlv_5=(Token)match(input,45,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeExposeAccess().getExposeKeyword_3_1_0()); |
| |
| } |
| otherlv_6=(Token)match(input,15,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeExposeAccess().getLeftCurlyBracketKeyword_3_1_1()); |
| |
| } |
| // InternalDataDSL.g:2134:5: ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) |
| // InternalDataDSL.g:2135:6: (lv_subExpose_7_0= ruleDataInterchangeExpose ) |
| { |
| // InternalDataDSL.g:2135:6: (lv_subExpose_7_0= ruleDataInterchangeExpose ) |
| // InternalDataDSL.g:2136:7: lv_subExpose_7_0= ruleDataInterchangeExpose |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExposeAccess().getSubExposeDataInterchangeExposeParserRuleCall_3_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_subExpose_7_0=ruleDataInterchangeExpose(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeExposeRule()); |
| } |
| set( |
| current, |
| "subExpose", |
| lv_subExpose_7_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExpose"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDataInterchangeExposeAccess().getRightCurlyBracketKeyword_3_1_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeExpose" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeExportFilter" |
| // InternalDataDSL.g:2163:1: entryRuleDataInterchangeExportFilter returns [EObject current=null] : iv_ruleDataInterchangeExportFilter= ruleDataInterchangeExportFilter EOF ; |
| public final EObject entryRuleDataInterchangeExportFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeExportFilter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2163:68: (iv_ruleDataInterchangeExportFilter= ruleDataInterchangeExportFilter EOF ) |
| // InternalDataDSL.g:2164:2: iv_ruleDataInterchangeExportFilter= ruleDataInterchangeExportFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeExportFilter=ruleDataInterchangeExportFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeExportFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeExportFilter" |
| |
| |
| // $ANTLR start "ruleDataInterchangeExportFilter" |
| // InternalDataDSL.g:2170:1: ruleDataInterchangeExportFilter returns [EObject current=null] : ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? ) ; |
| public final EObject ruleDataInterchangeExportFilter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject lv_condition_3_0 = null; |
| |
| EObject lv_hiddenproperties_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2176:2: ( ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? ) ) |
| // InternalDataDSL.g:2177:2: ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? ) |
| { |
| // InternalDataDSL.g:2177:2: ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? ) |
| // InternalDataDSL.g:2178:3: () (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? |
| { |
| // InternalDataDSL.g:2178:3: () |
| // InternalDataDSL.g:2179:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExportFilterAccess().getDataInterchangeExportFilterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:2185:3: (otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' )? |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==65) ) { |
| alt41=1; |
| } |
| switch (alt41) { |
| case 1 : |
| // InternalDataDSL.g:2186:4: otherlv_1= 'where' otherlv_2= '{' ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) otherlv_4= '}' |
| { |
| otherlv_1=(Token)match(input,65,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeExportFilterAccess().getWhereKeyword_1_0()); |
| |
| } |
| otherlv_2=(Token)match(input,15,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeExportFilterAccess().getLeftCurlyBracketKeyword_1_1()); |
| |
| } |
| // InternalDataDSL.g:2194:4: ( (lv_condition_3_0= ruleDataInterchangeFilterCondition ) ) |
| // InternalDataDSL.g:2195:5: (lv_condition_3_0= ruleDataInterchangeFilterCondition ) |
| { |
| // InternalDataDSL.g:2195:5: (lv_condition_3_0= ruleDataInterchangeFilterCondition ) |
| // InternalDataDSL.g:2196:6: lv_condition_3_0= ruleDataInterchangeFilterCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterAccess().getConditionDataInterchangeFilterConditionParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_condition_3_0=ruleDataInterchangeFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeExportFilterRule()); |
| } |
| set( |
| current, |
| "condition", |
| lv_condition_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFilterCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,16,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeExportFilterAccess().getRightCurlyBracketKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2218:3: (otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* )? |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==66) ) { |
| alt43=1; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalDataDSL.g:2219:4: otherlv_5= 'hide' ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* |
| { |
| otherlv_5=(Token)match(input,66,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeExportFilterAccess().getHideKeyword_2_0()); |
| |
| } |
| // InternalDataDSL.g:2223:4: ( (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) )* |
| loop42: |
| do { |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==RULE_ID) ) { |
| alt42=1; |
| } |
| |
| |
| switch (alt42) { |
| case 1 : |
| // InternalDataDSL.g:2224:5: (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) |
| { |
| // InternalDataDSL.g:2224:5: (lv_hiddenproperties_6_0= ruleDataInterchangeExportHide ) |
| // InternalDataDSL.g:2225:6: lv_hiddenproperties_6_0= ruleDataInterchangeExportHide |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterAccess().getHiddenpropertiesDataInterchangeExportHideParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_hiddenproperties_6_0=ruleDataInterchangeExportHide(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeExportFilterRule()); |
| } |
| add( |
| current, |
| "hiddenproperties", |
| lv_hiddenproperties_6_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExportHide"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop42; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeExportFilter" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFilterCondition" |
| // InternalDataDSL.g:2247:1: entryRuleDataInterchangeFilterCondition returns [EObject current=null] : iv_ruleDataInterchangeFilterCondition= ruleDataInterchangeFilterCondition EOF ; |
| public final EObject entryRuleDataInterchangeFilterCondition() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFilterCondition = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2247:71: (iv_ruleDataInterchangeFilterCondition= ruleDataInterchangeFilterCondition EOF ) |
| // InternalDataDSL.g:2248:2: iv_ruleDataInterchangeFilterCondition= ruleDataInterchangeFilterCondition EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFilterCondition=ruleDataInterchangeFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFilterCondition; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFilterCondition" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFilterCondition" |
| // InternalDataDSL.g:2254:1: ruleDataInterchangeFilterCondition returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) ( (lv_value_2_0= RULE_STRING ) )? ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? ) ; |
| public final EObject ruleDataInterchangeFilterCondition() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_value_2_0=null; |
| Enumerator lv_operator_1_0 = null; |
| |
| Enumerator lv_operator2_3_0 = null; |
| |
| EObject lv_subcondition_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2260:2: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) ( (lv_value_2_0= RULE_STRING ) )? ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? ) ) |
| // InternalDataDSL.g:2261:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) ( (lv_value_2_0= RULE_STRING ) )? ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? ) |
| { |
| // InternalDataDSL.g:2261:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) ( (lv_value_2_0= RULE_STRING ) )? ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? ) |
| // InternalDataDSL.g:2262:3: ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) ( (lv_value_2_0= RULE_STRING ) )? ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? |
| { |
| // InternalDataDSL.g:2262:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalDataDSL.g:2263:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalDataDSL.g:2263:4: (otherlv_0= RULE_ID ) |
| // InternalDataDSL.g:2264:5: otherlv_0= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| |
| } |
| otherlv_0=(Token)match(input,RULE_ID,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDataInterchangeFilterConditionAccess().getRefPropertyLEntityFeatureCrossReference_0_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2275:3: ( (lv_operator_1_0= ruleConditionAndOperator1 ) ) |
| // InternalDataDSL.g:2276:4: (lv_operator_1_0= ruleConditionAndOperator1 ) |
| { |
| // InternalDataDSL.g:2276:4: (lv_operator_1_0= ruleConditionAndOperator1 ) |
| // InternalDataDSL.g:2277:5: lv_operator_1_0= ruleConditionAndOperator1 |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFilterConditionAccess().getOperatorConditionAndOperator1EnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_58); |
| lv_operator_1_0=ruleConditionAndOperator1(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_1_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ConditionAndOperator1"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2294:3: ( (lv_value_2_0= RULE_STRING ) )? |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==RULE_STRING) ) { |
| alt44=1; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalDataDSL.g:2295:4: (lv_value_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2295:4: (lv_value_2_0= RULE_STRING ) |
| // InternalDataDSL.g:2296:5: lv_value_2_0= RULE_STRING |
| { |
| lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_2_0, grammarAccess.getDataInterchangeFilterConditionAccess().getValueSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2312:3: ( ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( ((LA45_0>=165 && LA45_0<=166)) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalDataDSL.g:2313:4: ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) |
| { |
| // InternalDataDSL.g:2313:4: ( (lv_operator2_3_0= ruleConditionAndOperator2 ) ) |
| // InternalDataDSL.g:2314:5: (lv_operator2_3_0= ruleConditionAndOperator2 ) |
| { |
| // InternalDataDSL.g:2314:5: (lv_operator2_3_0= ruleConditionAndOperator2 ) |
| // InternalDataDSL.g:2315:6: lv_operator2_3_0= ruleConditionAndOperator2 |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFilterConditionAccess().getOperator2ConditionAndOperator2EnumRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_operator2_3_0=ruleConditionAndOperator2(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| set( |
| current, |
| "operator2", |
| lv_operator2_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ConditionAndOperator2"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2332:4: ( (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) ) |
| // InternalDataDSL.g:2333:5: (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) |
| { |
| // InternalDataDSL.g:2333:5: (lv_subcondition_4_0= ruleDataInterchangeFilterCondition ) |
| // InternalDataDSL.g:2334:6: lv_subcondition_4_0= ruleDataInterchangeFilterCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFilterConditionAccess().getSubconditionDataInterchangeFilterConditionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_subcondition_4_0=ruleDataInterchangeFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeFilterConditionRule()); |
| } |
| set( |
| current, |
| "subcondition", |
| lv_subcondition_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFilterCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFilterCondition" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeExportHide" |
| // InternalDataDSL.g:2356:1: entryRuleDataInterchangeExportHide returns [EObject current=null] : iv_ruleDataInterchangeExportHide= ruleDataInterchangeExportHide EOF ; |
| public final EObject entryRuleDataInterchangeExportHide() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeExportHide = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2356:66: (iv_ruleDataInterchangeExportHide= ruleDataInterchangeExportHide EOF ) |
| // InternalDataDSL.g:2357:2: iv_ruleDataInterchangeExportHide= ruleDataInterchangeExportHide EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeExportHideRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeExportHide=ruleDataInterchangeExportHide(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeExportHide; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeExportHide" |
| |
| |
| // $ANTLR start "ruleDataInterchangeExportHide" |
| // InternalDataDSL.g:2363:1: ruleDataInterchangeExportHide returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeExportHide() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2369:2: ( ( () ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:2370:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:2370:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDataDSL.g:2371:3: () ( (otherlv_1= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:2371:3: () |
| // InternalDataDSL.g:2372:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExportHideAccess().getDataInterchangeExportHideAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:2378:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDataDSL.g:2379:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDataDSL.g:2379:4: (otherlv_1= RULE_ID ) |
| // InternalDataDSL.g:2380:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeExportHideRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeExportHideAccess().getPropertyLEntityFeatureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeExportHide" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangePredefinedExpression" |
| // InternalDataDSL.g:2395:1: entryRuleDataInterchangePredefinedExpression returns [EObject current=null] : iv_ruleDataInterchangePredefinedExpression= ruleDataInterchangePredefinedExpression EOF ; |
| public final EObject entryRuleDataInterchangePredefinedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangePredefinedExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2395:76: (iv_ruleDataInterchangePredefinedExpression= ruleDataInterchangePredefinedExpression EOF ) |
| // InternalDataDSL.g:2396:2: iv_ruleDataInterchangePredefinedExpression= ruleDataInterchangePredefinedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangePredefinedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangePredefinedExpression=ruleDataInterchangePredefinedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangePredefinedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangePredefinedExpression" |
| |
| |
| // $ANTLR start "ruleDataInterchangePredefinedExpression" |
| // InternalDataDSL.g:2402:1: ruleDataInterchangePredefinedExpression returns [EObject current=null] : ( () otherlv_1= 'assign' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'with' ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) otherlv_5= 'as' ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) ) ; |
| public final EObject ruleDataInterchangePredefinedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Enumerator lv_bean_4_0 = null; |
| |
| Enumerator lv_beanType_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2408:2: ( ( () otherlv_1= 'assign' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'with' ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) otherlv_5= 'as' ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) ) ) |
| // InternalDataDSL.g:2409:2: ( () otherlv_1= 'assign' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'with' ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) otherlv_5= 'as' ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) ) |
| { |
| // InternalDataDSL.g:2409:2: ( () otherlv_1= 'assign' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'with' ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) otherlv_5= 'as' ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) ) |
| // InternalDataDSL.g:2410:3: () otherlv_1= 'assign' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'with' ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) otherlv_5= 'as' ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) |
| { |
| // InternalDataDSL.g:2410:3: () |
| // InternalDataDSL.g:2411:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangePredefinedExpressionAccess().getDataInterchangePredefinedExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,67,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangePredefinedExpressionAccess().getAssignKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2421:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2422:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2422:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2423:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangePredefinedExpressionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangePredefinedExpressionAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,52,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangePredefinedExpressionAccess().getWithKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2438:3: ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) |
| // InternalDataDSL.g:2439:4: (lv_bean_4_0= rulePredefinedBeanEnum ) |
| { |
| // InternalDataDSL.g:2439:4: (lv_bean_4_0= rulePredefinedBeanEnum ) |
| // InternalDataDSL.g:2440:5: lv_bean_4_0= rulePredefinedBeanEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePredefinedExpressionAccess().getBeanPredefinedBeanEnumEnumRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_bean_4_0=rulePredefinedBeanEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePredefinedExpressionRule()); |
| } |
| set( |
| current, |
| "bean", |
| lv_bean_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.PredefinedBeanEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,68,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangePredefinedExpressionAccess().getAsKeyword_5()); |
| |
| } |
| // InternalDataDSL.g:2461:3: ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) |
| // InternalDataDSL.g:2462:4: (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) |
| { |
| // InternalDataDSL.g:2462:4: (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) |
| // InternalDataDSL.g:2463:5: lv_beanType_6_0= rulePredefinedBeanTypeEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePredefinedExpressionAccess().getBeanTypePredefinedBeanTypeEnumEnumRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_beanType_6_0=rulePredefinedBeanTypeEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePredefinedExpressionRule()); |
| } |
| set( |
| current, |
| "beanType", |
| lv_beanType_6_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.PredefinedBeanTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangePredefinedExpression" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeMapping" |
| // InternalDataDSL.g:2484:1: entryRuleDataInterchangeMapping returns [EObject current=null] : iv_ruleDataInterchangeMapping= ruleDataInterchangeMapping EOF ; |
| public final EObject entryRuleDataInterchangeMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2484:63: (iv_ruleDataInterchangeMapping= ruleDataInterchangeMapping EOF ) |
| // InternalDataDSL.g:2485:2: iv_ruleDataInterchangeMapping= ruleDataInterchangeMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeMapping=ruleDataInterchangeMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeMapping" |
| // InternalDataDSL.g:2491:1: ruleDataInterchangeMapping returns [EObject current=null] : (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping ) ; |
| public final EObject ruleDataInterchangeMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeValueMapping_0 = null; |
| |
| EObject this_DataInterchangeBlobMapping_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2497:2: ( (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping ) ) |
| // InternalDataDSL.g:2498:2: (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping ) |
| { |
| // InternalDataDSL.g:2498:2: (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping ) |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==69) ) { |
| alt46=1; |
| } |
| else if ( (LA46_0==71) ) { |
| alt46=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalDataDSL.g:2499:3: this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMappingAccess().getDataInterchangeValueMappingParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeValueMapping_0=ruleDataInterchangeValueMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeValueMapping_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:2508:3: this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMappingAccess().getDataInterchangeBlobMappingParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeBlobMapping_1=ruleDataInterchangeBlobMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeBlobMapping_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeMapping" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeValueMapping" |
| // InternalDataDSL.g:2520:1: entryRuleDataInterchangeValueMapping returns [EObject current=null] : iv_ruleDataInterchangeValueMapping= ruleDataInterchangeValueMapping EOF ; |
| public final EObject entryRuleDataInterchangeValueMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeValueMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2520:68: (iv_ruleDataInterchangeValueMapping= ruleDataInterchangeValueMapping EOF ) |
| // InternalDataDSL.g:2521:2: iv_ruleDataInterchangeValueMapping= ruleDataInterchangeValueMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeValueMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeValueMapping=ruleDataInterchangeValueMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeValueMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeValueMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeValueMapping" |
| // InternalDataDSL.g:2527:1: ruleDataInterchangeValueMapping returns [EObject current=null] : ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) ; |
| public final EObject ruleDataInterchangeValueMapping() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token lv_data_4_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2533:2: ( ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:2534:2: ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:2534:2: ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:2535:3: () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:2535:3: () |
| // InternalDataDSL.g:2536:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeValueMappingAccess().getDataInterchangeValueMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,69,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeValueMappingAccess().getMapKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2546:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2547:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2547:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2548:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeValueMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeValueMappingAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,70,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeValueMappingAccess().getToKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2563:3: ( (lv_data_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:2564:4: (lv_data_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2564:4: (lv_data_4_0= RULE_STRING ) |
| // InternalDataDSL.g:2565:5: lv_data_4_0= RULE_STRING |
| { |
| lv_data_4_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_data_4_0, grammarAccess.getDataInterchangeValueMappingAccess().getDataSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeValueMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "data", |
| lv_data_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeValueMapping" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeBlobMapping" |
| // InternalDataDSL.g:2585:1: entryRuleDataInterchangeBlobMapping returns [EObject current=null] : iv_ruleDataInterchangeBlobMapping= ruleDataInterchangeBlobMapping EOF ; |
| public final EObject entryRuleDataInterchangeBlobMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeBlobMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2585:67: (iv_ruleDataInterchangeBlobMapping= ruleDataInterchangeBlobMapping EOF ) |
| // InternalDataDSL.g:2586:2: iv_ruleDataInterchangeBlobMapping= ruleDataInterchangeBlobMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeBlobMapping=ruleDataInterchangeBlobMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeBlobMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeBlobMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeBlobMapping" |
| // InternalDataDSL.g:2592:1: ruleDataInterchangeBlobMapping returns [EObject current=null] : ( () otherlv_1= 'mapBlob' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? otherlv_9= 'mimeType' ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) ) ; |
| public final EObject ruleDataInterchangeBlobMapping() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token lv_data_4_0=null; |
| Token otherlv_5=null; |
| Token lv_blobFileExtension_6_0=null; |
| Token otherlv_7=null; |
| Token lv_blobPath_8_0=null; |
| Token otherlv_9=null; |
| Enumerator lv_mimeType_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2598:2: ( ( () otherlv_1= 'mapBlob' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? otherlv_9= 'mimeType' ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) ) ) |
| // InternalDataDSL.g:2599:2: ( () otherlv_1= 'mapBlob' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? otherlv_9= 'mimeType' ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) ) |
| { |
| // InternalDataDSL.g:2599:2: ( () otherlv_1= 'mapBlob' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? otherlv_9= 'mimeType' ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) ) |
| // InternalDataDSL.g:2600:3: () otherlv_1= 'mapBlob' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? otherlv_9= 'mimeType' ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) |
| { |
| // InternalDataDSL.g:2600:3: () |
| // InternalDataDSL.g:2601:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeBlobMappingAccess().getDataInterchangeBlobMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,71,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeBlobMappingAccess().getMapBlobKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2611:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2612:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2612:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2613:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeBlobMappingAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,70,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeBlobMappingAccess().getToKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2628:3: ( (lv_data_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:2629:4: (lv_data_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2629:4: (lv_data_4_0= RULE_STRING ) |
| // InternalDataDSL.g:2630:5: lv_data_4_0= RULE_STRING |
| { |
| lv_data_4_0=(Token)match(input,RULE_STRING,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_data_4_0, grammarAccess.getDataInterchangeBlobMappingAccess().getDataSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "data", |
| lv_data_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2646:3: (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==72) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalDataDSL.g:2647:4: otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,72,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeBlobMappingAccess().getExtensionKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:2651:4: ( (lv_blobFileExtension_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:2652:5: (lv_blobFileExtension_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2652:5: (lv_blobFileExtension_6_0= RULE_STRING ) |
| // InternalDataDSL.g:2653:6: lv_blobFileExtension_6_0= RULE_STRING |
| { |
| lv_blobFileExtension_6_0=(Token)match(input,RULE_STRING,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_blobFileExtension_6_0, grammarAccess.getDataInterchangeBlobMappingAccess().getBlobFileExtensionSTRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "blobFileExtension", |
| lv_blobFileExtension_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2670:3: (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==24) ) { |
| alt48=1; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalDataDSL.g:2671:4: otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) |
| { |
| otherlv_7=(Token)match(input,24,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeBlobMappingAccess().getPathKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:2675:4: ( (lv_blobPath_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:2676:5: (lv_blobPath_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2676:5: (lv_blobPath_8_0= RULE_STRING ) |
| // InternalDataDSL.g:2677:6: lv_blobPath_8_0= RULE_STRING |
| { |
| lv_blobPath_8_0=(Token)match(input,RULE_STRING,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_blobPath_8_0, grammarAccess.getDataInterchangeBlobMappingAccess().getBlobPathSTRINGTerminalRuleCall_6_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "blobPath", |
| lv_blobPath_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_9=(Token)match(input,73,FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDataInterchangeBlobMappingAccess().getMimeTypeKeyword_7()); |
| |
| } |
| // InternalDataDSL.g:2698:3: ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) |
| // InternalDataDSL.g:2699:4: (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) |
| { |
| // InternalDataDSL.g:2699:4: (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) |
| // InternalDataDSL.g:2700:5: lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBlobMappingAccess().getMimeTypePredefinedBlobMimeTypeEnumEnumRuleCall_8_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_mimeType_10_0=rulePredefinedBlobMimeTypeEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| set( |
| current, |
| "mimeType", |
| lv_mimeType_10_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.PredefinedBlobMimeTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeBlobMapping" |
| |
| |
| // $ANTLR start "entryRuleLFQN" |
| // InternalDataDSL.g:2721:1: entryRuleLFQN returns [String current=null] : iv_ruleLFQN= ruleLFQN EOF ; |
| public final String entryRuleLFQN() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLFQN = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2721:44: (iv_ruleLFQN= ruleLFQN EOF ) |
| // InternalDataDSL.g:2722:2: iv_ruleLFQN= ruleLFQN EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLFQNRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleLFQN=ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLFQN.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLFQN" |
| |
| |
| // $ANTLR start "ruleLFQN" |
| // InternalDataDSL.g:2728:1: ruleLFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; |
| public final AntlrDatatypeRuleToken ruleLFQN() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| Token kw=null; |
| Token this_ID_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2734:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) |
| // InternalDataDSL.g:2735:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) |
| { |
| // InternalDataDSL.g:2735:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) |
| // InternalDataDSL.g:2736:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getLFQNAccess().getIDTerminalRuleCall_0()); |
| |
| } |
| // InternalDataDSL.g:2743:3: (kw= '.' this_ID_2= RULE_ID )* |
| loop49: |
| do { |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==74) ) { |
| alt49=1; |
| } |
| |
| |
| switch (alt49) { |
| case 1 : |
| // InternalDataDSL.g:2744:4: kw= '.' this_ID_2= RULE_ID |
| { |
| kw=(Token)match(input,74,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLFQNAccess().getFullStopKeyword_1_0()); |
| |
| } |
| this_ID_2=(Token)match(input,RULE_ID,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_2, grammarAccess.getLFQNAccess().getIDTerminalRuleCall_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop49; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLFQN" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLESTRING" |
| // InternalDataDSL.g:2761:1: entryRuleTRANSLATABLESTRING returns [String current=null] : iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ; |
| public final String entryRuleTRANSLATABLESTRING() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLESTRING = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2761:58: (iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ) |
| // InternalDataDSL.g:2762:2: iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTRANSLATABLESTRINGRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTRANSLATABLESTRING=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTRANSLATABLESTRING.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "ruleTRANSLATABLESTRING" |
| // InternalDataDSL.g:2768:1: ruleTRANSLATABLESTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; |
| public final AntlrDatatypeRuleToken ruleTRANSLATABLESTRING() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2774:2: (this_STRING_0= RULE_STRING ) |
| // InternalDataDSL.g:2775:2: this_STRING_0= RULE_STRING |
| { |
| this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_STRING_0, grammarAccess.getTRANSLATABLESTRINGAccess().getSTRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLEID" |
| // InternalDataDSL.g:2785:1: entryRuleTRANSLATABLEID returns [String current=null] : iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ; |
| public final String entryRuleTRANSLATABLEID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLEID = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2785:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ) |
| // InternalDataDSL.g:2786:2: iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTRANSLATABLEIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTRANSLATABLEID=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTRANSLATABLEID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTRANSLATABLEID" |
| |
| |
| // $ANTLR start "ruleTRANSLATABLEID" |
| // InternalDataDSL.g:2792:1: ruleTRANSLATABLEID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleTRANSLATABLEID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2798:2: (this_ID_0= RULE_ID ) |
| // InternalDataDSL.g:2799:2: this_ID_0= RULE_ID |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getTRANSLATABLEIDAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTRANSLATABLEID" |
| |
| |
| // $ANTLR start "entryRuleXImportDeclaration" |
| // InternalDataDSL.g:2809:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2809:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalDataDSL.g:2810:2: iv_ruleXImportDeclaration= ruleXImportDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportDeclaration=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportDeclaration" |
| |
| |
| // $ANTLR start "ruleXImportDeclaration" |
| // InternalDataDSL.g:2816:1: ruleXImportDeclaration returns [EObject current=null] : ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ; |
| public final EObject ruleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_static_2_0=null; |
| Token lv_extension_3_0=null; |
| Token lv_wildcard_5_0=null; |
| Token lv_fqnImport_9_0=null; |
| Token otherlv_11=null; |
| AntlrDatatypeRuleToken lv_memberName_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedNamespace_8_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedFullyQualifiedName_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2822:2: ( ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ) |
| // InternalDataDSL.g:2823:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| { |
| // InternalDataDSL.g:2823:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| // InternalDataDSL.g:2824:3: () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? |
| { |
| // InternalDataDSL.g:2824:3: () |
| // InternalDataDSL.g:2825:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,75,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2835:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) |
| int alt52=4; |
| alt52 = dfa52.predict(input); |
| switch (alt52) { |
| case 1 : |
| // InternalDataDSL.g:2836:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalDataDSL.g:2836:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:2837:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:2837:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalDataDSL.g:2838:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalDataDSL.g:2838:6: (lv_static_2_0= 'static' ) |
| // InternalDataDSL.g:2839:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,76,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_static_2_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_2_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "static", true, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2851:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==72) ) { |
| alt50=1; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalDataDSL.g:2852:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalDataDSL.g:2852:6: (lv_extension_3_0= 'extension' ) |
| // InternalDataDSL.g:2853:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,72,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_extension_3_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_2_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "extension", true, "extension"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2865:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalDataDSL.g:2866:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalDataDSL.g:2866:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalDataDSL.g:2867:7: ruleQualifiedNameInStaticImport |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2881:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==77) ) { |
| alt51=1; |
| } |
| else if ( (LA51_0==RULE_ID) ) { |
| alt51=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 51, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalDataDSL.g:2882:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalDataDSL.g:2882:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalDataDSL.g:2883:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalDataDSL.g:2883:7: (lv_wildcard_5_0= '*' ) |
| // InternalDataDSL.g:2884:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,77,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_wildcard_5_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_2_0_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "wildcard", true, "*"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:2897:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:2897:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalDataDSL.g:2898:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:2898:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalDataDSL.g:2899:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_memberName_6_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "memberName", |
| lv_memberName_6_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:2919:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalDataDSL.g:2919:4: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:2920:5: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:2920:5: ( ruleQualifiedName ) |
| // InternalDataDSL.g:2921:6: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:2936:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalDataDSL.g:2936:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalDataDSL.g:2937:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalDataDSL.g:2937:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalDataDSL.g:2938:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_importedNamespace_8_0=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedNamespace", |
| lv_importedNamespace_8_0, |
| "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:2956:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalDataDSL.g:2956:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalDataDSL.g:2957:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalDataDSL.g:2957:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalDataDSL.g:2958:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalDataDSL.g:2958:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalDataDSL.g:2959:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fqnImport_9_0, grammarAccess.getXImportDeclarationAccess().getFqnImportNsKeyword_2_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "fqnImport", true, "ns"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2971:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalDataDSL.g:2972:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:2972:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalDataDSL.g:2973:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_importedFullyQualifiedName_10_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedFullyQualifiedName", |
| lv_importedFullyQualifiedName_10_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2992:3: (otherlv_11= ';' )? |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==79) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalDataDSL.g:2993:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,79,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXAnnotation" |
| // InternalDataDSL.g:3002:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3002:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalDataDSL.g:3003:2: iv_ruleXAnnotation= ruleXAnnotation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotation=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotation" |
| |
| |
| // $ANTLR start "ruleXAnnotation" |
| // InternalDataDSL.g:3009:1: ruleXAnnotation returns [EObject current=null] : ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ; |
| public final EObject ruleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_8=null; |
| EObject lv_elementValuePairs_4_0 = null; |
| |
| EObject lv_elementValuePairs_6_0 = null; |
| |
| EObject lv_value_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3015:2: ( ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ) |
| // InternalDataDSL.g:3016:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| { |
| // InternalDataDSL.g:3016:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| // InternalDataDSL.g:3017:3: () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| { |
| // InternalDataDSL.g:3017:3: () |
| // InternalDataDSL.g:3018:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,80,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3028:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:3029:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:3029:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:3030:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getAnnotationTypeJvmAnnotationTypeCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3044:3: ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==81) && (synpred1_InternalDataDSL())) { |
| alt56=1; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalDataDSL.g:3045:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalDataDSL.g:3045:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalDataDSL.g:3046:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,81,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3052:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt55=3; |
| alt55 = dfa55.predict(input); |
| switch (alt55) { |
| case 1 : |
| // InternalDataDSL.g:3053:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalDataDSL.g:3053:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalDataDSL.g:3054:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalDataDSL.g:3054:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDataDSL.g:3055:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDataDSL.g:3064:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalDataDSL.g:3065:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_elementValuePairs_4_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_4_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3082:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop54: |
| do { |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==82) ) { |
| alt54=1; |
| } |
| |
| |
| switch (alt54) { |
| case 1 : |
| // InternalDataDSL.g:3083:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,82,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalDataDSL.g:3087:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDataDSL.g:3088:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDataDSL.g:3097:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalDataDSL.g:3098:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_elementValuePairs_6_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_6_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop54; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3118:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalDataDSL.g:3118:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalDataDSL.g:3119:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalDataDSL.g:3119:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalDataDSL.g:3120:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_value_7_0=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_7_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValueOrCommaList"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,83,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotation" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValuePair" |
| // InternalDataDSL.g:3147:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3147:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalDataDSL.g:3148:2: iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValuePair=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValuePair; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValuePair" |
| // InternalDataDSL.g:3154:1: ruleXAnnotationElementValuePair returns [EObject current=null] : ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ; |
| public final EObject ruleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_value_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3160:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalDataDSL.g:3161:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalDataDSL.g:3161:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalDataDSL.g:3162:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalDataDSL.g:3162:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalDataDSL.g:3163:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalDataDSL.g:3172:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalDataDSL.g:3173:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalDataDSL.g:3173:5: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:3174:6: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:3174:6: ( ruleValidID ) |
| // InternalDataDSL.g:3175:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getElementJvmOperationCrossReference_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,84,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3195:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalDataDSL.g:3196:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalDataDSL.g:3196:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalDataDSL.g:3197:5: lv_value_2_0= ruleXAnnotationElementValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getValueXAnnotationElementValueParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_2_0=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValue"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValueOrCommaList" |
| // InternalDataDSL.g:3218:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3218:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalDataDSL.g:3219:2: iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValueOrCommaList=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValueOrCommaList; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValueOrCommaList" |
| // InternalDataDSL.g:3225:1: ruleXAnnotationElementValueOrCommaList returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ; |
| public final EObject ruleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_9=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| EObject lv_elements_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3231:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ) |
| // InternalDataDSL.g:3232:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| { |
| // InternalDataDSL.g:3232:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| int alt61=2; |
| alt61 = dfa61.predict(input); |
| switch (alt61) { |
| case 1 : |
| // InternalDataDSL.g:3233:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:3233:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:3234:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:3234:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDataDSL.g:3235:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDataDSL.g:3242:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDataDSL.g:3243:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDataDSL.g:3243:6: () |
| // InternalDataDSL.g:3244:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,85,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,86,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3260:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( ((LA58_0>=RULE_STRING && LA58_0<=RULE_DECIMAL)||LA58_0==15||LA58_0==50||LA58_0==72||(LA58_0>=75 && LA58_0<=76)||(LA58_0>=80 && LA58_0<=81)||(LA58_0>=85 && LA58_0<=86)||LA58_0==93||(LA58_0>=109 && LA58_0<=110)||LA58_0==114||LA58_0==120||LA58_0==122||(LA58_0>=126 && LA58_0<=127)||(LA58_0>=130 && LA58_0<=139)||LA58_0==141) ) { |
| alt58=1; |
| } |
| switch (alt58) { |
| case 1 : |
| // InternalDataDSL.g:3261:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDataDSL.g:3261:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3262:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3262:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:3263:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3280:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop57: |
| do { |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==82) ) { |
| alt57=1; |
| } |
| |
| |
| switch (alt57) { |
| case 1 : |
| // InternalDataDSL.g:3281:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:3285:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3286:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3286:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:3287:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop57; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3312:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalDataDSL.g:3312:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalDataDSL.g:3313:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:3321:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==82) ) { |
| alt60=1; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalDataDSL.g:3322:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalDataDSL.g:3322:5: () |
| // InternalDataDSL.g:3323:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3329:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt59=0; |
| loop59: |
| do { |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==82) ) { |
| alt59=1; |
| } |
| |
| |
| switch (alt59) { |
| case 1 : |
| // InternalDataDSL.g:3330:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:3334:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3335:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3335:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:3336:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_elements_10_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_10_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt59 >= 1 ) break loop59; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(59, input); |
| throw eee; |
| } |
| cnt59++; |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValue" |
| // InternalDataDSL.g:3360:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3360:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalDataDSL.g:3361:2: iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValue=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValue" |
| // InternalDataDSL.g:3367:1: ruleXAnnotationElementValue returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ; |
| public final EObject ruleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3373:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3374:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3374:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt64=2; |
| alt64 = dfa64.predict(input); |
| switch (alt64) { |
| case 1 : |
| // InternalDataDSL.g:3375:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:3375:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:3376:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:3376:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDataDSL.g:3377:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDataDSL.g:3384:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDataDSL.g:3385:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDataDSL.g:3385:6: () |
| // InternalDataDSL.g:3386:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,85,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,86,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3402:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( ((LA63_0>=RULE_STRING && LA63_0<=RULE_DECIMAL)||LA63_0==15||LA63_0==50||LA63_0==72||(LA63_0>=75 && LA63_0<=76)||(LA63_0>=80 && LA63_0<=81)||(LA63_0>=85 && LA63_0<=86)||LA63_0==93||(LA63_0>=109 && LA63_0<=110)||LA63_0==114||LA63_0==120||LA63_0==122||(LA63_0>=126 && LA63_0<=127)||(LA63_0>=130 && LA63_0<=139)||LA63_0==141) ) { |
| alt63=1; |
| } |
| switch (alt63) { |
| case 1 : |
| // InternalDataDSL.g:3403:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDataDSL.g:3403:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3404:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3404:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:3405:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3422:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop62: |
| do { |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==82) ) { |
| alt62=1; |
| } |
| |
| |
| switch (alt62) { |
| case 1 : |
| // InternalDataDSL.g:3423:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:3427:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:3428:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:3428:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:3429:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop62; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3454:3: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getXAnnotationOrExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationOrExpression" |
| // InternalDataDSL.g:3466:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3466:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalDataDSL.g:3467:2: iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationOrExpression=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "ruleXAnnotationOrExpression" |
| // InternalDataDSL.g:3473:1: ruleXAnnotationOrExpression returns [EObject current=null] : (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAnnotation_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3479:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalDataDSL.g:3480:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDataDSL.g:3480:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==80) ) { |
| alt65=1; |
| } |
| else if ( ((LA65_0>=RULE_STRING && LA65_0<=RULE_DECIMAL)||LA65_0==15||LA65_0==50||LA65_0==72||(LA65_0>=75 && LA65_0<=76)||LA65_0==81||(LA65_0>=85 && LA65_0<=86)||LA65_0==93||(LA65_0>=109 && LA65_0<=110)||LA65_0==114||LA65_0==120||LA65_0==122||(LA65_0>=126 && LA65_0<=127)||(LA65_0>=130 && LA65_0<=139)||LA65_0==141) ) { |
| 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 : |
| // InternalDataDSL.g:3481:3: this_XAnnotation_0= ruleXAnnotation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXAnnotationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotation_0=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3490:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpression" |
| // InternalDataDSL.g:3502:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3502:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalDataDSL.g:3503:2: iv_ruleXExpression= ruleXExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpression=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpression" |
| |
| |
| // $ANTLR start "ruleXExpression" |
| // InternalDataDSL.g:3509:1: ruleXExpression returns [EObject current=null] : this_XAssignment_0= ruleXAssignment ; |
| public final EObject ruleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAssignment_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3515:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalDataDSL.g:3516:2: this_XAssignment_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAssignment_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAssignment_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpression" |
| |
| |
| // $ANTLR start "entryRuleXAssignment" |
| // InternalDataDSL.g:3527:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3527:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalDataDSL.g:3528:2: iv_ruleXAssignment= ruleXAssignment EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAssignmentRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAssignment=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAssignment; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAssignment" |
| |
| |
| // $ANTLR start "ruleXAssignment" |
| // InternalDataDSL.g:3534:1: ruleXAssignment returns [EObject current=null] : ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ; |
| public final EObject ruleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_value_3_0 = null; |
| |
| EObject this_XOrExpression_4 = null; |
| |
| EObject lv_rightOperand_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3540:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalDataDSL.g:3541:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalDataDSL.g:3541:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt67=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA67_1 = input.LA(2); |
| |
| if ( (LA67_1==EOF||(LA67_1>=RULE_STRING && LA67_1<=RULE_DECIMAL)||(LA67_1>=15 && LA67_1<=16)||LA67_1==50||LA67_1==68||LA67_1==72||(LA67_1>=74 && LA67_1<=77)||LA67_1==79||(LA67_1>=81 && LA67_1<=83)||(LA67_1>=85 && LA67_1<=118)||(LA67_1>=120 && LA67_1<=142)) ) { |
| alt67=2; |
| } |
| else if ( (LA67_1==84) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 130: |
| { |
| int LA67_2 = input.LA(2); |
| |
| if ( (LA67_2==EOF||(LA67_2>=RULE_STRING && LA67_2<=RULE_DECIMAL)||(LA67_2>=15 && LA67_2<=16)||LA67_2==50||LA67_2==68||LA67_2==72||(LA67_2>=74 && LA67_2<=77)||LA67_2==79||(LA67_2>=81 && LA67_2<=83)||(LA67_2>=85 && LA67_2<=118)||(LA67_2>=120 && LA67_2<=142)) ) { |
| alt67=2; |
| } |
| else if ( (LA67_2==84) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 76: |
| { |
| int LA67_3 = input.LA(2); |
| |
| if ( (LA67_3==EOF||(LA67_3>=RULE_STRING && LA67_3<=RULE_DECIMAL)||(LA67_3>=15 && LA67_3<=16)||LA67_3==50||LA67_3==68||LA67_3==72||(LA67_3>=74 && LA67_3<=77)||LA67_3==79||(LA67_3>=81 && LA67_3<=83)||(LA67_3>=85 && LA67_3<=118)||(LA67_3>=120 && LA67_3<=142)) ) { |
| alt67=2; |
| } |
| else if ( (LA67_3==84) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 75: |
| { |
| int LA67_4 = input.LA(2); |
| |
| if ( (LA67_4==EOF||(LA67_4>=RULE_STRING && LA67_4<=RULE_DECIMAL)||(LA67_4>=15 && LA67_4<=16)||LA67_4==50||LA67_4==68||LA67_4==72||(LA67_4>=74 && LA67_4<=77)||LA67_4==79||(LA67_4>=81 && LA67_4<=83)||(LA67_4>=85 && LA67_4<=118)||(LA67_4>=120 && LA67_4<=142)) ) { |
| alt67=2; |
| } |
| else if ( (LA67_4==84) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 72: |
| { |
| int LA67_5 = input.LA(2); |
| |
| if ( (LA67_5==EOF||(LA67_5>=RULE_STRING && LA67_5<=RULE_DECIMAL)||(LA67_5>=15 && LA67_5<=16)||LA67_5==50||LA67_5==68||LA67_5==72||(LA67_5>=74 && LA67_5<=77)||LA67_5==79||(LA67_5>=81 && LA67_5<=83)||(LA67_5>=85 && LA67_5<=118)||(LA67_5>=120 && LA67_5<=142)) ) { |
| alt67=2; |
| } |
| else if ( (LA67_5==84) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 15: |
| case 50: |
| case 81: |
| case 85: |
| case 86: |
| case 93: |
| case 109: |
| case 110: |
| case 114: |
| case 120: |
| case 122: |
| case 126: |
| case 127: |
| case 131: |
| case 132: |
| case 133: |
| case 134: |
| case 135: |
| case 136: |
| case 137: |
| case 138: |
| case 139: |
| case 141: |
| { |
| alt67=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt67) { |
| case 1 : |
| // InternalDataDSL.g:3542:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalDataDSL.g:3542:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalDataDSL.g:3543:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:3543:4: () |
| // InternalDataDSL.g:3544:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3550:4: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:3551:5: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:3551:5: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:3552:6: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:3573:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:3574:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:3574:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalDataDSL.g:3575:6: lv_value_3_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_3_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3594:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalDataDSL.g:3594:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalDataDSL.g:3595:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:3603:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt66=2; |
| alt66 = dfa66.predict(input); |
| switch (alt66) { |
| case 1 : |
| // InternalDataDSL.g:3604:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:3604:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDataDSL.g:3605:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDataDSL.g:3615:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDataDSL.g:3616:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDataDSL.g:3616:7: () |
| // InternalDataDSL.g:3617:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3623:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDataDSL.g:3624:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDataDSL.g:3624:8: ( ruleOpMultiAssign ) |
| // InternalDataDSL.g:3625:9: ruleOpMultiAssign |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3641:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:3642:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:3642:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalDataDSL.g:3643:7: lv_rightOperand_7_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_rightOperand_7_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAssignment" |
| |
| |
| // $ANTLR start "entryRuleOpSingleAssign" |
| // InternalDataDSL.g:3666:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3666:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalDataDSL.g:3667:2: iv_ruleOpSingleAssign= ruleOpSingleAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpSingleAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpSingleAssign=ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpSingleAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpSingleAssign" |
| |
| |
| // $ANTLR start "ruleOpSingleAssign" |
| // InternalDataDSL.g:3673:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3679:2: (kw= '=' ) |
| // InternalDataDSL.g:3680:2: kw= '=' |
| { |
| kw=(Token)match(input,84,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpSingleAssign" |
| |
| |
| // $ANTLR start "entryRuleOpMultiAssign" |
| // InternalDataDSL.g:3688:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3688:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalDataDSL.g:3689:2: iv_ruleOpMultiAssign= ruleOpMultiAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMultiAssign=ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMultiAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMultiAssign" |
| |
| |
| // $ANTLR start "ruleOpMultiAssign" |
| // InternalDataDSL.g:3695:1: ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ; |
| public final AntlrDatatypeRuleToken ruleOpMultiAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3701:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalDataDSL.g:3702:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalDataDSL.g:3702:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt69=7; |
| switch ( input.LA(1) ) { |
| case 88: |
| { |
| alt69=1; |
| } |
| break; |
| case 89: |
| { |
| alt69=2; |
| } |
| break; |
| case 90: |
| { |
| alt69=3; |
| } |
| break; |
| case 91: |
| { |
| alt69=4; |
| } |
| break; |
| case 92: |
| { |
| alt69=5; |
| } |
| break; |
| case 93: |
| { |
| alt69=6; |
| } |
| break; |
| case 94: |
| { |
| alt69=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 69, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt69) { |
| case 1 : |
| // InternalDataDSL.g:3703:3: kw= '+=' |
| { |
| kw=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3709:3: kw= '-=' |
| { |
| kw=(Token)match(input,89,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:3715:3: kw= '*=' |
| { |
| kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:3721:3: kw= '/=' |
| { |
| kw=(Token)match(input,91,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:3727:3: kw= '%=' |
| { |
| kw=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:3733:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalDataDSL.g:3733:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalDataDSL.g:3734:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,93,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,93,FOLLOW_77); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,84,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:3751:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalDataDSL.g:3751:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalDataDSL.g:3752:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,94,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:3757:4: (kw= '>' )? |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==94) ) { |
| alt68=1; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalDataDSL.g:3758:5: kw= '>' |
| { |
| kw=(Token)match(input,94,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMultiAssign" |
| |
| |
| // $ANTLR start "entryRuleXOrExpression" |
| // InternalDataDSL.g:3774:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3774:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalDataDSL.g:3775:2: iv_ruleXOrExpression= ruleXOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOrExpression=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOrExpression" |
| |
| |
| // $ANTLR start "ruleXOrExpression" |
| // InternalDataDSL.g:3781:1: ruleXOrExpression returns [EObject current=null] : (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ; |
| public final EObject ruleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAndExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3787:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalDataDSL.g:3788:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:3788:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalDataDSL.g:3789:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:3797:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop70: |
| do { |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==96) ) { |
| int LA70_2 = input.LA(2); |
| |
| if ( (synpred8_InternalDataDSL()) ) { |
| alt70=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt70) { |
| case 1 : |
| // InternalDataDSL.g:3798:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalDataDSL.g:3798:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDataDSL.g:3799:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDataDSL.g:3809:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalDataDSL.g:3810:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDataDSL.g:3810:6: () |
| // InternalDataDSL.g:3811:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3817:6: ( ( ruleOpOr ) ) |
| // InternalDataDSL.g:3818:7: ( ruleOpOr ) |
| { |
| // InternalDataDSL.g:3818:7: ( ruleOpOr ) |
| // InternalDataDSL.g:3819:8: ruleOpOr |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOrExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3835:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalDataDSL.g:3836:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalDataDSL.g:3836:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalDataDSL.g:3837:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_rightOperand_3_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAndExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop70; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalDataDSL.g:3859:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3859:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalDataDSL.g:3860:2: iv_ruleOpOr= ruleOpOr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOr=ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOr.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOr" |
| |
| |
| // $ANTLR start "ruleOpOr" |
| // InternalDataDSL.g:3866:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3872:2: (kw= '||' ) |
| // InternalDataDSL.g:3873:2: kw= '||' |
| { |
| kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOr" |
| |
| |
| // $ANTLR start "entryRuleXAndExpression" |
| // InternalDataDSL.g:3881:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3881:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalDataDSL.g:3882:2: iv_ruleXAndExpression= ruleXAndExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAndExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAndExpression=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAndExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAndExpression" |
| |
| |
| // $ANTLR start "ruleXAndExpression" |
| // InternalDataDSL.g:3888:1: ruleXAndExpression returns [EObject current=null] : (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ; |
| public final EObject ruleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XEqualityExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3894:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalDataDSL.g:3895:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:3895:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalDataDSL.g:3896:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:3904:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop71: |
| do { |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==97) ) { |
| int LA71_2 = input.LA(2); |
| |
| if ( (synpred9_InternalDataDSL()) ) { |
| alt71=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt71) { |
| case 1 : |
| // InternalDataDSL.g:3905:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalDataDSL.g:3905:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDataDSL.g:3906:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDataDSL.g:3916:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDataDSL.g:3917:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDataDSL.g:3917:6: () |
| // InternalDataDSL.g:3918:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3924:6: ( ( ruleOpAnd ) ) |
| // InternalDataDSL.g:3925:7: ( ruleOpAnd ) |
| { |
| // InternalDataDSL.g:3925:7: ( ruleOpAnd ) |
| // InternalDataDSL.g:3926:8: ruleOpAnd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAndExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3942:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalDataDSL.g:3943:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalDataDSL.g:3943:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalDataDSL.g:3944:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| lv_rightOperand_3_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop71; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalDataDSL.g:3966:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3966:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalDataDSL.g:3967:2: iv_ruleOpAnd= ruleOpAnd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAndRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAnd=ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAnd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAnd" |
| |
| |
| // $ANTLR start "ruleOpAnd" |
| // InternalDataDSL.g:3973:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3979:2: (kw= '&&' ) |
| // InternalDataDSL.g:3980:2: kw= '&&' |
| { |
| kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAnd" |
| |
| |
| // $ANTLR start "entryRuleXEqualityExpression" |
| // InternalDataDSL.g:3988:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3988:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalDataDSL.g:3989:2: iv_ruleXEqualityExpression= ruleXEqualityExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXEqualityExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXEqualityExpression=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXEqualityExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXEqualityExpression" |
| |
| |
| // $ANTLR start "ruleXEqualityExpression" |
| // InternalDataDSL.g:3995:1: ruleXEqualityExpression returns [EObject current=null] : (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ; |
| public final EObject ruleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XRelationalExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4001:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalDataDSL.g:4002:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:4002:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalDataDSL.g:4003:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4011:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop72: |
| do { |
| int alt72=2; |
| switch ( input.LA(1) ) { |
| case 98: |
| { |
| int LA72_2 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt72=1; |
| } |
| |
| |
| } |
| break; |
| case 99: |
| { |
| int LA72_3 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt72=1; |
| } |
| |
| |
| } |
| break; |
| case 100: |
| { |
| int LA72_4 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt72=1; |
| } |
| |
| |
| } |
| break; |
| case 101: |
| { |
| int LA72_5 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt72=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt72) { |
| case 1 : |
| // InternalDataDSL.g:4012:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalDataDSL.g:4012:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDataDSL.g:4013:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDataDSL.g:4023:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDataDSL.g:4024:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDataDSL.g:4024:6: () |
| // InternalDataDSL.g:4025:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4031:6: ( ( ruleOpEquality ) ) |
| // InternalDataDSL.g:4032:7: ( ruleOpEquality ) |
| { |
| // InternalDataDSL.g:4032:7: ( ruleOpEquality ) |
| // InternalDataDSL.g:4033:8: ruleOpEquality |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXEqualityExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4049:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalDataDSL.g:4050:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalDataDSL.g:4050:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalDataDSL.g:4051:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| lv_rightOperand_3_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop72; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalDataDSL.g:4073:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4073:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalDataDSL.g:4074:2: iv_ruleOpEquality= ruleOpEquality EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpEqualityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpEquality=ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpEquality.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpEquality" |
| |
| |
| // $ANTLR start "ruleOpEquality" |
| // InternalDataDSL.g:4080:1: ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ; |
| public final AntlrDatatypeRuleToken ruleOpEquality() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4086:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalDataDSL.g:4087:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalDataDSL.g:4087:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt73=4; |
| switch ( input.LA(1) ) { |
| case 98: |
| { |
| alt73=1; |
| } |
| break; |
| case 99: |
| { |
| alt73=2; |
| } |
| break; |
| case 100: |
| { |
| alt73=3; |
| } |
| break; |
| case 101: |
| { |
| alt73=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 73, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt73) { |
| case 1 : |
| // InternalDataDSL.g:4088:3: kw= '==' |
| { |
| kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4094:3: kw= '!=' |
| { |
| kw=(Token)match(input,99,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4100:3: kw= '===' |
| { |
| kw=(Token)match(input,100,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:4106:3: kw= '!==' |
| { |
| kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpEquality" |
| |
| |
| // $ANTLR start "entryRuleXRelationalExpression" |
| // InternalDataDSL.g:4115:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4115:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalDataDSL.g:4116:2: iv_ruleXRelationalExpression= ruleXRelationalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXRelationalExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXRelationalExpression=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXRelationalExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXRelationalExpression" |
| |
| |
| // $ANTLR start "ruleXRelationalExpression" |
| // InternalDataDSL.g:4122:1: ruleXRelationalExpression returns [EObject current=null] : (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ; |
| public final EObject ruleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XOtherOperatorExpression_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| EObject lv_rightOperand_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4128:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalDataDSL.g:4129:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalDataDSL.g:4129:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalDataDSL.g:4130:3: this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4138:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop74: |
| do { |
| int alt74=3; |
| switch ( input.LA(1) ) { |
| case 93: |
| { |
| int LA74_2 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt74=2; |
| } |
| |
| |
| } |
| break; |
| case 94: |
| { |
| int LA74_3 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt74=2; |
| } |
| |
| |
| } |
| break; |
| case 102: |
| { |
| int LA74_4 = input.LA(2); |
| |
| if ( (synpred11_InternalDataDSL()) ) { |
| alt74=1; |
| } |
| |
| |
| } |
| break; |
| case 95: |
| { |
| int LA74_5 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt74=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt74) { |
| case 1 : |
| // InternalDataDSL.g:4139:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:4139:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:4140:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDataDSL.g:4140:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalDataDSL.g:4141:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalDataDSL.g:4147:6: ( () otherlv_2= 'instanceof' ) |
| // InternalDataDSL.g:4148:7: () otherlv_2= 'instanceof' |
| { |
| // InternalDataDSL.g:4148:7: () |
| // InternalDataDSL.g:4149:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,102,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4161:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:4162:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:4162:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:4163:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4182:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalDataDSL.g:4182:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalDataDSL.g:4183:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalDataDSL.g:4183:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDataDSL.g:4184:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDataDSL.g:4194:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDataDSL.g:4195:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDataDSL.g:4195:7: () |
| // InternalDataDSL.g:4196:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4202:7: ( ( ruleOpCompare ) ) |
| // InternalDataDSL.g:4203:8: ( ruleOpCompare ) |
| { |
| // InternalDataDSL.g:4203:8: ( ruleOpCompare ) |
| // InternalDataDSL.g:4204:9: ruleOpCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXRelationalExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4220:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalDataDSL.g:4221:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalDataDSL.g:4221:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalDataDSL.g:4222:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| lv_rightOperand_6_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop74; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalDataDSL.g:4245:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4245:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalDataDSL.g:4246:2: iv_ruleOpCompare= ruleOpCompare EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpCompareRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpCompare=ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpCompare.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpCompare" |
| |
| |
| // $ANTLR start "ruleOpCompare" |
| // InternalDataDSL.g:4252:1: ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ; |
| public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4258:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalDataDSL.g:4259:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalDataDSL.g:4259:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt75=4; |
| switch ( input.LA(1) ) { |
| case 95: |
| { |
| alt75=1; |
| } |
| break; |
| case 93: |
| { |
| int LA75_2 = input.LA(2); |
| |
| if ( (LA75_2==EOF||(LA75_2>=RULE_STRING && LA75_2<=RULE_DECIMAL)||LA75_2==15||LA75_2==50||LA75_2==72||(LA75_2>=75 && LA75_2<=76)||LA75_2==81||(LA75_2>=85 && LA75_2<=86)||LA75_2==93||(LA75_2>=109 && LA75_2<=110)||LA75_2==114||LA75_2==120||LA75_2==122||(LA75_2>=126 && LA75_2<=127)||(LA75_2>=130 && LA75_2<=139)||LA75_2==141) ) { |
| alt75=4; |
| } |
| else if ( (LA75_2==84) ) { |
| alt75=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 75, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 94: |
| { |
| alt75=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 75, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt75) { |
| case 1 : |
| // InternalDataDSL.g:4260:3: kw= '>=' |
| { |
| kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4266:3: (kw= '<' kw= '=' ) |
| { |
| // InternalDataDSL.g:4266:3: (kw= '<' kw= '=' ) |
| // InternalDataDSL.g:4267:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,93,FOLLOW_77); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,84,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4279:3: kw= '>' |
| { |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:4285:3: kw= '<' |
| { |
| kw=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpCompare" |
| |
| |
| // $ANTLR start "entryRuleXOtherOperatorExpression" |
| // InternalDataDSL.g:4294:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4294:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalDataDSL.g:4295:2: iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOtherOperatorExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "ruleXOtherOperatorExpression" |
| // InternalDataDSL.g:4301:1: ruleXOtherOperatorExpression returns [EObject current=null] : (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ; |
| public final EObject ruleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAdditiveExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4307:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalDataDSL.g:4308:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:4308:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalDataDSL.g:4309:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4317:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop76: |
| do { |
| int alt76=2; |
| alt76 = dfa76.predict(input); |
| switch (alt76) { |
| case 1 : |
| // InternalDataDSL.g:4318:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalDataDSL.g:4318:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDataDSL.g:4319:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDataDSL.g:4329:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalDataDSL.g:4330:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDataDSL.g:4330:6: () |
| // InternalDataDSL.g:4331:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4337:6: ( ( ruleOpOther ) ) |
| // InternalDataDSL.g:4338:7: ( ruleOpOther ) |
| { |
| // InternalDataDSL.g:4338:7: ( ruleOpOther ) |
| // InternalDataDSL.g:4339:8: ruleOpOther |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4355:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalDataDSL.g:4356:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalDataDSL.g:4356:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalDataDSL.g:4357:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| lv_rightOperand_3_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop76; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalDataDSL.g:4379:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4379:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalDataDSL.g:4380:2: iv_ruleOpOther= ruleOpOther EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOtherRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOther=ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOther.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOther" |
| |
| |
| // $ANTLR start "ruleOpOther" |
| // InternalDataDSL.g:4386:1: ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ; |
| public final AntlrDatatypeRuleToken ruleOpOther() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4392:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalDataDSL.g:4393:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalDataDSL.g:4393:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt79=9; |
| alt79 = dfa79.predict(input); |
| switch (alt79) { |
| case 1 : |
| // InternalDataDSL.g:4394:3: kw= '->' |
| { |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4400:3: kw= '..<' |
| { |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4406:3: (kw= '>' kw= '..' ) |
| { |
| // InternalDataDSL.g:4406:3: (kw= '>' kw= '..' ) |
| // InternalDataDSL.g:4407:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,94,FOLLOW_93); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,105,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:4419:3: kw= '..' |
| { |
| kw=(Token)match(input,105,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:4425:3: kw= '=>' |
| { |
| kw=(Token)match(input,106,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:4431:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalDataDSL.g:4431:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalDataDSL.g:4432:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,94,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:4437:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==94) ) { |
| int LA77_1 = input.LA(2); |
| |
| if ( (LA77_1==EOF||(LA77_1>=RULE_STRING && LA77_1<=RULE_DECIMAL)||LA77_1==15||LA77_1==50||LA77_1==72||(LA77_1>=75 && LA77_1<=76)||LA77_1==81||(LA77_1>=85 && LA77_1<=86)||LA77_1==93||(LA77_1>=109 && LA77_1<=110)||LA77_1==114||LA77_1==120||LA77_1==122||(LA77_1>=126 && LA77_1<=127)||(LA77_1>=130 && LA77_1<=139)||LA77_1==141) ) { |
| alt77=2; |
| } |
| else if ( (LA77_1==94) && (synpred14_InternalDataDSL())) { |
| alt77=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 77, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 77, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalDataDSL.g:4438:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalDataDSL.g:4438:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalDataDSL.g:4439:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalDataDSL.g:4444:6: (kw= '>' kw= '>' ) |
| // InternalDataDSL.g:4445:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,94,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4458:5: kw= '>' |
| { |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:4466:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalDataDSL.g:4466:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalDataDSL.g:4467:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,93,FOLLOW_95); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:4472:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt78=3; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==93) ) { |
| int LA78_1 = input.LA(2); |
| |
| if ( (synpred15_InternalDataDSL()) ) { |
| alt78=1; |
| } |
| else if ( (true) ) { |
| alt78=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 78, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA78_0==106) ) { |
| alt78=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 78, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalDataDSL.g:4473:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalDataDSL.g:4473:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalDataDSL.g:4474:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalDataDSL.g:4479:6: (kw= '<' kw= '<' ) |
| // InternalDataDSL.g:4480:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,93,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4493:5: kw= '<' |
| { |
| kw=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4499:5: kw= '=>' |
| { |
| kw=(Token)match(input,106,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalDataDSL.g:4507:3: kw= '<>' |
| { |
| kw=(Token)match(input,107,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalDataDSL.g:4513:3: kw= '?:' |
| { |
| kw=(Token)match(input,108,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOther" |
| |
| |
| // $ANTLR start "entryRuleXAdditiveExpression" |
| // InternalDataDSL.g:4522:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4522:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalDataDSL.g:4523:2: iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAdditiveExpression=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAdditiveExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAdditiveExpression" |
| |
| |
| // $ANTLR start "ruleXAdditiveExpression" |
| // InternalDataDSL.g:4529:1: ruleXAdditiveExpression returns [EObject current=null] : (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ; |
| public final EObject ruleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMultiplicativeExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4535:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalDataDSL.g:4536:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:4536:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalDataDSL.g:4537:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4545:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop80: |
| do { |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==109) ) { |
| int LA80_2 = input.LA(2); |
| |
| if ( (synpred16_InternalDataDSL()) ) { |
| alt80=1; |
| } |
| |
| |
| } |
| else if ( (LA80_0==110) ) { |
| int LA80_3 = input.LA(2); |
| |
| if ( (synpred16_InternalDataDSL()) ) { |
| alt80=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt80) { |
| case 1 : |
| // InternalDataDSL.g:4546:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalDataDSL.g:4546:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDataDSL.g:4547:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDataDSL.g:4557:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDataDSL.g:4558:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDataDSL.g:4558:6: () |
| // InternalDataDSL.g:4559:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4565:6: ( ( ruleOpAdd ) ) |
| // InternalDataDSL.g:4566:7: ( ruleOpAdd ) |
| { |
| // InternalDataDSL.g:4566:7: ( ruleOpAdd ) |
| // InternalDataDSL.g:4567:8: ruleOpAdd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4583:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalDataDSL.g:4584:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalDataDSL.g:4584:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalDataDSL.g:4585:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_rightOperand_3_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop80; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalDataDSL.g:4607:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4607:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalDataDSL.g:4608:2: iv_ruleOpAdd= ruleOpAdd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAddRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAdd=ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAdd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAdd" |
| |
| |
| // $ANTLR start "ruleOpAdd" |
| // InternalDataDSL.g:4614:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4620:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalDataDSL.g:4621:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalDataDSL.g:4621:2: (kw= '+' | kw= '-' ) |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==109) ) { |
| alt81=1; |
| } |
| else if ( (LA81_0==110) ) { |
| alt81=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt81) { |
| case 1 : |
| // InternalDataDSL.g:4622:3: kw= '+' |
| { |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4628:3: kw= '-' |
| { |
| kw=(Token)match(input,110,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAdd" |
| |
| |
| // $ANTLR start "entryRuleXMultiplicativeExpression" |
| // InternalDataDSL.g:4637:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4637:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalDataDSL.g:4638:2: iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMultiplicativeExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "ruleXMultiplicativeExpression" |
| // InternalDataDSL.g:4644:1: ruleXMultiplicativeExpression returns [EObject current=null] : (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ; |
| public final EObject ruleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XUnaryOperation_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4650:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalDataDSL.g:4651:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalDataDSL.g:4651:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalDataDSL.g:4652:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4660:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop82: |
| do { |
| int alt82=2; |
| switch ( input.LA(1) ) { |
| case 77: |
| { |
| int LA82_2 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt82=1; |
| } |
| |
| |
| } |
| break; |
| case 111: |
| { |
| int LA82_3 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt82=1; |
| } |
| |
| |
| } |
| break; |
| case 112: |
| { |
| int LA82_4 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt82=1; |
| } |
| |
| |
| } |
| break; |
| case 113: |
| { |
| int LA82_5 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt82=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt82) { |
| case 1 : |
| // InternalDataDSL.g:4661:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDataDSL.g:4661:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDataDSL.g:4662:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDataDSL.g:4672:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDataDSL.g:4673:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDataDSL.g:4673:6: () |
| // InternalDataDSL.g:4674:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4680:6: ( ( ruleOpMulti ) ) |
| // InternalDataDSL.g:4681:7: ( ruleOpMulti ) |
| { |
| // InternalDataDSL.g:4681:7: ( ruleOpMulti ) |
| // InternalDataDSL.g:4682:8: ruleOpMulti |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4698:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalDataDSL.g:4699:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalDataDSL.g:4699:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalDataDSL.g:4700:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| lv_rightOperand_3_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop82; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalDataDSL.g:4722:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4722:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalDataDSL.g:4723:2: iv_ruleOpMulti= ruleOpMulti EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMulti=ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMulti.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMulti" |
| |
| |
| // $ANTLR start "ruleOpMulti" |
| // InternalDataDSL.g:4729:1: ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ; |
| public final AntlrDatatypeRuleToken ruleOpMulti() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4735:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalDataDSL.g:4736:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalDataDSL.g:4736:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt83=4; |
| switch ( input.LA(1) ) { |
| case 77: |
| { |
| alt83=1; |
| } |
| break; |
| case 111: |
| { |
| alt83=2; |
| } |
| break; |
| case 112: |
| { |
| alt83=3; |
| } |
| break; |
| case 113: |
| { |
| alt83=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 83, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt83) { |
| case 1 : |
| // InternalDataDSL.g:4737:3: kw= '*' |
| { |
| kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4743:3: kw= '**' |
| { |
| kw=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4749:3: kw= '/' |
| { |
| kw=(Token)match(input,112,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:4755:3: kw= '%' |
| { |
| kw=(Token)match(input,113,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMulti" |
| |
| |
| // $ANTLR start "entryRuleXUnaryOperation" |
| // InternalDataDSL.g:4764:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4764:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalDataDSL.g:4765:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXUnaryOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXUnaryOperation=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXUnaryOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXUnaryOperation" |
| |
| |
| // $ANTLR start "ruleXUnaryOperation" |
| // InternalDataDSL.g:4771:1: ruleXUnaryOperation returns [EObject current=null] : ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ; |
| public final EObject ruleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_operand_2_0 = null; |
| |
| EObject this_XCastedExpression_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4777:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalDataDSL.g:4778:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalDataDSL.g:4778:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( ((LA84_0>=109 && LA84_0<=110)||LA84_0==114) ) { |
| alt84=1; |
| } |
| else if ( ((LA84_0>=RULE_STRING && LA84_0<=RULE_DECIMAL)||LA84_0==15||LA84_0==50||LA84_0==72||(LA84_0>=75 && LA84_0<=76)||LA84_0==81||(LA84_0>=85 && LA84_0<=86)||LA84_0==93||LA84_0==120||LA84_0==122||(LA84_0>=126 && LA84_0<=127)||(LA84_0>=130 && LA84_0<=139)||LA84_0==141) ) { |
| alt84=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 84, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt84) { |
| case 1 : |
| // InternalDataDSL.g:4779:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalDataDSL.g:4779:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalDataDSL.g:4780:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDataDSL.g:4780:4: () |
| // InternalDataDSL.g:4781:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4787:4: ( ( ruleOpUnary ) ) |
| // InternalDataDSL.g:4788:5: ( ruleOpUnary ) |
| { |
| // InternalDataDSL.g:4788:5: ( ruleOpUnary ) |
| // InternalDataDSL.g:4789:6: ruleOpUnary |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXUnaryOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4803:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalDataDSL.g:4804:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalDataDSL.g:4804:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalDataDSL.g:4805:6: lv_operand_2_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_operand_2_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); |
| } |
| set( |
| current, |
| "operand", |
| lv_operand_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4824:3: this_XCastedExpression_3= ruleXCastedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCastedExpression_3=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCastedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXUnaryOperation" |
| |
| |
| // $ANTLR start "entryRuleOpUnary" |
| // InternalDataDSL.g:4836:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4836:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalDataDSL.g:4837:2: iv_ruleOpUnary= ruleOpUnary EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpUnaryRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpUnary=ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpUnary.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpUnary" |
| |
| |
| // $ANTLR start "ruleOpUnary" |
| // InternalDataDSL.g:4843:1: ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '!' | kw= '-' | kw= '+' ) ; |
| public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4849:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalDataDSL.g:4850:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalDataDSL.g:4850:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt85=3; |
| switch ( input.LA(1) ) { |
| case 114: |
| { |
| alt85=1; |
| } |
| break; |
| case 110: |
| { |
| alt85=2; |
| } |
| break; |
| case 109: |
| { |
| alt85=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 85, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt85) { |
| case 1 : |
| // InternalDataDSL.g:4851:3: kw= '!' |
| { |
| kw=(Token)match(input,114,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4857:3: kw= '-' |
| { |
| kw=(Token)match(input,110,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4863:3: kw= '+' |
| { |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpUnary" |
| |
| |
| // $ANTLR start "entryRuleXCastedExpression" |
| // InternalDataDSL.g:4872:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4872:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalDataDSL.g:4873:2: iv_ruleXCastedExpression= ruleXCastedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCastedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCastedExpression=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCastedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCastedExpression" |
| |
| |
| // $ANTLR start "ruleXCastedExpression" |
| // InternalDataDSL.g:4879:1: ruleXCastedExpression returns [EObject current=null] : (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ; |
| public final EObject ruleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XPostfixOperation_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4885:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalDataDSL.g:4886:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalDataDSL.g:4886:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalDataDSL.g:4887:3: this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4895:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop86: |
| do { |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==68) ) { |
| int LA86_2 = input.LA(2); |
| |
| if ( (synpred18_InternalDataDSL()) ) { |
| alt86=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt86) { |
| case 1 : |
| // InternalDataDSL.g:4896:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDataDSL.g:4896:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalDataDSL.g:4897:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalDataDSL.g:4903:5: ( () otherlv_2= 'as' ) |
| // InternalDataDSL.g:4904:6: () otherlv_2= 'as' |
| { |
| // InternalDataDSL.g:4904:6: () |
| // InternalDataDSL.g:4905:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,68,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4917:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:4918:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:4918:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:4919:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop86; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalDataDSL.g:4941:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalDataDSL.g:4941:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalDataDSL.g:4942:2: iv_ruleXPostfixOperation= ruleXPostfixOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPostfixOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPostfixOperation=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPostfixOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPostfixOperation" |
| |
| |
| // $ANTLR start "ruleXPostfixOperation" |
| // InternalDataDSL.g:4948:1: ruleXPostfixOperation returns [EObject current=null] : (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ; |
| public final EObject ruleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMemberFeatureCall_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:4954:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalDataDSL.g:4955:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalDataDSL.g:4955:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalDataDSL.g:4956:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_99); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4964:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==115) ) { |
| int LA87_1 = input.LA(2); |
| |
| if ( (synpred19_InternalDataDSL()) ) { |
| alt87=1; |
| } |
| } |
| else if ( (LA87_0==116) ) { |
| int LA87_2 = input.LA(2); |
| |
| if ( (synpred19_InternalDataDSL()) ) { |
| alt87=1; |
| } |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalDataDSL.g:4965:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDataDSL.g:4975:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDataDSL.g:4976:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDataDSL.g:4976:5: () |
| // InternalDataDSL.g:4977:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4983:5: ( ( ruleOpPostfix ) ) |
| // InternalDataDSL.g:4984:6: ( ruleOpPostfix ) |
| { |
| // InternalDataDSL.g:4984:6: ( ruleOpPostfix ) |
| // InternalDataDSL.g:4985:7: ruleOpPostfix |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXPostfixOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPostfixOperation" |
| |
| |
| // $ANTLR start "entryRuleOpPostfix" |
| // InternalDataDSL.g:5005:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5005:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalDataDSL.g:5006:2: iv_ruleOpPostfix= ruleOpPostfix EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpPostfixRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpPostfix=ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpPostfix.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpPostfix" |
| |
| |
| // $ANTLR start "ruleOpPostfix" |
| // InternalDataDSL.g:5012:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5018:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalDataDSL.g:5019:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalDataDSL.g:5019:2: (kw= '++' | kw= '--' ) |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( (LA88_0==115) ) { |
| alt88=1; |
| } |
| else if ( (LA88_0==116) ) { |
| alt88=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 88, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalDataDSL.g:5020:3: kw= '++' |
| { |
| kw=(Token)match(input,115,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5026:3: kw= '--' |
| { |
| kw=(Token)match(input,116,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpPostfix" |
| |
| |
| // $ANTLR start "entryRuleXMemberFeatureCall" |
| // InternalDataDSL.g:5035:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5035:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalDataDSL.g:5036:2: iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMemberFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "ruleXMemberFeatureCall" |
| // InternalDataDSL.g:5042:1: ruleXMemberFeatureCall returns [EObject current=null] : (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ; |
| public final EObject ruleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitStatic_3_0=null; |
| Token otherlv_8=null; |
| Token lv_nullSafe_9_0=null; |
| Token lv_explicitStatic_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| Token lv_explicitOperationCall_17_0=null; |
| Token otherlv_20=null; |
| Token otherlv_22=null; |
| EObject this_XPrimaryExpression_0 = null; |
| |
| EObject lv_value_6_0 = null; |
| |
| EObject lv_typeArguments_12_0 = null; |
| |
| EObject lv_typeArguments_14_0 = null; |
| |
| EObject lv_memberCallArguments_18_0 = null; |
| |
| EObject lv_memberCallArguments_19_0 = null; |
| |
| EObject lv_memberCallArguments_21_0 = null; |
| |
| EObject lv_memberCallArguments_23_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5048:2: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ) |
| // InternalDataDSL.g:5049:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| { |
| // InternalDataDSL.g:5049:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| // InternalDataDSL.g:5050:3: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5058:3: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| loop97: |
| do { |
| int alt97=3; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| int LA97_2 = input.LA(2); |
| |
| if ( (synpred20_InternalDataDSL()) ) { |
| alt97=1; |
| } |
| else if ( (synpred21_InternalDataDSL()) ) { |
| alt97=2; |
| } |
| |
| |
| } |
| break; |
| case 117: |
| { |
| int LA97_3 = input.LA(2); |
| |
| if ( (synpred20_InternalDataDSL()) ) { |
| alt97=1; |
| } |
| else if ( (synpred21_InternalDataDSL()) ) { |
| alt97=2; |
| } |
| |
| |
| } |
| break; |
| case 118: |
| { |
| int LA97_4 = input.LA(2); |
| |
| if ( (synpred21_InternalDataDSL()) ) { |
| alt97=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt97) { |
| case 1 : |
| // InternalDataDSL.g:5059:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalDataDSL.g:5059:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalDataDSL.g:5060:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:5060:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDataDSL.g:5061:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDataDSL.g:5081:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDataDSL.g:5082:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDataDSL.g:5082:7: () |
| // InternalDataDSL.g:5083:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5089:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==74) ) { |
| alt89=1; |
| } |
| else if ( (LA89_0==117) ) { |
| alt89=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt89) { |
| case 1 : |
| // InternalDataDSL.g:5090:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,74,FOLLOW_101); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5095:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalDataDSL.g:5095:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalDataDSL.g:5096:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalDataDSL.g:5096:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalDataDSL.g:5097:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,117,FOLLOW_101); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5110:7: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:5111:8: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:5111:8: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:5112:9: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5135:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:5136:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:5136:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalDataDSL.g:5137:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| lv_value_6_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5156:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| { |
| // InternalDataDSL.g:5156:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| // InternalDataDSL.g:5157:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| { |
| // InternalDataDSL.g:5157:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalDataDSL.g:5158:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalDataDSL.g:5178:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalDataDSL.g:5179:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalDataDSL.g:5179:7: () |
| // InternalDataDSL.g:5180:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5186:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt90=3; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| alt90=1; |
| } |
| break; |
| case 118: |
| { |
| alt90=2; |
| } |
| break; |
| case 117: |
| { |
| alt90=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 90, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt90) { |
| case 1 : |
| // InternalDataDSL.g:5187:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,74,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5192:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalDataDSL.g:5192:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalDataDSL.g:5193:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalDataDSL.g:5193:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalDataDSL.g:5194:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,118,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "nullSafe", true, "?."); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:5207:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalDataDSL.g:5207:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalDataDSL.g:5208:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalDataDSL.g:5208:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalDataDSL.g:5209:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,117,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5224:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==93) ) { |
| alt92=1; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalDataDSL.g:5225:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,93,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:5229:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:5230:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:5230:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:5231:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5248:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop91: |
| do { |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==82) ) { |
| alt91=1; |
| } |
| |
| |
| switch (alt91) { |
| case 1 : |
| // InternalDataDSL.g:5249:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,82,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:5253:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:5254:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:5254:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:5255:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_14_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_14_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop91; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,94,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5278:5: ( ( ruleIdOrSuper ) ) |
| // InternalDataDSL.g:5279:6: ( ruleIdOrSuper ) |
| { |
| // InternalDataDSL.g:5279:6: ( ruleIdOrSuper ) |
| // InternalDataDSL.g:5280:7: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5294:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? |
| int alt95=2; |
| alt95 = dfa95.predict(input); |
| switch (alt95) { |
| case 1 : |
| // InternalDataDSL.g:5295:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' |
| { |
| // InternalDataDSL.g:5295:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalDataDSL.g:5296:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalDataDSL.g:5300:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalDataDSL.g:5301:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,81,FOLLOW_106); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5313:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt94=3; |
| alt94 = dfa94.predict(input); |
| switch (alt94) { |
| case 1 : |
| // InternalDataDSL.g:5314:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:5314:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:5315:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:5340:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalDataDSL.g:5341:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_memberCallArguments_18_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_18_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5359:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:5359:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:5360:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:5360:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5361:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5361:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalDataDSL.g:5362:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_memberCallArguments_19_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_19_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5379:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop93: |
| do { |
| int alt93=2; |
| int LA93_0 = input.LA(1); |
| |
| if ( (LA93_0==82) ) { |
| alt93=1; |
| } |
| |
| |
| switch (alt93) { |
| case 1 : |
| // InternalDataDSL.g:5380:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:5384:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5385:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5385:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalDataDSL.g:5386:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_memberCallArguments_21_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_21_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop93; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,83,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5411:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt96=2; |
| alt96 = dfa96.predict(input); |
| switch (alt96) { |
| case 1 : |
| // InternalDataDSL.g:5412:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:5418:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalDataDSL.g:5419:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| lv_memberCallArguments_23_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_23_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop97; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalDataDSL.g:5442:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5442:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalDataDSL.g:5443:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPrimaryExpression=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPrimaryExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPrimaryExpression" |
| |
| |
| // $ANTLR start "ruleXPrimaryExpression" |
| // InternalDataDSL.g:5449:1: ruleXPrimaryExpression returns [EObject current=null] : (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ; |
| public final EObject ruleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XConstructorCall_0 = null; |
| |
| EObject this_XBlockExpression_1 = null; |
| |
| EObject this_XSwitchExpression_2 = null; |
| |
| EObject this_XSynchronizedExpression_3 = null; |
| |
| EObject this_XFeatureCall_4 = null; |
| |
| EObject this_XLiteral_5 = null; |
| |
| EObject this_XIfExpression_6 = null; |
| |
| EObject this_XForLoopExpression_7 = null; |
| |
| EObject this_XBasicForLoopExpression_8 = null; |
| |
| EObject this_XWhileExpression_9 = null; |
| |
| EObject this_XDoWhileExpression_10 = null; |
| |
| EObject this_XThrowExpression_11 = null; |
| |
| EObject this_XReturnExpression_12 = null; |
| |
| EObject this_XTryCatchFinallyExpression_13 = null; |
| |
| EObject this_XParenthesizedExpression_14 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5455:2: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ) |
| // InternalDataDSL.g:5456:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| { |
| // InternalDataDSL.g:5456:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| int alt98=15; |
| alt98 = dfa98.predict(input); |
| switch (alt98) { |
| case 1 : |
| // InternalDataDSL.g:5457:3: this_XConstructorCall_0= ruleXConstructorCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XConstructorCall_0=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XConstructorCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5466:3: this_XBlockExpression_1= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBlockExpression_1=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBlockExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:5475:3: this_XSwitchExpression_2= ruleXSwitchExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSwitchExpression_2=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSwitchExpression_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:5484:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalDataDSL.g:5484:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalDataDSL.g:5485:4: ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSynchronizedExpression_3=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSynchronizedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:5502:3: this_XFeatureCall_4= ruleXFeatureCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFeatureCall_4=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFeatureCall_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:5511:3: this_XLiteral_5= ruleXLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XLiteral_5=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:5520:3: this_XIfExpression_6= ruleXIfExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XIfExpression_6=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XIfExpression_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalDataDSL.g:5529:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalDataDSL.g:5529:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalDataDSL.g:5530:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XForLoopExpression_7=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XForLoopExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalDataDSL.g:5553:3: this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBasicForLoopExpression_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalDataDSL.g:5562:3: this_XWhileExpression_9= ruleXWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XWhileExpression_9=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XWhileExpression_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalDataDSL.g:5571:3: this_XDoWhileExpression_10= ruleXDoWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XDoWhileExpression_10=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XDoWhileExpression_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalDataDSL.g:5580:3: this_XThrowExpression_11= ruleXThrowExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XThrowExpression_11=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XThrowExpression_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalDataDSL.g:5589:3: this_XReturnExpression_12= ruleXReturnExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XReturnExpression_12=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XReturnExpression_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalDataDSL.g:5598:3: this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTryCatchFinallyExpression_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 15 : |
| // InternalDataDSL.g:5607:3: this_XParenthesizedExpression_14= ruleXParenthesizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XParenthesizedExpression_14=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XParenthesizedExpression_14; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPrimaryExpression" |
| |
| |
| // $ANTLR start "entryRuleXLiteral" |
| // InternalDataDSL.g:5619:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5619:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalDataDSL.g:5620:2: iv_ruleXLiteral= ruleXLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXLiteral=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXLiteral" |
| |
| |
| // $ANTLR start "ruleXLiteral" |
| // InternalDataDSL.g:5626:1: ruleXLiteral returns [EObject current=null] : (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ; |
| public final EObject ruleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XCollectionLiteral_0 = null; |
| |
| EObject this_XClosure_1 = null; |
| |
| EObject this_XBooleanLiteral_2 = null; |
| |
| EObject this_XNumberLiteral_3 = null; |
| |
| EObject this_XNullLiteral_4 = null; |
| |
| EObject this_XStringLiteral_5 = null; |
| |
| EObject this_XTypeLiteral_6 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5632:2: ( (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ) |
| // InternalDataDSL.g:5633:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| { |
| // InternalDataDSL.g:5633:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| int alt99=7; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==85) ) { |
| alt99=1; |
| } |
| else if ( (LA99_0==86) && (synpred27_InternalDataDSL())) { |
| alt99=2; |
| } |
| else if ( ((LA99_0>=133 && LA99_0<=134)) ) { |
| alt99=3; |
| } |
| else if ( (LA99_0==RULE_INT||(LA99_0>=RULE_HEX && LA99_0<=RULE_DECIMAL)) ) { |
| alt99=4; |
| } |
| else if ( (LA99_0==135) ) { |
| alt99=5; |
| } |
| else if ( (LA99_0==RULE_STRING) ) { |
| alt99=6; |
| } |
| else if ( (LA99_0==136) ) { |
| alt99=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt99) { |
| case 1 : |
| // InternalDataDSL.g:5634:3: this_XCollectionLiteral_0= ruleXCollectionLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCollectionLiteral_0=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCollectionLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5643:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalDataDSL.g:5643:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalDataDSL.g:5644:4: ( ( () '[' ) )=>this_XClosure_1= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XClosure_1=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XClosure_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:5660:3: this_XBooleanLiteral_2= ruleXBooleanLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBooleanLiteral_2=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBooleanLiteral_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:5669:3: this_XNumberLiteral_3= ruleXNumberLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNumberLiteral_3=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNumberLiteral_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:5678:3: this_XNullLiteral_4= ruleXNullLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNullLiteral_4=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNullLiteral_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:5687:3: this_XStringLiteral_5= ruleXStringLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XStringLiteral_5=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XStringLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:5696:3: this_XTypeLiteral_6= ruleXTypeLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTypeLiteral_6=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTypeLiteral_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXLiteral" |
| |
| |
| // $ANTLR start "entryRuleXCollectionLiteral" |
| // InternalDataDSL.g:5708:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5708:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalDataDSL.g:5709:2: iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCollectionLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCollectionLiteral=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCollectionLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCollectionLiteral" |
| |
| |
| // $ANTLR start "ruleXCollectionLiteral" |
| // InternalDataDSL.g:5715:1: ruleXCollectionLiteral returns [EObject current=null] : (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ; |
| public final EObject ruleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XSetLiteral_0 = null; |
| |
| EObject this_XListLiteral_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5721:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalDataDSL.g:5722:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalDataDSL.g:5722:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==85) ) { |
| int LA100_1 = input.LA(2); |
| |
| if ( (LA100_1==86) ) { |
| alt100=2; |
| } |
| else if ( (LA100_1==15) ) { |
| alt100=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 100, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 100, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt100) { |
| case 1 : |
| // InternalDataDSL.g:5723:3: this_XSetLiteral_0= ruleXSetLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSetLiteral_0=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSetLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5732:3: this_XListLiteral_1= ruleXListLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XListLiteral_1=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XListLiteral_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCollectionLiteral" |
| |
| |
| // $ANTLR start "entryRuleXSetLiteral" |
| // InternalDataDSL.g:5744:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5744:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalDataDSL.g:5745:2: iv_ruleXSetLiteral= ruleXSetLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSetLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSetLiteral=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSetLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSetLiteral" |
| |
| |
| // $ANTLR start "ruleXSetLiteral" |
| // InternalDataDSL.g:5751:1: ruleXSetLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ; |
| public final EObject ruleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5757:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalDataDSL.g:5758:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalDataDSL.g:5758:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalDataDSL.g:5759:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalDataDSL.g:5759:3: () |
| // InternalDataDSL.g:5760:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,85,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,15,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:5774:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt102=2; |
| int LA102_0 = input.LA(1); |
| |
| if ( ((LA102_0>=RULE_STRING && LA102_0<=RULE_DECIMAL)||LA102_0==15||LA102_0==50||LA102_0==72||(LA102_0>=75 && LA102_0<=76)||LA102_0==81||(LA102_0>=85 && LA102_0<=86)||LA102_0==93||(LA102_0>=109 && LA102_0<=110)||LA102_0==114||LA102_0==120||LA102_0==122||(LA102_0>=126 && LA102_0<=127)||(LA102_0>=130 && LA102_0<=139)||LA102_0==141) ) { |
| alt102=1; |
| } |
| switch (alt102) { |
| case 1 : |
| // InternalDataDSL.g:5775:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:5775:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5776:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5776:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDataDSL.g:5777:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5794:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop101: |
| do { |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==82) ) { |
| alt101=1; |
| } |
| |
| |
| switch (alt101) { |
| case 1 : |
| // InternalDataDSL.g:5795:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:5799:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5800:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5800:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDataDSL.g:5801:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop101; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSetLiteral" |
| |
| |
| // $ANTLR start "entryRuleXListLiteral" |
| // InternalDataDSL.g:5828:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5828:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalDataDSL.g:5829:2: iv_ruleXListLiteral= ruleXListLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXListLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXListLiteral=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXListLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXListLiteral" |
| |
| |
| // $ANTLR start "ruleXListLiteral" |
| // InternalDataDSL.g:5835:1: ruleXListLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ; |
| public final EObject ruleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5841:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalDataDSL.g:5842:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:5842:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:5843:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:5843:3: () |
| // InternalDataDSL.g:5844:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,85,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,86,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:5858:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( ((LA104_0>=RULE_STRING && LA104_0<=RULE_DECIMAL)||LA104_0==15||LA104_0==50||LA104_0==72||(LA104_0>=75 && LA104_0<=76)||LA104_0==81||(LA104_0>=85 && LA104_0<=86)||LA104_0==93||(LA104_0>=109 && LA104_0<=110)||LA104_0==114||LA104_0==120||LA104_0==122||(LA104_0>=126 && LA104_0<=127)||(LA104_0>=130 && LA104_0<=139)||LA104_0==141) ) { |
| alt104=1; |
| } |
| switch (alt104) { |
| case 1 : |
| // InternalDataDSL.g:5859:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:5859:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5860:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5860:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDataDSL.g:5861:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5878:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop103: |
| do { |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( (LA103_0==82) ) { |
| alt103=1; |
| } |
| |
| |
| switch (alt103) { |
| case 1 : |
| // InternalDataDSL.g:5879:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:5883:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:5884:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:5884:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDataDSL.g:5885:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop103; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXListLiteral" |
| |
| |
| // $ANTLR start "entryRuleXClosure" |
| // InternalDataDSL.g:5912:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalDataDSL.g:5912:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalDataDSL.g:5913:2: iv_ruleXClosure= ruleXClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXClosure=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXClosure" |
| |
| |
| // $ANTLR start "ruleXClosure" |
| // InternalDataDSL.g:5919:1: ruleXClosure returns [EObject current=null] : ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ; |
| public final EObject ruleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_explicitSyntax_5_0=null; |
| Token otherlv_7=null; |
| EObject lv_declaredFormalParameters_2_0 = null; |
| |
| EObject lv_declaredFormalParameters_4_0 = null; |
| |
| EObject lv_expression_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:5925:2: ( ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ) |
| // InternalDataDSL.g:5926:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| { |
| // InternalDataDSL.g:5926:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| // InternalDataDSL.g:5927:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' |
| { |
| // InternalDataDSL.g:5927:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalDataDSL.g:5928:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalDataDSL.g:5934:4: ( () otherlv_1= '[' ) |
| // InternalDataDSL.g:5935:5: () otherlv_1= '[' |
| { |
| // InternalDataDSL.g:5935:5: () |
| // InternalDataDSL.g:5936:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,86,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5948:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt107=2; |
| alt107 = dfa107.predict(input); |
| switch (alt107) { |
| case 1 : |
| // InternalDataDSL.g:5949:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalDataDSL.g:5972:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalDataDSL.g:5973:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalDataDSL.g:5973:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==RULE_ID||LA106_0==81||LA106_0==106) ) { |
| alt106=1; |
| } |
| switch (alt106) { |
| case 1 : |
| // InternalDataDSL.g:5974:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:5974:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5975:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5975:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5976:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| lv_declaredFormalParameters_2_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_2_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5993:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop105: |
| do { |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( (LA105_0==82) ) { |
| alt105=1; |
| } |
| |
| |
| switch (alt105) { |
| case 1 : |
| // InternalDataDSL.g:5994:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,82,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalDataDSL.g:5998:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5999:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5999:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6000:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| lv_declaredFormalParameters_4_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_4_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop105; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6019:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalDataDSL.g:6020:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalDataDSL.g:6020:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalDataDSL.g:6021:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,119,FOLLOW_112); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6035:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalDataDSL.g:6036:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalDataDSL.g:6036:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalDataDSL.g:6037:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| lv_expression_6_0=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXClosure" |
| |
| |
| // $ANTLR start "entryRuleXExpressionInClosure" |
| // InternalDataDSL.g:6062:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6062:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalDataDSL.g:6063:2: iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionInClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionInClosure=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionInClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionInClosure" |
| |
| |
| // $ANTLR start "ruleXExpressionInClosure" |
| // InternalDataDSL.g:6069:1: ruleXExpressionInClosure returns [EObject current=null] : ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ; |
| public final EObject ruleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject lv_expressions_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6075:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalDataDSL.g:6076:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalDataDSL.g:6076:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalDataDSL.g:6077:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalDataDSL.g:6077:3: () |
| // InternalDataDSL.g:6078:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6084:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop109: |
| do { |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( ((LA109_0>=RULE_STRING && LA109_0<=RULE_DECIMAL)||LA109_0==15||LA109_0==50||LA109_0==72||(LA109_0>=75 && LA109_0<=76)||LA109_0==81||(LA109_0>=85 && LA109_0<=86)||LA109_0==93||(LA109_0>=109 && LA109_0<=110)||LA109_0==114||LA109_0==120||LA109_0==122||(LA109_0>=126 && LA109_0<=139)||LA109_0==141) ) { |
| alt109=1; |
| } |
| |
| |
| switch (alt109) { |
| case 1 : |
| // InternalDataDSL.g:6085:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalDataDSL.g:6085:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:6086:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:6086:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:6087:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| lv_expressions_1_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6104:4: (otherlv_2= ';' )? |
| int alt108=2; |
| int LA108_0 = input.LA(1); |
| |
| if ( (LA108_0==79) ) { |
| alt108=1; |
| } |
| switch (alt108) { |
| case 1 : |
| // InternalDataDSL.g:6105:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,79,FOLLOW_115); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop109; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalDataDSL.g:6115:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6115:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalDataDSL.g:6116:2: iv_ruleXShortClosure= ruleXShortClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXShortClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXShortClosure=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXShortClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXShortClosure" |
| |
| |
| // $ANTLR start "ruleXShortClosure" |
| // InternalDataDSL.g:6122:1: ruleXShortClosure returns [EObject current=null] : ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitSyntax_4_0=null; |
| EObject lv_declaredFormalParameters_1_0 = null; |
| |
| EObject lv_declaredFormalParameters_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6128:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:6129:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:6129:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:6130:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:6130:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalDataDSL.g:6131:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalDataDSL.g:6156:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalDataDSL.g:6157:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalDataDSL.g:6157:5: () |
| // InternalDataDSL.g:6158:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6164:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt111=2; |
| int LA111_0 = input.LA(1); |
| |
| if ( (LA111_0==RULE_ID||LA111_0==81||LA111_0==106) ) { |
| alt111=1; |
| } |
| switch (alt111) { |
| case 1 : |
| // InternalDataDSL.g:6165:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:6165:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6166:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6166:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6167:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| lv_declaredFormalParameters_1_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_1_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6184:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop110: |
| do { |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==82) ) { |
| alt110=1; |
| } |
| |
| |
| switch (alt110) { |
| case 1 : |
| // InternalDataDSL.g:6185:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,82,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:6189:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6190:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6190:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6191:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| lv_declaredFormalParameters_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop110; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6210:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalDataDSL.g:6211:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalDataDSL.g:6211:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalDataDSL.g:6212:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,119,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXShortClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6226:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6227:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6227:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6228:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXShortClosure" |
| |
| |
| // $ANTLR start "entryRuleXParenthesizedExpression" |
| // InternalDataDSL.g:6249:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6249:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalDataDSL.g:6250:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXParenthesizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "ruleXParenthesizedExpression" |
| // InternalDataDSL.g:6256:1: ruleXParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ; |
| public final EObject ruleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6262:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalDataDSL.g:6263:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalDataDSL.g:6263:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalDataDSL.g:6264:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,81,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_2=(Token)match(input,83,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXIfExpression" |
| // InternalDataDSL.g:6284:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6284:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalDataDSL.g:6285:2: iv_ruleXIfExpression= ruleXIfExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXIfExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXIfExpression=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXIfExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXIfExpression" |
| |
| |
| // $ANTLR start "ruleXIfExpression" |
| // InternalDataDSL.g:6291:1: ruleXIfExpression returns [EObject current=null] : ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_if_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| EObject lv_else_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6297:2: ( ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ) |
| // InternalDataDSL.g:6298:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalDataDSL.g:6298:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| // InternalDataDSL.g:6299:3: () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| { |
| // InternalDataDSL.g:6299:3: () |
| // InternalDataDSL.g:6300:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,120,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:6314:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6315:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6315:4: (lv_if_3_0= ruleXExpression ) |
| // InternalDataDSL.g:6316:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_if_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "if", |
| lv_if_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:6337:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6338:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6338:4: (lv_then_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6339:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6356:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( (LA112_0==121) ) { |
| int LA112_1 = input.LA(2); |
| |
| if ( (synpred31_InternalDataDSL()) ) { |
| alt112=1; |
| } |
| } |
| switch (alt112) { |
| case 1 : |
| // InternalDataDSL.g:6357:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:6357:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalDataDSL.g:6358:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,121,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6364:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6365:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6365:5: (lv_else_7_0= ruleXExpression ) |
| // InternalDataDSL.g:6366:6: lv_else_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_else_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "else", |
| lv_else_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXIfExpression" |
| |
| |
| // $ANTLR start "entryRuleXSwitchExpression" |
| // InternalDataDSL.g:6388:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6388:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalDataDSL.g:6389:2: iv_ruleXSwitchExpression= ruleXSwitchExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSwitchExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSwitchExpression=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSwitchExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSwitchExpression" |
| |
| |
| // $ANTLR start "ruleXSwitchExpression" |
| // InternalDataDSL.g:6395:1: ruleXSwitchExpression returns [EObject current=null] : ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ; |
| public final EObject ruleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_switch_5_0 = null; |
| |
| EObject lv_declaredParam_7_0 = null; |
| |
| EObject lv_switch_9_0 = null; |
| |
| EObject lv_cases_11_0 = null; |
| |
| EObject lv_default_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6401:2: ( ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ) |
| // InternalDataDSL.g:6402:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| { |
| // InternalDataDSL.g:6402:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| // InternalDataDSL.g:6403:3: () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' |
| { |
| // InternalDataDSL.g:6403:3: () |
| // InternalDataDSL.g:6404:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,122,FOLLOW_118); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:6414:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) |
| int alt114=2; |
| alt114 = dfa114.predict(input); |
| switch (alt114) { |
| case 1 : |
| // InternalDataDSL.g:6415:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDataDSL.g:6415:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDataDSL.g:6416:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDataDSL.g:6416:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDataDSL.g:6417:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDataDSL.g:6427:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDataDSL.g:6428:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,81,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalDataDSL.g:6432:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6433:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6433:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6434:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,123,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6457:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6458:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6458:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6459:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_switch_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,83,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:6482:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:6482:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:6483:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:6483:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt113=2; |
| alt113 = dfa113.predict(input); |
| switch (alt113) { |
| case 1 : |
| // InternalDataDSL.g:6484:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalDataDSL.g:6493:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalDataDSL.g:6494:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalDataDSL.g:6494:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6495:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6495:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6496:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| lv_declaredParam_7_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_7_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,123,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6519:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6520:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6520:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalDataDSL.g:6521:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_switch_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,15,FOLLOW_120); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:6544:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop115: |
| do { |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==RULE_ID||(LA115_0>=81 && LA115_0<=82)||LA115_0==106||LA115_0==123||LA115_0==125) ) { |
| alt115=1; |
| } |
| |
| |
| switch (alt115) { |
| case 1 : |
| // InternalDataDSL.g:6545:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalDataDSL.g:6545:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalDataDSL.g:6546:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_120); |
| lv_cases_11_0=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| add( |
| current, |
| "cases", |
| lv_cases_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XCasePart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop115; |
| } |
| } while (true); |
| |
| // InternalDataDSL.g:6563:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( (LA116_0==124) ) { |
| alt116=1; |
| } |
| switch (alt116) { |
| case 1 : |
| // InternalDataDSL.g:6564:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,124,FOLLOW_119); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,123,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalDataDSL.g:6572:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6573:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6573:5: (lv_default_14_0= ruleXExpression ) |
| // InternalDataDSL.g:6574:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_default_14_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "default", |
| lv_default_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSwitchExpression" |
| |
| |
| // $ANTLR start "entryRuleXCasePart" |
| // InternalDataDSL.g:6600:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6600:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalDataDSL.g:6601:2: iv_ruleXCasePart= ruleXCasePart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCasePartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCasePart=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCasePart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCasePart" |
| |
| |
| // $ANTLR start "ruleXCasePart" |
| // InternalDataDSL.g:6607:1: ruleXCasePart returns [EObject current=null] : ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ; |
| public final EObject ruleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token lv_fallThrough_6_0=null; |
| EObject lv_typeGuard_1_0 = null; |
| |
| EObject lv_case_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6613:2: ( ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ) |
| // InternalDataDSL.g:6614:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| { |
| // InternalDataDSL.g:6614:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| // InternalDataDSL.g:6615:3: () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| { |
| // InternalDataDSL.g:6615:3: () |
| // InternalDataDSL.g:6616:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6622:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==RULE_ID||LA117_0==81||LA117_0==106) ) { |
| alt117=1; |
| } |
| switch (alt117) { |
| case 1 : |
| // InternalDataDSL.g:6623:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:6623:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:6624:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_121); |
| lv_typeGuard_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "typeGuard", |
| lv_typeGuard_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6641:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==125) ) { |
| alt118=1; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalDataDSL.g:6642:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,125,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalDataDSL.g:6646:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6647:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6647:5: (lv_case_3_0= ruleXExpression ) |
| // InternalDataDSL.g:6648:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| lv_case_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "case", |
| lv_case_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6666:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==123) ) { |
| alt119=1; |
| } |
| else if ( (LA119_0==82) ) { |
| alt119=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 119, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt119) { |
| case 1 : |
| // InternalDataDSL.g:6667:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:6667:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:6668:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,123,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:6672:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6673:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6673:6: (lv_then_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6674:7: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:6693:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalDataDSL.g:6693:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalDataDSL.g:6694:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalDataDSL.g:6694:5: (lv_fallThrough_6_0= ',' ) |
| // InternalDataDSL.g:6695:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,82,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXCasePartRule()); |
| } |
| setWithLastConsumed(current, "fallThrough", true, ","); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCasePart" |
| |
| |
| // $ANTLR start "entryRuleXForLoopExpression" |
| // InternalDataDSL.g:6712:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6712:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalDataDSL.g:6713:2: iv_ruleXForLoopExpression= ruleXForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXForLoopExpression=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXForLoopExpression" |
| // InternalDataDSL.g:6719:1: ruleXForLoopExpression returns [EObject current=null] : ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_forExpression_5_0 = null; |
| |
| EObject lv_eachExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6725:2: ( ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:6726:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:6726:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:6727:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:6727:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDataDSL.g:6728:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDataDSL.g:6741:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDataDSL.g:6742:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalDataDSL.g:6742:5: () |
| // InternalDataDSL.g:6743:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalDataDSL.g:6757:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6758:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6758:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6759:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,123,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6782:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6783:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6783:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6784:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_forExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "forExpression", |
| lv_forExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:6805:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6806:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6806:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:6807:5: lv_eachExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXBasicForLoopExpression" |
| // InternalDataDSL.g:6828:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:6828:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalDataDSL.g:6829:2: iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBasicForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXBasicForLoopExpression" |
| // InternalDataDSL.g:6835:1: ruleXBasicForLoopExpression returns [EObject current=null] : ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_initExpressions_3_0 = null; |
| |
| EObject lv_initExpressions_5_0 = null; |
| |
| EObject lv_expression_7_0 = null; |
| |
| EObject lv_updateExpressions_9_0 = null; |
| |
| EObject lv_updateExpressions_11_0 = null; |
| |
| EObject lv_eachExpression_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:6841:2: ( ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:6842:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:6842:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:6843:3: () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:6843:3: () |
| // InternalDataDSL.g:6844:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,50,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_123); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:6858:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( ((LA121_0>=RULE_STRING && LA121_0<=RULE_DECIMAL)||LA121_0==15||LA121_0==50||LA121_0==72||(LA121_0>=75 && LA121_0<=76)||LA121_0==81||(LA121_0>=85 && LA121_0<=86)||LA121_0==93||(LA121_0>=109 && LA121_0<=110)||LA121_0==114||LA121_0==120||LA121_0==122||(LA121_0>=126 && LA121_0<=139)||LA121_0==141) ) { |
| alt121=1; |
| } |
| switch (alt121) { |
| case 1 : |
| // InternalDataDSL.g:6859:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalDataDSL.g:6859:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:6860:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:6860:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:6861:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6878:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop120: |
| do { |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==82) ) { |
| alt120=1; |
| } |
| |
| |
| switch (alt120) { |
| case 1 : |
| // InternalDataDSL.g:6879:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_125); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:6883:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:6884:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:6884:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:6885:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop120; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,79,FOLLOW_126); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:6908:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( ((LA122_0>=RULE_STRING && LA122_0<=RULE_DECIMAL)||LA122_0==15||LA122_0==50||LA122_0==72||(LA122_0>=75 && LA122_0<=76)||LA122_0==81||(LA122_0>=85 && LA122_0<=86)||LA122_0==93||(LA122_0>=109 && LA122_0<=110)||LA122_0==114||LA122_0==120||LA122_0==122||(LA122_0>=126 && LA122_0<=127)||(LA122_0>=130 && LA122_0<=139)||LA122_0==141) ) { |
| alt122=1; |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalDataDSL.g:6909:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6909:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:6910:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_127); |
| lv_expression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,79,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalDataDSL.g:6931:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( ((LA124_0>=RULE_STRING && LA124_0<=RULE_DECIMAL)||LA124_0==15||LA124_0==50||LA124_0==72||(LA124_0>=75 && LA124_0<=76)||LA124_0==81||(LA124_0>=85 && LA124_0<=86)||LA124_0==93||(LA124_0>=109 && LA124_0<=110)||LA124_0==114||LA124_0==120||LA124_0==122||(LA124_0>=126 && LA124_0<=127)||(LA124_0>=130 && LA124_0<=139)||LA124_0==141) ) { |
| alt124=1; |
| } |
| switch (alt124) { |
| case 1 : |
| // InternalDataDSL.g:6932:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:6932:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6933:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6933:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalDataDSL.g:6934:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_updateExpressions_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6951:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==82) ) { |
| alt123=1; |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalDataDSL.g:6952:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalDataDSL.g:6956:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6957:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6957:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalDataDSL.g:6958:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_updateExpressions_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop123; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalDataDSL.g:6981:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6982:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6982:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalDataDSL.g:6983:5: lv_eachExpression_13_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_13_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXWhileExpression" |
| // InternalDataDSL.g:7004:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7004:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalDataDSL.g:7005:2: iv_ruleXWhileExpression= ruleXWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXWhileExpression=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXWhileExpression" |
| |
| |
| // $ANTLR start "ruleXWhileExpression" |
| // InternalDataDSL.g:7011:1: ruleXWhileExpression returns [EObject current=null] : ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_predicate_3_0 = null; |
| |
| EObject lv_body_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7017:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:7018:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:7018:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:7019:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:7019:3: () |
| // InternalDataDSL.g:7020:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,126,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:7034:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7035:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7035:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalDataDSL.g:7036:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_predicate_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:7057:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7058:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7058:4: (lv_body_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7059:5: lv_body_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXDoWhileExpression" |
| // InternalDataDSL.g:7080:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7080:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalDataDSL.g:7081:2: iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXDoWhileExpression=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXDoWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXDoWhileExpression" |
| |
| |
| // $ANTLR start "ruleXDoWhileExpression" |
| // InternalDataDSL.g:7087:1: ruleXDoWhileExpression returns [EObject current=null] : ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ; |
| public final EObject ruleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_body_2_0 = null; |
| |
| EObject lv_predicate_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7093:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalDataDSL.g:7094:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDataDSL.g:7094:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDataDSL.g:7095:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDataDSL.g:7095:3: () |
| // InternalDataDSL.g:7096:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,127,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:7106:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7107:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7107:4: (lv_body_2_0= ruleXExpression ) |
| // InternalDataDSL.g:7108:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_128); |
| lv_body_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,126,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,81,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:7133:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7134:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7134:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7135:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_predicate_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,83,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXDoWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXBlockExpression" |
| // InternalDataDSL.g:7160:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7160:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalDataDSL.g:7161:2: iv_ruleXBlockExpression= ruleXBlockExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBlockExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBlockExpression=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBlockExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBlockExpression" |
| |
| |
| // $ANTLR start "ruleXBlockExpression" |
| // InternalDataDSL.g:7167:1: ruleXBlockExpression returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ; |
| public final EObject ruleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| EObject lv_expressions_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7173:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalDataDSL.g:7174:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalDataDSL.g:7174:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalDataDSL.g:7175:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalDataDSL.g:7175:3: () |
| // InternalDataDSL.g:7176:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,15,FOLLOW_129); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:7186:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop126: |
| do { |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( ((LA126_0>=RULE_STRING && LA126_0<=RULE_DECIMAL)||LA126_0==15||LA126_0==50||LA126_0==72||(LA126_0>=75 && LA126_0<=76)||LA126_0==81||(LA126_0>=85 && LA126_0<=86)||LA126_0==93||(LA126_0>=109 && LA126_0<=110)||LA126_0==114||LA126_0==120||LA126_0==122||(LA126_0>=126 && LA126_0<=139)||LA126_0==141) ) { |
| alt126=1; |
| } |
| |
| |
| switch (alt126) { |
| case 1 : |
| // InternalDataDSL.g:7187:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalDataDSL.g:7187:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:7188:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:7188:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:7189:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_130); |
| lv_expressions_2_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7206:4: (otherlv_3= ';' )? |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==79) ) { |
| alt125=1; |
| } |
| switch (alt125) { |
| case 1 : |
| // InternalDataDSL.g:7207:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,79,FOLLOW_129); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop126; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,16,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBlockExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpressionOrVarDeclaration" |
| // InternalDataDSL.g:7221:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7221:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalDataDSL.g:7222:2: iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionOrVarDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "ruleXExpressionOrVarDeclaration" |
| // InternalDataDSL.g:7228:1: ruleXExpressionOrVarDeclaration returns [EObject current=null] : (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XVariableDeclaration_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7234:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalDataDSL.g:7235:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7235:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt127=2; |
| int LA127_0 = input.LA(1); |
| |
| if ( ((LA127_0>=128 && LA127_0<=129)) ) { |
| alt127=1; |
| } |
| else if ( ((LA127_0>=RULE_STRING && LA127_0<=RULE_DECIMAL)||LA127_0==15||LA127_0==50||LA127_0==72||(LA127_0>=75 && LA127_0<=76)||LA127_0==81||(LA127_0>=85 && LA127_0<=86)||LA127_0==93||(LA127_0>=109 && LA127_0<=110)||LA127_0==114||LA127_0==120||LA127_0==122||(LA127_0>=126 && LA127_0<=127)||(LA127_0>=130 && LA127_0<=139)||LA127_0==141) ) { |
| alt127=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 127, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt127) { |
| case 1 : |
| // InternalDataDSL.g:7236:3: this_XVariableDeclaration_0= ruleXVariableDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XVariableDeclaration_0=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XVariableDeclaration_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7245:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXVariableDeclaration" |
| // InternalDataDSL.g:7257:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7257:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalDataDSL.g:7258:2: iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXVariableDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXVariableDeclaration=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXVariableDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXVariableDeclaration" |
| |
| |
| // $ANTLR start "ruleXVariableDeclaration" |
| // InternalDataDSL.g:7264:1: ruleXVariableDeclaration returns [EObject current=null] : ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_writeable_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| EObject lv_type_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_4_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_5_0 = null; |
| |
| EObject lv_right_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7270:2: ( ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ) |
| // InternalDataDSL.g:7271:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalDataDSL.g:7271:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| // InternalDataDSL.g:7272:3: () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| { |
| // InternalDataDSL.g:7272:3: () |
| // InternalDataDSL.g:7273:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7279:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt128=2; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==128) ) { |
| alt128=1; |
| } |
| else if ( (LA128_0==129) ) { |
| alt128=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 128, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt128) { |
| case 1 : |
| // InternalDataDSL.g:7280:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalDataDSL.g:7280:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalDataDSL.g:7281:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalDataDSL.g:7281:5: (lv_writeable_1_0= 'var' ) |
| // InternalDataDSL.g:7282:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,128,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXVariableDeclarationRule()); |
| } |
| setWithLastConsumed(current, "writeable", true, "var"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7295:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,129,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7300:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==RULE_ID) ) { |
| int LA129_1 = input.LA(2); |
| |
| if ( (synpred35_InternalDataDSL()) ) { |
| alt129=1; |
| } |
| else if ( (true) ) { |
| alt129=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 129, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA129_0==81) && (synpred35_InternalDataDSL())) { |
| alt129=1; |
| } |
| else if ( (LA129_0==106) && (synpred35_InternalDataDSL())) { |
| alt129=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 129, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt129) { |
| case 1 : |
| // InternalDataDSL.g:7301:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalDataDSL.g:7301:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:7302:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:7315:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:7316:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:7316:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:7317:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:7317:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:7318:8: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7335:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalDataDSL.g:7336:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:7336:7: (lv_name_4_0= ruleValidID ) |
| // InternalDataDSL.g:7337:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_131); |
| lv_name_4_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7357:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:7357:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalDataDSL.g:7358:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:7358:5: (lv_name_5_0= ruleValidID ) |
| // InternalDataDSL.g:7359:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_131); |
| lv_name_5_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7377:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==84) ) { |
| alt130=1; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalDataDSL.g:7378:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,84,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:7382:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7383:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7383:5: (lv_right_7_0= ruleXExpression ) |
| // InternalDataDSL.g:7384:6: lv_right_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXVariableDeclaration" |
| |
| |
| // $ANTLR start "entryRuleJvmFormalParameter" |
| // InternalDataDSL.g:7406:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7406:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalDataDSL.g:7407:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmFormalParameter=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleJvmFormalParameter" |
| // InternalDataDSL.g:7413:1: ruleJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7419:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:7420:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:7420:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:7421:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:7421:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==RULE_ID) ) { |
| int LA131_1 = input.LA(2); |
| |
| if ( (LA131_1==RULE_ID||LA131_1==74||LA131_1==86||LA131_1==93) ) { |
| alt131=1; |
| } |
| } |
| else if ( (LA131_0==81||LA131_0==106) ) { |
| alt131=1; |
| } |
| switch (alt131) { |
| case 1 : |
| // InternalDataDSL.g:7422:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:7422:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:7423:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7440:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDataDSL.g:7441:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:7441:4: (lv_name_1_0= ruleValidID ) |
| // InternalDataDSL.g:7442:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleFullJvmFormalParameter" |
| // InternalDataDSL.g:7463:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7463:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalDataDSL.g:7464:2: iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFullJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleFullJvmFormalParameter" |
| // InternalDataDSL.g:7470:1: ruleFullJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7476:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:7477:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:7477:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:7478:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:7478:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:7479:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:7479:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:7480:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7497:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDataDSL.g:7498:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:7498:4: (lv_name_1_0= ruleValidID ) |
| // InternalDataDSL.g:7499:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleXFeatureCall" |
| // InternalDataDSL.g:7520:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7520:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalDataDSL.g:7521:2: iv_ruleXFeatureCall= ruleXFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFeatureCall=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFeatureCall" |
| |
| |
| // $ANTLR start "ruleXFeatureCall" |
| // InternalDataDSL.g:7527:1: ruleXFeatureCall returns [EObject current=null] : ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token lv_explicitOperationCall_7_0=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_typeArguments_2_0 = null; |
| |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_featureCallArguments_8_0 = null; |
| |
| EObject lv_featureCallArguments_9_0 = null; |
| |
| EObject lv_featureCallArguments_11_0 = null; |
| |
| EObject lv_featureCallArguments_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7533:2: ( ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ) |
| // InternalDataDSL.g:7534:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| { |
| // InternalDataDSL.g:7534:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| // InternalDataDSL.g:7535:3: () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| { |
| // InternalDataDSL.g:7535:3: () |
| // InternalDataDSL.g:7536:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7542:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==93) ) { |
| alt133=1; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalDataDSL.g:7543:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,93,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalDataDSL.g:7547:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:7548:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:7548:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:7549:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7566:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop132: |
| do { |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==82) ) { |
| alt132=1; |
| } |
| |
| |
| switch (alt132) { |
| case 1 : |
| // InternalDataDSL.g:7567:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,82,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:7571:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:7572:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:7572:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:7573:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop132; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,94,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7596:3: ( ( ruleIdOrSuper ) ) |
| // InternalDataDSL.g:7597:4: ( ruleIdOrSuper ) |
| { |
| // InternalDataDSL.g:7597:4: ( ruleIdOrSuper ) |
| // InternalDataDSL.g:7598:5: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7612:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? |
| int alt136=2; |
| alt136 = dfa136.predict(input); |
| switch (alt136) { |
| case 1 : |
| // InternalDataDSL.g:7613:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' |
| { |
| // InternalDataDSL.g:7613:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalDataDSL.g:7614:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalDataDSL.g:7618:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalDataDSL.g:7619:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,81,FOLLOW_106); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7631:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt135=3; |
| alt135 = dfa135.predict(input); |
| switch (alt135) { |
| case 1 : |
| // InternalDataDSL.g:7632:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:7632:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:7633:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:7658:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalDataDSL.g:7659:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_featureCallArguments_8_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_8_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7677:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:7677:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:7678:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:7678:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7679:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7679:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalDataDSL.g:7680:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_featureCallArguments_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7697:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop134: |
| do { |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==82) ) { |
| alt134=1; |
| } |
| |
| |
| switch (alt134) { |
| case 1 : |
| // InternalDataDSL.g:7698:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:7702:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7703:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7703:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalDataDSL.g:7704:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_featureCallArguments_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop134; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,83,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7729:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt137=2; |
| alt137 = dfa137.predict(input); |
| switch (alt137) { |
| case 1 : |
| // InternalDataDSL.g:7730:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:7736:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalDataDSL.g:7737:5: lv_featureCallArguments_13_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_featureCallArguments_13_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleFeatureCallID" |
| // InternalDataDSL.g:7758:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7758:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalDataDSL.g:7759:2: iv_ruleFeatureCallID= ruleFeatureCallID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFeatureCallIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFeatureCallID=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFeatureCallID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFeatureCallID" |
| |
| |
| // $ANTLR start "ruleFeatureCallID" |
| // InternalDataDSL.g:7765:1: ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ; |
| public final AntlrDatatypeRuleToken ruleFeatureCallID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7771:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalDataDSL.g:7772:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalDataDSL.g:7772:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt138=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt138=1; |
| } |
| break; |
| case 130: |
| { |
| alt138=2; |
| } |
| break; |
| case 76: |
| { |
| alt138=3; |
| } |
| break; |
| case 75: |
| { |
| alt138=4; |
| } |
| break; |
| case 72: |
| { |
| alt138=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 138, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt138) { |
| case 1 : |
| // InternalDataDSL.g:7773:3: this_ValidID_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7784:3: kw= 'extends' |
| { |
| kw=(Token)match(input,130,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:7790:3: kw= 'static' |
| { |
| kw=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:7796:3: kw= 'import' |
| { |
| kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:7802:3: kw= 'extension' |
| { |
| kw=(Token)match(input,72,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFeatureCallID" |
| |
| |
| // $ANTLR start "entryRuleIdOrSuper" |
| // InternalDataDSL.g:7811:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7811:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalDataDSL.g:7812:2: iv_ruleIdOrSuper= ruleIdOrSuper EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIdOrSuperRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIdOrSuper=ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIdOrSuper.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIdOrSuper" |
| |
| |
| // $ANTLR start "ruleIdOrSuper" |
| // InternalDataDSL.g:7818:1: ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ; |
| public final AntlrDatatypeRuleToken ruleIdOrSuper() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_FeatureCallID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7824:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalDataDSL.g:7825:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalDataDSL.g:7825:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==RULE_ID||LA139_0==72||(LA139_0>=75 && LA139_0<=76)||LA139_0==130) ) { |
| alt139=1; |
| } |
| else if ( (LA139_0==131) ) { |
| alt139=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 139, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt139) { |
| case 1 : |
| // InternalDataDSL.g:7826:3: this_FeatureCallID_0= ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_FeatureCallID_0=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_FeatureCallID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:7837:3: kw= 'super' |
| { |
| kw=(Token)match(input,131,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIdOrSuper" |
| |
| |
| // $ANTLR start "entryRuleXConstructorCall" |
| // InternalDataDSL.g:7846:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalDataDSL.g:7846:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalDataDSL.g:7847:2: iv_ruleXConstructorCall= ruleXConstructorCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXConstructorCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXConstructorCall=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXConstructorCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXConstructorCall" |
| |
| |
| // $ANTLR start "ruleXConstructorCall" |
| // InternalDataDSL.g:7853:1: ruleXConstructorCall returns [EObject current=null] : ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token lv_explicitConstructorCall_8_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_typeArguments_6_0 = null; |
| |
| EObject lv_arguments_9_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| EObject lv_arguments_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:7859:2: ( ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ) |
| // InternalDataDSL.g:7860:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| { |
| // InternalDataDSL.g:7860:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| // InternalDataDSL.g:7861:3: () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| { |
| // InternalDataDSL.g:7861:3: () |
| // InternalDataDSL.g:7862:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,132,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:7872:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:7873:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:7873:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:7874:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_134); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7888:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt141=2; |
| alt141 = dfa141.predict(input); |
| switch (alt141) { |
| case 1 : |
| // InternalDataDSL.g:7889:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalDataDSL.g:7889:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalDataDSL.g:7890:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,93,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7896:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:7897:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:7897:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:7898:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7915:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop140: |
| do { |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==82) ) { |
| alt140=1; |
| } |
| |
| |
| switch (alt140) { |
| case 1 : |
| // InternalDataDSL.g:7916:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,82,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:7920:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:7921:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:7921:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:7922:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_typeArguments_6_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop140; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,94,FOLLOW_132); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7945:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? |
| int alt144=2; |
| alt144 = dfa144.predict(input); |
| switch (alt144) { |
| case 1 : |
| // InternalDataDSL.g:7946:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' |
| { |
| // InternalDataDSL.g:7946:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalDataDSL.g:7947:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalDataDSL.g:7951:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalDataDSL.g:7952:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,81,FOLLOW_106); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| setWithLastConsumed(current, "explicitConstructorCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7964:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt143=3; |
| alt143 = dfa143.predict(input); |
| switch (alt143) { |
| case 1 : |
| // InternalDataDSL.g:7965:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:7965:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:7966:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:7991:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalDataDSL.g:7992:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_arguments_9_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8010:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:8010:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:8011:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:8011:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8012:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8012:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalDataDSL.g:8013:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_arguments_10_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8030:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop142: |
| do { |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==82) ) { |
| alt142=1; |
| } |
| |
| |
| switch (alt142) { |
| case 1 : |
| // InternalDataDSL.g:8031:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,82,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:8035:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8036:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8036:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalDataDSL.g:8037:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_arguments_12_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop142; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,83,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8062:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt145=2; |
| alt145 = dfa145.predict(input); |
| switch (alt145) { |
| case 1 : |
| // InternalDataDSL.g:8063:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:8069:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalDataDSL.g:8070:5: lv_arguments_14_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_arguments_14_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXConstructorCall" |
| |
| |
| // $ANTLR start "entryRuleXBooleanLiteral" |
| // InternalDataDSL.g:8091:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8091:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalDataDSL.g:8092:2: iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBooleanLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBooleanLiteral=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBooleanLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBooleanLiteral" |
| |
| |
| // $ANTLR start "ruleXBooleanLiteral" |
| // InternalDataDSL.g:8098:1: ruleXBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; |
| public final EObject ruleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_isTrue_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8104:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalDataDSL.g:8105:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalDataDSL.g:8105:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalDataDSL.g:8106:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalDataDSL.g:8106:3: () |
| // InternalDataDSL.g:8107:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8113:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==133) ) { |
| alt146=1; |
| } |
| else if ( (LA146_0==134) ) { |
| alt146=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 146, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalDataDSL.g:8114:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,133,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8119:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalDataDSL.g:8119:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalDataDSL.g:8120:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalDataDSL.g:8120:5: (lv_isTrue_2_0= 'true' ) |
| // InternalDataDSL.g:8121:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,134,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXBooleanLiteralRule()); |
| } |
| setWithLastConsumed(current, "isTrue", true, "true"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBooleanLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNullLiteral" |
| // InternalDataDSL.g:8138:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8138:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalDataDSL.g:8139:2: iv_ruleXNullLiteral= ruleXNullLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNullLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNullLiteral=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNullLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNullLiteral" |
| |
| |
| // $ANTLR start "ruleXNullLiteral" |
| // InternalDataDSL.g:8145:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8151:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalDataDSL.g:8152:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalDataDSL.g:8152:2: ( () otherlv_1= 'null' ) |
| // InternalDataDSL.g:8153:3: () otherlv_1= 'null' |
| { |
| // InternalDataDSL.g:8153:3: () |
| // InternalDataDSL.g:8154:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,135,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNullLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNumberLiteral" |
| // InternalDataDSL.g:8168:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8168:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalDataDSL.g:8169:2: iv_ruleXNumberLiteral= ruleXNumberLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNumberLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNumberLiteral=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNumberLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNumberLiteral" |
| |
| |
| // $ANTLR start "ruleXNumberLiteral" |
| // InternalDataDSL.g:8175:1: ruleXNumberLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleNumber ) ) ) ; |
| public final EObject ruleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8181:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalDataDSL.g:8182:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalDataDSL.g:8182:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalDataDSL.g:8183:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalDataDSL.g:8183:3: () |
| // InternalDataDSL.g:8184:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8190:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalDataDSL.g:8191:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalDataDSL.g:8191:4: (lv_value_1_0= ruleNumber ) |
| // InternalDataDSL.g:8192:5: lv_value_1_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_1_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNumberLiteral" |
| |
| |
| // $ANTLR start "entryRuleXStringLiteral" |
| // InternalDataDSL.g:8213:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8213:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalDataDSL.g:8214:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXStringLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXStringLiteral=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXStringLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXStringLiteral" |
| |
| |
| // $ANTLR start "ruleXStringLiteral" |
| // InternalDataDSL.g:8220:1: ruleXStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_value_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8226:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:8227:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:8227:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:8228:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:8228:3: () |
| // InternalDataDSL.g:8229:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8235:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalDataDSL.g:8236:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:8236:4: (lv_value_1_0= RULE_STRING ) |
| // InternalDataDSL.g:8237:5: lv_value_1_0= RULE_STRING |
| { |
| lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXStringLiteralRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXStringLiteral" |
| |
| |
| // $ANTLR start "entryRuleXTypeLiteral" |
| // InternalDataDSL.g:8257:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8257:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalDataDSL.g:8258:2: iv_ruleXTypeLiteral= ruleXTypeLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTypeLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTypeLiteral=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTypeLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTypeLiteral" |
| |
| |
| // $ANTLR start "ruleXTypeLiteral" |
| // InternalDataDSL.g:8264:1: ruleXTypeLiteral returns [EObject current=null] : ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ; |
| public final EObject ruleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_arrayDimensions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8270:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalDataDSL.g:8271:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalDataDSL.g:8271:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalDataDSL.g:8272:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalDataDSL.g:8272:3: () |
| // InternalDataDSL.g:8273:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,136,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:8287:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:8288:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:8288:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:8289:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXTypeLiteralRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); |
| |
| } |
| pushFollow(FOLLOW_135); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8303:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop147: |
| do { |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==86) ) { |
| alt147=1; |
| } |
| |
| |
| switch (alt147) { |
| case 1 : |
| // InternalDataDSL.g:8304:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:8304:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalDataDSL.g:8305:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_135); |
| lv_arrayDimensions_4_0=ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); |
| } |
| add( |
| current, |
| "arrayDimensions", |
| lv_arrayDimensions_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop147; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,83,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTypeLiteral" |
| |
| |
| // $ANTLR start "entryRuleXThrowExpression" |
| // InternalDataDSL.g:8330:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8330:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalDataDSL.g:8331:2: iv_ruleXThrowExpression= ruleXThrowExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXThrowExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXThrowExpression=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXThrowExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXThrowExpression" |
| |
| |
| // $ANTLR start "ruleXThrowExpression" |
| // InternalDataDSL.g:8337:1: ruleXThrowExpression returns [EObject current=null] : ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8343:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:8344:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:8344:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:8345:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:8345:3: () |
| // InternalDataDSL.g:8346:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,137,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8356:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8357:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8357:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:8358:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXThrowExpression" |
| |
| |
| // $ANTLR start "entryRuleXReturnExpression" |
| // InternalDataDSL.g:8379:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8379:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalDataDSL.g:8380:2: iv_ruleXReturnExpression= ruleXReturnExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXReturnExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXReturnExpression=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXReturnExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXReturnExpression" |
| |
| |
| // $ANTLR start "ruleXReturnExpression" |
| // InternalDataDSL.g:8386:1: ruleXReturnExpression returns [EObject current=null] : ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ; |
| public final EObject ruleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8392:2: ( ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ) |
| // InternalDataDSL.g:8393:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| { |
| // InternalDataDSL.g:8393:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| // InternalDataDSL.g:8394:3: () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| { |
| // InternalDataDSL.g:8394:3: () |
| // InternalDataDSL.g:8395:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,138,FOLLOW_136); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8405:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| int alt148=2; |
| alt148 = dfa148.predict(input); |
| switch (alt148) { |
| case 1 : |
| // InternalDataDSL.g:8406:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8407:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:8408:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXReturnExpression" |
| |
| |
| // $ANTLR start "entryRuleXTryCatchFinallyExpression" |
| // InternalDataDSL.g:8429:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8429:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalDataDSL.g:8430:2: iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTryCatchFinallyExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "ruleXTryCatchFinallyExpression" |
| // InternalDataDSL.g:8436:1: ruleXTryCatchFinallyExpression returns [EObject current=null] : ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ; |
| public final EObject ruleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_expression_2_0 = null; |
| |
| EObject lv_catchClauses_3_0 = null; |
| |
| EObject lv_finallyExpression_5_0 = null; |
| |
| EObject lv_finallyExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8442:2: ( ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ) |
| // InternalDataDSL.g:8443:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| { |
| // InternalDataDSL.g:8443:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| // InternalDataDSL.g:8444:3: () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| { |
| // InternalDataDSL.g:8444:3: () |
| // InternalDataDSL.g:8445:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,139,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8455:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8456:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8456:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:8457:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_137); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8474:3: ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( (LA151_0==142) ) { |
| alt151=1; |
| } |
| else if ( (LA151_0==140) ) { |
| alt151=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 151, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt151) { |
| case 1 : |
| // InternalDataDSL.g:8475:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalDataDSL.g:8475:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalDataDSL.g:8476:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalDataDSL.g:8476:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt149=0; |
| loop149: |
| do { |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==142) ) { |
| int LA149_2 = input.LA(2); |
| |
| if ( (synpred44_InternalDataDSL()) ) { |
| alt149=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt149) { |
| case 1 : |
| // InternalDataDSL.g:8477:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalDataDSL.g:8478:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalDataDSL.g:8479:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_138); |
| lv_catchClauses_3_0=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| add( |
| current, |
| "catchClauses", |
| lv_catchClauses_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XCatchClause"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt149 >= 1 ) break loop149; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(149, input); |
| throw eee; |
| } |
| cnt149++; |
| } while (true); |
| |
| // InternalDataDSL.g:8496:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==140) ) { |
| int LA150_1 = input.LA(2); |
| |
| if ( (synpred45_InternalDataDSL()) ) { |
| alt150=1; |
| } |
| } |
| switch (alt150) { |
| case 1 : |
| // InternalDataDSL.g:8497:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:8497:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalDataDSL.g:8498:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,140,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8504:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8505:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8505:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:8506:8: lv_finallyExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8526:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:8526:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:8527:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,140,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:8531:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8532:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8532:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:8533:7: lv_finallyExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "entryRuleXSynchronizedExpression" |
| // InternalDataDSL.g:8556:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8556:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalDataDSL.g:8557:2: iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSynchronizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "ruleXSynchronizedExpression" |
| // InternalDataDSL.g:8563:1: ruleXSynchronizedExpression returns [EObject current=null] : ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_param_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8569:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:8570:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:8570:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:8571:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:8571:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalDataDSL.g:8572:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalDataDSL.g:8579:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalDataDSL.g:8580:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalDataDSL.g:8580:5: () |
| // InternalDataDSL.g:8581:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,141,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,81,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8597:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8598:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8598:4: (lv_param_3_0= ruleXExpression ) |
| // InternalDataDSL.g:8599:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_param_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "param", |
| lv_param_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:8620:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8621:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8621:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:8622:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXCatchClause" |
| // InternalDataDSL.g:8643:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8643:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalDataDSL.g:8644:2: iv_ruleXCatchClause= ruleXCatchClause EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCatchClauseRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCatchClause=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCatchClause; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCatchClause" |
| |
| |
| // $ANTLR start "ruleXCatchClause" |
| // InternalDataDSL.g:8650:1: ruleXCatchClause returns [EObject current=null] : ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_declaredParam_2_0 = null; |
| |
| EObject lv_expression_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8656:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:8657:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:8657:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:8658:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:8658:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalDataDSL.g:8659:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,142,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,81,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8669:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalDataDSL.g:8670:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:8670:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalDataDSL.g:8671:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_declaredParam_2_0=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_2_0, |
| "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,83,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:8692:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8693:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8693:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalDataDSL.g:8694:5: lv_expression_4_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_4_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_4_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCatchClause" |
| |
| |
| // $ANTLR start "entryRuleQualifiedName" |
| // InternalDataDSL.g:8715:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8715:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalDataDSL.g:8716:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedName=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedName.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedName" |
| |
| |
| // $ANTLR start "ruleQualifiedName" |
| // InternalDataDSL.g:8722:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| AntlrDatatypeRuleToken this_ValidID_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8728:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalDataDSL.g:8729:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalDataDSL.g:8729:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalDataDSL.g:8730:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:8740:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop152: |
| do { |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==74) ) { |
| int LA152_2 = input.LA(2); |
| |
| if ( (LA152_2==RULE_ID) ) { |
| int LA152_3 = input.LA(3); |
| |
| if ( (synpred48_InternalDataDSL()) ) { |
| alt152=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt152) { |
| case 1 : |
| // InternalDataDSL.g:8741:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalDataDSL.g:8741:4: ( ( '.' )=>kw= '.' ) |
| // InternalDataDSL.g:8742:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,74,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| this_ValidID_2=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop152; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalDataDSL.g:8764:1: entryRuleNumber returns [String current=null] : iv_ruleNumber= ruleNumber EOF ; |
| public final String entryRuleNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleNumber = null; |
| |
| |
| |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalDataDSL.g:8766:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalDataDSL.g:8767:2: iv_ruleNumber= ruleNumber EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNumberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNumber=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNumber.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| |
| myHiddenTokenState.restore(); |
| |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNumber" |
| |
| |
| // $ANTLR start "ruleNumber" |
| // InternalDataDSL.g:8776:1: ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ; |
| public final AntlrDatatypeRuleToken ruleNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_HEX_0=null; |
| Token this_INT_1=null; |
| Token this_DECIMAL_2=null; |
| Token kw=null; |
| Token this_INT_4=null; |
| Token this_DECIMAL_5=null; |
| |
| |
| enterRule(); |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalDataDSL.g:8783:2: ( (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ) |
| // InternalDataDSL.g:8784:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| { |
| // InternalDataDSL.g:8784:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( (LA156_0==RULE_HEX) ) { |
| alt156=1; |
| } |
| else if ( (LA156_0==RULE_INT||LA156_0==RULE_DECIMAL) ) { |
| alt156=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 156, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt156) { |
| case 1 : |
| // InternalDataDSL.g:8785:3: this_HEX_0= RULE_HEX |
| { |
| this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_HEX_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8793:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalDataDSL.g:8793:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalDataDSL.g:8794:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalDataDSL.g:8794:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( (LA153_0==RULE_INT) ) { |
| alt153=1; |
| } |
| else if ( (LA153_0==RULE_DECIMAL) ) { |
| alt153=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 153, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalDataDSL.g:8795:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8803:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8811:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==74) ) { |
| int LA155_1 = input.LA(2); |
| |
| if ( (LA155_1==RULE_INT||LA155_1==RULE_DECIMAL) ) { |
| alt155=1; |
| } |
| } |
| switch (alt155) { |
| case 1 : |
| // InternalDataDSL.g:8812:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,74,FOLLOW_139); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:8817:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==RULE_INT) ) { |
| alt154=1; |
| } |
| else if ( (LA154_0==RULE_DECIMAL) ) { |
| alt154=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 154, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalDataDSL.g:8818:6: this_INT_4= RULE_INT |
| { |
| this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_4); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8826:6: this_DECIMAL_5= RULE_DECIMAL |
| { |
| this_DECIMAL_5=(Token)match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_5); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| |
| myHiddenTokenState.restore(); |
| |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumber" |
| |
| |
| // $ANTLR start "entryRuleJvmTypeReference" |
| // InternalDataDSL.g:8843:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8843:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalDataDSL.g:8844:2: iv_ruleJvmTypeReference= ruleJvmTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmTypeReference=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmTypeReference" |
| // InternalDataDSL.g:8850:1: ruleJvmTypeReference returns [EObject current=null] : ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ; |
| public final EObject ruleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmParameterizedTypeReference_0 = null; |
| |
| EObject this_XFunctionTypeRef_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8856:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalDataDSL.g:8857:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalDataDSL.g:8857:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( (LA158_0==RULE_ID) ) { |
| alt158=1; |
| } |
| else if ( (LA158_0==81||LA158_0==106) ) { |
| alt158=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 158, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt158) { |
| case 1 : |
| // InternalDataDSL.g:8858:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalDataDSL.g:8858:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalDataDSL.g:8859:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_133); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:8867:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop157: |
| do { |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==86) ) { |
| int LA157_2 = input.LA(2); |
| |
| if ( (LA157_2==87) ) { |
| int LA157_3 = input.LA(3); |
| |
| if ( (synpred49_InternalDataDSL()) ) { |
| alt157=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt157) { |
| case 1 : |
| // InternalDataDSL.g:8868:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:8874:5: ( () ruleArrayBrackets ) |
| // InternalDataDSL.g:8875:6: () ruleArrayBrackets |
| { |
| // InternalDataDSL.g:8875:6: () |
| // InternalDataDSL.g:8876:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); |
| |
| } |
| pushFollow(FOLLOW_133); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop157; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:8893:3: this_XFunctionTypeRef_3= ruleXFunctionTypeRef |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFunctionTypeRef_3=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFunctionTypeRef_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmTypeReference" |
| |
| |
| // $ANTLR start "entryRuleArrayBrackets" |
| // InternalDataDSL.g:8905:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8905:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalDataDSL.g:8906:2: iv_ruleArrayBrackets= ruleArrayBrackets EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getArrayBracketsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleArrayBrackets=ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleArrayBrackets.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleArrayBrackets" |
| |
| |
| // $ANTLR start "ruleArrayBrackets" |
| // InternalDataDSL.g:8912:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8918:2: ( (kw= '[' kw= ']' ) ) |
| // InternalDataDSL.g:8919:2: (kw= '[' kw= ']' ) |
| { |
| // InternalDataDSL.g:8919:2: (kw= '[' kw= ']' ) |
| // InternalDataDSL.g:8920:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,86,FOLLOW_113); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleArrayBrackets" |
| |
| |
| // $ANTLR start "entryRuleXFunctionTypeRef" |
| // InternalDataDSL.g:8934:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalDataDSL.g:8934:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalDataDSL.g:8935:2: iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFunctionTypeRef; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "ruleXFunctionTypeRef" |
| // InternalDataDSL.g:8941:1: ruleXFunctionTypeRef returns [EObject current=null] : ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject lv_paramTypes_1_0 = null; |
| |
| EObject lv_paramTypes_3_0 = null; |
| |
| EObject lv_returnType_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:8947:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:8948:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:8948:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:8949:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDataDSL.g:8949:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==81) ) { |
| alt161=1; |
| } |
| switch (alt161) { |
| case 1 : |
| // InternalDataDSL.g:8950:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,81,FOLLOW_140); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalDataDSL.g:8954:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==RULE_ID||LA160_0==81||LA160_0==106) ) { |
| alt160=1; |
| } |
| switch (alt160) { |
| case 1 : |
| // InternalDataDSL.g:8955:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalDataDSL.g:8955:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:8956:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8956:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:8957:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_paramTypes_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8974:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop159: |
| do { |
| int alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( (LA159_0==82) ) { |
| alt159=1; |
| } |
| |
| |
| switch (alt159) { |
| case 1 : |
| // InternalDataDSL.g:8975:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,82,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:8979:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:8980:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8980:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:8981:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_paramTypes_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop159; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,83,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,106,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9009:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:9010:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:9010:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:9011:5: lv_returnType_6_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_returnType_6_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| set( |
| current, |
| "returnType", |
| lv_returnType_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "entryRuleJvmParameterizedTypeReference" |
| // InternalDataDSL.g:9032:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9032:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalDataDSL.g:9033:2: iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmParameterizedTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmParameterizedTypeReference" |
| // InternalDataDSL.g:9039:1: ruleJvmParameterizedTypeReference returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ; |
| public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_arguments_2_0 = null; |
| |
| EObject lv_arguments_4_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9045:2: ( ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ) |
| // InternalDataDSL.g:9046:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| { |
| // InternalDataDSL.g:9046:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| // InternalDataDSL.g:9047:3: ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| { |
| // InternalDataDSL.g:9047:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:9048:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:9048:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:9049:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); |
| |
| } |
| pushFollow(FOLLOW_142); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9063:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| int alt166=2; |
| alt166 = dfa166.predict(input); |
| switch (alt166) { |
| case 1 : |
| // InternalDataDSL.g:9064:4: ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| { |
| // InternalDataDSL.g:9064:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalDataDSL.g:9065:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,93,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9071:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9072:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9072:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9073:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_arguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9090:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop162: |
| do { |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==82) ) { |
| alt162=1; |
| } |
| |
| |
| switch (alt162) { |
| case 1 : |
| // InternalDataDSL.g:9091:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,82,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:9095:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9096:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9096:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9097:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_arguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop162; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,94,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalDataDSL.g:9119:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop165: |
| do { |
| int alt165=2; |
| int LA165_0 = input.LA(1); |
| |
| if ( (LA165_0==74) ) { |
| int LA165_2 = input.LA(2); |
| |
| if ( (LA165_2==RULE_ID) ) { |
| int LA165_3 = input.LA(3); |
| |
| if ( (synpred51_InternalDataDSL()) ) { |
| alt165=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt165) { |
| case 1 : |
| // InternalDataDSL.g:9120:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalDataDSL.g:9120:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalDataDSL.g:9121:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalDataDSL.g:9127:6: ( () otherlv_7= '.' ) |
| // InternalDataDSL.g:9128:7: () otherlv_7= '.' |
| { |
| // InternalDataDSL.g:9128:7: () |
| // InternalDataDSL.g:9129:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,74,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9141:5: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:9142:6: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:9142:6: ( ruleValidID ) |
| // InternalDataDSL.g:9143:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_143); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9157:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt164=2; |
| alt164 = dfa164.predict(input); |
| switch (alt164) { |
| case 1 : |
| // InternalDataDSL.g:9158:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalDataDSL.g:9158:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalDataDSL.g:9159:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,93,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9165:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9166:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9166:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9167:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_arguments_10_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9184:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop163: |
| do { |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==82) ) { |
| alt163=1; |
| } |
| |
| |
| switch (alt163) { |
| case 1 : |
| // InternalDataDSL.g:9185:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,82,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalDataDSL.g:9189:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9190:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9190:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9191:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| lv_arguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop163; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,94,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop165; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalDataDSL.g:9220:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9220:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalDataDSL.g:9221:2: iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmArgumentTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmArgumentTypeReference" |
| // InternalDataDSL.g:9227:1: ruleJvmArgumentTypeReference returns [EObject current=null] : (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ; |
| public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmTypeReference_0 = null; |
| |
| EObject this_JvmWildcardTypeReference_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9233:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalDataDSL.g:9234:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalDataDSL.g:9234:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt167=2; |
| int LA167_0 = input.LA(1); |
| |
| if ( (LA167_0==RULE_ID||LA167_0==81||LA167_0==106) ) { |
| alt167=1; |
| } |
| else if ( (LA167_0==143) ) { |
| alt167=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 167, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt167) { |
| case 1 : |
| // InternalDataDSL.g:9235:3: this_JvmTypeReference_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmTypeReference_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9244:3: this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmWildcardTypeReference_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmWildcardTypeReference" |
| // InternalDataDSL.g:9256:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9256:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalDataDSL.g:9257:2: iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmWildcardTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmWildcardTypeReference" |
| // InternalDataDSL.g:9263:1: ruleJvmWildcardTypeReference returns [EObject current=null] : ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ; |
| public final EObject ruleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_constraints_2_0 = null; |
| |
| EObject lv_constraints_3_0 = null; |
| |
| EObject lv_constraints_4_0 = null; |
| |
| EObject lv_constraints_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9269:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalDataDSL.g:9270:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalDataDSL.g:9270:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalDataDSL.g:9271:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalDataDSL.g:9271:3: () |
| // InternalDataDSL.g:9272:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,143,FOLLOW_144); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9282:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt170=3; |
| int LA170_0 = input.LA(1); |
| |
| if ( (LA170_0==130) ) { |
| alt170=1; |
| } |
| else if ( (LA170_0==131) ) { |
| alt170=2; |
| } |
| switch (alt170) { |
| case 1 : |
| // InternalDataDSL.g:9283:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalDataDSL.g:9283:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalDataDSL.g:9284:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalDataDSL.g:9284:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalDataDSL.g:9285:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalDataDSL.g:9285:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalDataDSL.g:9286:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| lv_constraints_2_0=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9303:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop168: |
| do { |
| int alt168=2; |
| int LA168_0 = input.LA(1); |
| |
| if ( (LA168_0==144) ) { |
| alt168=1; |
| } |
| |
| |
| switch (alt168) { |
| case 1 : |
| // InternalDataDSL.g:9304:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalDataDSL.g:9304:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalDataDSL.g:9305:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| lv_constraints_3_0=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop168; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9324:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalDataDSL.g:9324:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalDataDSL.g:9325:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalDataDSL.g:9325:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalDataDSL.g:9326:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalDataDSL.g:9326:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalDataDSL.g:9327:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| lv_constraints_4_0=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9344:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop169: |
| do { |
| int alt169=2; |
| int LA169_0 = input.LA(1); |
| |
| if ( (LA169_0==144) ) { |
| alt169=1; |
| } |
| |
| |
| switch (alt169) { |
| case 1 : |
| // InternalDataDSL.g:9345:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalDataDSL.g:9345:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalDataDSL.g:9346:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| lv_constraints_5_0=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_5_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop169; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalDataDSL.g:9369:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9369:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalDataDSL.g:9370:2: iv_ruleJvmUpperBound= ruleJvmUpperBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBound=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBound" |
| |
| |
| // $ANTLR start "ruleJvmUpperBound" |
| // InternalDataDSL.g:9376:1: ruleJvmUpperBound returns [EObject current=null] : (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9382:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:9383:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:9383:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:9384:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,130,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:9388:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:9389:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:9389:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:9390:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBound" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBoundAnded" |
| // InternalDataDSL.g:9411:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9411:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalDataDSL.g:9412:2: iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmUpperBoundAnded" |
| // InternalDataDSL.g:9418:1: ruleJvmUpperBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9424:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:9425:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:9425:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:9426:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,144,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:9430:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:9431:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:9431:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:9432:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBound" |
| // InternalDataDSL.g:9453:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9453:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalDataDSL.g:9454:2: iv_ruleJvmLowerBound= ruleJvmLowerBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBound=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBound" |
| |
| |
| // $ANTLR start "ruleJvmLowerBound" |
| // InternalDataDSL.g:9460:1: ruleJvmLowerBound returns [EObject current=null] : (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9466:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:9467:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:9467:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:9468:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,131,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:9472:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:9473:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:9473:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:9474:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBound" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBoundAnded" |
| // InternalDataDSL.g:9495:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9495:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalDataDSL.g:9496:2: iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmLowerBoundAnded" |
| // InternalDataDSL.g:9502:1: ruleJvmLowerBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9508:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:9509:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:9509:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:9510:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,144,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:9514:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:9515:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:9515:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:9516:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
| // InternalDataDSL.g:9537:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9537:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalDataDSL.g:9538:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameWithWildcard.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "ruleQualifiedNameWithWildcard" |
| // InternalDataDSL.g:9544:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_QualifiedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9550:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalDataDSL.g:9551:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalDataDSL.g:9551:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalDataDSL.g:9552:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_146); |
| this_QualifiedName_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_QualifiedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,74,FOLLOW_147); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "entryRuleValidID" |
| // InternalDataDSL.g:9576:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9576:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalDataDSL.g:9577:2: iv_ruleValidID= ruleValidID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getValidIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleValidID=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleValidID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleValidID" |
| |
| |
| // $ANTLR start "ruleValidID" |
| // InternalDataDSL.g:9583:1: ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleValidID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9589:2: (this_ID_0= RULE_ID ) |
| // InternalDataDSL.g:9590:2: this_ID_0= RULE_ID |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleValidID" |
| |
| |
| // $ANTLR start "entryRuleXImportSection" |
| // InternalDataDSL.g:9600:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9600:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalDataDSL.g:9601:2: iv_ruleXImportSection= ruleXImportSection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportSectionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportSection=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportSection; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportSection" |
| |
| |
| // $ANTLR start "ruleXImportSection" |
| // InternalDataDSL.g:9607:1: ruleXImportSection returns [EObject current=null] : ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ; |
| public final EObject ruleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importDeclarations_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9613:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalDataDSL.g:9614:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalDataDSL.g:9614:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt171=0; |
| loop171: |
| do { |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==75) ) { |
| alt171=1; |
| } |
| |
| |
| switch (alt171) { |
| case 1 : |
| // InternalDataDSL.g:9615:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalDataDSL.g:9615:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalDataDSL.g:9616:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| lv_importDeclarations_0_0=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportSectionRule()); |
| } |
| add( |
| current, |
| "importDeclarations", |
| lv_importDeclarations_0_0, |
| "org.eclipse.osbp.xtext.oxtype.OXtype.XImportDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt171 >= 1 ) break loop171; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(171, input); |
| throw eee; |
| } |
| cnt171++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalDataDSL.g:9636:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalDataDSL.g:9636:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalDataDSL.g:9637:2: iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameInStaticImport.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleQualifiedNameInStaticImport" |
| // InternalDataDSL.g:9643:1: ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID kw= '.' )+ ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameInStaticImport() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9649:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalDataDSL.g:9650:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalDataDSL.g:9650:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt172=0; |
| loop172: |
| do { |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==RULE_ID) ) { |
| int LA172_2 = input.LA(2); |
| |
| if ( (LA172_2==74) ) { |
| alt172=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt172) { |
| case 1 : |
| // InternalDataDSL.g:9651:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_146); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,74,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt172 >= 1 ) break loop172; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(172, input); |
| throw eee; |
| } |
| cnt172++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "rulePredefinedBlobMimeTypeEnum" |
| // InternalDataDSL.g:9670:1: rulePredefinedBlobMimeTypeEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) ; |
| public final Enumerator rulePredefinedBlobMimeTypeEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| Token enumLiteral_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9676:2: ( ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) ) |
| // InternalDataDSL.g:9677:2: ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) |
| { |
| // InternalDataDSL.g:9677:2: ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) |
| int alt173=6; |
| switch ( input.LA(1) ) { |
| case 145: |
| { |
| alt173=1; |
| } |
| break; |
| case 146: |
| { |
| alt173=2; |
| } |
| break; |
| case 147: |
| { |
| alt173=3; |
| } |
| break; |
| case 148: |
| { |
| alt173=4; |
| } |
| break; |
| case 149: |
| { |
| alt173=5; |
| } |
| break; |
| case 150: |
| { |
| alt173=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 173, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt173) { |
| case 1 : |
| // InternalDataDSL.g:9678:3: (enumLiteral_0= 'plain' ) |
| { |
| // InternalDataDSL.g:9678:3: (enumLiteral_0= 'plain' ) |
| // InternalDataDSL.g:9679:4: enumLiteral_0= 'plain' |
| { |
| enumLiteral_0=(Token)match(input,145,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPlainEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPlainEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9686:3: (enumLiteral_1= 'jpg' ) |
| { |
| // InternalDataDSL.g:9686:3: (enumLiteral_1= 'jpg' ) |
| // InternalDataDSL.g:9687:4: enumLiteral_1= 'jpg' |
| { |
| enumLiteral_1=(Token)match(input,146,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getJpgEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getJpgEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:9694:3: (enumLiteral_2= 'png' ) |
| { |
| // InternalDataDSL.g:9694:3: (enumLiteral_2= 'png' ) |
| // InternalDataDSL.g:9695:4: enumLiteral_2= 'png' |
| { |
| enumLiteral_2=(Token)match(input,147,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPngEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPngEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:9702:3: (enumLiteral_3= 'mpeg' ) |
| { |
| // InternalDataDSL.g:9702:3: (enumLiteral_3= 'mpeg' ) |
| // InternalDataDSL.g:9703:4: enumLiteral_3= 'mpeg' |
| { |
| enumLiteral_3=(Token)match(input,148,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getMpegEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getMpegEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:9710:3: (enumLiteral_4= 'octet-stream' ) |
| { |
| // InternalDataDSL.g:9710:3: (enumLiteral_4= 'octet-stream' ) |
| // InternalDataDSL.g:9711:4: enumLiteral_4= 'octet-stream' |
| { |
| enumLiteral_4=(Token)match(input,149,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getOctetstreamEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getOctetstreamEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:9718:3: (enumLiteral_5= 'pdf' ) |
| { |
| // InternalDataDSL.g:9718:3: (enumLiteral_5= 'pdf' ) |
| // InternalDataDSL.g:9719:4: enumLiteral_5= 'pdf' |
| { |
| enumLiteral_5=(Token)match(input,150,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPdfEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getPredefinedBlobMimeTypeEnumAccess().getPdfEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePredefinedBlobMimeTypeEnum" |
| |
| |
| // $ANTLR start "rulePredefinedBeanEnum" |
| // InternalDataDSL.g:9729:1: rulePredefinedBeanEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) ; |
| public final Enumerator rulePredefinedBeanEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9735:2: ( ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) ) |
| // InternalDataDSL.g:9736:2: ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) |
| { |
| // InternalDataDSL.g:9736:2: ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) |
| int alt174=3; |
| switch ( input.LA(1) ) { |
| case 151: |
| { |
| alt174=1; |
| } |
| break; |
| case 152: |
| { |
| alt174=2; |
| } |
| break; |
| case 153: |
| { |
| alt174=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 174, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt174) { |
| case 1 : |
| // InternalDataDSL.g:9737:3: (enumLiteral_0= 'NowDate' ) |
| { |
| // InternalDataDSL.g:9737:3: (enumLiteral_0= 'NowDate' ) |
| // InternalDataDSL.g:9738:4: enumLiteral_0= 'NowDate' |
| { |
| enumLiteral_0=(Token)match(input,151,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanEnumAccess().getNowEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getPredefinedBeanEnumAccess().getNowEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9745:3: (enumLiteral_1= 'StartDate' ) |
| { |
| // InternalDataDSL.g:9745:3: (enumLiteral_1= 'StartDate' ) |
| // InternalDataDSL.g:9746:4: enumLiteral_1= 'StartDate' |
| { |
| enumLiteral_1=(Token)match(input,152,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanEnumAccess().getStartEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getPredefinedBeanEnumAccess().getStartEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:9753:3: (enumLiteral_2= 'UniversallyUniqueIdentifier' ) |
| { |
| // InternalDataDSL.g:9753:3: (enumLiteral_2= 'UniversallyUniqueIdentifier' ) |
| // InternalDataDSL.g:9754:4: enumLiteral_2= 'UniversallyUniqueIdentifier' |
| { |
| enumLiteral_2=(Token)match(input,153,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanEnumAccess().getUUIDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getPredefinedBeanEnumAccess().getUUIDEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePredefinedBeanEnum" |
| |
| |
| // $ANTLR start "rulePredefinedBeanTypeEnum" |
| // InternalDataDSL.g:9764:1: rulePredefinedBeanTypeEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) ; |
| public final Enumerator rulePredefinedBeanTypeEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9770:2: ( ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) ) |
| // InternalDataDSL.g:9771:2: ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) |
| { |
| // InternalDataDSL.g:9771:2: ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) |
| int alt175=5; |
| switch ( input.LA(1) ) { |
| case 154: |
| { |
| alt175=1; |
| } |
| break; |
| case 155: |
| { |
| alt175=2; |
| } |
| break; |
| case 156: |
| { |
| alt175=3; |
| } |
| break; |
| case 157: |
| { |
| alt175=4; |
| } |
| break; |
| case 158: |
| { |
| alt175=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 175, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt175) { |
| case 1 : |
| // InternalDataDSL.g:9772:3: (enumLiteral_0= 'Date' ) |
| { |
| // InternalDataDSL.g:9772:3: (enumLiteral_0= 'Date' ) |
| // InternalDataDSL.g:9773:4: enumLiteral_0= 'Date' |
| { |
| enumLiteral_0=(Token)match(input,154,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanTypeEnumAccess().getDateEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getPredefinedBeanTypeEnumAccess().getDateEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9780:3: (enumLiteral_1= 'Milliseconds' ) |
| { |
| // InternalDataDSL.g:9780:3: (enumLiteral_1= 'Milliseconds' ) |
| // InternalDataDSL.g:9781:4: enumLiteral_1= 'Milliseconds' |
| { |
| enumLiteral_1=(Token)match(input,155,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanTypeEnumAccess().getMillisEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getPredefinedBeanTypeEnumAccess().getMillisEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:9788:3: (enumLiteral_2= 'Nanoseconds' ) |
| { |
| // InternalDataDSL.g:9788:3: (enumLiteral_2= 'Nanoseconds' ) |
| // InternalDataDSL.g:9789:4: enumLiteral_2= 'Nanoseconds' |
| { |
| enumLiteral_2=(Token)match(input,156,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanTypeEnumAccess().getNanosEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getPredefinedBeanTypeEnumAccess().getNanosEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:9796:3: (enumLiteral_3= 'Random' ) |
| { |
| // InternalDataDSL.g:9796:3: (enumLiteral_3= 'Random' ) |
| // InternalDataDSL.g:9797:4: enumLiteral_3= 'Random' |
| { |
| enumLiteral_3=(Token)match(input,157,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanTypeEnumAccess().getRandomEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getPredefinedBeanTypeEnumAccess().getRandomEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:9804:3: (enumLiteral_4= 'ExecuteContext' ) |
| { |
| // InternalDataDSL.g:9804:3: (enumLiteral_4= 'ExecuteContext' ) |
| // InternalDataDSL.g:9805:4: enumLiteral_4= 'ExecuteContext' |
| { |
| enumLiteral_4=(Token)match(input,158,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getPredefinedBeanTypeEnumAccess().getExecContextEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getPredefinedBeanTypeEnumAccess().getExecContextEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePredefinedBeanTypeEnum" |
| |
| |
| // $ANTLR start "ruleEntityManagerMode" |
| // InternalDataDSL.g:9815:1: ruleEntityManagerMode returns [Enumerator current=null] : ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) ; |
| public final Enumerator ruleEntityManagerMode() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9821:2: ( ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) ) |
| // InternalDataDSL.g:9822:2: ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) |
| { |
| // InternalDataDSL.g:9822:2: ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) |
| int alt176=3; |
| switch ( input.LA(1) ) { |
| case 159: |
| { |
| alt176=1; |
| } |
| break; |
| case 160: |
| { |
| alt176=2; |
| } |
| break; |
| case 161: |
| { |
| alt176=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 176, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt176) { |
| case 1 : |
| // InternalDataDSL.g:9823:3: (enumLiteral_0= 'persist' ) |
| { |
| // InternalDataDSL.g:9823:3: (enumLiteral_0= 'persist' ) |
| // InternalDataDSL.g:9824:4: enumLiteral_0= 'persist' |
| { |
| enumLiteral_0=(Token)match(input,159,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEntityManagerModeAccess().getPersistEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getEntityManagerModeAccess().getPersistEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9831:3: (enumLiteral_1= 'merge' ) |
| { |
| // InternalDataDSL.g:9831:3: (enumLiteral_1= 'merge' ) |
| // InternalDataDSL.g:9832:4: enumLiteral_1= 'merge' |
| { |
| enumLiteral_1=(Token)match(input,160,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEntityManagerModeAccess().getMergeEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getEntityManagerModeAccess().getMergeEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:9839:3: (enumLiteral_2= 'remove' ) |
| { |
| // InternalDataDSL.g:9839:3: (enumLiteral_2= 'remove' ) |
| // InternalDataDSL.g:9840:4: enumLiteral_2= 'remove' |
| { |
| enumLiteral_2=(Token)match(input,161,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEntityManagerModeAccess().getRemoveEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getEntityManagerModeAccess().getRemoveEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityManagerMode" |
| |
| |
| // $ANTLR start "ruleConditionAndOperator1" |
| // InternalDataDSL.g:9850:1: ruleConditionAndOperator1 returns [Enumerator current=null] : ( (enumLiteral_0= '=' ) | (enumLiteral_1= '!=' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<' ) | (enumLiteral_5= '<=' ) | (enumLiteral_6= 'isnull' ) | (enumLiteral_7= 'isnotnull' ) ) ; |
| public final Enumerator ruleConditionAndOperator1() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| Token enumLiteral_5=null; |
| Token enumLiteral_6=null; |
| Token enumLiteral_7=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9856:2: ( ( (enumLiteral_0= '=' ) | (enumLiteral_1= '!=' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<' ) | (enumLiteral_5= '<=' ) | (enumLiteral_6= 'isnull' ) | (enumLiteral_7= 'isnotnull' ) ) ) |
| // InternalDataDSL.g:9857:2: ( (enumLiteral_0= '=' ) | (enumLiteral_1= '!=' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<' ) | (enumLiteral_5= '<=' ) | (enumLiteral_6= 'isnull' ) | (enumLiteral_7= 'isnotnull' ) ) |
| { |
| // InternalDataDSL.g:9857:2: ( (enumLiteral_0= '=' ) | (enumLiteral_1= '!=' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<' ) | (enumLiteral_5= '<=' ) | (enumLiteral_6= 'isnull' ) | (enumLiteral_7= 'isnotnull' ) ) |
| int alt177=8; |
| switch ( input.LA(1) ) { |
| case 84: |
| { |
| alt177=1; |
| } |
| break; |
| case 99: |
| { |
| alt177=2; |
| } |
| break; |
| case 94: |
| { |
| alt177=3; |
| } |
| break; |
| case 95: |
| { |
| alt177=4; |
| } |
| break; |
| case 93: |
| { |
| alt177=5; |
| } |
| break; |
| case 162: |
| { |
| alt177=6; |
| } |
| break; |
| case 163: |
| { |
| alt177=7; |
| } |
| break; |
| case 164: |
| { |
| alt177=8; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 177, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt177) { |
| case 1 : |
| // InternalDataDSL.g:9858:3: (enumLiteral_0= '=' ) |
| { |
| // InternalDataDSL.g:9858:3: (enumLiteral_0= '=' ) |
| // InternalDataDSL.g:9859:4: enumLiteral_0= '=' |
| { |
| enumLiteral_0=(Token)match(input,84,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getEqualsEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getConditionAndOperator1Access().getEqualsEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9866:3: (enumLiteral_1= '!=' ) |
| { |
| // InternalDataDSL.g:9866:3: (enumLiteral_1= '!=' ) |
| // InternalDataDSL.g:9867:4: enumLiteral_1= '!=' |
| { |
| enumLiteral_1=(Token)match(input,99,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getNotequalsEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getConditionAndOperator1Access().getNotequalsEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:9874:3: (enumLiteral_2= '>' ) |
| { |
| // InternalDataDSL.g:9874:3: (enumLiteral_2= '>' ) |
| // InternalDataDSL.g:9875:4: enumLiteral_2= '>' |
| { |
| enumLiteral_2=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getGreaterthenEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getConditionAndOperator1Access().getGreaterthenEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:9882:3: (enumLiteral_3= '>=' ) |
| { |
| // InternalDataDSL.g:9882:3: (enumLiteral_3= '>=' ) |
| // InternalDataDSL.g:9883:4: enumLiteral_3= '>=' |
| { |
| enumLiteral_3=(Token)match(input,95,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getGreaterthenorequaltoEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getConditionAndOperator1Access().getGreaterthenorequaltoEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:9890:3: (enumLiteral_4= '<' ) |
| { |
| // InternalDataDSL.g:9890:3: (enumLiteral_4= '<' ) |
| // InternalDataDSL.g:9891:4: enumLiteral_4= '<' |
| { |
| enumLiteral_4=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getLessthenEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getConditionAndOperator1Access().getLessthenEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:9898:3: (enumLiteral_5= '<=' ) |
| { |
| // InternalDataDSL.g:9898:3: (enumLiteral_5= '<=' ) |
| // InternalDataDSL.g:9899:4: enumLiteral_5= '<=' |
| { |
| enumLiteral_5=(Token)match(input,162,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getLessthenorequaltoEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getConditionAndOperator1Access().getLessthenorequaltoEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:9906:3: (enumLiteral_6= 'isnull' ) |
| { |
| // InternalDataDSL.g:9906:3: (enumLiteral_6= 'isnull' ) |
| // InternalDataDSL.g:9907:4: enumLiteral_6= 'isnull' |
| { |
| enumLiteral_6=(Token)match(input,163,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getIsnullEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getConditionAndOperator1Access().getIsnullEnumLiteralDeclaration_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalDataDSL.g:9914:3: (enumLiteral_7= 'isnotnull' ) |
| { |
| // InternalDataDSL.g:9914:3: (enumLiteral_7= 'isnotnull' ) |
| // InternalDataDSL.g:9915:4: enumLiteral_7= 'isnotnull' |
| { |
| enumLiteral_7=(Token)match(input,164,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator1Access().getIsnotnullEnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getConditionAndOperator1Access().getIsnotnullEnumLiteralDeclaration_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleConditionAndOperator1" |
| |
| |
| // $ANTLR start "ruleConditionAndOperator2" |
| // InternalDataDSL.g:9925:1: ruleConditionAndOperator2 returns [Enumerator current=null] : ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) ; |
| public final Enumerator ruleConditionAndOperator2() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:9931:2: ( ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) ) |
| // InternalDataDSL.g:9932:2: ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) |
| { |
| // InternalDataDSL.g:9932:2: ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) |
| int alt178=2; |
| int LA178_0 = input.LA(1); |
| |
| if ( (LA178_0==165) ) { |
| alt178=1; |
| } |
| else if ( (LA178_0==166) ) { |
| alt178=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 178, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt178) { |
| case 1 : |
| // InternalDataDSL.g:9933:3: (enumLiteral_0= 'and' ) |
| { |
| // InternalDataDSL.g:9933:3: (enumLiteral_0= 'and' ) |
| // InternalDataDSL.g:9934:4: enumLiteral_0= 'and' |
| { |
| enumLiteral_0=(Token)match(input,165,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator2Access().getAndEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getConditionAndOperator2Access().getAndEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9941:3: (enumLiteral_1= 'or' ) |
| { |
| // InternalDataDSL.g:9941:3: (enumLiteral_1= 'or' ) |
| // InternalDataDSL.g:9942:4: enumLiteral_1= 'or' |
| { |
| enumLiteral_1=(Token)match(input,166,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getConditionAndOperator2Access().getOrEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getConditionAndOperator2Access().getOrEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleConditionAndOperator2" |
| |
| // $ANTLR start synpred1_InternalDataDSL |
| public final void synpred1_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3046:5: ( '(' ) |
| // InternalDataDSL.g:3046:6: '(' |
| { |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalDataDSL |
| |
| // $ANTLR start synpred2_InternalDataDSL |
| public final void synpred2_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3055:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalDataDSL.g:3055:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalDataDSL.g:3055:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalDataDSL.g:3056:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalDataDSL.g:3056:8: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:3057:9: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:3057:9: ( ruleValidID ) |
| // InternalDataDSL.g:3058:10: ruleValidID |
| { |
| pushFollow(FOLLOW_77); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,84,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalDataDSL |
| |
| // $ANTLR start synpred5_InternalDataDSL |
| public final void synpred5_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3235:5: ( ( () '#' '[' ) ) |
| // InternalDataDSL.g:3235:6: ( () '#' '[' ) |
| { |
| // InternalDataDSL.g:3235:6: ( () '#' '[' ) |
| // InternalDataDSL.g:3236:6: () '#' '[' |
| { |
| // InternalDataDSL.g:3236:6: () |
| // InternalDataDSL.g:3237:6: |
| { |
| } |
| |
| match(input,85,FOLLOW_79); if (state.failed) return ; |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalDataDSL |
| |
| // $ANTLR start synpred6_InternalDataDSL |
| public final void synpred6_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3377:5: ( ( () '#' '[' ) ) |
| // InternalDataDSL.g:3377:6: ( () '#' '[' ) |
| { |
| // InternalDataDSL.g:3377:6: ( () '#' '[' ) |
| // InternalDataDSL.g:3378:6: () '#' '[' |
| { |
| // InternalDataDSL.g:3378:6: () |
| // InternalDataDSL.g:3379:6: |
| { |
| } |
| |
| match(input,85,FOLLOW_79); if (state.failed) return ; |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalDataDSL |
| |
| // $ANTLR start synpred7_InternalDataDSL |
| public final void synpred7_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3605:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDataDSL.g:3605:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDataDSL.g:3605:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDataDSL.g:3606:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDataDSL.g:3606:7: () |
| // InternalDataDSL.g:3607:7: |
| { |
| } |
| |
| // InternalDataDSL.g:3608:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDataDSL.g:3609:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDataDSL.g:3609:8: ( ruleOpMultiAssign ) |
| // InternalDataDSL.g:3610:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalDataDSL |
| |
| // $ANTLR start synpred8_InternalDataDSL |
| public final void synpred8_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3799:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDataDSL.g:3799:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDataDSL.g:3799:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalDataDSL.g:3800:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDataDSL.g:3800:6: () |
| // InternalDataDSL.g:3801:6: |
| { |
| } |
| |
| // InternalDataDSL.g:3802:6: ( ( ruleOpOr ) ) |
| // InternalDataDSL.g:3803:7: ( ruleOpOr ) |
| { |
| // InternalDataDSL.g:3803:7: ( ruleOpOr ) |
| // InternalDataDSL.g:3804:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalDataDSL |
| |
| // $ANTLR start synpred9_InternalDataDSL |
| public final void synpred9_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:3906:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDataDSL.g:3906:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDataDSL.g:3906:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDataDSL.g:3907:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDataDSL.g:3907:6: () |
| // InternalDataDSL.g:3908:6: |
| { |
| } |
| |
| // InternalDataDSL.g:3909:6: ( ( ruleOpAnd ) ) |
| // InternalDataDSL.g:3910:7: ( ruleOpAnd ) |
| { |
| // InternalDataDSL.g:3910:7: ( ruleOpAnd ) |
| // InternalDataDSL.g:3911:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalDataDSL |
| |
| // $ANTLR start synpred10_InternalDataDSL |
| public final void synpred10_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4013:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDataDSL.g:4013:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDataDSL.g:4013:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDataDSL.g:4014:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDataDSL.g:4014:6: () |
| // InternalDataDSL.g:4015:6: |
| { |
| } |
| |
| // InternalDataDSL.g:4016:6: ( ( ruleOpEquality ) ) |
| // InternalDataDSL.g:4017:7: ( ruleOpEquality ) |
| { |
| // InternalDataDSL.g:4017:7: ( ruleOpEquality ) |
| // InternalDataDSL.g:4018:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalDataDSL |
| |
| // $ANTLR start synpred11_InternalDataDSL |
| public final void synpred11_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4141:6: ( ( () 'instanceof' ) ) |
| // InternalDataDSL.g:4141:7: ( () 'instanceof' ) |
| { |
| // InternalDataDSL.g:4141:7: ( () 'instanceof' ) |
| // InternalDataDSL.g:4142:7: () 'instanceof' |
| { |
| // InternalDataDSL.g:4142:7: () |
| // InternalDataDSL.g:4143:7: |
| { |
| } |
| |
| match(input,102,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalDataDSL |
| |
| // $ANTLR start synpred12_InternalDataDSL |
| public final void synpred12_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4184:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDataDSL.g:4184:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDataDSL.g:4184:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDataDSL.g:4185:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDataDSL.g:4185:7: () |
| // InternalDataDSL.g:4186:7: |
| { |
| } |
| |
| // InternalDataDSL.g:4187:7: ( ( ruleOpCompare ) ) |
| // InternalDataDSL.g:4188:8: ( ruleOpCompare ) |
| { |
| // InternalDataDSL.g:4188:8: ( ruleOpCompare ) |
| // InternalDataDSL.g:4189:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalDataDSL |
| |
| // $ANTLR start synpred13_InternalDataDSL |
| public final void synpred13_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4319:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDataDSL.g:4319:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDataDSL.g:4319:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalDataDSL.g:4320:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDataDSL.g:4320:6: () |
| // InternalDataDSL.g:4321:6: |
| { |
| } |
| |
| // InternalDataDSL.g:4322:6: ( ( ruleOpOther ) ) |
| // InternalDataDSL.g:4323:7: ( ruleOpOther ) |
| { |
| // InternalDataDSL.g:4323:7: ( ruleOpOther ) |
| // InternalDataDSL.g:4324:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalDataDSL |
| |
| // $ANTLR start synpred14_InternalDataDSL |
| public final void synpred14_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4439:6: ( ( '>' '>' ) ) |
| // InternalDataDSL.g:4439:7: ( '>' '>' ) |
| { |
| // InternalDataDSL.g:4439:7: ( '>' '>' ) |
| // InternalDataDSL.g:4440:7: '>' '>' |
| { |
| match(input,94,FOLLOW_94); if (state.failed) return ; |
| match(input,94,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalDataDSL |
| |
| // $ANTLR start synpred15_InternalDataDSL |
| public final void synpred15_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4474:6: ( ( '<' '<' ) ) |
| // InternalDataDSL.g:4474:7: ( '<' '<' ) |
| { |
| // InternalDataDSL.g:4474:7: ( '<' '<' ) |
| // InternalDataDSL.g:4475:7: '<' '<' |
| { |
| match(input,93,FOLLOW_84); if (state.failed) return ; |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalDataDSL |
| |
| // $ANTLR start synpred16_InternalDataDSL |
| public final void synpred16_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4547:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDataDSL.g:4547:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDataDSL.g:4547:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDataDSL.g:4548:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDataDSL.g:4548:6: () |
| // InternalDataDSL.g:4549:6: |
| { |
| } |
| |
| // InternalDataDSL.g:4550:6: ( ( ruleOpAdd ) ) |
| // InternalDataDSL.g:4551:7: ( ruleOpAdd ) |
| { |
| // InternalDataDSL.g:4551:7: ( ruleOpAdd ) |
| // InternalDataDSL.g:4552:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalDataDSL |
| |
| // $ANTLR start synpred17_InternalDataDSL |
| public final void synpred17_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4662:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDataDSL.g:4662:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDataDSL.g:4662:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDataDSL.g:4663:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDataDSL.g:4663:6: () |
| // InternalDataDSL.g:4664:6: |
| { |
| } |
| |
| // InternalDataDSL.g:4665:6: ( ( ruleOpMulti ) ) |
| // InternalDataDSL.g:4666:7: ( ruleOpMulti ) |
| { |
| // InternalDataDSL.g:4666:7: ( ruleOpMulti ) |
| // InternalDataDSL.g:4667:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalDataDSL |
| |
| // $ANTLR start synpred18_InternalDataDSL |
| public final void synpred18_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4897:5: ( ( () 'as' ) ) |
| // InternalDataDSL.g:4897:6: ( () 'as' ) |
| { |
| // InternalDataDSL.g:4897:6: ( () 'as' ) |
| // InternalDataDSL.g:4898:6: () 'as' |
| { |
| // InternalDataDSL.g:4898:6: () |
| // InternalDataDSL.g:4899:6: |
| { |
| } |
| |
| match(input,68,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalDataDSL |
| |
| // $ANTLR start synpred19_InternalDataDSL |
| public final void synpred19_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4965:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalDataDSL.g:4965:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDataDSL.g:4965:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDataDSL.g:4966:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDataDSL.g:4966:5: () |
| // InternalDataDSL.g:4967:5: |
| { |
| } |
| |
| // InternalDataDSL.g:4968:5: ( ( ruleOpPostfix ) ) |
| // InternalDataDSL.g:4969:6: ( ruleOpPostfix ) |
| { |
| // InternalDataDSL.g:4969:6: ( ruleOpPostfix ) |
| // InternalDataDSL.g:4970:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalDataDSL |
| |
| // $ANTLR start synpred20_InternalDataDSL |
| public final void synpred20_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5061:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDataDSL.g:5061:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDataDSL.g:5061:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDataDSL.g:5062:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDataDSL.g:5062:7: () |
| // InternalDataDSL.g:5063:7: |
| { |
| } |
| |
| // InternalDataDSL.g:5064:7: ( '.' | ( ( '::' ) ) ) |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==74) ) { |
| alt179=1; |
| } |
| else if ( (LA179_0==117) ) { |
| alt179=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 179, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt179) { |
| case 1 : |
| // InternalDataDSL.g:5065:8: '.' |
| { |
| match(input,74,FOLLOW_101); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5067:8: ( ( '::' ) ) |
| { |
| // InternalDataDSL.g:5067:8: ( ( '::' ) ) |
| // InternalDataDSL.g:5068:9: ( '::' ) |
| { |
| // InternalDataDSL.g:5068:9: ( '::' ) |
| // InternalDataDSL.g:5069:10: '::' |
| { |
| match(input,117,FOLLOW_101); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5073:7: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:5074:8: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:5074:8: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:5075:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_77); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalDataDSL |
| |
| // $ANTLR start synpred21_InternalDataDSL |
| public final void synpred21_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5158:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalDataDSL.g:5158:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalDataDSL.g:5158:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalDataDSL.g:5159:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalDataDSL.g:5159:7: () |
| // InternalDataDSL.g:5160:7: |
| { |
| } |
| |
| // InternalDataDSL.g:5161:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt180=3; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| alt180=1; |
| } |
| break; |
| case 118: |
| { |
| alt180=2; |
| } |
| break; |
| case 117: |
| { |
| alt180=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 180, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt180) { |
| case 1 : |
| // InternalDataDSL.g:5162:8: '.' |
| { |
| match(input,74,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:5164:8: ( ( '?.' ) ) |
| { |
| // InternalDataDSL.g:5164:8: ( ( '?.' ) ) |
| // InternalDataDSL.g:5165:9: ( '?.' ) |
| { |
| // InternalDataDSL.g:5165:9: ( '?.' ) |
| // InternalDataDSL.g:5166:10: '?.' |
| { |
| match(input,118,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:5170:8: ( ( '::' ) ) |
| { |
| // InternalDataDSL.g:5170:8: ( ( '::' ) ) |
| // InternalDataDSL.g:5171:9: ( '::' ) |
| { |
| // InternalDataDSL.g:5171:9: ( '::' ) |
| // InternalDataDSL.g:5172:10: '::' |
| { |
| match(input,117,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalDataDSL |
| |
| // $ANTLR start synpred22_InternalDataDSL |
| public final void synpred22_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5296:7: ( ( '(' ) ) |
| // InternalDataDSL.g:5296:8: ( '(' ) |
| { |
| // InternalDataDSL.g:5296:8: ( '(' ) |
| // InternalDataDSL.g:5297:8: '(' |
| { |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalDataDSL |
| |
| // $ANTLR start synpred23_InternalDataDSL |
| public final void synpred23_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5315:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:5315:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:5315:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:5316:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:5316:9: () |
| // InternalDataDSL.g:5317:9: |
| { |
| } |
| |
| // InternalDataDSL.g:5318:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==RULE_ID||LA182_0==81||LA182_0==106) ) { |
| alt182=1; |
| } |
| switch (alt182) { |
| case 1 : |
| // InternalDataDSL.g:5319:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:5319:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5320:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5320:11: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5321:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5324:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop181: |
| do { |
| int alt181=2; |
| int LA181_0 = input.LA(1); |
| |
| if ( (LA181_0==82) ) { |
| alt181=1; |
| } |
| |
| |
| switch (alt181) { |
| case 1 : |
| // InternalDataDSL.g:5325:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,82,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:5326:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5327:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5327:12: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5328:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop181; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5333:9: ( ( '|' ) ) |
| // InternalDataDSL.g:5334:10: ( '|' ) |
| { |
| // InternalDataDSL.g:5334:10: ( '|' ) |
| // InternalDataDSL.g:5335:11: '|' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalDataDSL |
| |
| // $ANTLR start synpred24_InternalDataDSL |
| public final void synpred24_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5412:6: ( ( () '[' ) ) |
| // InternalDataDSL.g:5412:7: ( () '[' ) |
| { |
| // InternalDataDSL.g:5412:7: ( () '[' ) |
| // InternalDataDSL.g:5413:7: () '[' |
| { |
| // InternalDataDSL.g:5413:7: () |
| // InternalDataDSL.g:5414:7: |
| { |
| } |
| |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalDataDSL |
| |
| // $ANTLR start synpred25_InternalDataDSL |
| public final void synpred25_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5485:4: ( ( () 'synchronized' '(' ) ) |
| // InternalDataDSL.g:5485:5: ( () 'synchronized' '(' ) |
| { |
| // InternalDataDSL.g:5485:5: ( () 'synchronized' '(' ) |
| // InternalDataDSL.g:5486:5: () 'synchronized' '(' |
| { |
| // InternalDataDSL.g:5486:5: () |
| // InternalDataDSL.g:5487:5: |
| { |
| } |
| |
| match(input,141,FOLLOW_116); if (state.failed) return ; |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalDataDSL |
| |
| // $ANTLR start synpred26_InternalDataDSL |
| public final void synpred26_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5530:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:5530:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:5530:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:5531:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDataDSL.g:5531:5: () |
| // InternalDataDSL.g:5532:5: |
| { |
| } |
| |
| match(input,50,FOLLOW_116); if (state.failed) return ; |
| match(input,81,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:5535:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5536:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5536:6: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5537:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_119); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,123,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalDataDSL |
| |
| // $ANTLR start synpred27_InternalDataDSL |
| public final void synpred27_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5644:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:5644:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:5644:5: ( () '[' ) |
| // InternalDataDSL.g:5645:5: () '[' |
| { |
| // InternalDataDSL.g:5645:5: () |
| // InternalDataDSL.g:5646:5: |
| { |
| } |
| |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalDataDSL |
| |
| // $ANTLR start synpred29_InternalDataDSL |
| public final void synpred29_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5949:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:5949:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:5949:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:5950:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:5950:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt184=2; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==RULE_ID||LA184_0==81||LA184_0==106) ) { |
| alt184=1; |
| } |
| switch (alt184) { |
| case 1 : |
| // InternalDataDSL.g:5951:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:5951:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5952:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5952:7: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5953:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5956:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop183: |
| do { |
| int alt183=2; |
| int LA183_0 = input.LA(1); |
| |
| if ( (LA183_0==82) ) { |
| alt183=1; |
| } |
| |
| |
| switch (alt183) { |
| case 1 : |
| // InternalDataDSL.g:5957:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,82,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:5958:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:5959:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:5959:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:5960:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop183; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:5965:5: ( ( '|' ) ) |
| // InternalDataDSL.g:5966:6: ( '|' ) |
| { |
| // InternalDataDSL.g:5966:6: ( '|' ) |
| // InternalDataDSL.g:5967:7: '|' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalDataDSL |
| |
| // $ANTLR start synpred31_InternalDataDSL |
| public final void synpred31_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6358:5: ( 'else' ) |
| // InternalDataDSL.g:6358:6: 'else' |
| { |
| match(input,121,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalDataDSL |
| |
| // $ANTLR start synpred32_InternalDataDSL |
| public final void synpred32_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6417:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:6417:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:6417:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:6418:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,81,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:6419:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6420:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6420:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6421:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_119); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,123,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalDataDSL |
| |
| // $ANTLR start synpred33_InternalDataDSL |
| public final void synpred33_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6484:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:6484:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:6484:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:6485:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDataDSL.g:6485:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6486:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6486:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6487:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_119); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,123,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalDataDSL |
| |
| // $ANTLR start synpred35_InternalDataDSL |
| public final void synpred35_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7302:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalDataDSL.g:7302:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:7302:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalDataDSL.g:7303:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalDataDSL.g:7303:6: ( ( ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:7304:7: ( ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:7304:7: ( ruleJvmTypeReference ) |
| // InternalDataDSL.g:7305:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7308:6: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:7309:7: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:7309:7: ( ruleValidID ) |
| // InternalDataDSL.g:7310:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalDataDSL |
| |
| // $ANTLR start synpred36_InternalDataDSL |
| public final void synpred36_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7614:5: ( ( '(' ) ) |
| // InternalDataDSL.g:7614:6: ( '(' ) |
| { |
| // InternalDataDSL.g:7614:6: ( '(' ) |
| // InternalDataDSL.g:7615:6: '(' |
| { |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalDataDSL |
| |
| // $ANTLR start synpred37_InternalDataDSL |
| public final void synpred37_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7633:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:7633:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:7633:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:7634:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:7634:7: () |
| // InternalDataDSL.g:7635:7: |
| { |
| } |
| |
| // InternalDataDSL.g:7636:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt188=2; |
| int LA188_0 = input.LA(1); |
| |
| if ( (LA188_0==RULE_ID||LA188_0==81||LA188_0==106) ) { |
| alt188=1; |
| } |
| switch (alt188) { |
| case 1 : |
| // InternalDataDSL.g:7637:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:7637:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7638:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7638:9: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7639:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7642:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop187: |
| do { |
| int alt187=2; |
| int LA187_0 = input.LA(1); |
| |
| if ( (LA187_0==82) ) { |
| alt187=1; |
| } |
| |
| |
| switch (alt187) { |
| case 1 : |
| // InternalDataDSL.g:7643:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,82,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:7644:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7645:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7645:10: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7646:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop187; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7651:7: ( ( '|' ) ) |
| // InternalDataDSL.g:7652:8: ( '|' ) |
| { |
| // InternalDataDSL.g:7652:8: ( '|' ) |
| // InternalDataDSL.g:7653:9: '|' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalDataDSL |
| |
| // $ANTLR start synpred38_InternalDataDSL |
| public final void synpred38_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7730:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:7730:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:7730:5: ( () '[' ) |
| // InternalDataDSL.g:7731:5: () '[' |
| { |
| // InternalDataDSL.g:7731:5: () |
| // InternalDataDSL.g:7732:5: |
| { |
| } |
| |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalDataDSL |
| |
| // $ANTLR start synpred39_InternalDataDSL |
| public final void synpred39_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7890:5: ( '<' ) |
| // InternalDataDSL.g:7890:6: '<' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalDataDSL |
| |
| // $ANTLR start synpred40_InternalDataDSL |
| public final void synpred40_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7947:5: ( ( '(' ) ) |
| // InternalDataDSL.g:7947:6: ( '(' ) |
| { |
| // InternalDataDSL.g:7947:6: ( '(' ) |
| // InternalDataDSL.g:7948:6: '(' |
| { |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalDataDSL |
| |
| // $ANTLR start synpred41_InternalDataDSL |
| public final void synpred41_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7966:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:7966:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:7966:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:7967:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:7967:7: () |
| // InternalDataDSL.g:7968:7: |
| { |
| } |
| |
| // InternalDataDSL.g:7969:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==RULE_ID||LA190_0==81||LA190_0==106) ) { |
| alt190=1; |
| } |
| switch (alt190) { |
| case 1 : |
| // InternalDataDSL.g:7970:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:7970:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7971:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7971:9: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7972:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7975:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop189: |
| do { |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==82) ) { |
| alt189=1; |
| } |
| |
| |
| switch (alt189) { |
| case 1 : |
| // InternalDataDSL.g:7976:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,82,FOLLOW_91); if (state.failed) return ; |
| // InternalDataDSL.g:7977:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7978:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7978:10: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7979:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_111); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop189; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7984:7: ( ( '|' ) ) |
| // InternalDataDSL.g:7985:8: ( '|' ) |
| { |
| // InternalDataDSL.g:7985:8: ( '|' ) |
| // InternalDataDSL.g:7986:9: '|' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalDataDSL |
| |
| // $ANTLR start synpred42_InternalDataDSL |
| public final void synpred42_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8063:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:8063:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:8063:5: ( () '[' ) |
| // InternalDataDSL.g:8064:5: () '[' |
| { |
| // InternalDataDSL.g:8064:5: () |
| // InternalDataDSL.g:8065:5: |
| { |
| } |
| |
| match(input,86,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalDataDSL |
| |
| // $ANTLR start synpred43_InternalDataDSL |
| public final void synpred43_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8406:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING ) |
| // InternalDataDSL.g: |
| { |
| if ( (input.LA(1)>=RULE_STRING && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==15||input.LA(1)==50||input.LA(1)==72||(input.LA(1)>=75 && input.LA(1)<=76)||input.LA(1)==81||(input.LA(1)>=85 && input.LA(1)<=86)||input.LA(1)==93||(input.LA(1)>=109 && input.LA(1)<=110)||input.LA(1)==114||input.LA(1)==120||input.LA(1)==122||(input.LA(1)>=126 && input.LA(1)<=127)||(input.LA(1)>=130 && input.LA(1)<=139)||input.LA(1)==141 ) { |
| input.consume(); |
| state.errorRecovery=false;state.failed=false; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| MismatchedSetException mse = new MismatchedSetException(null,input); |
| throw mse; |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred43_InternalDataDSL |
| |
| // $ANTLR start synpred44_InternalDataDSL |
| public final void synpred44_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8477:6: ( 'catch' ) |
| // InternalDataDSL.g:8477:7: 'catch' |
| { |
| match(input,142,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalDataDSL |
| |
| // $ANTLR start synpred45_InternalDataDSL |
| public final void synpred45_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8498:7: ( 'finally' ) |
| // InternalDataDSL.g:8498:8: 'finally' |
| { |
| match(input,140,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalDataDSL |
| |
| // $ANTLR start synpred48_InternalDataDSL |
| public final void synpred48_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8742:5: ( '.' ) |
| // InternalDataDSL.g:8742:6: '.' |
| { |
| match(input,74,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalDataDSL |
| |
| // $ANTLR start synpred49_InternalDataDSL |
| public final void synpred49_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8868:5: ( ( () ruleArrayBrackets ) ) |
| // InternalDataDSL.g:8868:6: ( () ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:8868:6: ( () ruleArrayBrackets ) |
| // InternalDataDSL.g:8869:6: () ruleArrayBrackets |
| { |
| // InternalDataDSL.g:8869:6: () |
| // InternalDataDSL.g:8870:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalDataDSL |
| |
| // $ANTLR start synpred50_InternalDataDSL |
| public final void synpred50_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9065:5: ( '<' ) |
| // InternalDataDSL.g:9065:6: '<' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalDataDSL |
| |
| // $ANTLR start synpred51_InternalDataDSL |
| public final void synpred51_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9121:6: ( ( () '.' ) ) |
| // InternalDataDSL.g:9121:7: ( () '.' ) |
| { |
| // InternalDataDSL.g:9121:7: ( () '.' ) |
| // InternalDataDSL.g:9122:7: () '.' |
| { |
| // InternalDataDSL.g:9122:7: () |
| // InternalDataDSL.g:9123:7: |
| { |
| } |
| |
| match(input,74,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalDataDSL |
| |
| // $ANTLR start synpred52_InternalDataDSL |
| public final void synpred52_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9159:7: ( '<' ) |
| // InternalDataDSL.g:9159:8: '<' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalDataDSL |
| |
| // Delegated rules |
| |
| public final boolean synpred31_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred27_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred50_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred12_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred15_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred24_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred39_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred36_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred41_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalDataDSL_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_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred48_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred33_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred17_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalDataDSL_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_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred45_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred32_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred26_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred11_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred14_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred20_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred29_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred51_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred19_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred23_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred6_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred9_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred42_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalDataDSL_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_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred35_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred16_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred1_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred13_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred44_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred52_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred21_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred22_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred25_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred18_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred40_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred49_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred43_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred8_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred37_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred2_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalDataDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred5_InternalDataDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalDataDSL_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 DFA52 dfa52 = new DFA52(this); |
| protected DFA55 dfa55 = new DFA55(this); |
| protected DFA61 dfa61 = new DFA61(this); |
| protected DFA64 dfa64 = new DFA64(this); |
| protected DFA66 dfa66 = new DFA66(this); |
| protected DFA76 dfa76 = new DFA76(this); |
| protected DFA79 dfa79 = new DFA79(this); |
| protected DFA95 dfa95 = new DFA95(this); |
| protected DFA94 dfa94 = new DFA94(this); |
| protected DFA96 dfa96 = new DFA96(this); |
| protected DFA98 dfa98 = new DFA98(this); |
| protected DFA107 dfa107 = new DFA107(this); |
| protected DFA114 dfa114 = new DFA114(this); |
| protected DFA113 dfa113 = new DFA113(this); |
| protected DFA136 dfa136 = new DFA136(this); |
| protected DFA135 dfa135 = new DFA135(this); |
| protected DFA137 dfa137 = new DFA137(this); |
| protected DFA141 dfa141 = new DFA141(this); |
| protected DFA144 dfa144 = new DFA144(this); |
| protected DFA143 dfa143 = new DFA143(this); |
| protected DFA145 dfa145 = new DFA145(this); |
| protected DFA148 dfa148 = new DFA148(this); |
| protected DFA166 dfa166 = new DFA166(this); |
| protected DFA164 dfa164 = new DFA164(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\4\uffff\1\5"; |
| static final String dfa_3s = "\1\6\1\uffff\1\15\1\uffff\1\6\2\uffff\1\15"; |
| static final String dfa_4s = "\1\116\1\uffff\1\117\1\uffff\1\115\2\uffff\1\117"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\3\1\uffff"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\105\uffff\1\1\1\uffff\1\3", |
| "", |
| "\1\5\74\uffff\1\4\1\5\3\uffff\1\5", |
| "", |
| "\1\7\106\uffff\1\6", |
| "", |
| "", |
| "\1\5\74\uffff\1\4\1\5\3\uffff\1\5" |
| }; |
| |
| 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 DFA52 extends DFA { |
| |
| public DFA52(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 52; |
| 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 "2835:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) )"; |
| } |
| } |
| static final String dfa_8s = "\44\uffff"; |
| static final String dfa_9s = "\1\4\1\0\42\uffff"; |
| static final String dfa_10s = "\1\u008d\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\2\2\1\1\2\2\6\uffff\1\2\42\uffff\1\2\25\uffff\1\2\2\uffff\2\2\3\uffff\2\2\1\uffff\1\42\1\uffff\2\2\6\uffff\1\2\17\uffff\2\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\2\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); |
| static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); |
| static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); |
| static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); |
| static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); |
| static final short[][] dfa_13 = unpackEncodedStringArray(dfa_13s); |
| |
| class DFA55 extends DFA { |
| |
| public DFA55(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 55; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_9; |
| this.max = dfa_10; |
| this.accept = dfa_11; |
| this.special = dfa_12; |
| this.transition = dfa_13; |
| } |
| public String getDescription() { |
| return "3052:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA55_1 = input.LA(1); |
| |
| |
| int index55_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalDataDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index55_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 55, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_14s = "\43\uffff"; |
| static final String dfa_15s = "\1\4\1\0\41\uffff"; |
| static final String dfa_16s = "\1\u008d\1\0\41\uffff"; |
| static final String dfa_17s = "\2\uffff\1\2\37\uffff\1\1"; |
| static final String dfa_18s = "\1\uffff\1\0\41\uffff}>"; |
| static final String[] dfa_19s = { |
| "\5\2\6\uffff\1\2\42\uffff\1\2\25\uffff\1\2\2\uffff\2\2\3\uffff\2\2\3\uffff\1\1\1\2\6\uffff\1\2\17\uffff\2\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\2\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_14 = DFA.unpackEncodedString(dfa_14s); |
| static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); |
| static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); |
| static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); |
| static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); |
| static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); |
| |
| class DFA61 extends DFA { |
| |
| public DFA61(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 61; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "3232:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA61_1 = input.LA(1); |
| |
| |
| int index61_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalDataDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index61_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 61, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA64 extends DFA { |
| |
| public DFA64(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 64; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "3374:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA64_1 = input.LA(1); |
| |
| |
| int index64_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalDataDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index64_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 64, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_20s = "\12\uffff"; |
| static final String dfa_21s = "\1\10\11\uffff"; |
| static final String dfa_22s = "\1\4\7\0\2\uffff"; |
| static final String dfa_23s = "\1\u008e\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\6\uffff\2\10\41\uffff\1\10\21\uffff\1\10\3\uffff\1\10\1\uffff\4\10\1\uffff\1\10\1\uffff\3\10\1\uffff\3\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\30\10\1\uffff\27\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); |
| static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s); |
| static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); |
| static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s); |
| static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); |
| static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s); |
| static final short[][] dfa_26 = unpackEncodedStringArray(dfa_26s); |
| |
| class DFA66 extends DFA { |
| |
| public DFA66(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 66; |
| this.eot = dfa_20; |
| this.eof = dfa_21; |
| this.min = dfa_22; |
| this.max = dfa_23; |
| this.accept = dfa_24; |
| this.special = dfa_25; |
| this.transition = dfa_26; |
| } |
| public String getDescription() { |
| return "3603:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA66_1 = input.LA(1); |
| |
| |
| int index66_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA66_2 = input.LA(1); |
| |
| |
| int index66_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA66_3 = input.LA(1); |
| |
| |
| int index66_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA66_4 = input.LA(1); |
| |
| |
| int index66_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA66_5 = input.LA(1); |
| |
| |
| int index66_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA66_6 = input.LA(1); |
| |
| |
| int index66_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA66_7 = input.LA(1); |
| |
| |
| int index66_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index66_7); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 66, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_27s = "\13\uffff"; |
| static final String dfa_28s = "\1\1\12\uffff"; |
| static final String dfa_29s = "\1\4\1\uffff\10\0\1\uffff"; |
| static final String dfa_30s = "\1\u008e\1\uffff\10\0\1\uffff"; |
| static final String dfa_31s = "\1\uffff\1\2\10\uffff\1\1"; |
| static final String dfa_32s = "\2\uffff\1\5\1\1\1\6\1\7\1\4\1\0\1\2\1\3\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\6\uffff\2\1\41\uffff\1\1\21\uffff\1\1\3\uffff\1\1\1\uffff\4\1\1\uffff\1\1\1\uffff\3\1\1\uffff\10\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\12\1\1\uffff\27\1", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "" |
| }; |
| |
| static final short[] dfa_27 = DFA.unpackEncodedString(dfa_27s); |
| static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s); |
| static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s); |
| static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s); |
| static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); |
| static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s); |
| static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s); |
| |
| class DFA76 extends DFA { |
| |
| public DFA76(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 76; |
| this.eot = dfa_27; |
| this.eof = dfa_28; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_32; |
| this.transition = dfa_33; |
| } |
| public String getDescription() { |
| return "()* loopback of 4317:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA76_7 = input.LA(1); |
| |
| |
| int index76_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_7); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA76_3 = input.LA(1); |
| |
| |
| int index76_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_3); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA76_8 = input.LA(1); |
| |
| |
| int index76_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_8); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA76_9 = input.LA(1); |
| |
| |
| int index76_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_9); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA76_6 = input.LA(1); |
| |
| |
| int index76_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_6); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA76_2 = input.LA(1); |
| |
| |
| int index76_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_2); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA76_4 = input.LA(1); |
| |
| |
| int index76_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_4); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA76_5 = input.LA(1); |
| |
| |
| int index76_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index76_5); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 76, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\135\2\uffff\1\136\7\uffff"; |
| static final String dfa_35s = "\1\154\2\uffff\1\151\7\uffff"; |
| static final String dfa_36s = "\1\uffff\1\1\1\2\1\uffff\1\4\1\5\1\7\1\10\1\11\1\3\1\6"; |
| static final String dfa_37s = "\13\uffff}>"; |
| static final String[] dfa_38s = { |
| "\1\6\1\3\10\uffff\1\1\1\2\1\4\1\5\1\7\1\10", |
| "", |
| "", |
| "\1\12\12\uffff\1\11", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_34 = DFA.unpackEncodedStringToUnsignedChars(dfa_34s); |
| static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s); |
| static final short[] dfa_36 = DFA.unpackEncodedString(dfa_36s); |
| static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s); |
| static final short[][] dfa_38 = unpackEncodedStringArray(dfa_38s); |
| |
| class DFA79 extends DFA { |
| |
| public DFA79(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 79; |
| this.eot = dfa_27; |
| this.eof = dfa_27; |
| this.min = dfa_34; |
| this.max = dfa_35; |
| this.accept = dfa_36; |
| this.special = dfa_37; |
| this.transition = dfa_38; |
| } |
| public String getDescription() { |
| return "4393:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )"; |
| } |
| } |
| static final String dfa_39s = "\116\uffff"; |
| static final String dfa_40s = "\1\2\115\uffff"; |
| static final String dfa_41s = "\1\4\1\0\114\uffff"; |
| static final String dfa_42s = "\1\u008e\1\0\114\uffff"; |
| static final String dfa_43s = "\2\uffff\1\2\112\uffff\1\1"; |
| static final String dfa_44s = "\1\uffff\1\0\114\uffff}>"; |
| static final String[] dfa_45s = { |
| "\5\2\6\uffff\2\2\41\uffff\1\2\21\uffff\1\2\3\uffff\1\2\1\uffff\4\2\1\uffff\1\2\1\uffff\1\1\2\2\1\uffff\42\2\1\uffff\27\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 DFA95 extends DFA { |
| |
| public DFA95(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 95; |
| 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 "5294:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA95_1 = input.LA(1); |
| |
| |
| int index95_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index95_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 95, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u008d\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\2\5\1\1\2\5\6\uffff\1\5\42\uffff\1\5\25\uffff\1\5\2\uffff\2\5\4\uffff\1\2\1\uffff\1\43\1\uffff\2\5\6\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\uffff\2\5\2\uffff\12\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s); |
| static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); |
| static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s); |
| static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); |
| static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s); |
| |
| class DFA94 extends DFA { |
| |
| public DFA94(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 94; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "5313:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA94_0 = input.LA(1); |
| |
| |
| int index94_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA94_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA94_0==81) ) {s = 2;} |
| |
| else if ( (LA94_0==106) && (synpred23_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA94_0==119) && (synpred23_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA94_0>=RULE_STRING && LA94_0<=RULE_INT)||(LA94_0>=RULE_HEX && LA94_0<=RULE_DECIMAL)||LA94_0==15||LA94_0==50||LA94_0==72||(LA94_0>=75 && LA94_0<=76)||(LA94_0>=85 && LA94_0<=86)||LA94_0==93||(LA94_0>=109 && LA94_0<=110)||LA94_0==114||LA94_0==120||LA94_0==122||(LA94_0>=126 && LA94_0<=127)||(LA94_0>=130 && LA94_0<=139)||LA94_0==141) ) {s = 5;} |
| |
| else if ( (LA94_0==83) ) {s = 35;} |
| |
| |
| input.seek(index94_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA94_1 = input.LA(1); |
| |
| |
| int index94_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index94_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA94_2 = input.LA(1); |
| |
| |
| int index94_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index94_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 94, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\6\uffff\2\2\41\uffff\1\2\21\uffff\1\2\3\uffff\1\2\1\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\1\2\1\1\40\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA96 extends DFA { |
| |
| public DFA96(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 96; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "5411:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA96_1 = input.LA(1); |
| |
| |
| int index96_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index96_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 96, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_52s = "\40\uffff"; |
| static final String dfa_53s = "\1\4\26\uffff\1\0\10\uffff"; |
| static final String dfa_54s = "\1\u008d\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\2\14\1\5\2\14\6\uffff\1\2\42\uffff\1\27\25\uffff\1\5\2\uffff\2\5\4\uffff\1\35\3\uffff\2\14\6\uffff\1\5\32\uffff\1\26\1\uffff\1\3\3\uffff\1\30\1\31\2\uffff\2\5\1\1\4\14\1\32\1\33\1\34\1\uffff\1\4", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); |
| static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); |
| static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); |
| static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); |
| static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); |
| static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); |
| |
| class DFA98 extends DFA { |
| |
| public DFA98(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 98; |
| 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 "5456:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA98_0 = input.LA(1); |
| |
| |
| int index98_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA98_0==132) ) {s = 1;} |
| |
| else if ( (LA98_0==15) ) {s = 2;} |
| |
| else if ( (LA98_0==122) ) {s = 3;} |
| |
| else if ( (LA98_0==141) && (synpred25_InternalDataDSL())) {s = 4;} |
| |
| else if ( (LA98_0==RULE_ID||LA98_0==72||(LA98_0>=75 && LA98_0<=76)||LA98_0==93||(LA98_0>=130 && LA98_0<=131)) ) {s = 5;} |
| |
| else if ( ((LA98_0>=RULE_STRING && LA98_0<=RULE_INT)||(LA98_0>=RULE_HEX && LA98_0<=RULE_DECIMAL)||(LA98_0>=85 && LA98_0<=86)||(LA98_0>=133 && LA98_0<=136)) ) {s = 12;} |
| |
| else if ( (LA98_0==120) ) {s = 22;} |
| |
| else if ( (LA98_0==50) ) {s = 23;} |
| |
| else if ( (LA98_0==126) ) {s = 24;} |
| |
| else if ( (LA98_0==127) ) {s = 25;} |
| |
| else if ( (LA98_0==137) ) {s = 26;} |
| |
| else if ( (LA98_0==138) ) {s = 27;} |
| |
| else if ( (LA98_0==139) ) {s = 28;} |
| |
| else if ( (LA98_0==81) ) {s = 29;} |
| |
| |
| input.seek(index98_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA98_23 = input.LA(1); |
| |
| |
| int index98_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalDataDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index98_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 98, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_58s = "\46\uffff"; |
| static final String dfa_59s = "\1\4\2\0\43\uffff"; |
| static final String dfa_60s = "\1\u008d\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\2\5\1\1\2\5\6\uffff\1\5\42\uffff\1\5\25\uffff\1\5\2\uffff\2\5\4\uffff\1\2\3\uffff\3\5\5\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\uffff\16\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_58 = DFA.unpackEncodedString(dfa_58s); |
| static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); |
| static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); |
| static final short[] dfa_61 = DFA.unpackEncodedString(dfa_61s); |
| static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); |
| static final short[][] dfa_63 = unpackEncodedStringArray(dfa_63s); |
| |
| class DFA107 extends DFA { |
| |
| public DFA107(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 107; |
| this.eot = dfa_58; |
| this.eof = dfa_58; |
| this.min = dfa_59; |
| this.max = dfa_60; |
| this.accept = dfa_61; |
| this.special = dfa_62; |
| this.transition = dfa_63; |
| } |
| public String getDescription() { |
| return "5948:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA107_0 = input.LA(1); |
| |
| |
| int index107_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA107_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA107_0==81) ) {s = 2;} |
| |
| else if ( (LA107_0==106) && (synpred29_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA107_0==119) && (synpred29_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA107_0>=RULE_STRING && LA107_0<=RULE_INT)||(LA107_0>=RULE_HEX && LA107_0<=RULE_DECIMAL)||LA107_0==15||LA107_0==50||LA107_0==72||(LA107_0>=75 && LA107_0<=76)||(LA107_0>=85 && LA107_0<=87)||LA107_0==93||(LA107_0>=109 && LA107_0<=110)||LA107_0==114||LA107_0==120||LA107_0==122||(LA107_0>=126 && LA107_0<=139)||LA107_0==141) ) {s = 5;} |
| |
| |
| input.seek(index107_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA107_1 = input.LA(1); |
| |
| |
| int index107_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index107_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA107_2 = input.LA(1); |
| |
| |
| int index107_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index107_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 107, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\6\uffff\1\2\42\uffff\1\2\25\uffff\1\2\2\uffff\2\2\4\uffff\1\1\3\uffff\2\2\6\uffff\1\2\14\uffff\1\2\2\uffff\2\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\2\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); |
| |
| class DFA114 extends DFA { |
| |
| public DFA114(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 114; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_64; |
| } |
| public String getDescription() { |
| return "6414:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA114_1 = input.LA(1); |
| |
| |
| int index114_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalDataDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index114_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 114, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_65s = "\42\uffff"; |
| static final String dfa_66s = "\1\4\2\0\37\uffff"; |
| static final String dfa_67s = "\1\u008d\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\2\4\1\1\2\4\6\uffff\1\4\42\uffff\1\4\25\uffff\1\4\2\uffff\2\4\4\uffff\1\2\3\uffff\2\4\6\uffff\1\4\14\uffff\1\3\2\uffff\2\4\3\uffff\1\4\5\uffff\1\4\1\uffff\1\4\3\uffff\2\4\2\uffff\12\4\1\uffff\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); |
| static final char[] dfa_66 = DFA.unpackEncodedStringToUnsignedChars(dfa_66s); |
| static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); |
| static final short[] dfa_68 = DFA.unpackEncodedString(dfa_68s); |
| static final short[] dfa_69 = DFA.unpackEncodedString(dfa_69s); |
| static final short[][] dfa_70 = unpackEncodedStringArray(dfa_70s); |
| |
| class DFA113 extends DFA { |
| |
| public DFA113(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 113; |
| this.eot = dfa_65; |
| this.eof = dfa_65; |
| this.min = dfa_66; |
| this.max = dfa_67; |
| this.accept = dfa_68; |
| this.special = dfa_69; |
| this.transition = dfa_70; |
| } |
| public String getDescription() { |
| return "6483:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA113_0 = input.LA(1); |
| |
| |
| int index113_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA113_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA113_0==81) ) {s = 2;} |
| |
| else if ( (LA113_0==106) && (synpred33_InternalDataDSL())) {s = 3;} |
| |
| else if ( ((LA113_0>=RULE_STRING && LA113_0<=RULE_INT)||(LA113_0>=RULE_HEX && LA113_0<=RULE_DECIMAL)||LA113_0==15||LA113_0==50||LA113_0==72||(LA113_0>=75 && LA113_0<=76)||(LA113_0>=85 && LA113_0<=86)||LA113_0==93||(LA113_0>=109 && LA113_0<=110)||LA113_0==114||LA113_0==120||LA113_0==122||(LA113_0>=126 && LA113_0<=127)||(LA113_0>=130 && LA113_0<=139)||LA113_0==141) ) {s = 4;} |
| |
| |
| input.seek(index113_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA113_1 = input.LA(1); |
| |
| |
| int index113_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDataDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index113_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA113_2 = input.LA(1); |
| |
| |
| int index113_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDataDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index113_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 113, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA136 extends DFA { |
| |
| public DFA136(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 136; |
| 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 "7612:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA136_1 = input.LA(1); |
| |
| |
| int index136_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index136_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 136, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA135 extends DFA { |
| |
| public DFA135(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 135; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "7631:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA135_0 = input.LA(1); |
| |
| |
| int index135_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA135_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA135_0==81) ) {s = 2;} |
| |
| else if ( (LA135_0==106) && (synpred37_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA135_0==119) && (synpred37_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA135_0>=RULE_STRING && LA135_0<=RULE_INT)||(LA135_0>=RULE_HEX && LA135_0<=RULE_DECIMAL)||LA135_0==15||LA135_0==50||LA135_0==72||(LA135_0>=75 && LA135_0<=76)||(LA135_0>=85 && LA135_0<=86)||LA135_0==93||(LA135_0>=109 && LA135_0<=110)||LA135_0==114||LA135_0==120||LA135_0==122||(LA135_0>=126 && LA135_0<=127)||(LA135_0>=130 && LA135_0<=139)||LA135_0==141) ) {s = 5;} |
| |
| else if ( (LA135_0==83) ) {s = 35;} |
| |
| |
| input.seek(index135_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA135_1 = input.LA(1); |
| |
| |
| int index135_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index135_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA135_2 = input.LA(1); |
| |
| |
| int index135_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index135_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 135, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA137 extends DFA { |
| |
| public DFA137(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 137; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "7729:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA137_1 = input.LA(1); |
| |
| |
| int index137_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index137_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 137, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\6\uffff\2\2\41\uffff\1\2\21\uffff\1\2\3\uffff\1\2\1\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\10\2\1\1\31\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA141 extends DFA { |
| |
| public DFA141(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 141; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_71; |
| } |
| public String getDescription() { |
| return "7888:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA141_1 = input.LA(1); |
| |
| |
| int index141_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index141_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 141, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA144 extends DFA { |
| |
| public DFA144(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 144; |
| 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 "7945:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA144_1 = input.LA(1); |
| |
| |
| int index144_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index144_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 144, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA143 extends DFA { |
| |
| public DFA143(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 143; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "7964:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA143_0 = input.LA(1); |
| |
| |
| int index143_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA143_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA143_0==81) ) {s = 2;} |
| |
| else if ( (LA143_0==106) && (synpred41_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA143_0==119) && (synpred41_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA143_0>=RULE_STRING && LA143_0<=RULE_INT)||(LA143_0>=RULE_HEX && LA143_0<=RULE_DECIMAL)||LA143_0==15||LA143_0==50||LA143_0==72||(LA143_0>=75 && LA143_0<=76)||(LA143_0>=85 && LA143_0<=86)||LA143_0==93||(LA143_0>=109 && LA143_0<=110)||LA143_0==114||LA143_0==120||LA143_0==122||(LA143_0>=126 && LA143_0<=127)||(LA143_0>=130 && LA143_0<=139)||LA143_0==141) ) {s = 5;} |
| |
| else if ( (LA143_0==83) ) {s = 35;} |
| |
| |
| input.seek(index143_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA143_1 = input.LA(1); |
| |
| |
| int index143_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index143_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA143_2 = input.LA(1); |
| |
| |
| int index143_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index143_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 143, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA145 extends DFA { |
| |
| public DFA145(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 145; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "8062:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA145_1 = input.LA(1); |
| |
| |
| int index145_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index145_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 145, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_72s = "\1\41\115\uffff"; |
| static final String dfa_73s = "\1\4\40\0\55\uffff"; |
| static final String dfa_74s = "\1\u008e\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\27\1\24\1\1\1\23\1\25\6\uffff\1\12\1\41\41\uffff\1\32\21\uffff\1\41\3\uffff\1\5\1\uffff\1\41\1\4\1\3\1\41\1\uffff\1\41\1\uffff\1\40\2\41\1\uffff\1\17\1\20\6\41\1\15\17\41\1\10\1\7\3\41\1\6\4\41\1\uffff\1\31\1\41\1\13\3\41\1\33\1\34\2\41\1\2\1\16\1\11\1\21\1\22\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_72 = DFA.unpackEncodedString(dfa_72s); |
| static final char[] dfa_73 = DFA.unpackEncodedStringToUnsignedChars(dfa_73s); |
| static final char[] dfa_74 = DFA.unpackEncodedStringToUnsignedChars(dfa_74s); |
| static final short[] dfa_75 = DFA.unpackEncodedString(dfa_75s); |
| static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); |
| static final short[][] dfa_77 = unpackEncodedStringArray(dfa_77s); |
| |
| class DFA148 extends DFA { |
| |
| public DFA148(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 148; |
| this.eot = dfa_39; |
| this.eof = dfa_72; |
| this.min = dfa_73; |
| this.max = dfa_74; |
| this.accept = dfa_75; |
| this.special = dfa_76; |
| this.transition = dfa_77; |
| } |
| public String getDescription() { |
| return "8405:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA148_1 = input.LA(1); |
| |
| |
| int index148_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA148_2 = input.LA(1); |
| |
| |
| int index148_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA148_3 = input.LA(1); |
| |
| |
| int index148_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA148_4 = input.LA(1); |
| |
| |
| int index148_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA148_5 = input.LA(1); |
| |
| |
| int index148_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA148_6 = input.LA(1); |
| |
| |
| int index148_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA148_7 = input.LA(1); |
| |
| |
| int index148_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA148_8 = input.LA(1); |
| |
| |
| int index148_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA148_9 = input.LA(1); |
| |
| |
| int index148_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA148_10 = input.LA(1); |
| |
| |
| int index148_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA148_11 = input.LA(1); |
| |
| |
| int index148_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA148_12 = input.LA(1); |
| |
| |
| int index148_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA148_13 = input.LA(1); |
| |
| |
| int index148_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA148_14 = input.LA(1); |
| |
| |
| int index148_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA148_15 = input.LA(1); |
| |
| |
| int index148_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA148_16 = input.LA(1); |
| |
| |
| int index148_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA148_17 = input.LA(1); |
| |
| |
| int index148_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA148_18 = input.LA(1); |
| |
| |
| int index148_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA148_19 = input.LA(1); |
| |
| |
| int index148_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA148_20 = input.LA(1); |
| |
| |
| int index148_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA148_21 = input.LA(1); |
| |
| |
| int index148_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA148_22 = input.LA(1); |
| |
| |
| int index148_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA148_23 = input.LA(1); |
| |
| |
| int index148_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA148_24 = input.LA(1); |
| |
| |
| int index148_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA148_25 = input.LA(1); |
| |
| |
| int index148_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA148_26 = input.LA(1); |
| |
| |
| int index148_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA148_27 = input.LA(1); |
| |
| |
| int index148_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA148_28 = input.LA(1); |
| |
| |
| int index148_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA148_29 = input.LA(1); |
| |
| |
| int index148_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA148_30 = input.LA(1); |
| |
| |
| int index148_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA148_31 = input.LA(1); |
| |
| |
| int index148_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA148_32 = input.LA(1); |
| |
| |
| int index148_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index148_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 148, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_78s = "\117\uffff"; |
| static final String dfa_79s = "\1\2\116\uffff"; |
| static final String dfa_80s = "\1\4\1\0\115\uffff"; |
| static final String dfa_81s = "\1\u0090\1\0\115\uffff"; |
| static final String dfa_82s = "\2\uffff\1\2\113\uffff\1\1"; |
| static final String dfa_83s = "\1\uffff\1\0\115\uffff}>"; |
| static final String[] dfa_84s = { |
| "\5\2\6\uffff\2\2\41\uffff\1\2\21\uffff\1\2\3\uffff\1\2\1\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\10\2\1\1\31\2\1\uffff\27\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_78 = DFA.unpackEncodedString(dfa_78s); |
| static final short[] dfa_79 = DFA.unpackEncodedString(dfa_79s); |
| static final char[] dfa_80 = DFA.unpackEncodedStringToUnsignedChars(dfa_80s); |
| static final char[] dfa_81 = DFA.unpackEncodedStringToUnsignedChars(dfa_81s); |
| static final short[] dfa_82 = DFA.unpackEncodedString(dfa_82s); |
| static final short[] dfa_83 = DFA.unpackEncodedString(dfa_83s); |
| static final short[][] dfa_84 = unpackEncodedStringArray(dfa_84s); |
| |
| class DFA166 extends DFA { |
| |
| public DFA166(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 166; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "9063:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA166_1 = input.LA(1); |
| |
| |
| int index166_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalDataDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index166_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 166, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA164 extends DFA { |
| |
| public DFA164(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 164; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "9157:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA164_1 = input.LA(1); |
| |
| |
| int index164_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalDataDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index164_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 164, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
| public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
| public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000002002L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000008002L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000030000L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000040000L,0x0000000000000000L,0x0000000380000000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000F80000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000F00000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000E00000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000C00000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000422000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000001000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000002000010000L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000001C000002L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x00000003D8000002L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000818000000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000001000000002L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0001FFC000000002L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0001FF8000000002L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0001FF0000000002L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0001FE0000000002L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0001FC0000000002L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x2000000000010000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0001F80000000002L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0004000000010000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0001F00000000002L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0001E00000000002L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000010000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0001C00000000002L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000000010000L,0x00000000000000A0L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0001800000000002L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0002000000010000L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0001000000000002L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000010000L,0x0000000000000006L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000000010000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0008000000000000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0010008000000000L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0010000000000000L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x03E0000000000002L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x03C0000000000002L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0380000000000002L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0400000000010000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0800000000000002L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x1000000000000000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x4000000000000000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x8000000000000000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0008200000000000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000000042L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000000000L,0x00000008E0100000L,0x0000001C00000000L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000000000000012L,0x0000000000000000L,0x0000006000000000L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000006000000000L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000003800000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x000000007C000000L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000001000000L,0x0000000000000300L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000001000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x00000000007E0000L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000040L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000000040L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000000000002L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000002L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x00040000000081F0L,0xC5046000206B1900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x00000000000C0000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000100000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020631900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000000L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020E31900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000000L,0x0000000000840000L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000002L,0x000000007F000000L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000000000L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000000L,0x00000000C0000000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000000L,0x0000000080000000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000002L,0x0000000100000000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000002L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x0000003C00000000L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x00000040E0000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000040L,0x0000040000020000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000002L,0x00001F8060000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000000L,0x0000040020000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0000600000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000002L,0x0003800000002000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000002L,0x0018000000000000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000002L,0x0060000000000400L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000040L,0x0000000000001900L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000040L,0x0000000020001900L,0x000000000000000CL}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000040L,0x0000040000020000L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000000L,0x0000000040040000L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000002L,0x0060000000420400L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x00040000000081F0L,0xC5846400206B1900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000002L,0x0060000000400400L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x00040000000181F0L,0xC504600020631900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000010000L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x00040000000081F0L,0xC584640020E31900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000000000L,0x0080000000040000L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020E31900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x0000000000000000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x00040000000081F2L,0xC504600020639900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x00040000000081F2L,0xC504600020631900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x0000000000000002L,0x0200000000000000L}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x00040000000081F0L,0xC504640020631900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x0000000000000000L,0x0800000000000000L}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x0000000000010040L,0x3800040000060000L}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x0000000000000000L,0x2800000000040000L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x0000000000000000L,0x0800000000040000L}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020639900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x0000000000000000L,0x0000000000048000L}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020631900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x00040000000081F0L,0xC504600020639900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x0000000000000000L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x0000000000000000L,0x4000000000000000L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x00040000000181F0L,0xC504600020631900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x00040000000181F0L,0xC504600020639900L,0x0000000000002FFFL}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000002L,0x0000000000420000L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x0000000000000002L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x0000000000000002L,0x0000000020420000L}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x0000000000000000L,0x0000000000480000L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x00040000000081F2L,0xC504600020631900L,0x0000000000002FFCL}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x0000000000000120L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x0000000000000040L,0x00000400000A0000L}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000400L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x000000000000000CL}); |
| public static final BitSet FOLLOW_145 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_146 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000400L}); |
| public static final BitSet FOLLOW_147 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_148 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000800L}); |
| |
| } |