| 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'", "'{'", "'}'", "'group'", "'interchange'", "'describedBy'", "'vectorName'", "'report'", "'elementSize'", "'deleteFileAfterImport'", "'file'", "'path'", "'exportFilter'", "'actionFilter'", "'postFunction'", "'functionGroup'", "'executeAfterImport'", "'executeAfterExport'", "'XML'", "'mapByAttribute'", "'encoding'", "'locale'", "'CSV'", "'delimiter'", "'quoteCharacter'", "'skipLines'", "'indent'", "'EDI'", "'mappingModel'", "'validate'", "'Fixed'", "'entity'", "'filename'", "'referencedBy'", "'nodeName'", "'createOn'", "'latestImport'", "'latestExport'", "'expression'", "'lookup'", "'format'", "'expose'", "'mapping'", "'keys'", "'key'", "'for'", "'in'", "'mapFrom'", "'allowNoResult'", "'mapTo'", "'cacheSize'", "'where'", "'markerPath'", "'markerEntity'", "'markedBy'", "'coding'", "'copy'", "'from'", "'property'", "'ref'", "'on'", "'hide'", "'attribute'", "'referenceAttribute'", "'.'", "'reference'", "'assign'", "'with'", "'as'", "'map'", "'to'", "'mapBlob'", "'extension'", "'mimeType'", "'mapFixedLength'", "'length'", "'trim'", "'leftTrim'", "'rightTrim'", "'lowerCase'", "'upperCase'", "'capitalizeFirstWord'", "'uncapitalizeFirstWord'", "'capitalize'", "'mapLookup'", "'mapSkip'", "'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'", "'equals'", "'notEquals'", "'greaterThan'", "'greatThanOrEqualTo'", "'lessThan'", "'lessThanOrEqualTo'", "'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 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 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__168=168; |
| public static final int T__167=167; |
| 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__100=100; |
| public static final int T__102=102; |
| public static final int T__101=101; |
| 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__13=13; |
| public static final int T__14=14; |
| 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__121=121; |
| public static final int T__124=124; |
| public static final int T__123=123; |
| public static final int T__120=120; |
| public static final int RULE_SL_COMMENT=10; |
| public static final int T__119=119; |
| public static final int T__118=118; |
| public static final int T__115=115; |
| public static final int EOF=-1; |
| public static final int T__114=114; |
| public static final int T__117=117; |
| public static final int T__116=116; |
| public static final int T__111=111; |
| public static final int T__110=110; |
| public static final int T__113=113; |
| public static final int T__112=112; |
| public static final int T__108=108; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__104=104; |
| public static final int T__103=103; |
| public static final int T__106=106; |
| public static final int T__105=105; |
| public static final int RULE_HEX=7; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__91=91; |
| public static final int T__188=188; |
| public static final int T__92=92; |
| public static final int T__187=187; |
| public static final int T__93=93; |
| public static final int T__94=94; |
| public static final int T__189=189; |
| public static final int T__184=184; |
| public static final int T__183=183; |
| public static final int T__186=186; |
| public static final int T__90=90; |
| public static final int T__185=185; |
| public static final int T__180=180; |
| public static final int T__182=182; |
| public static final int T__181=181; |
| public static final int T__99=99; |
| 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 T__177=177; |
| public static final int T__176=176; |
| public static final int T__179=179; |
| public static final int T__178=178; |
| public static final int T__173=173; |
| public static final int T__172=172; |
| public static final int T__175=175; |
| public static final int T__174=174; |
| public static final int T__171=171; |
| public static final int T__170=170; |
| public static final int T__169=169; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=4; |
| public static final int T__77=77; |
| public static final int T__78=78; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int T__74=74; |
| public static final int T__75=75; |
| public static final int T__76=76; |
| public static final int T__80=80; |
| public static final int T__81=81; |
| public static final int T__82=82; |
| public static final int T__83=83; |
| public static final int T__195=195; |
| public static final int T__194=194; |
| public static final int RULE_WS=11; |
| public static final int T__191=191; |
| public static final int T__190=190; |
| public static final int T__193=193; |
| public static final int T__192=192; |
| public static final int RULE_ANY_OTHER=12; |
| public static final int T__88=88; |
| public static final int T__89=89; |
| public static final int T__84=84; |
| public static final int T__85=85; |
| public static final int T__86=86; |
| public static final int T__87=87; |
| |
| // 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:80: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:80:61: (iv_ruleDataInterchangeModel= ruleDataInterchangeModel EOF ) |
| // InternalDataDSL.g:81: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:87: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:93:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) ) |
| // InternalDataDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) |
| { |
| // InternalDataDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* ) |
| // InternalDataDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDataInterchangePackage ) )* |
| { |
| // InternalDataDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==99) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalDataDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalDataDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalDataDSL.g:97: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:114: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:115:4: (lv_packages_1_0= ruleDataInterchangePackage ) |
| { |
| // InternalDataDSL.g:115:4: (lv_packages_1_0= ruleDataInterchangePackage ) |
| // InternalDataDSL.g:116: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:137: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:137:63: (iv_ruleDataInterchangePackage= ruleDataInterchangePackage EOF ) |
| // InternalDataDSL.g:138: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:144:1: ruleDataInterchangePackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleDataInterchangePackage() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_groups_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:150:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? ) ) |
| // InternalDataDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? ) |
| { |
| // InternalDataDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? ) |
| // InternalDataDSL.g:152:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? |
| { |
| // InternalDataDSL.g:152:3: () |
| // InternalDataDSL.g:153: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:163:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalDataDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalDataDSL.g:165: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:182:3: (otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==14) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalDataDSL.g:183:4: otherlv_3= '{' ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangePackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:187:4: ( (lv_groups_4_0= ruleDataInterchangeGroup ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==16) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalDataDSL.g:188:5: (lv_groups_4_0= ruleDataInterchangeGroup ) |
| { |
| // InternalDataDSL.g:188:5: (lv_groups_4_0= ruleDataInterchangeGroup ) |
| // InternalDataDSL.g:189:6: lv_groups_4_0= ruleDataInterchangeGroup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePackageAccess().getGroupsDataInterchangeGroupParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_groups_4_0=ruleDataInterchangeGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangePackageRule()); |
| } |
| add( |
| current, |
| "groups", |
| lv_groups_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeGroup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangePackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangePackage" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeGroup" |
| // InternalDataDSL.g:215:1: entryRuleDataInterchangeGroup returns [EObject current=null] : iv_ruleDataInterchangeGroup= ruleDataInterchangeGroup EOF ; |
| public final EObject entryRuleDataInterchangeGroup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeGroup = null; |
| |
| |
| try { |
| // InternalDataDSL.g:215:61: (iv_ruleDataInterchangeGroup= ruleDataInterchangeGroup EOF ) |
| // InternalDataDSL.g:216:2: iv_ruleDataInterchangeGroup= ruleDataInterchangeGroup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeGroupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeGroup=ruleDataInterchangeGroup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeGroup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeGroup" |
| |
| |
| // $ANTLR start "ruleDataInterchangeGroup" |
| // InternalDataDSL.g:222:1: ruleDataInterchangeGroup returns [EObject current=null] : ( () otherlv_1= 'group' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleDataInterchangeGroup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_datInts_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:228:2: ( ( () otherlv_1= 'group' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? ) ) |
| // InternalDataDSL.g:229:2: ( () otherlv_1= 'group' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? ) |
| { |
| // InternalDataDSL.g:229:2: ( () otherlv_1= 'group' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? ) |
| // InternalDataDSL.g:230:3: () otherlv_1= 'group' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? |
| { |
| // InternalDataDSL.g:230:3: () |
| // InternalDataDSL.g:231:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeGroupAccess().getDataInterchangeGroupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeGroupAccess().getGroupKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:241:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalDataDSL.g:242:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalDataDSL.g:242:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalDataDSL.g:243:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeGroupAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeGroupRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:260:3: (otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' )? |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0==14) ) { |
| alt6=1; |
| } |
| switch (alt6) { |
| case 1 : |
| // InternalDataDSL.g:261:4: otherlv_3= '{' ( (lv_datInts_4_0= ruleDataInterchange ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeGroupAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:265:4: ( (lv_datInts_4_0= ruleDataInterchange ) )* |
| loop5: |
| do { |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==17) ) { |
| alt5=1; |
| } |
| |
| |
| switch (alt5) { |
| case 1 : |
| // InternalDataDSL.g:266:5: (lv_datInts_4_0= ruleDataInterchange ) |
| { |
| // InternalDataDSL.g:266:5: (lv_datInts_4_0= ruleDataInterchange ) |
| // InternalDataDSL.g:267:6: lv_datInts_4_0= ruleDataInterchange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeGroupAccess().getDatIntsDataInterchangeParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_datInts_4_0=ruleDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeGroupRule()); |
| } |
| add( |
| current, |
| "datInts", |
| lv_datInts_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchange"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop5; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeGroupAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeGroup" |
| |
| |
| // $ANTLR start "entryRuleDataInterchange" |
| // InternalDataDSL.g:293: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:293:56: (iv_ruleDataInterchange= ruleDataInterchange EOF ) |
| // InternalDataDSL.g:294: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:300: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 ) ) ( ( (lv_hasVectorName_6_0= '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= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? otherlv_27= '}' ) ; |
| public final EObject ruleDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_description_3_0=null; |
| Token lv_hasVectorName_6_0=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; |
| Token otherlv_18=null; |
| Token otherlv_20=null; |
| Token otherlv_21=null; |
| Token otherlv_22=null; |
| Token otherlv_24=null; |
| Token otherlv_25=null; |
| Token otherlv_27=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; |
| |
| EObject lv_exportFilter_19_0 = null; |
| |
| EObject lv_actionFilter_23_0 = null; |
| |
| EObject lv_postFunction_26_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:306:2: ( ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) ( ( (lv_hasVectorName_6_0= '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= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? otherlv_27= '}' ) ) |
| // InternalDataDSL.g:307:2: ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) ( ( (lv_hasVectorName_6_0= '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= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? otherlv_27= '}' ) |
| { |
| // InternalDataDSL.g:307:2: ( () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) ( ( (lv_hasVectorName_6_0= '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= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? otherlv_27= '}' ) |
| // InternalDataDSL.g:308:3: () otherlv_1= 'interchange' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? ( (lv_mode_5_0= ruleEntityManagerMode ) ) ( ( (lv_hasVectorName_6_0= '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= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? otherlv_27= '}' |
| { |
| // InternalDataDSL.g:308:3: () |
| // InternalDataDSL.g:309: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:319:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalDataDSL.g:320:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalDataDSL.g:320:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalDataDSL.g:321:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| 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:338:3: ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==18) ) { |
| alt7=1; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalDataDSL.g:339:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalDataDSL.g:339:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalDataDSL.g:340:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalDataDSL.g:340:5: (lv_description_3_0= 'describedBy' ) |
| // InternalDataDSL.g:341:6: lv_description_3_0= 'describedBy' |
| { |
| lv_description_3_0=(Token)match(input,18,FOLLOW_9); 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:353:4: ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| // InternalDataDSL.g:354:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalDataDSL.g:354:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| // InternalDataDSL.g:355:6: lv_descriptionValue_4_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| 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:373:3: ( (lv_mode_5_0= ruleEntityManagerMode ) ) |
| // InternalDataDSL.g:374:4: (lv_mode_5_0= ruleEntityManagerMode ) |
| { |
| // InternalDataDSL.g:374:4: (lv_mode_5_0= ruleEntityManagerMode ) |
| // InternalDataDSL.g:375: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:392:3: ( ( (lv_hasVectorName_6_0= 'vectorName' ) ) ( (lv_vectorName_7_0= RULE_STRING ) ) )? |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==19) ) { |
| alt8=1; |
| } |
| switch (alt8) { |
| case 1 : |
| // InternalDataDSL.g:393:4: ( (lv_hasVectorName_6_0= 'vectorName' ) ) ( (lv_vectorName_7_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:393:4: ( (lv_hasVectorName_6_0= 'vectorName' ) ) |
| // InternalDataDSL.g:394:5: (lv_hasVectorName_6_0= 'vectorName' ) |
| { |
| // InternalDataDSL.g:394:5: (lv_hasVectorName_6_0= 'vectorName' ) |
| // InternalDataDSL.g:395:6: lv_hasVectorName_6_0= 'vectorName' |
| { |
| lv_hasVectorName_6_0=(Token)match(input,19,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasVectorName_6_0, grammarAccess.getDataInterchangeAccess().getHasVectorNameVectorNameKeyword_5_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeRule()); |
| } |
| setWithLastConsumed(current, "hasVectorName", true, "vectorName"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:407:4: ( (lv_vectorName_7_0= RULE_STRING ) ) |
| // InternalDataDSL.g:408:5: (lv_vectorName_7_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:408:5: (lv_vectorName_7_0= RULE_STRING ) |
| // InternalDataDSL.g:409: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:426:3: ( (lv_createReport_8_0= 'report' ) )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==20) ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalDataDSL.g:427:4: (lv_createReport_8_0= 'report' ) |
| { |
| // InternalDataDSL.g:427:4: (lv_createReport_8_0= 'report' ) |
| // InternalDataDSL.g:428: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:440:3: (otherlv_9= 'elementSize' ( (lv_elementSize_10_0= RULE_INT ) ) )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==21) ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalDataDSL.g:441: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:445:4: ( (lv_elementSize_10_0= RULE_INT ) ) |
| // InternalDataDSL.g:446:5: (lv_elementSize_10_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:446:5: (lv_elementSize_10_0= RULE_INT ) |
| // InternalDataDSL.g:447: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:464:3: ( (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==22) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalDataDSL.g:465:4: (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) |
| { |
| // InternalDataDSL.g:465:4: (lv_deleteFileAfterImport_11_0= 'deleteFileAfterImport' ) |
| // InternalDataDSL.g:466: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:482:3: ( (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) ) |
| // InternalDataDSL.g:483:4: (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) |
| { |
| // InternalDataDSL.g:483:4: (lv_fileEndpoint_13_0= ruleDataInterchangeFile ) |
| // InternalDataDSL.g:484: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,14,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDataInterchangeAccess().getLeftCurlyBracketKeyword_12()); |
| |
| } |
| // InternalDataDSL.g:509:3: ( (lv_path_16_0= ruleDataInterchangeBean ) )* |
| loop12: |
| do { |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==44) ) { |
| alt12=1; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalDataDSL.g:510:4: (lv_path_16_0= ruleDataInterchangeBean ) |
| { |
| // InternalDataDSL.g:510:4: (lv_path_16_0= ruleDataInterchangeBean ) |
| // InternalDataDSL.g:511: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 loop12; |
| } |
| } while (true); |
| |
| // InternalDataDSL.g:528:3: (otherlv_17= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' )? |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==25) ) { |
| alt13=1; |
| } |
| switch (alt13) { |
| case 1 : |
| // InternalDataDSL.g:529:4: otherlv_17= 'exportFilter' otherlv_18= '{' ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) otherlv_20= '}' |
| { |
| otherlv_17=(Token)match(input,25,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getDataInterchangeAccess().getExportFilterKeyword_14_0()); |
| |
| } |
| otherlv_18=(Token)match(input,14,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getDataInterchangeAccess().getLeftCurlyBracketKeyword_14_1()); |
| |
| } |
| // InternalDataDSL.g:537:4: ( (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) ) |
| // InternalDataDSL.g:538:5: (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) |
| { |
| // InternalDataDSL.g:538:5: (lv_exportFilter_19_0= ruleDataInterchangeExportFilter ) |
| // InternalDataDSL.g:539:6: lv_exportFilter_19_0= ruleDataInterchangeExportFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getExportFilterDataInterchangeExportFilterParserRuleCall_14_2_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_exportFilter_19_0=ruleDataInterchangeExportFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "exportFilter", |
| lv_exportFilter_19_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExportFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_20=(Token)match(input,15,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getDataInterchangeAccess().getRightCurlyBracketKeyword_14_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:561:3: (otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==26) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalDataDSL.g:562:4: otherlv_21= 'actionFilter' otherlv_22= '{' ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) otherlv_24= '}' |
| { |
| otherlv_21=(Token)match(input,26,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_21, grammarAccess.getDataInterchangeAccess().getActionFilterKeyword_15_0()); |
| |
| } |
| otherlv_22=(Token)match(input,14,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getDataInterchangeAccess().getLeftCurlyBracketKeyword_15_1()); |
| |
| } |
| // InternalDataDSL.g:570:4: ( (lv_actionFilter_23_0= ruleDataInterchangeFilter ) ) |
| // InternalDataDSL.g:571:5: (lv_actionFilter_23_0= ruleDataInterchangeFilter ) |
| { |
| // InternalDataDSL.g:571:5: (lv_actionFilter_23_0= ruleDataInterchangeFilter ) |
| // InternalDataDSL.g:572:6: lv_actionFilter_23_0= ruleDataInterchangeFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getActionFilterDataInterchangeFilterParserRuleCall_15_2_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_actionFilter_23_0=ruleDataInterchangeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "actionFilter", |
| lv_actionFilter_23_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_24=(Token)match(input,15,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_24, grammarAccess.getDataInterchangeAccess().getRightCurlyBracketKeyword_15_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:594:3: (otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) )? |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==27) ) { |
| alt15=1; |
| } |
| switch (alt15) { |
| case 1 : |
| // InternalDataDSL.g:595:4: otherlv_25= 'postFunction' ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) |
| { |
| otherlv_25=(Token)match(input,27,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_25, grammarAccess.getDataInterchangeAccess().getPostFunctionKeyword_16_0()); |
| |
| } |
| // InternalDataDSL.g:599:4: ( (lv_postFunction_26_0= ruleDataInterchangePostFunction ) ) |
| // InternalDataDSL.g:600:5: (lv_postFunction_26_0= ruleDataInterchangePostFunction ) |
| { |
| // InternalDataDSL.g:600:5: (lv_postFunction_26_0= ruleDataInterchangePostFunction ) |
| // InternalDataDSL.g:601:6: lv_postFunction_26_0= ruleDataInterchangePostFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeAccess().getPostFunctionDataInterchangePostFunctionParserRuleCall_16_1_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_postFunction_26_0=ruleDataInterchangePostFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeRule()); |
| } |
| set( |
| current, |
| "postFunction", |
| lv_postFunction_26_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangePostFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_27=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_27, grammarAccess.getDataInterchangeAccess().getRightCurlyBracketKeyword_17()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchange" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangePostFunction" |
| // InternalDataDSL.g:627:1: entryRuleDataInterchangePostFunction returns [EObject current=null] : iv_ruleDataInterchangePostFunction= ruleDataInterchangePostFunction EOF ; |
| public final EObject entryRuleDataInterchangePostFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangePostFunction = null; |
| |
| |
| try { |
| // InternalDataDSL.g:627:68: (iv_ruleDataInterchangePostFunction= ruleDataInterchangePostFunction EOF ) |
| // InternalDataDSL.g:628:2: iv_ruleDataInterchangePostFunction= ruleDataInterchangePostFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangePostFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangePostFunction=ruleDataInterchangePostFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangePostFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangePostFunction" |
| |
| |
| // $ANTLR start "ruleDataInterchangePostFunction" |
| // InternalDataDSL.g:634:1: ruleDataInterchangePostFunction returns [EObject current=null] : ( () otherlv_1= 'functionGroup' ( (otherlv_2= RULE_ID ) ) ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) ( (otherlv_5= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangePostFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_afterImport_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:640:2: ( ( () otherlv_1= 'functionGroup' ( (otherlv_2= RULE_ID ) ) ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) ( (otherlv_5= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:641:2: ( () otherlv_1= 'functionGroup' ( (otherlv_2= RULE_ID ) ) ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) ( (otherlv_5= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:641:2: ( () otherlv_1= 'functionGroup' ( (otherlv_2= RULE_ID ) ) ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) ( (otherlv_5= RULE_ID ) ) ) |
| // InternalDataDSL.g:642:3: () otherlv_1= 'functionGroup' ( (otherlv_2= RULE_ID ) ) ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) ( (otherlv_5= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:642:3: () |
| // InternalDataDSL.g:643:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangePostFunctionAccess().getDataInterchangePostFunctionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,28,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangePostFunctionAccess().getFunctionGroupKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:653:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:654:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:654:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:655:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangePostFunctionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangePostFunctionAccess().getGroupFunctionLibraryActionGroupCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:666:3: ( ( (lv_afterImport_3_0= 'executeAfterImport' ) ) | otherlv_4= 'executeAfterExport' ) |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==29) ) { |
| alt16=1; |
| } |
| else if ( (LA16_0==30) ) { |
| alt16=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 16, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalDataDSL.g:667:4: ( (lv_afterImport_3_0= 'executeAfterImport' ) ) |
| { |
| // InternalDataDSL.g:667:4: ( (lv_afterImport_3_0= 'executeAfterImport' ) ) |
| // InternalDataDSL.g:668:5: (lv_afterImport_3_0= 'executeAfterImport' ) |
| { |
| // InternalDataDSL.g:668:5: (lv_afterImport_3_0= 'executeAfterImport' ) |
| // InternalDataDSL.g:669:6: lv_afterImport_3_0= 'executeAfterImport' |
| { |
| lv_afterImport_3_0=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_afterImport_3_0, grammarAccess.getDataInterchangePostFunctionAccess().getAfterImportExecuteAfterImportKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangePostFunctionRule()); |
| } |
| setWithLastConsumed(current, "afterImport", true, "executeAfterImport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:682:4: otherlv_4= 'executeAfterExport' |
| { |
| otherlv_4=(Token)match(input,30,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangePostFunctionAccess().getExecuteAfterExportKeyword_3_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:687:3: ( (otherlv_5= RULE_ID ) ) |
| // InternalDataDSL.g:688:4: (otherlv_5= RULE_ID ) |
| { |
| // InternalDataDSL.g:688:4: (otherlv_5= RULE_ID ) |
| // InternalDataDSL.g:689:5: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangePostFunctionRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangePostFunctionAccess().getDoExecuteFunctionFunctionLibraryExecuteCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangePostFunction" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFile" |
| // InternalDataDSL.g:704: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:704:60: (iv_ruleDataInterchangeFile= ruleDataInterchangeFile EOF ) |
| // InternalDataDSL.g:705: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:711:1: ruleDataInterchangeFile returns [EObject current=null] : (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI | this_DataInterchangeFileFixed_3= ruleDataInterchangeFileFixed ) ; |
| public final EObject ruleDataInterchangeFile() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeFileXML_0 = null; |
| |
| EObject this_DataInterchangeFileCSV_1 = null; |
| |
| EObject this_DataInterchangeFileEDI_2 = null; |
| |
| EObject this_DataInterchangeFileFixed_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:717:2: ( (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI | this_DataInterchangeFileFixed_3= ruleDataInterchangeFileFixed ) ) |
| // InternalDataDSL.g:718:2: (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI | this_DataInterchangeFileFixed_3= ruleDataInterchangeFileFixed ) |
| { |
| // InternalDataDSL.g:718:2: (this_DataInterchangeFileXML_0= ruleDataInterchangeFileXML | this_DataInterchangeFileCSV_1= ruleDataInterchangeFileCSV | this_DataInterchangeFileEDI_2= ruleDataInterchangeFileEDI | this_DataInterchangeFileFixed_3= ruleDataInterchangeFileFixed ) |
| int alt17=4; |
| switch ( input.LA(1) ) { |
| case 31: |
| { |
| alt17=1; |
| } |
| break; |
| case 35: |
| { |
| alt17=2; |
| } |
| break; |
| case 40: |
| { |
| alt17=3; |
| } |
| break; |
| case 43: |
| { |
| alt17=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 17, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt17) { |
| case 1 : |
| // InternalDataDSL.g:719: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:728: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:737: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; |
| case 4 : |
| // InternalDataDSL.g:746:3: this_DataInterchangeFileFixed_3= ruleDataInterchangeFileFixed |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFileAccess().getDataInterchangeFileFixedParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeFileFixed_3=ruleDataInterchangeFileFixed(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeFileFixed_3; |
| 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:758: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:758:63: (iv_ruleDataInterchangeFileXML= ruleDataInterchangeFileXML EOF ) |
| // InternalDataDSL.g:759: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:765:1: ruleDataInterchangeFileXML returns [EObject current=null] : ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_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_3_0=null; |
| Token otherlv_4=null; |
| Token lv_encoding_5_0=null; |
| Token otherlv_6=null; |
| Token lv_locale_7_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:771:2: ( ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? ) ) ) |
| // InternalDataDSL.g:772:2: ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? ) ) |
| { |
| // InternalDataDSL.g:772:2: ( () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? ) ) |
| // InternalDataDSL.g:773:3: () otherlv_1= 'XML' ( (lv_fileURL_2_0= RULE_STRING ) ) ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? ) |
| { |
| // InternalDataDSL.g:773:3: () |
| // InternalDataDSL.g:774:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileXMLAccess().getDataInterchangeFileXMLAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,31,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileXMLAccess().getXMLKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:784:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:785:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:785:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:786:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_27); 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:802:3: ( ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? ) |
| // InternalDataDSL.g:803:4: ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? |
| { |
| // InternalDataDSL.g:803:4: ( (lv_byAttribute_3_0= 'mapByAttribute' ) )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==32) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalDataDSL.g:804:5: (lv_byAttribute_3_0= 'mapByAttribute' ) |
| { |
| // InternalDataDSL.g:804:5: (lv_byAttribute_3_0= 'mapByAttribute' ) |
| // InternalDataDSL.g:805:6: lv_byAttribute_3_0= 'mapByAttribute' |
| { |
| lv_byAttribute_3_0=(Token)match(input,32,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_byAttribute_3_0, grammarAccess.getDataInterchangeFileXMLAccess().getByAttributeMapByAttributeKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed(current, "byAttribute", true, "mapByAttribute"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:817:4: (otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) )? |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==33) ) { |
| alt19=1; |
| } |
| switch (alt19) { |
| case 1 : |
| // InternalDataDSL.g:818:5: otherlv_4= 'encoding' ( (lv_encoding_5_0= RULE_STRING ) ) |
| { |
| otherlv_4=(Token)match(input,33,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeFileXMLAccess().getEncodingKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:822:5: ( (lv_encoding_5_0= RULE_STRING ) ) |
| // InternalDataDSL.g:823:6: (lv_encoding_5_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:823:6: (lv_encoding_5_0= RULE_STRING ) |
| // InternalDataDSL.g:824:7: lv_encoding_5_0= RULE_STRING |
| { |
| lv_encoding_5_0=(Token)match(input,RULE_STRING,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_5_0, grammarAccess.getDataInterchangeFileXMLAccess().getEncodingSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_5_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:841:4: (otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==34) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalDataDSL.g:842:5: otherlv_6= 'locale' ( (lv_locale_7_0= RULE_STRING ) ) |
| { |
| otherlv_6=(Token)match(input,34,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeFileXMLAccess().getLocaleKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:846:5: ( (lv_locale_7_0= RULE_STRING ) ) |
| // InternalDataDSL.g:847:6: (lv_locale_7_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:847:6: (lv_locale_7_0= RULE_STRING ) |
| // InternalDataDSL.g:848:7: lv_locale_7_0= RULE_STRING |
| { |
| lv_locale_7_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_7_0, grammarAccess.getDataInterchangeFileXMLAccess().getLocaleSTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileXMLRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileXML" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFileCSV" |
| // InternalDataDSL.g:870: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:870:63: (iv_ruleDataInterchangeFileCSV= ruleDataInterchangeFileCSV EOF ) |
| // InternalDataDSL.g:871: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:877:1: ruleDataInterchangeFileCSV returns [EObject current=null] : ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) ) ; |
| public final EObject ruleDataInterchangeFileCSV() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token otherlv_3=null; |
| Token lv_delimiter_4_0=null; |
| Token otherlv_5=null; |
| Token lv_quoteCharacter_6_0=null; |
| Token otherlv_7=null; |
| Token lv_skipLines_8_0=null; |
| Token lv_indent_9_0=null; |
| Token otherlv_10=null; |
| Token lv_encoding_11_0=null; |
| Token otherlv_12=null; |
| Token lv_locale_13_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:883:2: ( ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) ) ) |
| // InternalDataDSL.g:884:2: ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) ) |
| { |
| // InternalDataDSL.g:884:2: ( () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) ) |
| // InternalDataDSL.g:885:3: () otherlv_1= 'CSV' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) |
| { |
| // InternalDataDSL.g:885:3: () |
| // InternalDataDSL.g:886:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileCSVAccess().getDataInterchangeFileCSVAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,35,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileCSVAccess().getCSVKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:896:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:897:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:897:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:898:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_30); 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:914:3: ( (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? ) |
| // InternalDataDSL.g:915:4: (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? ( (lv_indent_9_0= 'indent' ) )? (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? |
| { |
| // InternalDataDSL.g:915:4: (otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) )? |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==36) ) { |
| alt21=1; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalDataDSL.g:916:5: otherlv_3= 'delimiter' ( (lv_delimiter_4_0= RULE_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,36,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFileCSVAccess().getDelimiterKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:920:5: ( (lv_delimiter_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:921:6: (lv_delimiter_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:921:6: (lv_delimiter_4_0= RULE_STRING ) |
| // InternalDataDSL.g:922:7: lv_delimiter_4_0= RULE_STRING |
| { |
| lv_delimiter_4_0=(Token)match(input,RULE_STRING,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_delimiter_4_0, grammarAccess.getDataInterchangeFileCSVAccess().getDelimiterSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "delimiter", |
| lv_delimiter_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:939:4: (otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==37) ) { |
| alt22=1; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalDataDSL.g:940:5: otherlv_5= 'quoteCharacter' ( (lv_quoteCharacter_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,37,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeFileCSVAccess().getQuoteCharacterKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:944:5: ( (lv_quoteCharacter_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:945:6: (lv_quoteCharacter_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:945:6: (lv_quoteCharacter_6_0= RULE_STRING ) |
| // InternalDataDSL.g:946:7: lv_quoteCharacter_6_0= RULE_STRING |
| { |
| lv_quoteCharacter_6_0=(Token)match(input,RULE_STRING,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_quoteCharacter_6_0, grammarAccess.getDataInterchangeFileCSVAccess().getQuoteCharacterSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "quoteCharacter", |
| lv_quoteCharacter_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:963:4: (otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) )? |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==38) ) { |
| alt23=1; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalDataDSL.g:964:5: otherlv_7= 'skipLines' ( (lv_skipLines_8_0= RULE_INT ) ) |
| { |
| otherlv_7=(Token)match(input,38,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeFileCSVAccess().getSkipLinesKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:968:5: ( (lv_skipLines_8_0= RULE_INT ) ) |
| // InternalDataDSL.g:969:6: (lv_skipLines_8_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:969:6: (lv_skipLines_8_0= RULE_INT ) |
| // InternalDataDSL.g:970:7: lv_skipLines_8_0= RULE_INT |
| { |
| lv_skipLines_8_0=(Token)match(input,RULE_INT,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_skipLines_8_0, grammarAccess.getDataInterchangeFileCSVAccess().getSkipLinesINTTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "skipLines", |
| lv_skipLines_8_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:987:4: ( (lv_indent_9_0= 'indent' ) )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==39) ) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalDataDSL.g:988:5: (lv_indent_9_0= 'indent' ) |
| { |
| // InternalDataDSL.g:988:5: (lv_indent_9_0= 'indent' ) |
| // InternalDataDSL.g:989:6: lv_indent_9_0= 'indent' |
| { |
| lv_indent_9_0=(Token)match(input,39,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_indent_9_0, grammarAccess.getDataInterchangeFileCSVAccess().getIndentIndentKeyword_3_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed(current, "indent", true, "indent"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1001:4: (otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) )? |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==33) ) { |
| alt25=1; |
| } |
| switch (alt25) { |
| case 1 : |
| // InternalDataDSL.g:1002:5: otherlv_10= 'encoding' ( (lv_encoding_11_0= RULE_STRING ) ) |
| { |
| otherlv_10=(Token)match(input,33,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getDataInterchangeFileCSVAccess().getEncodingKeyword_3_4_0()); |
| |
| } |
| // InternalDataDSL.g:1006:5: ( (lv_encoding_11_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1007:6: (lv_encoding_11_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1007:6: (lv_encoding_11_0= RULE_STRING ) |
| // InternalDataDSL.g:1008:7: lv_encoding_11_0= RULE_STRING |
| { |
| lv_encoding_11_0=(Token)match(input,RULE_STRING,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_11_0, grammarAccess.getDataInterchangeFileCSVAccess().getEncodingSTRINGTerminalRuleCall_3_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_11_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1025:4: (otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==34) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalDataDSL.g:1026:5: otherlv_12= 'locale' ( (lv_locale_13_0= RULE_STRING ) ) |
| { |
| otherlv_12=(Token)match(input,34,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataInterchangeFileCSVAccess().getLocaleKeyword_3_5_0()); |
| |
| } |
| // InternalDataDSL.g:1030:5: ( (lv_locale_13_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1031:6: (lv_locale_13_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1031:6: (lv_locale_13_0= RULE_STRING ) |
| // InternalDataDSL.g:1032:7: lv_locale_13_0= RULE_STRING |
| { |
| lv_locale_13_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_13_0, grammarAccess.getDataInterchangeFileCSVAccess().getLocaleSTRINGTerminalRuleCall_3_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileCSVRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_13_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileCSV" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFileEDI" |
| // InternalDataDSL.g:1054: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:1054:63: (iv_ruleDataInterchangeFileEDI= ruleDataInterchangeFileEDI EOF ) |
| // InternalDataDSL.g:1055: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:1061:1: ruleDataInterchangeFileEDI returns [EObject current=null] : ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) otherlv_7= 'mappingModel' ( (lv_mappingModel_8_0= RULE_STRING ) ) ( (lv_validate_9_0= 'validate' ) )? ) ; |
| public final EObject ruleDataInterchangeFileEDI() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token otherlv_3=null; |
| Token lv_encoding_4_0=null; |
| Token otherlv_5=null; |
| Token lv_locale_6_0=null; |
| Token otherlv_7=null; |
| Token lv_mappingModel_8_0=null; |
| Token lv_validate_9_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1067:2: ( ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) otherlv_7= 'mappingModel' ( (lv_mappingModel_8_0= RULE_STRING ) ) ( (lv_validate_9_0= 'validate' ) )? ) ) |
| // InternalDataDSL.g:1068:2: ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) otherlv_7= 'mappingModel' ( (lv_mappingModel_8_0= RULE_STRING ) ) ( (lv_validate_9_0= 'validate' ) )? ) |
| { |
| // InternalDataDSL.g:1068:2: ( () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) otherlv_7= 'mappingModel' ( (lv_mappingModel_8_0= RULE_STRING ) ) ( (lv_validate_9_0= 'validate' ) )? ) |
| // InternalDataDSL.g:1069:3: () otherlv_1= 'EDI' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) otherlv_7= 'mappingModel' ( (lv_mappingModel_8_0= RULE_STRING ) ) ( (lv_validate_9_0= 'validate' ) )? |
| { |
| // InternalDataDSL.g:1069:3: () |
| // InternalDataDSL.g:1070:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileEDIAccess().getDataInterchangeFileEDIAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileEDIAccess().getEDIKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1080:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1081:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1081:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:1082:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_34); 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:1098:3: ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) |
| // InternalDataDSL.g:1099:4: (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? |
| { |
| // InternalDataDSL.g:1099:4: (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==33) ) { |
| alt27=1; |
| } |
| switch (alt27) { |
| case 1 : |
| // InternalDataDSL.g:1100:5: otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,33,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFileEDIAccess().getEncodingKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:1104:5: ( (lv_encoding_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1105:6: (lv_encoding_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1105:6: (lv_encoding_4_0= RULE_STRING ) |
| // InternalDataDSL.g:1106:7: lv_encoding_4_0= RULE_STRING |
| { |
| lv_encoding_4_0=(Token)match(input,RULE_STRING,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_4_0, grammarAccess.getDataInterchangeFileEDIAccess().getEncodingSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1123:4: (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==34) ) { |
| alt28=1; |
| } |
| switch (alt28) { |
| case 1 : |
| // InternalDataDSL.g:1124:5: otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,34,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeFileEDIAccess().getLocaleKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:1128:5: ( (lv_locale_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1129:6: (lv_locale_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1129:6: (lv_locale_6_0= RULE_STRING ) |
| // InternalDataDSL.g:1130:7: lv_locale_6_0= RULE_STRING |
| { |
| lv_locale_6_0=(Token)match(input,RULE_STRING,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_6_0, grammarAccess.getDataInterchangeFileEDIAccess().getLocaleSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,41,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeFileEDIAccess().getMappingModelKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:1152:3: ( (lv_mappingModel_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1153:4: (lv_mappingModel_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1153:4: (lv_mappingModel_8_0= RULE_STRING ) |
| // InternalDataDSL.g:1154:5: lv_mappingModel_8_0= RULE_STRING |
| { |
| lv_mappingModel_8_0=(Token)match(input,RULE_STRING,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_mappingModel_8_0, grammarAccess.getDataInterchangeFileEDIAccess().getMappingModelSTRINGTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileEDIRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "mappingModel", |
| lv_mappingModel_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1170:3: ( (lv_validate_9_0= 'validate' ) )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==42) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalDataDSL.g:1171:4: (lv_validate_9_0= 'validate' ) |
| { |
| // InternalDataDSL.g:1171:4: (lv_validate_9_0= 'validate' ) |
| // InternalDataDSL.g:1172:5: lv_validate_9_0= 'validate' |
| { |
| lv_validate_9_0=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_validate_9_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 "entryRuleDataInterchangeFileFixed" |
| // InternalDataDSL.g:1188:1: entryRuleDataInterchangeFileFixed returns [EObject current=null] : iv_ruleDataInterchangeFileFixed= ruleDataInterchangeFileFixed EOF ; |
| public final EObject entryRuleDataInterchangeFileFixed() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFileFixed = null; |
| |
| |
| try { |
| // InternalDataDSL.g:1188:65: (iv_ruleDataInterchangeFileFixed= ruleDataInterchangeFileFixed EOF ) |
| // InternalDataDSL.g:1189:2: iv_ruleDataInterchangeFileFixed= ruleDataInterchangeFileFixed EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFileFixedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFileFixed=ruleDataInterchangeFileFixed(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFileFixed; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFileFixed" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFileFixed" |
| // InternalDataDSL.g:1195:1: ruleDataInterchangeFileFixed returns [EObject current=null] : ( () otherlv_1= 'Fixed' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) ) ; |
| public final EObject ruleDataInterchangeFileFixed() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_fileURL_2_0=null; |
| Token otherlv_3=null; |
| Token lv_encoding_4_0=null; |
| Token otherlv_5=null; |
| Token lv_locale_6_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1201:2: ( ( () otherlv_1= 'Fixed' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) ) ) |
| // InternalDataDSL.g:1202:2: ( () otherlv_1= 'Fixed' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) ) |
| { |
| // InternalDataDSL.g:1202:2: ( () otherlv_1= 'Fixed' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) ) |
| // InternalDataDSL.g:1203:3: () otherlv_1= 'Fixed' ( (lv_fileURL_2_0= RULE_STRING ) ) ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) |
| { |
| // InternalDataDSL.g:1203:3: () |
| // InternalDataDSL.g:1204:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFileFixedAccess().getDataInterchangeFileFixedAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,43,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFileFixedAccess().getFixedKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1214:3: ( (lv_fileURL_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1215:4: (lv_fileURL_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1215:4: (lv_fileURL_2_0= RULE_STRING ) |
| // InternalDataDSL.g:1216:5: lv_fileURL_2_0= RULE_STRING |
| { |
| lv_fileURL_2_0=(Token)match(input,RULE_STRING,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileURL_2_0, grammarAccess.getDataInterchangeFileFixedAccess().getFileURLSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileFixedRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileURL", |
| lv_fileURL_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1232:3: ( (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? ) |
| // InternalDataDSL.g:1233:4: (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? |
| { |
| // InternalDataDSL.g:1233:4: (otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) )? |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==33) ) { |
| alt30=1; |
| } |
| switch (alt30) { |
| case 1 : |
| // InternalDataDSL.g:1234:5: otherlv_3= 'encoding' ( (lv_encoding_4_0= RULE_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,33,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFileFixedAccess().getEncodingKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:1238:5: ( (lv_encoding_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1239:6: (lv_encoding_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1239:6: (lv_encoding_4_0= RULE_STRING ) |
| // InternalDataDSL.g:1240:7: lv_encoding_4_0= RULE_STRING |
| { |
| lv_encoding_4_0=(Token)match(input,RULE_STRING,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_encoding_4_0, grammarAccess.getDataInterchangeFileFixedAccess().getEncodingSTRINGTerminalRuleCall_3_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileFixedRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "encoding", |
| lv_encoding_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1257:4: (otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) )? |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==34) ) { |
| alt31=1; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalDataDSL.g:1258:5: otherlv_5= 'locale' ( (lv_locale_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,34,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeFileFixedAccess().getLocaleKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:1262:5: ( (lv_locale_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1263:6: (lv_locale_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1263:6: (lv_locale_6_0= RULE_STRING ) |
| // InternalDataDSL.g:1264:7: lv_locale_6_0= RULE_STRING |
| { |
| lv_locale_6_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_locale_6_0, grammarAccess.getDataInterchangeFileFixedAccess().getLocaleSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFileFixedRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "locale", |
| lv_locale_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFileFixed" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeBean" |
| // InternalDataDSL.g:1286: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:1286:60: (iv_ruleDataInterchangeBean= ruleDataInterchangeBean EOF ) |
| // InternalDataDSL.g:1287: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:1293:1: ruleDataInterchangeBean returns [EObject current=null] : ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) ) ; |
| public final EObject ruleDataInterchangeBean() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_fileName_4_0=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_nodeName_8_0=null; |
| Token otherlv_9=null; |
| Token lv_elementMap_10_0=null; |
| Token lv_markLatestImport_11_0=null; |
| Token otherlv_12=null; |
| Token lv_markLatestExport_13_0=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_17_0 = null; |
| |
| EObject lv_lookup_21_0 = null; |
| |
| EObject lv_format_25_0 = null; |
| |
| EObject lv_exportExposes_29_0 = null; |
| |
| EObject lv_mappings_33_0 = null; |
| |
| EObject lv_lookupKeys_37_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1299:2: ( ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) ) ) |
| // InternalDataDSL.g:1300:2: ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) ) |
| { |
| // InternalDataDSL.g:1300:2: ( () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) ) |
| // InternalDataDSL.g:1301:3: () otherlv_1= 'entity' ( ( ruleLFQN ) ) (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) |
| { |
| // InternalDataDSL.g:1301:3: () |
| // InternalDataDSL.g:1302:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeBeanAccess().getDataInterchangeBeanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,44,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeBeanAccess().getEntityKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1312:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:1313:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:1313:4: ( ruleLFQN ) |
| // InternalDataDSL.g:1314: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_38); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1328:3: (otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) )? |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==45) ) { |
| alt32=1; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalDataDSL.g:1329:4: otherlv_3= 'filename' ( (lv_fileName_4_0= RULE_STRING ) ) |
| { |
| otherlv_3=(Token)match(input,45,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeBeanAccess().getFilenameKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:1333:4: ( (lv_fileName_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1334:5: (lv_fileName_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1334:5: (lv_fileName_4_0= RULE_STRING ) |
| // InternalDataDSL.g:1335:6: lv_fileName_4_0= RULE_STRING |
| { |
| lv_fileName_4_0=(Token)match(input,RULE_STRING,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileName_4_0, grammarAccess.getDataInterchangeBeanAccess().getFileNameSTRINGTerminalRuleCall_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileName", |
| lv_fileName_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1352:3: (otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) )? |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==46) ) { |
| alt33=1; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalDataDSL.g:1353:4: otherlv_5= 'referencedBy' ( (otherlv_6= RULE_ID ) ) |
| { |
| otherlv_5=(Token)match(input,46,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeBeanAccess().getReferencedByKeyword_4_0()); |
| |
| } |
| // InternalDataDSL.g:1357:4: ( (otherlv_6= RULE_ID ) ) |
| // InternalDataDSL.g:1358:5: (otherlv_6= RULE_ID ) |
| { |
| // InternalDataDSL.g:1358:5: (otherlv_6= RULE_ID ) |
| // InternalDataDSL.g:1359:6: otherlv_6= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| otherlv_6=(Token)match(input,RULE_ID,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeBeanAccess().getRefDataSourceLEntityFeatureCrossReference_4_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1371:3: (otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==47) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalDataDSL.g:1372:4: otherlv_7= 'nodeName' ( (lv_nodeName_8_0= RULE_STRING ) ) |
| { |
| otherlv_7=(Token)match(input,47,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeBeanAccess().getNodeNameKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:1376:4: ( (lv_nodeName_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1377:5: (lv_nodeName_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1377:5: (lv_nodeName_8_0= RULE_STRING ) |
| // InternalDataDSL.g:1378:6: lv_nodeName_8_0= RULE_STRING |
| { |
| lv_nodeName_8_0=(Token)match(input,RULE_STRING,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nodeName_8_0, grammarAccess.getDataInterchangeBeanAccess().getNodeNameSTRINGTerminalRuleCall_5_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "nodeName", |
| lv_nodeName_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1395:3: (otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==48) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalDataDSL.g:1396:4: otherlv_9= 'createOn' ( (lv_elementMap_10_0= RULE_STRING ) ) |
| { |
| otherlv_9=(Token)match(input,48,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDataInterchangeBeanAccess().getCreateOnKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:1400:4: ( (lv_elementMap_10_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1401:5: (lv_elementMap_10_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1401:5: (lv_elementMap_10_0= RULE_STRING ) |
| // InternalDataDSL.g:1402:6: lv_elementMap_10_0= RULE_STRING |
| { |
| lv_elementMap_10_0=(Token)match(input,RULE_STRING,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementMap_10_0, grammarAccess.getDataInterchangeBeanAccess().getElementMapSTRINGTerminalRuleCall_6_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "elementMap", |
| lv_elementMap_10_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1419:3: ( ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) )? |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==49) ) { |
| alt36=1; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalDataDSL.g:1420:4: ( (lv_markLatestImport_11_0= 'latestImport' ) ) ( (otherlv_12= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1420:4: ( (lv_markLatestImport_11_0= 'latestImport' ) ) |
| // InternalDataDSL.g:1421:5: (lv_markLatestImport_11_0= 'latestImport' ) |
| { |
| // InternalDataDSL.g:1421:5: (lv_markLatestImport_11_0= 'latestImport' ) |
| // InternalDataDSL.g:1422:6: lv_markLatestImport_11_0= 'latestImport' |
| { |
| lv_markLatestImport_11_0=(Token)match(input,49,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_markLatestImport_11_0, grammarAccess.getDataInterchangeBeanAccess().getMarkLatestImportLatestImportKeyword_7_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed(current, "markLatestImport", true, "latestImport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1434:4: ( (otherlv_12= RULE_ID ) ) |
| // InternalDataDSL.g:1435:5: (otherlv_12= RULE_ID ) |
| { |
| // InternalDataDSL.g:1435:5: (otherlv_12= RULE_ID ) |
| // InternalDataDSL.g:1436:6: otherlv_12= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| otherlv_12=(Token)match(input,RULE_ID,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataInterchangeBeanAccess().getLatestPropertyLEntityAttributeCrossReference_7_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1448:3: ( ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) )? |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==50) ) { |
| alt37=1; |
| } |
| switch (alt37) { |
| case 1 : |
| // InternalDataDSL.g:1449:4: ( (lv_markLatestExport_13_0= 'latestExport' ) ) ( (otherlv_14= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1449:4: ( (lv_markLatestExport_13_0= 'latestExport' ) ) |
| // InternalDataDSL.g:1450:5: (lv_markLatestExport_13_0= 'latestExport' ) |
| { |
| // InternalDataDSL.g:1450:5: (lv_markLatestExport_13_0= 'latestExport' ) |
| // InternalDataDSL.g:1451:6: lv_markLatestExport_13_0= 'latestExport' |
| { |
| lv_markLatestExport_13_0=(Token)match(input,50,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_markLatestExport_13_0, grammarAccess.getDataInterchangeBeanAccess().getMarkLatestExportLatestExportKeyword_8_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| setWithLastConsumed(current, "markLatestExport", true, "latestExport"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1463:4: ( (otherlv_14= RULE_ID ) ) |
| // InternalDataDSL.g:1464:5: (otherlv_14= RULE_ID ) |
| { |
| // InternalDataDSL.g:1464:5: (otherlv_14= RULE_ID ) |
| // InternalDataDSL.g:1465:6: otherlv_14= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBeanRule()); |
| } |
| |
| } |
| otherlv_14=(Token)match(input,RULE_ID,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getDataInterchangeBeanAccess().getLatestExpPropertyLEntityAttributeCrossReference_8_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1477:3: ( (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? ) |
| // InternalDataDSL.g:1478:4: (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? |
| { |
| // InternalDataDSL.g:1478:4: (otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==51) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalDataDSL.g:1479:5: otherlv_15= 'expression' otherlv_16= '{' ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* otherlv_18= '}' |
| { |
| otherlv_15=(Token)match(input,51,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDataInterchangeBeanAccess().getExpressionKeyword_9_0_0()); |
| |
| } |
| otherlv_16=(Token)match(input,14,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_0_1()); |
| |
| } |
| // InternalDataDSL.g:1487:5: ( (lv_expression_17_0= ruleDataInterchangeExpression ) )* |
| loop38: |
| do { |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==69||LA38_0==79) ) { |
| alt38=1; |
| } |
| |
| |
| switch (alt38) { |
| case 1 : |
| // InternalDataDSL.g:1488:6: (lv_expression_17_0= ruleDataInterchangeExpression ) |
| { |
| // InternalDataDSL.g:1488:6: (lv_expression_17_0= ruleDataInterchangeExpression ) |
| // InternalDataDSL.g:1489:7: lv_expression_17_0= ruleDataInterchangeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getExpressionDataInterchangeExpressionParserRuleCall_9_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_expression_17_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_17_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop38; |
| } |
| } while (true); |
| |
| otherlv_18=(Token)match(input,15,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_0_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1511:4: (otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' )? |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==52) ) { |
| alt41=1; |
| } |
| switch (alt41) { |
| case 1 : |
| // InternalDataDSL.g:1512:5: otherlv_19= 'lookup' otherlv_20= '{' ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* otherlv_22= '}' |
| { |
| otherlv_19=(Token)match(input,52,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getDataInterchangeBeanAccess().getLookupKeyword_9_1_0()); |
| |
| } |
| otherlv_20=(Token)match(input,14,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_1_1()); |
| |
| } |
| // InternalDataDSL.g:1520:5: ( (lv_lookup_21_0= ruleDataInterchangeLookup ) )* |
| loop40: |
| do { |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==58) ) { |
| alt40=1; |
| } |
| |
| |
| switch (alt40) { |
| case 1 : |
| // InternalDataDSL.g:1521:6: (lv_lookup_21_0= ruleDataInterchangeLookup ) |
| { |
| // InternalDataDSL.g:1521:6: (lv_lookup_21_0= ruleDataInterchangeLookup ) |
| // InternalDataDSL.g:1522:7: lv_lookup_21_0= ruleDataInterchangeLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getLookupDataInterchangeLookupParserRuleCall_9_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_lookup_21_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_21_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeLookup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop40; |
| } |
| } while (true); |
| |
| otherlv_22=(Token)match(input,15,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1544:4: (otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' )? |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==53) ) { |
| alt43=1; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalDataDSL.g:1545:5: otherlv_23= 'format' otherlv_24= '{' ( (lv_format_25_0= ruleDataInterchangeFormat ) )* otherlv_26= '}' |
| { |
| otherlv_23=(Token)match(input,53,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_23, grammarAccess.getDataInterchangeBeanAccess().getFormatKeyword_9_2_0()); |
| |
| } |
| otherlv_24=(Token)match(input,14,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_24, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_2_1()); |
| |
| } |
| // InternalDataDSL.g:1553:5: ( (lv_format_25_0= ruleDataInterchangeFormat ) )* |
| loop42: |
| do { |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==58) ) { |
| alt42=1; |
| } |
| |
| |
| switch (alt42) { |
| case 1 : |
| // InternalDataDSL.g:1554:6: (lv_format_25_0= ruleDataInterchangeFormat ) |
| { |
| // InternalDataDSL.g:1554:6: (lv_format_25_0= ruleDataInterchangeFormat ) |
| // InternalDataDSL.g:1555:7: lv_format_25_0= ruleDataInterchangeFormat |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getFormatDataInterchangeFormatParserRuleCall_9_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_format_25_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_25_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeFormat"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop42; |
| } |
| } while (true); |
| |
| otherlv_26=(Token)match(input,15,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_26, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1577:4: (otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==54) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalDataDSL.g:1578:5: otherlv_27= 'expose' otherlv_28= '{' ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* otherlv_30= '}' |
| { |
| otherlv_27=(Token)match(input,54,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_27, grammarAccess.getDataInterchangeBeanAccess().getExposeKeyword_9_3_0()); |
| |
| } |
| otherlv_28=(Token)match(input,14,FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_28, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_3_1()); |
| |
| } |
| // InternalDataDSL.g:1586:5: ( (lv_exportExposes_29_0= ruleDataInterchangeExpose ) )* |
| loop44: |
| do { |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==72) ) { |
| alt44=1; |
| } |
| |
| |
| switch (alt44) { |
| case 1 : |
| // InternalDataDSL.g:1587:6: (lv_exportExposes_29_0= ruleDataInterchangeExpose ) |
| { |
| // InternalDataDSL.g:1587:6: (lv_exportExposes_29_0= ruleDataInterchangeExpose ) |
| // InternalDataDSL.g:1588:7: lv_exportExposes_29_0= ruleDataInterchangeExpose |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getExportExposesDataInterchangeExposeParserRuleCall_9_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_exportExposes_29_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_29_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExpose"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop44; |
| } |
| } while (true); |
| |
| otherlv_30=(Token)match(input,15,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_30, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1610:4: (otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==55) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalDataDSL.g:1611:5: otherlv_31= 'mapping' otherlv_32= '{' ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* otherlv_34= '}' |
| { |
| otherlv_31=(Token)match(input,55,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_31, grammarAccess.getDataInterchangeBeanAccess().getMappingKeyword_9_4_0()); |
| |
| } |
| otherlv_32=(Token)match(input,14,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_32, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_4_1()); |
| |
| } |
| // InternalDataDSL.g:1619:5: ( (lv_mappings_33_0= ruleDataInterchangeMapping ) )* |
| loop46: |
| do { |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==82||LA46_0==84||LA46_0==87||(LA46_0>=97 && LA46_0<=98)) ) { |
| alt46=1; |
| } |
| |
| |
| switch (alt46) { |
| case 1 : |
| // InternalDataDSL.g:1620:6: (lv_mappings_33_0= ruleDataInterchangeMapping ) |
| { |
| // InternalDataDSL.g:1620:6: (lv_mappings_33_0= ruleDataInterchangeMapping ) |
| // InternalDataDSL.g:1621:7: lv_mappings_33_0= ruleDataInterchangeMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getMappingsDataInterchangeMappingParserRuleCall_9_4_2_0()); |
| |
| } |
| pushFollow(FOLLOW_52); |
| lv_mappings_33_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_33_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeMapping"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop46; |
| } |
| } while (true); |
| |
| otherlv_34=(Token)match(input,15,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_34, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_4_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1643:4: (otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' )? |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==56) ) { |
| alt49=1; |
| } |
| switch (alt49) { |
| case 1 : |
| // InternalDataDSL.g:1644:5: otherlv_35= 'keys' otherlv_36= '{' ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* otherlv_38= '}' |
| { |
| otherlv_35=(Token)match(input,56,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_35, grammarAccess.getDataInterchangeBeanAccess().getKeysKeyword_9_5_0()); |
| |
| } |
| otherlv_36=(Token)match(input,14,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_36, grammarAccess.getDataInterchangeBeanAccess().getLeftCurlyBracketKeyword_9_5_1()); |
| |
| } |
| // InternalDataDSL.g:1652:5: ( (lv_lookupKeys_37_0= ruleDataInterchangeKey ) )* |
| loop48: |
| do { |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==57) ) { |
| alt48=1; |
| } |
| |
| |
| switch (alt48) { |
| case 1 : |
| // InternalDataDSL.g:1653:6: (lv_lookupKeys_37_0= ruleDataInterchangeKey ) |
| { |
| // InternalDataDSL.g:1653:6: (lv_lookupKeys_37_0= ruleDataInterchangeKey ) |
| // InternalDataDSL.g:1654:7: lv_lookupKeys_37_0= ruleDataInterchangeKey |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeBeanAccess().getLookupKeysDataInterchangeKeyParserRuleCall_9_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_lookupKeys_37_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_37_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeKey"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop48; |
| } |
| } while (true); |
| |
| otherlv_38=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_38, grammarAccess.getDataInterchangeBeanAccess().getRightCurlyBracketKeyword_9_5_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:1681: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:1681:59: (iv_ruleDataInterchangeKey= ruleDataInterchangeKey EOF ) |
| // InternalDataDSL.g:1682: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:1688: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:1694:2: ( ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:1695:2: ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:1695:2: ( () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalDataDSL.g:1696:3: () otherlv_1= 'key' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:1696:3: () |
| // InternalDataDSL.g:1697:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeKeyAccess().getDataInterchangeKeyAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,57,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeKeyAccess().getKeyKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1707:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:1708:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:1708:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:1709: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:1724: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:1724:62: (iv_ruleDataInterchangeLookup= ruleDataInterchangeLookup EOF ) |
| // InternalDataDSL.g:1725: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:1731:1: ruleDataInterchangeLookup returns [EObject current=null] : ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'in' ( (otherlv_4= RULE_ID ) ) otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) otherlv_7= 'mapFrom' ( (lv_dataMap_8_0= RULE_STRING ) ) ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) otherlv_11= 'mapTo' ( (otherlv_12= RULE_ID ) ) ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? ) ; |
| 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 lv_dataMap_8_0=null; |
| Token lv_allowNoResult_9_0=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token lv_cached_13_0=null; |
| Token lv_cacheSize_14_0=null; |
| Token otherlv_15=null; |
| Token otherlv_16=null; |
| Token otherlv_18=null; |
| EObject lv_markerPath_10_0 = null; |
| |
| EObject lv_condition_17_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:1737:2: ( ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'in' ( (otherlv_4= RULE_ID ) ) otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) otherlv_7= 'mapFrom' ( (lv_dataMap_8_0= RULE_STRING ) ) ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) otherlv_11= 'mapTo' ( (otherlv_12= RULE_ID ) ) ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? ) ) |
| // InternalDataDSL.g:1738:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'in' ( (otherlv_4= RULE_ID ) ) otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) otherlv_7= 'mapFrom' ( (lv_dataMap_8_0= RULE_STRING ) ) ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) otherlv_11= 'mapTo' ( (otherlv_12= RULE_ID ) ) ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? ) |
| { |
| // InternalDataDSL.g:1738:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'in' ( (otherlv_4= RULE_ID ) ) otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) otherlv_7= 'mapFrom' ( (lv_dataMap_8_0= RULE_STRING ) ) ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) otherlv_11= 'mapTo' ( (otherlv_12= RULE_ID ) ) ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? ) |
| // InternalDataDSL.g:1739:3: () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'in' ( (otherlv_4= RULE_ID ) ) otherlv_5= 'createOn' ( (lv_elementMap_6_0= RULE_STRING ) ) otherlv_7= 'mapFrom' ( (lv_dataMap_8_0= RULE_STRING ) ) ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) otherlv_11= 'mapTo' ( (otherlv_12= RULE_ID ) ) ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? |
| { |
| // InternalDataDSL.g:1739:3: () |
| // InternalDataDSL.g:1740:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeLookupAccess().getDataInterchangeLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeLookupAccess().getForKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:1750:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:1751:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:1751:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:1752:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeLookupAccess().getTargetPropertyLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,59,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeLookupAccess().getInKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:1767:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:1768:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:1768:4: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:1769:5: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDataInterchangeLookupAccess().getEntityLEntityCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,48,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeLookupAccess().getCreateOnKeyword_5()); |
| |
| } |
| // InternalDataDSL.g:1784:3: ( (lv_elementMap_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1785:4: (lv_elementMap_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1785:4: (lv_elementMap_6_0= RULE_STRING ) |
| // InternalDataDSL.g:1786:5: lv_elementMap_6_0= RULE_STRING |
| { |
| lv_elementMap_6_0=(Token)match(input,RULE_STRING,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_elementMap_6_0, grammarAccess.getDataInterchangeLookupAccess().getElementMapSTRINGTerminalRuleCall_6_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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,60,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeLookupAccess().getMapFromKeyword_7()); |
| |
| } |
| // InternalDataDSL.g:1806:3: ( (lv_dataMap_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:1807:4: (lv_dataMap_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:1807:4: (lv_dataMap_8_0= RULE_STRING ) |
| // InternalDataDSL.g:1808:5: lv_dataMap_8_0= RULE_STRING |
| { |
| lv_dataMap_8_0=(Token)match(input,RULE_STRING,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dataMap_8_0, grammarAccess.getDataInterchangeLookupAccess().getDataMapSTRINGTerminalRuleCall_8_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dataMap", |
| lv_dataMap_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1824:3: ( ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? ) |
| // InternalDataDSL.g:1825:4: ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? |
| { |
| // InternalDataDSL.g:1825:4: ( (lv_allowNoResult_9_0= 'allowNoResult' ) )? |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==61) ) { |
| alt50=1; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalDataDSL.g:1826:5: (lv_allowNoResult_9_0= 'allowNoResult' ) |
| { |
| // InternalDataDSL.g:1826:5: (lv_allowNoResult_9_0= 'allowNoResult' ) |
| // InternalDataDSL.g:1827:6: lv_allowNoResult_9_0= 'allowNoResult' |
| { |
| lv_allowNoResult_9_0=(Token)match(input,61,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_allowNoResult_9_0, grammarAccess.getDataInterchangeLookupAccess().getAllowNoResultAllowNoResultKeyword_9_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed(current, "allowNoResult", true, "allowNoResult"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1839:4: ( (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) )? |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==65) ) { |
| alt51=1; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalDataDSL.g:1840:5: (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) |
| { |
| // InternalDataDSL.g:1840:5: (lv_markerPath_10_0= ruleDataInterchangeMarkerPath ) |
| // InternalDataDSL.g:1841:6: lv_markerPath_10_0= ruleDataInterchangeMarkerPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupAccess().getMarkerPathDataInterchangeMarkerPathParserRuleCall_9_1_0()); |
| |
| } |
| pushFollow(FOLLOW_60); |
| lv_markerPath_10_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_10_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeMarkerPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| otherlv_11=(Token)match(input,62,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDataInterchangeLookupAccess().getMapToKeyword_10()); |
| |
| } |
| // InternalDataDSL.g:1863:3: ( (otherlv_12= RULE_ID ) ) |
| // InternalDataDSL.g:1864:4: (otherlv_12= RULE_ID ) |
| { |
| // InternalDataDSL.g:1864:4: (otherlv_12= RULE_ID ) |
| // InternalDataDSL.g:1865:5: otherlv_12= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| |
| } |
| otherlv_12=(Token)match(input,RULE_ID,FOLLOW_61); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getDataInterchangeLookupAccess().getQueryPropertyLEntityAttributeCrossReference_11_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1876:3: ( ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) )? |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==63) ) { |
| alt52=1; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalDataDSL.g:1877:4: ( (lv_cached_13_0= 'cacheSize' ) ) ( (lv_cacheSize_14_0= RULE_INT ) ) |
| { |
| // InternalDataDSL.g:1877:4: ( (lv_cached_13_0= 'cacheSize' ) ) |
| // InternalDataDSL.g:1878:5: (lv_cached_13_0= 'cacheSize' ) |
| { |
| // InternalDataDSL.g:1878:5: (lv_cached_13_0= 'cacheSize' ) |
| // InternalDataDSL.g:1879:6: lv_cached_13_0= 'cacheSize' |
| { |
| lv_cached_13_0=(Token)match(input,63,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_cached_13_0, grammarAccess.getDataInterchangeLookupAccess().getCachedCacheSizeKeyword_12_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed(current, "cached", true, "cacheSize"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:1891:4: ( (lv_cacheSize_14_0= RULE_INT ) ) |
| // InternalDataDSL.g:1892:5: (lv_cacheSize_14_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:1892:5: (lv_cacheSize_14_0= RULE_INT ) |
| // InternalDataDSL.g:1893:6: lv_cacheSize_14_0= RULE_INT |
| { |
| lv_cacheSize_14_0=(Token)match(input,RULE_INT,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_cacheSize_14_0, grammarAccess.getDataInterchangeLookupAccess().getCacheSizeINTTerminalRuleCall_12_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "cacheSize", |
| lv_cacheSize_14_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:1910:3: (otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' )? |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==64) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalDataDSL.g:1911:4: otherlv_15= 'where' otherlv_16= '{' ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) otherlv_18= '}' |
| { |
| otherlv_15=(Token)match(input,64,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getDataInterchangeLookupAccess().getWhereKeyword_13_0()); |
| |
| } |
| otherlv_16=(Token)match(input,14,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getDataInterchangeLookupAccess().getLeftCurlyBracketKeyword_13_1()); |
| |
| } |
| // InternalDataDSL.g:1919:4: ( (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) ) |
| // InternalDataDSL.g:1920:5: (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) |
| { |
| // InternalDataDSL.g:1920:5: (lv_condition_17_0= ruleDataInterchangeLookupFilterCondition ) |
| // InternalDataDSL.g:1921:6: lv_condition_17_0= ruleDataInterchangeLookupFilterCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupAccess().getConditionDataInterchangeLookupFilterConditionParserRuleCall_13_2_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_condition_17_0=ruleDataInterchangeLookupFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupRule()); |
| } |
| set( |
| current, |
| "condition", |
| lv_condition_17_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeLookupFilterCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_18=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getDataInterchangeLookupAccess().getRightCurlyBracketKeyword_13_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookup" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeMarkerPath" |
| // InternalDataDSL.g:1947: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:1947:66: (iv_ruleDataInterchangeMarkerPath= ruleDataInterchangeMarkerPath EOF ) |
| // InternalDataDSL.g:1948: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:1954: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:1960:2: ( ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) ) |
| // InternalDataDSL.g:1961:2: ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) |
| { |
| // InternalDataDSL.g:1961:2: ( () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' ) |
| // InternalDataDSL.g:1962:3: () otherlv_1= 'markerPath' otherlv_2= '{' ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* otherlv_4= '}' |
| { |
| // InternalDataDSL.g:1962:3: () |
| // InternalDataDSL.g:1963:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeMarkerPathAccess().getDataInterchangeMarkerPathAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,65,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeMarkerPathAccess().getMarkerPathKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeMarkerPathAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:1977:3: ( (lv_path_3_0= ruleDataInterchangeMarkerEntity ) )* |
| loop54: |
| do { |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==66) ) { |
| alt54=1; |
| } |
| |
| |
| switch (alt54) { |
| case 1 : |
| // InternalDataDSL.g:1978:4: (lv_path_3_0= ruleDataInterchangeMarkerEntity ) |
| { |
| // InternalDataDSL.g:1978:4: (lv_path_3_0= ruleDataInterchangeMarkerEntity ) |
| // InternalDataDSL.g:1979:5: lv_path_3_0= ruleDataInterchangeMarkerEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMarkerPathAccess().getPathDataInterchangeMarkerEntityParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| 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 loop54; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,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:2004: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:2004:68: (iv_ruleDataInterchangeMarkerEntity= ruleDataInterchangeMarkerEntity EOF ) |
| // InternalDataDSL.g:2005: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:2011: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:2017:2: ( ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) ) |
| // InternalDataDSL.g:2018:2: ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) |
| { |
| // InternalDataDSL.g:2018:2: ( () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? ) |
| // InternalDataDSL.g:2019:3: () otherlv_1= 'markerEntity' ( ( ruleLFQN ) ) ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? |
| { |
| // InternalDataDSL.g:2019:3: () |
| // InternalDataDSL.g:2020:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeMarkerEntityAccess().getDataInterchangeMarkerEntityAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,66,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeMarkerEntityAccess().getMarkerEntityKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2030:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:2031:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:2031:4: ( ruleLFQN ) |
| // InternalDataDSL.g:2032: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_64); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2046:3: ( ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) )? |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==67) ) { |
| alt55=1; |
| } |
| switch (alt55) { |
| case 1 : |
| // InternalDataDSL.g:2047:4: ( (lv_markLatest_3_0= 'markedBy' ) ) ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:2047:4: ( (lv_markLatest_3_0= 'markedBy' ) ) |
| // InternalDataDSL.g:2048:5: (lv_markLatest_3_0= 'markedBy' ) |
| { |
| // InternalDataDSL.g:2048:5: (lv_markLatest_3_0= 'markedBy' ) |
| // InternalDataDSL.g:2049:6: lv_markLatest_3_0= 'markedBy' |
| { |
| lv_markLatest_3_0=(Token)match(input,67,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:2061:4: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:2062:5: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:2062:5: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:2063: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:2079: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:2079:62: (iv_ruleDataInterchangeFormat= ruleDataInterchangeFormat EOF ) |
| // InternalDataDSL.g:2080: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:2086: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:2092:2: ( ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:2093:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:2093:2: ( () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:2094:3: () otherlv_1= 'for' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'coding' ( (lv_format_4_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:2094:3: () |
| // InternalDataDSL.g:2095:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFormatAccess().getDataInterchangeFormatAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFormatAccess().getForKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2105:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2106:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2106:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2107:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFormatRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeFormatAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,68,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFormatAccess().getCodingKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2122:3: ( (lv_format_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:2123:4: (lv_format_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2123:4: (lv_format_4_0= RULE_STRING ) |
| // InternalDataDSL.g:2124: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:2144: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:2144:66: (iv_ruleDataInterchangeExpression= ruleDataInterchangeExpression EOF ) |
| // InternalDataDSL.g:2145: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:2151: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:2157:2: ( (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) ) |
| // InternalDataDSL.g:2158:2: (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) |
| { |
| // InternalDataDSL.g:2158:2: (this_DataInterchangeEntityExpression_0= ruleDataInterchangeEntityExpression | this_DataInterchangePredefinedExpression_1= ruleDataInterchangePredefinedExpression ) |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==69) ) { |
| alt56=1; |
| } |
| else if ( (LA56_0==79) ) { |
| alt56=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 56, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalDataDSL.g:2159: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:2168: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:2180: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:2180:72: (iv_ruleDataInterchangeEntityExpression= ruleDataInterchangeEntityExpression EOF ) |
| // InternalDataDSL.g:2181: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:2187: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:2193:2: ( ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:2194:2: ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:2194:2: ( () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) ) |
| // InternalDataDSL.g:2195:3: () otherlv_1= 'copy' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'from' ( ( ruleLFQN ) ) otherlv_5= 'property' ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:2195:3: () |
| // InternalDataDSL.g:2196:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeEntityExpressionAccess().getDataInterchangeEntityExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,69,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeEntityExpressionAccess().getCopyKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2206:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2207:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2207:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2208:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeEntityExpressionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeEntityExpressionAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,70,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeEntityExpressionAccess().getFromKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2223:3: ( ( ruleLFQN ) ) |
| // InternalDataDSL.g:2224:4: ( ruleLFQN ) |
| { |
| // InternalDataDSL.g:2224:4: ( ruleLFQN ) |
| // InternalDataDSL.g:2225: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_67); |
| ruleLFQN(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,71,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeEntityExpressionAccess().getPropertyKeyword_5()); |
| |
| } |
| // InternalDataDSL.g:2243:3: ( (otherlv_6= RULE_ID ) ) |
| // InternalDataDSL.g:2244:4: (otherlv_6= RULE_ID ) |
| { |
| // InternalDataDSL.g:2244:4: (otherlv_6= RULE_ID ) |
| // InternalDataDSL.g:2245: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:2260: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:2260:62: (iv_ruleDataInterchangeExpose= ruleDataInterchangeExpose EOF ) |
| // InternalDataDSL.g:2261: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:2267: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:2273: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:2274: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:2274: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:2275: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:2275:3: () |
| // InternalDataDSL.g:2276:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExposeAccess().getDataInterchangeExposeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,72,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeExposeAccess().getRefKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2286:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2287:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2287:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2288:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeExposeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeExposeAccess().getRefEntityLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2299:3: ( (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) | (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) ) |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==73) ) { |
| alt57=1; |
| } |
| else if ( (LA57_0==54) ) { |
| alt57=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalDataDSL.g:2300:4: (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:2300:4: (otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalDataDSL.g:2301:5: otherlv_3= 'on' ( (otherlv_4= RULE_ID ) ) |
| { |
| otherlv_3=(Token)match(input,73,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeExposeAccess().getOnKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:2305:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:2306:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:2306:6: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:2307: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:2320:4: (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) |
| { |
| // InternalDataDSL.g:2320:4: (otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' ) |
| // InternalDataDSL.g:2321:5: otherlv_5= 'expose' otherlv_6= '{' ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) otherlv_8= '}' |
| { |
| otherlv_5=(Token)match(input,54,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,14,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeExposeAccess().getLeftCurlyBracketKeyword_3_1_1()); |
| |
| } |
| // InternalDataDSL.g:2329:5: ( (lv_subExpose_7_0= ruleDataInterchangeExpose ) ) |
| // InternalDataDSL.g:2330:6: (lv_subExpose_7_0= ruleDataInterchangeExpose ) |
| { |
| // InternalDataDSL.g:2330:6: (lv_subExpose_7_0= ruleDataInterchangeExpose ) |
| // InternalDataDSL.g:2331:7: lv_subExpose_7_0= ruleDataInterchangeExpose |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExposeAccess().getSubExposeDataInterchangeExposeParserRuleCall_3_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| 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,15,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:2358: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:2358:68: (iv_ruleDataInterchangeExportFilter= ruleDataInterchangeExportFilter EOF ) |
| // InternalDataDSL.g:2359: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:2365:1: ruleDataInterchangeExportFilter returns [EObject current=null] : ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? ) ; |
| public final EObject ruleDataInterchangeExportFilter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| EObject lv_attrFilter_3_0 = null; |
| |
| EObject lv_refFilter_4_0 = null; |
| |
| EObject lv_hiddenproperties_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2371:2: ( ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? ) ) |
| // InternalDataDSL.g:2372:2: ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? ) |
| { |
| // InternalDataDSL.g:2372:2: ( () (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? ) |
| // InternalDataDSL.g:2373:3: () (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? |
| { |
| // InternalDataDSL.g:2373:3: () |
| // InternalDataDSL.g:2374:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExportFilterAccess().getDataInterchangeExportFilterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:2380:3: (otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' )? |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==64) ) { |
| alt60=1; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalDataDSL.g:2381:4: otherlv_1= 'where' otherlv_2= '{' ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? ( (lv_refFilter_4_0= ruleReferenceFilter ) )? otherlv_5= '}' |
| { |
| otherlv_1=(Token)match(input,64,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeExportFilterAccess().getWhereKeyword_1_0()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeExportFilterAccess().getLeftCurlyBracketKeyword_1_1()); |
| |
| } |
| // InternalDataDSL.g:2389:4: ( (lv_attrFilter_3_0= ruleAttributeFilter ) )? |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==75) ) { |
| alt58=1; |
| } |
| switch (alt58) { |
| case 1 : |
| // InternalDataDSL.g:2390:5: (lv_attrFilter_3_0= ruleAttributeFilter ) |
| { |
| // InternalDataDSL.g:2390:5: (lv_attrFilter_3_0= ruleAttributeFilter ) |
| // InternalDataDSL.g:2391:6: lv_attrFilter_3_0= ruleAttributeFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterAccess().getAttrFilterAttributeFilterParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| lv_attrFilter_3_0=ruleAttributeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeExportFilterRule()); |
| } |
| set( |
| current, |
| "attrFilter", |
| lv_attrFilter_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.AttributeFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2408:4: ( (lv_refFilter_4_0= ruleReferenceFilter ) )? |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==76||LA59_0==78) ) { |
| alt59=1; |
| } |
| switch (alt59) { |
| case 1 : |
| // InternalDataDSL.g:2409:5: (lv_refFilter_4_0= ruleReferenceFilter ) |
| { |
| // InternalDataDSL.g:2409:5: (lv_refFilter_4_0= ruleReferenceFilter ) |
| // InternalDataDSL.g:2410:6: lv_refFilter_4_0= ruleReferenceFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterAccess().getRefFilterReferenceFilterParserRuleCall_1_3_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_refFilter_4_0=ruleReferenceFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeExportFilterRule()); |
| } |
| set( |
| current, |
| "refFilter", |
| lv_refFilter_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ReferenceFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeExportFilterAccess().getRightCurlyBracketKeyword_1_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2432:3: (otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* )? |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==74) ) { |
| alt62=1; |
| } |
| switch (alt62) { |
| case 1 : |
| // InternalDataDSL.g:2433:4: otherlv_6= 'hide' ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* |
| { |
| otherlv_6=(Token)match(input,74,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDataInterchangeExportFilterAccess().getHideKeyword_2_0()); |
| |
| } |
| // InternalDataDSL.g:2437:4: ( (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) )* |
| loop61: |
| do { |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( (LA61_0==RULE_ID) ) { |
| alt61=1; |
| } |
| |
| |
| switch (alt61) { |
| case 1 : |
| // InternalDataDSL.g:2438:5: (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) |
| { |
| // InternalDataDSL.g:2438:5: (lv_hiddenproperties_7_0= ruleDataInterchangeExportHide ) |
| // InternalDataDSL.g:2439:6: lv_hiddenproperties_7_0= ruleDataInterchangeExportHide |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeExportFilterAccess().getHiddenpropertiesDataInterchangeExportHideParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_hiddenproperties_7_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_7_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeExportHide"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop61; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeExportFilter" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeJoinAttr" |
| // InternalDataDSL.g:2461:1: entryRuleDataInterchangeJoinAttr returns [EObject current=null] : iv_ruleDataInterchangeJoinAttr= ruleDataInterchangeJoinAttr EOF ; |
| public final EObject entryRuleDataInterchangeJoinAttr() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeJoinAttr = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2461:64: (iv_ruleDataInterchangeJoinAttr= ruleDataInterchangeJoinAttr EOF ) |
| // InternalDataDSL.g:2462:2: iv_ruleDataInterchangeJoinAttr= ruleDataInterchangeJoinAttr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeJoinAttrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeJoinAttr=ruleDataInterchangeJoinAttr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeJoinAttr; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeJoinAttr" |
| |
| |
| // $ANTLR start "ruleDataInterchangeJoinAttr" |
| // InternalDataDSL.g:2468:1: ruleDataInterchangeJoinAttr returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) )? ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeJoinAttr() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2474:2: ( ( () ( (otherlv_1= RULE_ID ) )? ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:2475:2: ( () ( (otherlv_1= RULE_ID ) )? ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:2475:2: ( () ( (otherlv_1= RULE_ID ) )? ( (otherlv_2= RULE_ID ) ) ) |
| // InternalDataDSL.g:2476:3: () ( (otherlv_1= RULE_ID ) )? ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:2476:3: () |
| // InternalDataDSL.g:2477:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeJoinAttrAccess().getDataInterchangeJoinAttrAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:2483:3: ( (otherlv_1= RULE_ID ) )? |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==RULE_ID) ) { |
| int LA63_1 = input.LA(2); |
| |
| if ( (LA63_1==RULE_ID) ) { |
| alt63=1; |
| } |
| } |
| switch (alt63) { |
| case 1 : |
| // InternalDataDSL.g:2484:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDataDSL.g:2484:4: (otherlv_1= RULE_ID ) |
| // InternalDataDSL.g:2485:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeJoinAttrRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeJoinAttrAccess().getRefLEntityReferenceCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2496:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2497:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2497:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2498:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeJoinAttrRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeJoinAttrAccess().getRefPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeJoinAttr" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeFilter" |
| // InternalDataDSL.g:2513:1: entryRuleDataInterchangeFilter returns [EObject current=null] : iv_ruleDataInterchangeFilter= ruleDataInterchangeFilter EOF ; |
| public final EObject entryRuleDataInterchangeFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFilter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2513:62: (iv_ruleDataInterchangeFilter= ruleDataInterchangeFilter EOF ) |
| // InternalDataDSL.g:2514:2: iv_ruleDataInterchangeFilter= ruleDataInterchangeFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFilter=ruleDataInterchangeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFilter" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFilter" |
| // InternalDataDSL.g:2520:1: ruleDataInterchangeFilter returns [EObject current=null] : ( () ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? ( (lv_refFilter_2_0= ruleReferenceFilter ) )? ) ; |
| public final EObject ruleDataInterchangeFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_attrFilter_1_0 = null; |
| |
| EObject lv_refFilter_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2526:2: ( ( () ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? ( (lv_refFilter_2_0= ruleReferenceFilter ) )? ) ) |
| // InternalDataDSL.g:2527:2: ( () ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? ( (lv_refFilter_2_0= ruleReferenceFilter ) )? ) |
| { |
| // InternalDataDSL.g:2527:2: ( () ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? ( (lv_refFilter_2_0= ruleReferenceFilter ) )? ) |
| // InternalDataDSL.g:2528:3: () ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? ( (lv_refFilter_2_0= ruleReferenceFilter ) )? |
| { |
| // InternalDataDSL.g:2528:3: () |
| // InternalDataDSL.g:2529:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFilterAccess().getDataInterchangeFilterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:2535:3: ( (lv_attrFilter_1_0= ruleAttributeFilter ) )? |
| int alt64=2; |
| int LA64_0 = input.LA(1); |
| |
| if ( (LA64_0==75) ) { |
| alt64=1; |
| } |
| switch (alt64) { |
| case 1 : |
| // InternalDataDSL.g:2536:4: (lv_attrFilter_1_0= ruleAttributeFilter ) |
| { |
| // InternalDataDSL.g:2536:4: (lv_attrFilter_1_0= ruleAttributeFilter ) |
| // InternalDataDSL.g:2537:5: lv_attrFilter_1_0= ruleAttributeFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFilterAccess().getAttrFilterAttributeFilterParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| lv_attrFilter_1_0=ruleAttributeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeFilterRule()); |
| } |
| set( |
| current, |
| "attrFilter", |
| lv_attrFilter_1_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.AttributeFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2554:3: ( (lv_refFilter_2_0= ruleReferenceFilter ) )? |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==76||LA65_0==78) ) { |
| alt65=1; |
| } |
| switch (alt65) { |
| case 1 : |
| // InternalDataDSL.g:2555:4: (lv_refFilter_2_0= ruleReferenceFilter ) |
| { |
| // InternalDataDSL.g:2555:4: (lv_refFilter_2_0= ruleReferenceFilter ) |
| // InternalDataDSL.g:2556:5: lv_refFilter_2_0= ruleReferenceFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeFilterAccess().getRefFilterReferenceFilterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_refFilter_2_0=ruleReferenceFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeFilterRule()); |
| } |
| set( |
| current, |
| "refFilter", |
| lv_refFilter_2_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ReferenceFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFilter" |
| |
| |
| // $ANTLR start "entryRuleAttributeFilter" |
| // InternalDataDSL.g:2577:1: entryRuleAttributeFilter returns [EObject current=null] : iv_ruleAttributeFilter= ruleAttributeFilter EOF ; |
| public final EObject entryRuleAttributeFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleAttributeFilter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2577:56: (iv_ruleAttributeFilter= ruleAttributeFilter EOF ) |
| // InternalDataDSL.g:2578:2: iv_ruleAttributeFilter= ruleAttributeFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getAttributeFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleAttributeFilter=ruleAttributeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleAttributeFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleAttributeFilter" |
| |
| |
| // $ANTLR start "ruleAttributeFilter" |
| // InternalDataDSL.g:2584:1: ruleAttributeFilter returns [EObject current=null] : ( () otherlv_1= 'attribute' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? ) ; |
| public final EObject ruleAttributeFilter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_value_4_0=null; |
| Enumerator lv_operator_3_0 = null; |
| |
| Enumerator lv_operator2_5_0 = null; |
| |
| EObject lv_subCondition_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2590:2: ( ( () otherlv_1= 'attribute' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? ) ) |
| // InternalDataDSL.g:2591:2: ( () otherlv_1= 'attribute' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? ) |
| { |
| // InternalDataDSL.g:2591:2: ( () otherlv_1= 'attribute' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? ) |
| // InternalDataDSL.g:2592:3: () otherlv_1= 'attribute' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? |
| { |
| // InternalDataDSL.g:2592:3: () |
| // InternalDataDSL.g:2593:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getAttributeFilterAccess().getAttributeFilterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,75,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getAttributeFilterAccess().getAttributeKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2603:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2604:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2604:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2605:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeFilterRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getAttributeFilterAccess().getRefPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2616:3: ( (lv_operator_3_0= ruleOperator ) ) |
| // InternalDataDSL.g:2617:4: (lv_operator_3_0= ruleOperator ) |
| { |
| // InternalDataDSL.g:2617:4: (lv_operator_3_0= ruleOperator ) |
| // InternalDataDSL.g:2618:5: lv_operator_3_0= ruleOperator |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeFilterAccess().getOperatorOperatorEnumRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_operator_3_0=ruleOperator(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeFilterRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Operator"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2635:3: ( (lv_value_4_0= RULE_STRING ) )? |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( (LA66_0==RULE_STRING) ) { |
| alt66=1; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalDataDSL.g:2636:4: (lv_value_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2636:4: (lv_value_4_0= RULE_STRING ) |
| // InternalDataDSL.g:2637:5: lv_value_4_0= RULE_STRING |
| { |
| lv_value_4_0=(Token)match(input,RULE_STRING,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_4_0, grammarAccess.getAttributeFilterAccess().getValueSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getAttributeFilterRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2653:3: ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) )? |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( ((LA67_0>=194 && LA67_0<=195)) ) { |
| alt67=1; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalDataDSL.g:2654:4: ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleAttributeFilter ) ) |
| { |
| // InternalDataDSL.g:2654:4: ( (lv_operator2_5_0= ruleJunction ) ) |
| // InternalDataDSL.g:2655:5: (lv_operator2_5_0= ruleJunction ) |
| { |
| // InternalDataDSL.g:2655:5: (lv_operator2_5_0= ruleJunction ) |
| // InternalDataDSL.g:2656:6: lv_operator2_5_0= ruleJunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeFilterAccess().getOperator2JunctionEnumRuleCall_5_0_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| lv_operator2_5_0=ruleJunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeFilterRule()); |
| } |
| set( |
| current, |
| "operator2", |
| lv_operator2_5_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Junction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2673:4: ( (lv_subCondition_6_0= ruleAttributeFilter ) ) |
| // InternalDataDSL.g:2674:5: (lv_subCondition_6_0= ruleAttributeFilter ) |
| { |
| // InternalDataDSL.g:2674:5: (lv_subCondition_6_0= ruleAttributeFilter ) |
| // InternalDataDSL.g:2675:6: lv_subCondition_6_0= ruleAttributeFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getAttributeFilterAccess().getSubConditionAttributeFilterParserRuleCall_5_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_subCondition_6_0=ruleAttributeFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getAttributeFilterRule()); |
| } |
| set( |
| current, |
| "subCondition", |
| lv_subCondition_6_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.AttributeFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAttributeFilter" |
| |
| |
| // $ANTLR start "entryRuleReferenceFilter" |
| // InternalDataDSL.g:2697:1: entryRuleReferenceFilter returns [EObject current=null] : iv_ruleReferenceFilter= ruleReferenceFilter EOF ; |
| public final EObject entryRuleReferenceFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleReferenceFilter = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2697:56: (iv_ruleReferenceFilter= ruleReferenceFilter EOF ) |
| // InternalDataDSL.g:2698:2: iv_ruleReferenceFilter= ruleReferenceFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getReferenceFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleReferenceFilter=ruleReferenceFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleReferenceFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleReferenceFilter" |
| |
| |
| // $ANTLR start "ruleReferenceFilter" |
| // InternalDataDSL.g:2704:1: ruleReferenceFilter returns [EObject current=null] : (this_ReferenceFilterWithOutAttr_0= ruleReferenceFilterWithOutAttr | this_ReferenceFilterWithAttr_1= ruleReferenceFilterWithAttr ) ; |
| public final EObject ruleReferenceFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_ReferenceFilterWithOutAttr_0 = null; |
| |
| EObject this_ReferenceFilterWithAttr_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2710:2: ( (this_ReferenceFilterWithOutAttr_0= ruleReferenceFilterWithOutAttr | this_ReferenceFilterWithAttr_1= ruleReferenceFilterWithAttr ) ) |
| // InternalDataDSL.g:2711:2: (this_ReferenceFilterWithOutAttr_0= ruleReferenceFilterWithOutAttr | this_ReferenceFilterWithAttr_1= ruleReferenceFilterWithAttr ) |
| { |
| // InternalDataDSL.g:2711:2: (this_ReferenceFilterWithOutAttr_0= ruleReferenceFilterWithOutAttr | this_ReferenceFilterWithAttr_1= ruleReferenceFilterWithAttr ) |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==78) ) { |
| alt68=1; |
| } |
| else if ( (LA68_0==76) ) { |
| alt68=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalDataDSL.g:2712:3: this_ReferenceFilterWithOutAttr_0= ruleReferenceFilterWithOutAttr |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterAccess().getReferenceFilterWithOutAttrParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_ReferenceFilterWithOutAttr_0=ruleReferenceFilterWithOutAttr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_ReferenceFilterWithOutAttr_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:2721:3: this_ReferenceFilterWithAttr_1= ruleReferenceFilterWithAttr |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterAccess().getReferenceFilterWithAttrParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_ReferenceFilterWithAttr_1=ruleReferenceFilterWithAttr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_ReferenceFilterWithAttr_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleReferenceFilter" |
| |
| |
| // $ANTLR start "entryRuleReferenceFilterWithAttr" |
| // InternalDataDSL.g:2733:1: entryRuleReferenceFilterWithAttr returns [EObject current=null] : iv_ruleReferenceFilterWithAttr= ruleReferenceFilterWithAttr EOF ; |
| public final EObject entryRuleReferenceFilterWithAttr() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleReferenceFilterWithAttr = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2733:64: (iv_ruleReferenceFilterWithAttr= ruleReferenceFilterWithAttr EOF ) |
| // InternalDataDSL.g:2734:2: iv_ruleReferenceFilterWithAttr= ruleReferenceFilterWithAttr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleReferenceFilterWithAttr=ruleReferenceFilterWithAttr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleReferenceFilterWithAttr; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleReferenceFilterWithAttr" |
| |
| |
| // $ANTLR start "ruleReferenceFilterWithAttr" |
| // InternalDataDSL.g:2740:1: ruleReferenceFilterWithAttr returns [EObject current=null] : ( () otherlv_1= 'referenceAttribute' ( (otherlv_2= RULE_ID ) ) otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) ( (lv_operator_5_0= ruleOperator ) ) ( (lv_value_6_0= RULE_STRING ) )? ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? ) ; |
| public final EObject ruleReferenceFilterWithAttr() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token lv_value_6_0=null; |
| Enumerator lv_operator_5_0 = null; |
| |
| Enumerator lv_operator2_7_0 = null; |
| |
| EObject lv_subCondition_8_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2746:2: ( ( () otherlv_1= 'referenceAttribute' ( (otherlv_2= RULE_ID ) ) otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) ( (lv_operator_5_0= ruleOperator ) ) ( (lv_value_6_0= RULE_STRING ) )? ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? ) ) |
| // InternalDataDSL.g:2747:2: ( () otherlv_1= 'referenceAttribute' ( (otherlv_2= RULE_ID ) ) otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) ( (lv_operator_5_0= ruleOperator ) ) ( (lv_value_6_0= RULE_STRING ) )? ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? ) |
| { |
| // InternalDataDSL.g:2747:2: ( () otherlv_1= 'referenceAttribute' ( (otherlv_2= RULE_ID ) ) otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) ( (lv_operator_5_0= ruleOperator ) ) ( (lv_value_6_0= RULE_STRING ) )? ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? ) |
| // InternalDataDSL.g:2748:3: () otherlv_1= 'referenceAttribute' ( (otherlv_2= RULE_ID ) ) otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) ( (lv_operator_5_0= ruleOperator ) ) ( (lv_value_6_0= RULE_STRING ) )? ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? |
| { |
| // InternalDataDSL.g:2748:3: () |
| // InternalDataDSL.g:2749:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getReferenceFilterWithAttrAccess().getReferenceFilterWithAttrAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,76,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getReferenceFilterWithAttrAccess().getReferenceAttributeKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2759:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2760:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2760:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2761:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getReferenceFilterWithAttrAccess().getRefLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,77,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getReferenceFilterWithAttrAccess().getFullStopKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:2776:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalDataDSL.g:2777:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalDataDSL.g:2777:4: (otherlv_4= RULE_ID ) |
| // InternalDataDSL.g:2778:5: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getReferenceFilterWithAttrAccess().getRefPropertyLEntityAttributeCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2789:3: ( (lv_operator_5_0= ruleOperator ) ) |
| // InternalDataDSL.g:2790:4: (lv_operator_5_0= ruleOperator ) |
| { |
| // InternalDataDSL.g:2790:4: (lv_operator_5_0= ruleOperator ) |
| // InternalDataDSL.g:2791:5: lv_operator_5_0= ruleOperator |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithAttrAccess().getOperatorOperatorEnumRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_operator_5_0=ruleOperator(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_5_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Operator"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2808:3: ( (lv_value_6_0= RULE_STRING ) )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( (LA69_0==RULE_STRING) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalDataDSL.g:2809:4: (lv_value_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2809:4: (lv_value_6_0= RULE_STRING ) |
| // InternalDataDSL.g:2810:5: lv_value_6_0= RULE_STRING |
| { |
| lv_value_6_0=(Token)match(input,RULE_STRING,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_6_0, grammarAccess.getReferenceFilterWithAttrAccess().getValueSTRINGTerminalRuleCall_6_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2826:3: ( ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) )? |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( ((LA70_0>=194 && LA70_0<=195)) ) { |
| alt70=1; |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalDataDSL.g:2827:4: ( (lv_operator2_7_0= ruleJunction ) ) ( (lv_subCondition_8_0= ruleReferenceFilter ) ) |
| { |
| // InternalDataDSL.g:2827:4: ( (lv_operator2_7_0= ruleJunction ) ) |
| // InternalDataDSL.g:2828:5: (lv_operator2_7_0= ruleJunction ) |
| { |
| // InternalDataDSL.g:2828:5: (lv_operator2_7_0= ruleJunction ) |
| // InternalDataDSL.g:2829:6: lv_operator2_7_0= ruleJunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithAttrAccess().getOperator2JunctionEnumRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| lv_operator2_7_0=ruleJunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| set( |
| current, |
| "operator2", |
| lv_operator2_7_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Junction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2846:4: ( (lv_subCondition_8_0= ruleReferenceFilter ) ) |
| // InternalDataDSL.g:2847:5: (lv_subCondition_8_0= ruleReferenceFilter ) |
| { |
| // InternalDataDSL.g:2847:5: (lv_subCondition_8_0= ruleReferenceFilter ) |
| // InternalDataDSL.g:2848:6: lv_subCondition_8_0= ruleReferenceFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithAttrAccess().getSubConditionReferenceFilterParserRuleCall_7_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_subCondition_8_0=ruleReferenceFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithAttrRule()); |
| } |
| set( |
| current, |
| "subCondition", |
| lv_subCondition_8_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ReferenceFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleReferenceFilterWithAttr" |
| |
| |
| // $ANTLR start "entryRuleReferenceFilterWithOutAttr" |
| // InternalDataDSL.g:2870:1: entryRuleReferenceFilterWithOutAttr returns [EObject current=null] : iv_ruleReferenceFilterWithOutAttr= ruleReferenceFilterWithOutAttr EOF ; |
| public final EObject entryRuleReferenceFilterWithOutAttr() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleReferenceFilterWithOutAttr = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2870:67: (iv_ruleReferenceFilterWithOutAttr= ruleReferenceFilterWithOutAttr EOF ) |
| // InternalDataDSL.g:2871:2: iv_ruleReferenceFilterWithOutAttr= ruleReferenceFilterWithOutAttr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleReferenceFilterWithOutAttr=ruleReferenceFilterWithOutAttr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleReferenceFilterWithOutAttr; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleReferenceFilterWithOutAttr" |
| |
| |
| // $ANTLR start "ruleReferenceFilterWithOutAttr" |
| // InternalDataDSL.g:2877:1: ruleReferenceFilterWithOutAttr returns [EObject current=null] : ( () otherlv_1= 'reference' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? ) ; |
| public final EObject ruleReferenceFilterWithOutAttr() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_value_4_0=null; |
| Enumerator lv_operator_3_0 = null; |
| |
| Enumerator lv_operator2_5_0 = null; |
| |
| EObject lv_subCondition_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:2883:2: ( ( () otherlv_1= 'reference' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? ) ) |
| // InternalDataDSL.g:2884:2: ( () otherlv_1= 'reference' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? ) |
| { |
| // InternalDataDSL.g:2884:2: ( () otherlv_1= 'reference' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? ) |
| // InternalDataDSL.g:2885:3: () otherlv_1= 'reference' ( (otherlv_2= RULE_ID ) ) ( (lv_operator_3_0= ruleOperator ) ) ( (lv_value_4_0= RULE_STRING ) )? ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? |
| { |
| // InternalDataDSL.g:2885:3: () |
| // InternalDataDSL.g:2886:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getReferenceFilterWithOutAttrAccess().getReferenceFilterWithOutAttrAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getReferenceFilterWithOutAttrAccess().getReferenceKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:2896:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:2897:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:2897:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:2898:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getReferenceFilterWithOutAttrAccess().getRefLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2909:3: ( (lv_operator_3_0= ruleOperator ) ) |
| // InternalDataDSL.g:2910:4: (lv_operator_3_0= ruleOperator ) |
| { |
| // InternalDataDSL.g:2910:4: (lv_operator_3_0= ruleOperator ) |
| // InternalDataDSL.g:2911:5: lv_operator_3_0= ruleOperator |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithOutAttrAccess().getOperatorOperatorEnumRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| lv_operator_3_0=ruleOperator(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Operator"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2928:3: ( (lv_value_4_0= RULE_STRING ) )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==RULE_STRING) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalDataDSL.g:2929:4: (lv_value_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:2929:4: (lv_value_4_0= RULE_STRING ) |
| // InternalDataDSL.g:2930:5: lv_value_4_0= RULE_STRING |
| { |
| lv_value_4_0=(Token)match(input,RULE_STRING,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_4_0, grammarAccess.getReferenceFilterWithOutAttrAccess().getValueSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:2946:3: ( ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) )? |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( ((LA72_0>=194 && LA72_0<=195)) ) { |
| alt72=1; |
| } |
| switch (alt72) { |
| case 1 : |
| // InternalDataDSL.g:2947:4: ( (lv_operator2_5_0= ruleJunction ) ) ( (lv_subCondition_6_0= ruleReferenceFilter ) ) |
| { |
| // InternalDataDSL.g:2947:4: ( (lv_operator2_5_0= ruleJunction ) ) |
| // InternalDataDSL.g:2948:5: (lv_operator2_5_0= ruleJunction ) |
| { |
| // InternalDataDSL.g:2948:5: (lv_operator2_5_0= ruleJunction ) |
| // InternalDataDSL.g:2949:6: lv_operator2_5_0= ruleJunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithOutAttrAccess().getOperator2JunctionEnumRuleCall_5_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| lv_operator2_5_0=ruleJunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| set( |
| current, |
| "operator2", |
| lv_operator2_5_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Junction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:2966:4: ( (lv_subCondition_6_0= ruleReferenceFilter ) ) |
| // InternalDataDSL.g:2967:5: (lv_subCondition_6_0= ruleReferenceFilter ) |
| { |
| // InternalDataDSL.g:2967:5: (lv_subCondition_6_0= ruleReferenceFilter ) |
| // InternalDataDSL.g:2968:6: lv_subCondition_6_0= ruleReferenceFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getReferenceFilterWithOutAttrAccess().getSubConditionReferenceFilterParserRuleCall_5_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_subCondition_6_0=ruleReferenceFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getReferenceFilterWithOutAttrRule()); |
| } |
| set( |
| current, |
| "subCondition", |
| lv_subCondition_6_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.ReferenceFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleReferenceFilterWithOutAttr" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookupFilterCondition" |
| // InternalDataDSL.g:2990:1: entryRuleDataInterchangeLookupFilterCondition returns [EObject current=null] : iv_ruleDataInterchangeLookupFilterCondition= ruleDataInterchangeLookupFilterCondition EOF ; |
| public final EObject entryRuleDataInterchangeLookupFilterCondition() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookupFilterCondition = null; |
| |
| |
| try { |
| // InternalDataDSL.g:2990:77: (iv_ruleDataInterchangeLookupFilterCondition= ruleDataInterchangeLookupFilterCondition EOF ) |
| // InternalDataDSL.g:2991:2: iv_ruleDataInterchangeLookupFilterCondition= ruleDataInterchangeLookupFilterCondition EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookupFilterCondition=ruleDataInterchangeLookupFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookupFilterCondition; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookupFilterCondition" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookupFilterCondition" |
| // InternalDataDSL.g:2997:1: ruleDataInterchangeLookupFilterCondition returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleOperator ) ) ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? ) ; |
| public final EObject ruleDataInterchangeLookupFilterCondition() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Enumerator lv_operator_1_0 = null; |
| |
| EObject lv_operand_2_0 = null; |
| |
| Enumerator lv_operator2_3_0 = null; |
| |
| EObject lv_subcondition_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3003:2: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleOperator ) ) ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? ) ) |
| // InternalDataDSL.g:3004:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleOperator ) ) ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? ) |
| { |
| // InternalDataDSL.g:3004:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleOperator ) ) ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? ) |
| // InternalDataDSL.g:3005:3: ( (otherlv_0= RULE_ID ) ) ( (lv_operator_1_0= ruleOperator ) ) ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? |
| { |
| // InternalDataDSL.g:3005:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalDataDSL.g:3006:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalDataDSL.g:3006:4: (otherlv_0= RULE_ID ) |
| // InternalDataDSL.g:3007:5: otherlv_0= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| |
| } |
| otherlv_0=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDataInterchangeLookupFilterConditionAccess().getRefPropertyLEntityFeatureCrossReference_0_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3018:3: ( (lv_operator_1_0= ruleOperator ) ) |
| // InternalDataDSL.g:3019:4: (lv_operator_1_0= ruleOperator ) |
| { |
| // InternalDataDSL.g:3019:4: (lv_operator_1_0= ruleOperator ) |
| // InternalDataDSL.g:3020:5: lv_operator_1_0= ruleOperator |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterConditionAccess().getOperatorOperatorEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| lv_operator_1_0=ruleOperator(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_1_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Operator"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3037:3: ( (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) )? |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==RULE_STRING||LA73_0==RULE_ID) ) { |
| alt73=1; |
| } |
| switch (alt73) { |
| case 1 : |
| // InternalDataDSL.g:3038:4: (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) |
| { |
| // InternalDataDSL.g:3038:4: (lv_operand_2_0= ruleDataInterchangeLookupFilterOperand ) |
| // InternalDataDSL.g:3039:5: lv_operand_2_0= ruleDataInterchangeLookupFilterOperand |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterConditionAccess().getOperandDataInterchangeLookupFilterOperandParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| lv_operand_2_0=ruleDataInterchangeLookupFilterOperand(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| set( |
| current, |
| "operand", |
| lv_operand_2_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeLookupFilterOperand"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:3056:3: ( ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) )? |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( ((LA74_0>=194 && LA74_0<=195)) ) { |
| alt74=1; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalDataDSL.g:3057:4: ( (lv_operator2_3_0= ruleJunction ) ) ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) |
| { |
| // InternalDataDSL.g:3057:4: ( (lv_operator2_3_0= ruleJunction ) ) |
| // InternalDataDSL.g:3058:5: (lv_operator2_3_0= ruleJunction ) |
| { |
| // InternalDataDSL.g:3058:5: (lv_operator2_3_0= ruleJunction ) |
| // InternalDataDSL.g:3059:6: lv_operator2_3_0= ruleJunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterConditionAccess().getOperator2JunctionEnumRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_operator2_3_0=ruleJunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| set( |
| current, |
| "operator2", |
| lv_operator2_3_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.Junction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3076:4: ( (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) ) |
| // InternalDataDSL.g:3077:5: (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) |
| { |
| // InternalDataDSL.g:3077:5: (lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition ) |
| // InternalDataDSL.g:3078:6: lv_subcondition_4_0= ruleDataInterchangeLookupFilterCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterConditionAccess().getSubconditionDataInterchangeLookupFilterConditionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_subcondition_4_0=ruleDataInterchangeLookupFilterCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDataInterchangeLookupFilterConditionRule()); |
| } |
| set( |
| current, |
| "subcondition", |
| lv_subcondition_4_0, |
| "org.eclipse.osbp.xtext.datainterchange.DataDSL.DataInterchangeLookupFilterCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookupFilterCondition" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookupFilterOperand" |
| // InternalDataDSL.g:3100:1: entryRuleDataInterchangeLookupFilterOperand returns [EObject current=null] : iv_ruleDataInterchangeLookupFilterOperand= ruleDataInterchangeLookupFilterOperand EOF ; |
| public final EObject entryRuleDataInterchangeLookupFilterOperand() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookupFilterOperand = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3100:75: (iv_ruleDataInterchangeLookupFilterOperand= ruleDataInterchangeLookupFilterOperand EOF ) |
| // InternalDataDSL.g:3101:2: iv_ruleDataInterchangeLookupFilterOperand= ruleDataInterchangeLookupFilterOperand EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterOperandRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookupFilterOperand=ruleDataInterchangeLookupFilterOperand(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookupFilterOperand; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookupFilterOperand" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookupFilterOperand" |
| // InternalDataDSL.g:3107:1: ruleDataInterchangeLookupFilterOperand returns [EObject current=null] : (this_DataInterchangeLookupFilterOperandString_0= ruleDataInterchangeLookupFilterOperandString | this_DataInterchangeLookupFilterOperandProperty_1= ruleDataInterchangeLookupFilterOperandProperty ) ; |
| public final EObject ruleDataInterchangeLookupFilterOperand() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeLookupFilterOperandString_0 = null; |
| |
| EObject this_DataInterchangeLookupFilterOperandProperty_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3113:2: ( (this_DataInterchangeLookupFilterOperandString_0= ruleDataInterchangeLookupFilterOperandString | this_DataInterchangeLookupFilterOperandProperty_1= ruleDataInterchangeLookupFilterOperandProperty ) ) |
| // InternalDataDSL.g:3114:2: (this_DataInterchangeLookupFilterOperandString_0= ruleDataInterchangeLookupFilterOperandString | this_DataInterchangeLookupFilterOperandProperty_1= ruleDataInterchangeLookupFilterOperandProperty ) |
| { |
| // InternalDataDSL.g:3114:2: (this_DataInterchangeLookupFilterOperandString_0= ruleDataInterchangeLookupFilterOperandString | this_DataInterchangeLookupFilterOperandProperty_1= ruleDataInterchangeLookupFilterOperandProperty ) |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==RULE_STRING) ) { |
| alt75=1; |
| } |
| else if ( (LA75_0==RULE_ID) ) { |
| alt75=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 75, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalDataDSL.g:3115:3: this_DataInterchangeLookupFilterOperandString_0= ruleDataInterchangeLookupFilterOperandString |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterOperandAccess().getDataInterchangeLookupFilterOperandStringParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeLookupFilterOperandString_0=ruleDataInterchangeLookupFilterOperandString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeLookupFilterOperandString_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3124:3: this_DataInterchangeLookupFilterOperandProperty_1= ruleDataInterchangeLookupFilterOperandProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterOperandAccess().getDataInterchangeLookupFilterOperandPropertyParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeLookupFilterOperandProperty_1=ruleDataInterchangeLookupFilterOperandProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeLookupFilterOperandProperty_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookupFilterOperand" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookupFilterOperandProperty" |
| // InternalDataDSL.g:3136:1: entryRuleDataInterchangeLookupFilterOperandProperty returns [EObject current=null] : iv_ruleDataInterchangeLookupFilterOperandProperty= ruleDataInterchangeLookupFilterOperandProperty EOF ; |
| public final EObject entryRuleDataInterchangeLookupFilterOperandProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookupFilterOperandProperty = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3136:83: (iv_ruleDataInterchangeLookupFilterOperandProperty= ruleDataInterchangeLookupFilterOperandProperty EOF ) |
| // InternalDataDSL.g:3137:2: iv_ruleDataInterchangeLookupFilterOperandProperty= ruleDataInterchangeLookupFilterOperandProperty EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterOperandPropertyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookupFilterOperandProperty=ruleDataInterchangeLookupFilterOperandProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookupFilterOperandProperty; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookupFilterOperandProperty" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookupFilterOperandProperty" |
| // InternalDataDSL.g:3143:1: ruleDataInterchangeLookupFilterOperandProperty returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeLookupFilterOperandProperty() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3149:2: ( ( () ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:3150:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:3150:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDataDSL.g:3151:3: () ( (otherlv_1= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:3151:3: () |
| // InternalDataDSL.g:3152:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeLookupFilterOperandPropertyAccess().getDataInterchangeLookupFilterOperandPropertyAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3158:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDataDSL.g:3159:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDataDSL.g:3159:4: (otherlv_1= RULE_ID ) |
| // InternalDataDSL.g:3160:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupFilterOperandPropertyRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeLookupFilterOperandPropertyAccess().getRefPropertyLEntityFeatureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookupFilterOperandProperty" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookupFilterOperandString" |
| // InternalDataDSL.g:3175:1: entryRuleDataInterchangeLookupFilterOperandString returns [EObject current=null] : iv_ruleDataInterchangeLookupFilterOperandString= ruleDataInterchangeLookupFilterOperandString EOF ; |
| public final EObject entryRuleDataInterchangeLookupFilterOperandString() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookupFilterOperandString = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3175:81: (iv_ruleDataInterchangeLookupFilterOperandString= ruleDataInterchangeLookupFilterOperandString EOF ) |
| // InternalDataDSL.g:3176:2: iv_ruleDataInterchangeLookupFilterOperandString= ruleDataInterchangeLookupFilterOperandString EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupFilterOperandStringRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookupFilterOperandString=ruleDataInterchangeLookupFilterOperandString(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookupFilterOperandString; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookupFilterOperandString" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookupFilterOperandString" |
| // InternalDataDSL.g:3182:1: ruleDataInterchangeLookupFilterOperandString returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleDataInterchangeLookupFilterOperandString() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_value_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3188:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:3189:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:3189:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:3190:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:3190:3: () |
| // InternalDataDSL.g:3191:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeLookupFilterOperandStringAccess().getDataInterchangeLookupFilterOperandStringAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3197:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3198:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3198:4: (lv_value_1_0= RULE_STRING ) |
| // InternalDataDSL.g:3199: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.getDataInterchangeLookupFilterOperandStringAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupFilterOperandStringRule()); |
| } |
| 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 "ruleDataInterchangeLookupFilterOperandString" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeExportHide" |
| // InternalDataDSL.g:3219: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:3219:66: (iv_ruleDataInterchangeExportHide= ruleDataInterchangeExportHide EOF ) |
| // InternalDataDSL.g:3220: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:3226: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:3232:2: ( ( () ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:3233:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:3233:2: ( () ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDataDSL.g:3234:3: () ( (otherlv_1= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:3234:3: () |
| // InternalDataDSL.g:3235:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeExportHideAccess().getDataInterchangeExportHideAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:3241:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDataDSL.g:3242:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDataDSL.g:3242:4: (otherlv_1= RULE_ID ) |
| // InternalDataDSL.g:3243: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:3258: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:3258:76: (iv_ruleDataInterchangePredefinedExpression= ruleDataInterchangePredefinedExpression EOF ) |
| // InternalDataDSL.g:3259: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:3265: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:3271: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:3272: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:3272: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:3273: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:3273:3: () |
| // InternalDataDSL.g:3274:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangePredefinedExpressionAccess().getDataInterchangePredefinedExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,79,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangePredefinedExpressionAccess().getAssignKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3284:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:3285:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:3285:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:3286:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangePredefinedExpressionRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangePredefinedExpressionAccess().getTargetPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,80,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangePredefinedExpressionAccess().getWithKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:3301:3: ( (lv_bean_4_0= rulePredefinedBeanEnum ) ) |
| // InternalDataDSL.g:3302:4: (lv_bean_4_0= rulePredefinedBeanEnum ) |
| { |
| // InternalDataDSL.g:3302:4: (lv_bean_4_0= rulePredefinedBeanEnum ) |
| // InternalDataDSL.g:3303:5: lv_bean_4_0= rulePredefinedBeanEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangePredefinedExpressionAccess().getBeanPredefinedBeanEnumEnumRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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,81,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangePredefinedExpressionAccess().getAsKeyword_5()); |
| |
| } |
| // InternalDataDSL.g:3324:3: ( (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) ) |
| // InternalDataDSL.g:3325:4: (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) |
| { |
| // InternalDataDSL.g:3325:4: (lv_beanType_6_0= rulePredefinedBeanTypeEnum ) |
| // InternalDataDSL.g:3326: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:3347: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:3347:63: (iv_ruleDataInterchangeMapping= ruleDataInterchangeMapping EOF ) |
| // InternalDataDSL.g:3348: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:3354:1: ruleDataInterchangeMapping returns [EObject current=null] : (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping | this_DataInterchangeFixedColumnMapping_2= ruleDataInterchangeFixedColumnMapping | this_DataInterchangeLookupMapping_3= ruleDataInterchangeLookupMapping | this_DataInterchangeSkipMapping_4= ruleDataInterchangeSkipMapping ) ; |
| public final EObject ruleDataInterchangeMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DataInterchangeValueMapping_0 = null; |
| |
| EObject this_DataInterchangeBlobMapping_1 = null; |
| |
| EObject this_DataInterchangeFixedColumnMapping_2 = null; |
| |
| EObject this_DataInterchangeLookupMapping_3 = null; |
| |
| EObject this_DataInterchangeSkipMapping_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3360:2: ( (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping | this_DataInterchangeFixedColumnMapping_2= ruleDataInterchangeFixedColumnMapping | this_DataInterchangeLookupMapping_3= ruleDataInterchangeLookupMapping | this_DataInterchangeSkipMapping_4= ruleDataInterchangeSkipMapping ) ) |
| // InternalDataDSL.g:3361:2: (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping | this_DataInterchangeFixedColumnMapping_2= ruleDataInterchangeFixedColumnMapping | this_DataInterchangeLookupMapping_3= ruleDataInterchangeLookupMapping | this_DataInterchangeSkipMapping_4= ruleDataInterchangeSkipMapping ) |
| { |
| // InternalDataDSL.g:3361:2: (this_DataInterchangeValueMapping_0= ruleDataInterchangeValueMapping | this_DataInterchangeBlobMapping_1= ruleDataInterchangeBlobMapping | this_DataInterchangeFixedColumnMapping_2= ruleDataInterchangeFixedColumnMapping | this_DataInterchangeLookupMapping_3= ruleDataInterchangeLookupMapping | this_DataInterchangeSkipMapping_4= ruleDataInterchangeSkipMapping ) |
| int alt76=5; |
| switch ( input.LA(1) ) { |
| case 82: |
| { |
| alt76=1; |
| } |
| break; |
| case 84: |
| { |
| alt76=2; |
| } |
| break; |
| case 87: |
| { |
| alt76=3; |
| } |
| break; |
| case 97: |
| { |
| alt76=4; |
| } |
| break; |
| case 98: |
| { |
| alt76=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 76, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt76) { |
| case 1 : |
| // InternalDataDSL.g:3362: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:3371: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; |
| case 3 : |
| // InternalDataDSL.g:3380:3: this_DataInterchangeFixedColumnMapping_2= ruleDataInterchangeFixedColumnMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMappingAccess().getDataInterchangeFixedColumnMappingParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeFixedColumnMapping_2=ruleDataInterchangeFixedColumnMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeFixedColumnMapping_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:3389:3: this_DataInterchangeLookupMapping_3= ruleDataInterchangeLookupMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMappingAccess().getDataInterchangeLookupMappingParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeLookupMapping_3=ruleDataInterchangeLookupMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeLookupMapping_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:3398:3: this_DataInterchangeSkipMapping_4= ruleDataInterchangeSkipMapping |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDataInterchangeMappingAccess().getDataInterchangeSkipMappingParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DataInterchangeSkipMapping_4=ruleDataInterchangeSkipMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DataInterchangeSkipMapping_4; |
| 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:3410: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:3410:68: (iv_ruleDataInterchangeValueMapping= ruleDataInterchangeValueMapping EOF ) |
| // InternalDataDSL.g:3411: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:3417: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:3423:2: ( ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:3424:2: ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:3424:2: ( () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:3425:3: () otherlv_1= 'map' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'to' ( (lv_data_4_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:3425:3: () |
| // InternalDataDSL.g:3426:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeValueMappingAccess().getDataInterchangeValueMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,82,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeValueMappingAccess().getMapKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3436:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:3437:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:3437:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:3438:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeValueMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeValueMappingAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,83,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeValueMappingAccess().getToKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:3453:3: ( (lv_data_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3454:4: (lv_data_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3454:4: (lv_data_4_0= RULE_STRING ) |
| // InternalDataDSL.g:3455: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:3475: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:3475:67: (iv_ruleDataInterchangeBlobMapping= ruleDataInterchangeBlobMapping EOF ) |
| // InternalDataDSL.g:3476: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:3482: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:3488: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:3489: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:3489: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:3490: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:3490:3: () |
| // InternalDataDSL.g:3491:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeBlobMappingAccess().getDataInterchangeBlobMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,84,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeBlobMappingAccess().getMapBlobKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3501:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:3502:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:3502:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:3503:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeBlobMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeBlobMappingAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,83,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeBlobMappingAccess().getToKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:3518:3: ( (lv_data_4_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3519:4: (lv_data_4_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3519:4: (lv_data_4_0= RULE_STRING ) |
| // InternalDataDSL.g:3520:5: lv_data_4_0= RULE_STRING |
| { |
| lv_data_4_0=(Token)match(input,RULE_STRING,FOLLOW_86); 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:3536:3: (otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) )? |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==85) ) { |
| alt77=1; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalDataDSL.g:3537:4: otherlv_5= 'extension' ( (lv_blobFileExtension_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,85,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDataInterchangeBlobMappingAccess().getExtensionKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:3541:4: ( (lv_blobFileExtension_6_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3542:5: (lv_blobFileExtension_6_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3542:5: (lv_blobFileExtension_6_0= RULE_STRING ) |
| // InternalDataDSL.g:3543:6: lv_blobFileExtension_6_0= RULE_STRING |
| { |
| lv_blobFileExtension_6_0=(Token)match(input,RULE_STRING,FOLLOW_87); 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:3560:3: (otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==24) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalDataDSL.g:3561:4: otherlv_7= 'path' ( (lv_blobPath_8_0= RULE_STRING ) ) |
| { |
| otherlv_7=(Token)match(input,24,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDataInterchangeBlobMappingAccess().getPathKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:3565:4: ( (lv_blobPath_8_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3566:5: (lv_blobPath_8_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3566:5: (lv_blobPath_8_0= RULE_STRING ) |
| // InternalDataDSL.g:3567:6: lv_blobPath_8_0= RULE_STRING |
| { |
| lv_blobPath_8_0=(Token)match(input,RULE_STRING,FOLLOW_88); 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,86,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDataInterchangeBlobMappingAccess().getMimeTypeKeyword_7()); |
| |
| } |
| // InternalDataDSL.g:3588:3: ( (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) ) |
| // InternalDataDSL.g:3589:4: (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) |
| { |
| // InternalDataDSL.g:3589:4: (lv_mimeType_10_0= rulePredefinedBlobMimeTypeEnum ) |
| // InternalDataDSL.g:3590: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 "entryRuleDataInterchangeFixedColumnMapping" |
| // InternalDataDSL.g:3611:1: entryRuleDataInterchangeFixedColumnMapping returns [EObject current=null] : iv_ruleDataInterchangeFixedColumnMapping= ruleDataInterchangeFixedColumnMapping EOF ; |
| public final EObject entryRuleDataInterchangeFixedColumnMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeFixedColumnMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3611:74: (iv_ruleDataInterchangeFixedColumnMapping= ruleDataInterchangeFixedColumnMapping EOF ) |
| // InternalDataDSL.g:3612:2: iv_ruleDataInterchangeFixedColumnMapping= ruleDataInterchangeFixedColumnMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeFixedColumnMapping=ruleDataInterchangeFixedColumnMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeFixedColumnMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeFixedColumnMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeFixedColumnMapping" |
| // InternalDataDSL.g:3618:1: ruleDataInterchangeFixedColumnMapping returns [EObject current=null] : ( () otherlv_1= 'mapFixedLength' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'length' ( (lv_length_4_0= RULE_INT ) ) ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) ) ; |
| public final EObject ruleDataInterchangeFixedColumnMapping() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token lv_length_4_0=null; |
| Token lv_trim_5_0=null; |
| Token lv_leftTrim_6_0=null; |
| Token lv_rightTrim_7_0=null; |
| Token lv_lowerCase_8_0=null; |
| Token lv_upperCase_9_0=null; |
| Token lv_capFirst_10_0=null; |
| Token lv_uncapFirst_11_0=null; |
| Token lv_capitalize_12_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3624:2: ( ( () otherlv_1= 'mapFixedLength' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'length' ( (lv_length_4_0= RULE_INT ) ) ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) ) ) |
| // InternalDataDSL.g:3625:2: ( () otherlv_1= 'mapFixedLength' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'length' ( (lv_length_4_0= RULE_INT ) ) ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) ) |
| { |
| // InternalDataDSL.g:3625:2: ( () otherlv_1= 'mapFixedLength' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'length' ( (lv_length_4_0= RULE_INT ) ) ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) ) |
| // InternalDataDSL.g:3626:3: () otherlv_1= 'mapFixedLength' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'length' ( (lv_length_4_0= RULE_INT ) ) ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) |
| { |
| // InternalDataDSL.g:3626:3: () |
| // InternalDataDSL.g:3627:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeFixedColumnMappingAccess().getDataInterchangeFixedColumnMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,87,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getMapFixedLengthKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3637:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:3638:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:3638:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:3639:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getPropertyLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,88,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getLengthKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:3654:3: ( (lv_length_4_0= RULE_INT ) ) |
| // InternalDataDSL.g:3655:4: (lv_length_4_0= RULE_INT ) |
| { |
| // InternalDataDSL.g:3655:4: (lv_length_4_0= RULE_INT ) |
| // InternalDataDSL.g:3656:5: lv_length_4_0= RULE_INT |
| { |
| lv_length_4_0=(Token)match(input,RULE_INT,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_length_4_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getLengthINTTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "length", |
| lv_length_4_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:3672:3: ( ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? ) |
| // InternalDataDSL.g:3673:4: ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? |
| { |
| // InternalDataDSL.g:3673:4: ( ( (lv_trim_5_0= 'trim' ) ) | ( (lv_leftTrim_6_0= 'leftTrim' ) ) | ( (lv_rightTrim_7_0= 'rightTrim' ) ) )? |
| int alt79=4; |
| switch ( input.LA(1) ) { |
| case 89: |
| { |
| alt79=1; |
| } |
| break; |
| case 90: |
| { |
| alt79=2; |
| } |
| break; |
| case 91: |
| { |
| alt79=3; |
| } |
| break; |
| } |
| |
| switch (alt79) { |
| case 1 : |
| // InternalDataDSL.g:3674:5: ( (lv_trim_5_0= 'trim' ) ) |
| { |
| // InternalDataDSL.g:3674:5: ( (lv_trim_5_0= 'trim' ) ) |
| // InternalDataDSL.g:3675:6: (lv_trim_5_0= 'trim' ) |
| { |
| // InternalDataDSL.g:3675:6: (lv_trim_5_0= 'trim' ) |
| // InternalDataDSL.g:3676:7: lv_trim_5_0= 'trim' |
| { |
| lv_trim_5_0=(Token)match(input,89,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_trim_5_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getTrimTrimKeyword_5_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "trim", true, "trim"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3689:5: ( (lv_leftTrim_6_0= 'leftTrim' ) ) |
| { |
| // InternalDataDSL.g:3689:5: ( (lv_leftTrim_6_0= 'leftTrim' ) ) |
| // InternalDataDSL.g:3690:6: (lv_leftTrim_6_0= 'leftTrim' ) |
| { |
| // InternalDataDSL.g:3690:6: (lv_leftTrim_6_0= 'leftTrim' ) |
| // InternalDataDSL.g:3691:7: lv_leftTrim_6_0= 'leftTrim' |
| { |
| lv_leftTrim_6_0=(Token)match(input,90,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_leftTrim_6_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getLeftTrimLeftTrimKeyword_5_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "leftTrim", true, "leftTrim"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:3704:5: ( (lv_rightTrim_7_0= 'rightTrim' ) ) |
| { |
| // InternalDataDSL.g:3704:5: ( (lv_rightTrim_7_0= 'rightTrim' ) ) |
| // InternalDataDSL.g:3705:6: (lv_rightTrim_7_0= 'rightTrim' ) |
| { |
| // InternalDataDSL.g:3705:6: (lv_rightTrim_7_0= 'rightTrim' ) |
| // InternalDataDSL.g:3706:7: lv_rightTrim_7_0= 'rightTrim' |
| { |
| lv_rightTrim_7_0=(Token)match(input,91,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rightTrim_7_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getRightTrimRightTrimKeyword_5_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "rightTrim", true, "rightTrim"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:3719:4: ( ( (lv_lowerCase_8_0= 'lowerCase' ) ) | ( (lv_upperCase_9_0= 'upperCase' ) ) | ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) | ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) | ( (lv_capitalize_12_0= 'capitalize' ) ) )? |
| int alt80=6; |
| switch ( input.LA(1) ) { |
| case 92: |
| { |
| alt80=1; |
| } |
| break; |
| case 93: |
| { |
| alt80=2; |
| } |
| break; |
| case 94: |
| { |
| alt80=3; |
| } |
| break; |
| case 95: |
| { |
| alt80=4; |
| } |
| break; |
| case 96: |
| { |
| alt80=5; |
| } |
| break; |
| } |
| |
| switch (alt80) { |
| case 1 : |
| // InternalDataDSL.g:3720:5: ( (lv_lowerCase_8_0= 'lowerCase' ) ) |
| { |
| // InternalDataDSL.g:3720:5: ( (lv_lowerCase_8_0= 'lowerCase' ) ) |
| // InternalDataDSL.g:3721:6: (lv_lowerCase_8_0= 'lowerCase' ) |
| { |
| // InternalDataDSL.g:3721:6: (lv_lowerCase_8_0= 'lowerCase' ) |
| // InternalDataDSL.g:3722:7: lv_lowerCase_8_0= 'lowerCase' |
| { |
| lv_lowerCase_8_0=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_lowerCase_8_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getLowerCaseLowerCaseKeyword_5_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "lowerCase", true, "lowerCase"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:3735:5: ( (lv_upperCase_9_0= 'upperCase' ) ) |
| { |
| // InternalDataDSL.g:3735:5: ( (lv_upperCase_9_0= 'upperCase' ) ) |
| // InternalDataDSL.g:3736:6: (lv_upperCase_9_0= 'upperCase' ) |
| { |
| // InternalDataDSL.g:3736:6: (lv_upperCase_9_0= 'upperCase' ) |
| // InternalDataDSL.g:3737:7: lv_upperCase_9_0= 'upperCase' |
| { |
| lv_upperCase_9_0=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_upperCase_9_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getUpperCaseUpperCaseKeyword_5_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "upperCase", true, "upperCase"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:3750:5: ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) |
| { |
| // InternalDataDSL.g:3750:5: ( (lv_capFirst_10_0= 'capitalizeFirstWord' ) ) |
| // InternalDataDSL.g:3751:6: (lv_capFirst_10_0= 'capitalizeFirstWord' ) |
| { |
| // InternalDataDSL.g:3751:6: (lv_capFirst_10_0= 'capitalizeFirstWord' ) |
| // InternalDataDSL.g:3752:7: lv_capFirst_10_0= 'capitalizeFirstWord' |
| { |
| lv_capFirst_10_0=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_capFirst_10_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getCapFirstCapitalizeFirstWordKeyword_5_1_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "capFirst", true, "capitalizeFirstWord"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:3765:5: ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) |
| { |
| // InternalDataDSL.g:3765:5: ( (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) ) |
| // InternalDataDSL.g:3766:6: (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) |
| { |
| // InternalDataDSL.g:3766:6: (lv_uncapFirst_11_0= 'uncapitalizeFirstWord' ) |
| // InternalDataDSL.g:3767:7: lv_uncapFirst_11_0= 'uncapitalizeFirstWord' |
| { |
| lv_uncapFirst_11_0=(Token)match(input,95,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_uncapFirst_11_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getUncapFirstUncapitalizeFirstWordKeyword_5_1_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "uncapFirst", true, "uncapitalizeFirstWord"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:3780:5: ( (lv_capitalize_12_0= 'capitalize' ) ) |
| { |
| // InternalDataDSL.g:3780:5: ( (lv_capitalize_12_0= 'capitalize' ) ) |
| // InternalDataDSL.g:3781:6: (lv_capitalize_12_0= 'capitalize' ) |
| { |
| // InternalDataDSL.g:3781:6: (lv_capitalize_12_0= 'capitalize' ) |
| // InternalDataDSL.g:3782:7: lv_capitalize_12_0= 'capitalize' |
| { |
| lv_capitalize_12_0=(Token)match(input,96,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_capitalize_12_0, grammarAccess.getDataInterchangeFixedColumnMappingAccess().getCapitalizeCapitalizeKeyword_5_1_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeFixedColumnMappingRule()); |
| } |
| setWithLastConsumed(current, "capitalize", true, "capitalize"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeFixedColumnMapping" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeLookupMapping" |
| // InternalDataDSL.g:3800:1: entryRuleDataInterchangeLookupMapping returns [EObject current=null] : iv_ruleDataInterchangeLookupMapping= ruleDataInterchangeLookupMapping EOF ; |
| public final EObject entryRuleDataInterchangeLookupMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeLookupMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3800:69: (iv_ruleDataInterchangeLookupMapping= ruleDataInterchangeLookupMapping EOF ) |
| // InternalDataDSL.g:3801:2: iv_ruleDataInterchangeLookupMapping= ruleDataInterchangeLookupMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeLookupMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeLookupMapping=ruleDataInterchangeLookupMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeLookupMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeLookupMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeLookupMapping" |
| // InternalDataDSL.g:3807:1: ruleDataInterchangeLookupMapping returns [EObject current=null] : ( () otherlv_1= 'mapLookup' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject ruleDataInterchangeLookupMapping() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3813:2: ( ( () otherlv_1= 'mapLookup' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalDataDSL.g:3814:2: ( () otherlv_1= 'mapLookup' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalDataDSL.g:3814:2: ( () otherlv_1= 'mapLookup' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalDataDSL.g:3815:3: () otherlv_1= 'mapLookup' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalDataDSL.g:3815:3: () |
| // InternalDataDSL.g:3816:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeLookupMappingAccess().getDataInterchangeLookupMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,97,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeLookupMappingAccess().getMapLookupKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3826:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalDataDSL.g:3827:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalDataDSL.g:3827:4: (otherlv_2= RULE_ID ) |
| // InternalDataDSL.g:3828:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeLookupMappingRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDataInterchangeLookupMappingAccess().getLookupReferenceLEntityReferenceCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeLookupMapping" |
| |
| |
| // $ANTLR start "entryRuleDataInterchangeSkipMapping" |
| // InternalDataDSL.g:3843:1: entryRuleDataInterchangeSkipMapping returns [EObject current=null] : iv_ruleDataInterchangeSkipMapping= ruleDataInterchangeSkipMapping EOF ; |
| public final EObject entryRuleDataInterchangeSkipMapping() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDataInterchangeSkipMapping = null; |
| |
| |
| try { |
| // InternalDataDSL.g:3843:67: (iv_ruleDataInterchangeSkipMapping= ruleDataInterchangeSkipMapping EOF ) |
| // InternalDataDSL.g:3844:2: iv_ruleDataInterchangeSkipMapping= ruleDataInterchangeSkipMapping EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDataInterchangeSkipMappingRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDataInterchangeSkipMapping=ruleDataInterchangeSkipMapping(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDataInterchangeSkipMapping; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDataInterchangeSkipMapping" |
| |
| |
| // $ANTLR start "ruleDataInterchangeSkipMapping" |
| // InternalDataDSL.g:3850:1: ruleDataInterchangeSkipMapping returns [EObject current=null] : ( () otherlv_1= 'mapSkip' ( (lv_name_2_0= RULE_STRING ) ) ) ; |
| public final EObject ruleDataInterchangeSkipMapping() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_name_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:3856:2: ( ( () otherlv_1= 'mapSkip' ( (lv_name_2_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:3857:2: ( () otherlv_1= 'mapSkip' ( (lv_name_2_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:3857:2: ( () otherlv_1= 'mapSkip' ( (lv_name_2_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:3858:3: () otherlv_1= 'mapSkip' ( (lv_name_2_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:3858:3: () |
| // InternalDataDSL.g:3859:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDataInterchangeSkipMappingAccess().getDataInterchangeSkipMappingAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,98,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDataInterchangeSkipMappingAccess().getMapSkipKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:3869:3: ( (lv_name_2_0= RULE_STRING ) ) |
| // InternalDataDSL.g:3870:4: (lv_name_2_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:3870:4: (lv_name_2_0= RULE_STRING ) |
| // InternalDataDSL.g:3871:5: lv_name_2_0= RULE_STRING |
| { |
| lv_name_2_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_2_0, grammarAccess.getDataInterchangeSkipMappingAccess().getNameSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDataInterchangeSkipMappingRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDataInterchangeSkipMapping" |
| |
| |
| // $ANTLR start "entryRuleLFQN" |
| // InternalDataDSL.g:3891: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:3891:44: (iv_ruleLFQN= ruleLFQN EOF ) |
| // InternalDataDSL.g:3892: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:3898: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:3904:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) |
| // InternalDataDSL.g:3905:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) |
| { |
| // InternalDataDSL.g:3905:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) |
| // InternalDataDSL.g:3906:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_93); 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:3913:3: (kw= '.' this_ID_2= RULE_ID )* |
| loop81: |
| do { |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==77) ) { |
| alt81=1; |
| } |
| |
| |
| switch (alt81) { |
| case 1 : |
| // InternalDataDSL.g:3914:4: kw= '.' this_ID_2= RULE_ID |
| { |
| kw=(Token)match(input,77,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_93); 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 loop81; |
| } |
| } 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:3931: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:3931:58: (iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ) |
| // InternalDataDSL.g:3932: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:3938: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:3944:2: (this_STRING_0= RULE_STRING ) |
| // InternalDataDSL.g:3945: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:3955: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:3955:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ) |
| // InternalDataDSL.g:3956: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:3962: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:3968:2: (this_ID_0= RULE_ID ) |
| // InternalDataDSL.g:3969: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:3979: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:3979:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalDataDSL.g:3980: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:3986: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:3992: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:3993: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:3993: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:3994: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:3994:3: () |
| // InternalDataDSL.g:3995:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,99,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:4005: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 alt84=4; |
| alt84 = dfa84.predict(input); |
| switch (alt84) { |
| case 1 : |
| // InternalDataDSL.g:4006:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalDataDSL.g:4006:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:4007:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:4007:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalDataDSL.g:4008:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalDataDSL.g:4008:6: (lv_static_2_0= 'static' ) |
| // InternalDataDSL.g:4009:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,100,FOLLOW_95); 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:4021:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==85) ) { |
| alt82=1; |
| } |
| switch (alt82) { |
| case 1 : |
| // InternalDataDSL.g:4022:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalDataDSL.g:4022:6: (lv_extension_3_0= 'extension' ) |
| // InternalDataDSL.g:4023:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,85,FOLLOW_95); 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:4035:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalDataDSL.g:4036:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalDataDSL.g:4036:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalDataDSL.g:4037: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_96); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4051:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==101) ) { |
| alt83=1; |
| } |
| else if ( (LA83_0==RULE_ID) ) { |
| alt83=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 83, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalDataDSL.g:4052:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalDataDSL.g:4052:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalDataDSL.g:4053:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalDataDSL.g:4053:7: (lv_wildcard_5_0= '*' ) |
| // InternalDataDSL.g:4054:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,101,FOLLOW_97); 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:4067:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:4067:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalDataDSL.g:4068:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:4068:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalDataDSL.g:4069:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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:4089:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalDataDSL.g:4089:4: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:4090:5: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:4090:5: ( ruleQualifiedName ) |
| // InternalDataDSL.g:4091: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_97); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:4106:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalDataDSL.g:4106:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalDataDSL.g:4107:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalDataDSL.g:4107:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalDataDSL.g:4108:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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:4126:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalDataDSL.g:4126:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalDataDSL.g:4127:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalDataDSL.g:4127:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalDataDSL.g:4128:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalDataDSL.g:4128:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalDataDSL.g:4129:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,102,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:4141:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalDataDSL.g:4142:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:4142:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalDataDSL.g:4143:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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:4162:3: (otherlv_11= ';' )? |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==103) ) { |
| alt85=1; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalDataDSL.g:4163:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,103,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:4172: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:4172:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalDataDSL.g:4173: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:4179: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:4185: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:4186: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:4186: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:4187: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:4187:3: () |
| // InternalDataDSL.g:4188:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,104,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:4198:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:4199:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:4199:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:4200: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_98); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4214: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 alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( (LA88_0==105) && (synpred1_InternalDataDSL())) { |
| alt88=1; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalDataDSL.g:4215: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:4215:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalDataDSL.g:4216:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,105,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4222:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt87=3; |
| alt87 = dfa87.predict(input); |
| switch (alt87) { |
| case 1 : |
| // InternalDataDSL.g:4223:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalDataDSL.g:4223:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalDataDSL.g:4224:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalDataDSL.g:4224:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDataDSL.g:4225:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDataDSL.g:4234:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalDataDSL.g:4235:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:4252:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop86: |
| do { |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==106) ) { |
| alt86=1; |
| } |
| |
| |
| switch (alt86) { |
| case 1 : |
| // InternalDataDSL.g:4253:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,106,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalDataDSL.g:4257:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDataDSL.g:4258:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDataDSL.g:4267:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalDataDSL.g:4268:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop86; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4288:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalDataDSL.g:4288:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalDataDSL.g:4289:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalDataDSL.g:4289:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalDataDSL.g:4290:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,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:4317: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:4317:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalDataDSL.g:4318: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:4324: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:4330:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalDataDSL.g:4331:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalDataDSL.g:4331:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalDataDSL.g:4332:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalDataDSL.g:4332:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalDataDSL.g:4333:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalDataDSL.g:4342:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalDataDSL.g:4343:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalDataDSL.g:4343:5: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:4344:6: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:4344:6: ( ruleValidID ) |
| // InternalDataDSL.g:4345: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_102); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,108,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4365:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalDataDSL.g:4366:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalDataDSL.g:4366:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalDataDSL.g:4367: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:4388: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:4388:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalDataDSL.g:4389: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:4395: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:4401: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:4402: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:4402: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 alt93=2; |
| alt93 = dfa93.predict(input); |
| switch (alt93) { |
| case 1 : |
| // InternalDataDSL.g:4403:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:4403:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:4404:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:4404:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDataDSL.g:4405:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDataDSL.g:4412:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDataDSL.g:4413:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDataDSL.g:4413:6: () |
| // InternalDataDSL.g:4414:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,109,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,110,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4430:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( ((LA90_0>=RULE_STRING && LA90_0<=RULE_DECIMAL)||LA90_0==14||LA90_0==58||LA90_0==85||(LA90_0>=99 && LA90_0<=100)||(LA90_0>=104 && LA90_0<=105)||(LA90_0>=109 && LA90_0<=110)||LA90_0==117||(LA90_0>=133 && LA90_0<=134)||LA90_0==138||LA90_0==144||LA90_0==146||(LA90_0>=150 && LA90_0<=151)||(LA90_0>=154 && LA90_0<=163)||LA90_0==165) ) { |
| alt90=1; |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalDataDSL.g:4431:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDataDSL.g:4431:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:4432:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:4432:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:4433:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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:4450:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop89: |
| do { |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==106) ) { |
| alt89=1; |
| } |
| |
| |
| switch (alt89) { |
| case 1 : |
| // InternalDataDSL.g:4451:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:4455:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:4456:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:4456:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:4457:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop89; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4482:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalDataDSL.g:4482:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalDataDSL.g:4483:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_107); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4491:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==106) ) { |
| alt92=1; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalDataDSL.g:4492:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalDataDSL.g:4492:5: () |
| // InternalDataDSL.g:4493:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4499:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt91=0; |
| loop91: |
| do { |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==106) ) { |
| alt91=1; |
| } |
| |
| |
| switch (alt91) { |
| case 1 : |
| // InternalDataDSL.g:4500:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:4504:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:4505:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:4505:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:4506:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_107); |
| 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 ( cnt91 >= 1 ) break loop91; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(91, input); |
| throw eee; |
| } |
| cnt91++; |
| } 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:4530: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:4530:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalDataDSL.g:4531: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:4537: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:4543: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:4544: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:4544:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt96=2; |
| alt96 = dfa96.predict(input); |
| switch (alt96) { |
| case 1 : |
| // InternalDataDSL.g:4545:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:4545:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:4546:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:4546:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDataDSL.g:4547:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDataDSL.g:4554:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDataDSL.g:4555:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDataDSL.g:4555:6: () |
| // InternalDataDSL.g:4556:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,109,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,110,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4572:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( ((LA95_0>=RULE_STRING && LA95_0<=RULE_DECIMAL)||LA95_0==14||LA95_0==58||LA95_0==85||(LA95_0>=99 && LA95_0<=100)||(LA95_0>=104 && LA95_0<=105)||(LA95_0>=109 && LA95_0<=110)||LA95_0==117||(LA95_0>=133 && LA95_0<=134)||LA95_0==138||LA95_0==144||LA95_0==146||(LA95_0>=150 && LA95_0<=151)||(LA95_0>=154 && LA95_0<=163)||LA95_0==165) ) { |
| alt95=1; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalDataDSL.g:4573:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDataDSL.g:4573:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:4574:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:4574:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:4575:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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:4592:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop94: |
| do { |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==106) ) { |
| alt94=1; |
| } |
| |
| |
| switch (alt94) { |
| case 1 : |
| // InternalDataDSL.g:4593:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:4597:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDataDSL.g:4598:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDataDSL.g:4598:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDataDSL.g:4599:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop94; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:4624: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:4636: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:4636:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalDataDSL.g:4637: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:4643: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:4649:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalDataDSL.g:4650:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDataDSL.g:4650:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==104) ) { |
| alt97=1; |
| } |
| else if ( ((LA97_0>=RULE_STRING && LA97_0<=RULE_DECIMAL)||LA97_0==14||LA97_0==58||LA97_0==85||(LA97_0>=99 && LA97_0<=100)||LA97_0==105||(LA97_0>=109 && LA97_0<=110)||LA97_0==117||(LA97_0>=133 && LA97_0<=134)||LA97_0==138||LA97_0==144||LA97_0==146||(LA97_0>=150 && LA97_0<=151)||(LA97_0>=154 && LA97_0<=163)||LA97_0==165) ) { |
| alt97=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalDataDSL.g:4651: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:4660: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:4672: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:4672:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalDataDSL.g:4673: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:4679: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:4685:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalDataDSL.g:4686: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:4697: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:4697:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalDataDSL.g:4698: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:4704: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:4710:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalDataDSL.g:4711:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalDataDSL.g:4711:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt99=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA99_1 = input.LA(2); |
| |
| if ( (LA99_1==108) ) { |
| alt99=1; |
| } |
| else if ( (LA99_1==EOF||(LA99_1>=RULE_STRING && LA99_1<=RULE_DECIMAL)||(LA99_1>=14 && LA99_1<=15)||LA99_1==58||LA99_1==77||LA99_1==81||LA99_1==85||(LA99_1>=99 && LA99_1<=101)||LA99_1==103||(LA99_1>=105 && LA99_1<=107)||(LA99_1>=109 && LA99_1<=142)||(LA99_1>=144 && LA99_1<=166)) ) { |
| alt99=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 154: |
| { |
| int LA99_2 = input.LA(2); |
| |
| if ( (LA99_2==EOF||(LA99_2>=RULE_STRING && LA99_2<=RULE_DECIMAL)||(LA99_2>=14 && LA99_2<=15)||LA99_2==58||LA99_2==77||LA99_2==81||LA99_2==85||(LA99_2>=99 && LA99_2<=101)||LA99_2==103||(LA99_2>=105 && LA99_2<=107)||(LA99_2>=109 && LA99_2<=142)||(LA99_2>=144 && LA99_2<=166)) ) { |
| alt99=2; |
| } |
| else if ( (LA99_2==108) ) { |
| alt99=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 100: |
| { |
| int LA99_3 = input.LA(2); |
| |
| if ( (LA99_3==EOF||(LA99_3>=RULE_STRING && LA99_3<=RULE_DECIMAL)||(LA99_3>=14 && LA99_3<=15)||LA99_3==58||LA99_3==77||LA99_3==81||LA99_3==85||(LA99_3>=99 && LA99_3<=101)||LA99_3==103||(LA99_3>=105 && LA99_3<=107)||(LA99_3>=109 && LA99_3<=142)||(LA99_3>=144 && LA99_3<=166)) ) { |
| alt99=2; |
| } |
| else if ( (LA99_3==108) ) { |
| alt99=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 99: |
| { |
| int LA99_4 = input.LA(2); |
| |
| if ( (LA99_4==EOF||(LA99_4>=RULE_STRING && LA99_4<=RULE_DECIMAL)||(LA99_4>=14 && LA99_4<=15)||LA99_4==58||LA99_4==77||LA99_4==81||LA99_4==85||(LA99_4>=99 && LA99_4<=101)||LA99_4==103||(LA99_4>=105 && LA99_4<=107)||(LA99_4>=109 && LA99_4<=142)||(LA99_4>=144 && LA99_4<=166)) ) { |
| alt99=2; |
| } |
| else if ( (LA99_4==108) ) { |
| alt99=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 85: |
| { |
| int LA99_5 = input.LA(2); |
| |
| if ( (LA99_5==EOF||(LA99_5>=RULE_STRING && LA99_5<=RULE_DECIMAL)||(LA99_5>=14 && LA99_5<=15)||LA99_5==58||LA99_5==77||LA99_5==81||LA99_5==85||(LA99_5>=99 && LA99_5<=101)||LA99_5==103||(LA99_5>=105 && LA99_5<=107)||(LA99_5>=109 && LA99_5<=142)||(LA99_5>=144 && LA99_5<=166)) ) { |
| alt99=2; |
| } |
| else if ( (LA99_5==108) ) { |
| alt99=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 58: |
| case 105: |
| case 109: |
| case 110: |
| case 117: |
| case 133: |
| case 134: |
| case 138: |
| case 144: |
| case 146: |
| case 150: |
| case 151: |
| case 155: |
| case 156: |
| case 157: |
| case 158: |
| case 159: |
| case 160: |
| case 161: |
| case 162: |
| case 163: |
| case 165: |
| { |
| alt99=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt99) { |
| case 1 : |
| // InternalDataDSL.g:4712:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalDataDSL.g:4712:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalDataDSL.g:4713:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:4713:4: () |
| // InternalDataDSL.g:4714:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4720:4: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:4721:5: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:4721:5: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:4722: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_102); |
| 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_103); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4743:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:4744:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:4744:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalDataDSL.g:4745: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:4764:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalDataDSL.g:4764:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalDataDSL.g:4765:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_108); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4773:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt98=2; |
| alt98 = dfa98.predict(input); |
| switch (alt98) { |
| case 1 : |
| // InternalDataDSL.g:4774:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:4774:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDataDSL.g:4775:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDataDSL.g:4785:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDataDSL.g:4786:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDataDSL.g:4786:7: () |
| // InternalDataDSL.g:4787:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4793:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDataDSL.g:4794:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDataDSL.g:4794:8: ( ruleOpMultiAssign ) |
| // InternalDataDSL.g:4795: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_103); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:4811:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:4812:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:4812:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalDataDSL.g:4813: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:4836: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:4836:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalDataDSL.g:4837: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:4843: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:4849:2: (kw= '=' ) |
| // InternalDataDSL.g:4850:2: kw= '=' |
| { |
| kw=(Token)match(input,108,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:4858: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:4858:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalDataDSL.g:4859: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:4865: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:4871:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalDataDSL.g:4872:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalDataDSL.g:4872:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt101=7; |
| switch ( input.LA(1) ) { |
| case 112: |
| { |
| alt101=1; |
| } |
| break; |
| case 113: |
| { |
| alt101=2; |
| } |
| break; |
| case 114: |
| { |
| alt101=3; |
| } |
| break; |
| case 115: |
| { |
| alt101=4; |
| } |
| break; |
| case 116: |
| { |
| alt101=5; |
| } |
| break; |
| case 117: |
| { |
| alt101=6; |
| } |
| break; |
| case 118: |
| { |
| alt101=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 101, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt101) { |
| case 1 : |
| // InternalDataDSL.g:4873:3: kw= '+=' |
| { |
| kw=(Token)match(input,112,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:4879:3: kw= '-=' |
| { |
| kw=(Token)match(input,113,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:4885:3: kw= '*=' |
| { |
| kw=(Token)match(input,114,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:4891:3: kw= '/=' |
| { |
| kw=(Token)match(input,115,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:4897:3: kw= '%=' |
| { |
| kw=(Token)match(input,116,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:4903:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalDataDSL.g:4903:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalDataDSL.g:4904:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,117,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,117,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,108,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:4921:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalDataDSL.g:4921:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalDataDSL.g:4922:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,118,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:4927:4: (kw= '>' )? |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==118) ) { |
| alt100=1; |
| } |
| switch (alt100) { |
| case 1 : |
| // InternalDataDSL.g:4928:5: kw= '>' |
| { |
| kw=(Token)match(input,118,FOLLOW_111); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,119,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:4944: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:4944:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalDataDSL.g:4945: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:4951: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:4957:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalDataDSL.g:4958:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:4958:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalDataDSL.g:4959:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_112); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:4967:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop102: |
| do { |
| int alt102=2; |
| int LA102_0 = input.LA(1); |
| |
| if ( (LA102_0==120) ) { |
| int LA102_2 = input.LA(2); |
| |
| if ( (synpred8_InternalDataDSL()) ) { |
| alt102=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt102) { |
| case 1 : |
| // InternalDataDSL.g:4968:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalDataDSL.g:4968:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDataDSL.g:4969:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDataDSL.g:4979:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalDataDSL.g:4980:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDataDSL.g:4980:6: () |
| // InternalDataDSL.g:4981:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:4987:6: ( ( ruleOpOr ) ) |
| // InternalDataDSL.g:4988:7: ( ruleOpOr ) |
| { |
| // InternalDataDSL.g:4988:7: ( ruleOpOr ) |
| // InternalDataDSL.g:4989: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_103); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5005:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalDataDSL.g:5006:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalDataDSL.g:5006:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalDataDSL.g:5007:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_112); |
| 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 loop102; |
| } |
| } 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:5029: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:5029:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalDataDSL.g:5030: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:5036: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:5042:2: (kw= '||' ) |
| // InternalDataDSL.g:5043:2: kw= '||' |
| { |
| kw=(Token)match(input,120,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:5051: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:5051:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalDataDSL.g:5052: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:5058: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:5064:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalDataDSL.g:5065:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:5065:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalDataDSL.g:5066:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5074:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop103: |
| do { |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( (LA103_0==121) ) { |
| int LA103_2 = input.LA(2); |
| |
| if ( (synpred9_InternalDataDSL()) ) { |
| alt103=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt103) { |
| case 1 : |
| // InternalDataDSL.g:5075:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalDataDSL.g:5075:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDataDSL.g:5076:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDataDSL.g:5086:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDataDSL.g:5087:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDataDSL.g:5087:6: () |
| // InternalDataDSL.g:5088:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5094:6: ( ( ruleOpAnd ) ) |
| // InternalDataDSL.g:5095:7: ( ruleOpAnd ) |
| { |
| // InternalDataDSL.g:5095:7: ( ruleOpAnd ) |
| // InternalDataDSL.g:5096: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_103); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5112:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalDataDSL.g:5113:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalDataDSL.g:5113:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalDataDSL.g:5114:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| 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 loop103; |
| } |
| } 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:5136: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:5136:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalDataDSL.g:5137: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:5143: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:5149:2: (kw= '&&' ) |
| // InternalDataDSL.g:5150:2: kw= '&&' |
| { |
| kw=(Token)match(input,121,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:5158: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:5158:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalDataDSL.g:5159: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:5165: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:5171:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalDataDSL.g:5172:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:5172:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalDataDSL.g:5173:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5181:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop104: |
| do { |
| int alt104=2; |
| switch ( input.LA(1) ) { |
| case 122: |
| { |
| int LA104_2 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt104=1; |
| } |
| |
| |
| } |
| break; |
| case 123: |
| { |
| int LA104_3 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt104=1; |
| } |
| |
| |
| } |
| break; |
| case 124: |
| { |
| int LA104_4 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt104=1; |
| } |
| |
| |
| } |
| break; |
| case 125: |
| { |
| int LA104_5 = input.LA(2); |
| |
| if ( (synpred10_InternalDataDSL()) ) { |
| alt104=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt104) { |
| case 1 : |
| // InternalDataDSL.g:5182:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalDataDSL.g:5182:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDataDSL.g:5183:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDataDSL.g:5193:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDataDSL.g:5194:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDataDSL.g:5194:6: () |
| // InternalDataDSL.g:5195:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5201:6: ( ( ruleOpEquality ) ) |
| // InternalDataDSL.g:5202:7: ( ruleOpEquality ) |
| { |
| // InternalDataDSL.g:5202:7: ( ruleOpEquality ) |
| // InternalDataDSL.g:5203: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_103); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5219:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalDataDSL.g:5220:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalDataDSL.g:5220:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalDataDSL.g:5221:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| 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 loop104; |
| } |
| } 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:5243: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:5243:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalDataDSL.g:5244: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:5250: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:5256:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalDataDSL.g:5257:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalDataDSL.g:5257:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt105=4; |
| switch ( input.LA(1) ) { |
| case 122: |
| { |
| alt105=1; |
| } |
| break; |
| case 123: |
| { |
| alt105=2; |
| } |
| break; |
| case 124: |
| { |
| alt105=3; |
| } |
| break; |
| case 125: |
| { |
| alt105=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 105, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt105) { |
| case 1 : |
| // InternalDataDSL.g:5258:3: kw= '==' |
| { |
| kw=(Token)match(input,122,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:5264:3: kw= '!=' |
| { |
| kw=(Token)match(input,123,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:5270:3: kw= '===' |
| { |
| kw=(Token)match(input,124,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:5276:3: kw= '!==' |
| { |
| kw=(Token)match(input,125,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:5285: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:5285:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalDataDSL.g:5286: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:5292: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:5298:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalDataDSL.g:5299:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalDataDSL.g:5299:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalDataDSL.g:5300: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_115); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5308:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop106: |
| do { |
| int alt106=3; |
| switch ( input.LA(1) ) { |
| case 117: |
| { |
| int LA106_2 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt106=2; |
| } |
| |
| |
| } |
| break; |
| case 118: |
| { |
| int LA106_3 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt106=2; |
| } |
| |
| |
| } |
| break; |
| case 126: |
| { |
| int LA106_4 = input.LA(2); |
| |
| if ( (synpred11_InternalDataDSL()) ) { |
| alt106=1; |
| } |
| |
| |
| } |
| break; |
| case 119: |
| { |
| int LA106_5 = input.LA(2); |
| |
| if ( (synpred12_InternalDataDSL()) ) { |
| alt106=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt106) { |
| case 1 : |
| // InternalDataDSL.g:5309:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:5309:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:5310:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDataDSL.g:5310:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalDataDSL.g:5311:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalDataDSL.g:5317:6: ( () otherlv_2= 'instanceof' ) |
| // InternalDataDSL.g:5318:7: () otherlv_2= 'instanceof' |
| { |
| // InternalDataDSL.g:5318:7: () |
| // InternalDataDSL.g:5319:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,126,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5331:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:5332:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:5332:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:5333:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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:5352:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalDataDSL.g:5352:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalDataDSL.g:5353:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalDataDSL.g:5353:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDataDSL.g:5354:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDataDSL.g:5364:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDataDSL.g:5365:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDataDSL.g:5365:7: () |
| // InternalDataDSL.g:5366:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5372:7: ( ( ruleOpCompare ) ) |
| // InternalDataDSL.g:5373:8: ( ruleOpCompare ) |
| { |
| // InternalDataDSL.g:5373:8: ( ruleOpCompare ) |
| // InternalDataDSL.g:5374: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_103); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5390:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalDataDSL.g:5391:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalDataDSL.g:5391:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalDataDSL.g:5392:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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 loop106; |
| } |
| } 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:5415: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:5415:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalDataDSL.g:5416: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:5422: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:5428:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalDataDSL.g:5429:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalDataDSL.g:5429:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt107=4; |
| switch ( input.LA(1) ) { |
| case 119: |
| { |
| alt107=1; |
| } |
| break; |
| case 117: |
| { |
| int LA107_2 = input.LA(2); |
| |
| if ( (LA107_2==108) ) { |
| alt107=2; |
| } |
| else if ( (LA107_2==EOF||(LA107_2>=RULE_STRING && LA107_2<=RULE_DECIMAL)||LA107_2==14||LA107_2==58||LA107_2==85||(LA107_2>=99 && LA107_2<=100)||LA107_2==105||(LA107_2>=109 && LA107_2<=110)||LA107_2==117||(LA107_2>=133 && LA107_2<=134)||LA107_2==138||LA107_2==144||LA107_2==146||(LA107_2>=150 && LA107_2<=151)||(LA107_2>=154 && LA107_2<=163)||LA107_2==165) ) { |
| alt107=4; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 118: |
| { |
| alt107=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt107) { |
| case 1 : |
| // InternalDataDSL.g:5430:3: kw= '>=' |
| { |
| kw=(Token)match(input,119,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:5436:3: (kw= '<' kw= '=' ) |
| { |
| // InternalDataDSL.g:5436:3: (kw= '<' kw= '=' ) |
| // InternalDataDSL.g:5437:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,117,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,108,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:5449:3: kw= '>' |
| { |
| kw=(Token)match(input,118,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:5455:3: kw= '<' |
| { |
| kw=(Token)match(input,117,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:5464: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:5464:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalDataDSL.g:5465: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:5471: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:5477:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalDataDSL.g:5478:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:5478:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalDataDSL.g:5479:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5487:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop108: |
| do { |
| int alt108=2; |
| alt108 = dfa108.predict(input); |
| switch (alt108) { |
| case 1 : |
| // InternalDataDSL.g:5488:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalDataDSL.g:5488:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDataDSL.g:5489:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDataDSL.g:5499:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalDataDSL.g:5500:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDataDSL.g:5500:6: () |
| // InternalDataDSL.g:5501:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5507:6: ( ( ruleOpOther ) ) |
| // InternalDataDSL.g:5508:7: ( ruleOpOther ) |
| { |
| // InternalDataDSL.g:5508:7: ( ruleOpOther ) |
| // InternalDataDSL.g:5509: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_103); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5525:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalDataDSL.g:5526:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalDataDSL.g:5526:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalDataDSL.g:5527:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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 loop108; |
| } |
| } 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:5549: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:5549:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalDataDSL.g:5550: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:5556: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:5562:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalDataDSL.g:5563:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalDataDSL.g:5563:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt111=9; |
| alt111 = dfa111.predict(input); |
| switch (alt111) { |
| case 1 : |
| // InternalDataDSL.g:5564:3: kw= '->' |
| { |
| kw=(Token)match(input,127,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:5570:3: kw= '..<' |
| { |
| kw=(Token)match(input,128,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:5576:3: (kw= '>' kw= '..' ) |
| { |
| // InternalDataDSL.g:5576:3: (kw= '>' kw= '..' ) |
| // InternalDataDSL.g:5577:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,118,FOLLOW_118); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,129,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:5589:3: kw= '..' |
| { |
| kw=(Token)match(input,129,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:5595:3: kw= '=>' |
| { |
| kw=(Token)match(input,130,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:5601:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalDataDSL.g:5601:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalDataDSL.g:5602:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,118,FOLLOW_119); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalDataDSL.g:5607:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==118) ) { |
| int LA109_1 = input.LA(2); |
| |
| if ( (LA109_1==EOF||(LA109_1>=RULE_STRING && LA109_1<=RULE_DECIMAL)||LA109_1==14||LA109_1==58||LA109_1==85||(LA109_1>=99 && LA109_1<=100)||LA109_1==105||(LA109_1>=109 && LA109_1<=110)||LA109_1==117||(LA109_1>=133 && LA109_1<=134)||LA109_1==138||LA109_1==144||LA109_1==146||(LA109_1>=150 && LA109_1<=151)||(LA109_1>=154 && LA109_1<=163)||LA109_1==165) ) { |
| alt109=2; |
| } |
| else if ( (LA109_1==118) && (synpred14_InternalDataDSL())) { |
| alt109=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 109, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 109, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt109) { |
| case 1 : |
| // InternalDataDSL.g:5608:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalDataDSL.g:5608:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalDataDSL.g:5609:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalDataDSL.g:5614:6: (kw= '>' kw= '>' ) |
| // InternalDataDSL.g:5615:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,118,FOLLOW_119); 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,118,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:5628:5: kw= '>' |
| { |
| kw=(Token)match(input,118,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:5636:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalDataDSL.g:5636:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalDataDSL.g:5637:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,117,FOLLOW_120); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalDataDSL.g:5642:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt110=3; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==117) ) { |
| int LA110_1 = input.LA(2); |
| |
| if ( (synpred15_InternalDataDSL()) ) { |
| alt110=1; |
| } |
| else if ( (true) ) { |
| alt110=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 110, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA110_0==130) ) { |
| alt110=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 110, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt110) { |
| case 1 : |
| // InternalDataDSL.g:5643:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalDataDSL.g:5643:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalDataDSL.g:5644:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalDataDSL.g:5649:6: (kw= '<' kw= '<' ) |
| // InternalDataDSL.g:5650:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,117,FOLLOW_109); 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,117,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:5663:5: kw= '<' |
| { |
| kw=(Token)match(input,117,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:5669:5: kw= '=>' |
| { |
| kw=(Token)match(input,130,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:5677:3: kw= '<>' |
| { |
| kw=(Token)match(input,131,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:5683:3: kw= '?:' |
| { |
| kw=(Token)match(input,132,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:5692: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:5692:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalDataDSL.g:5693: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:5699: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:5705:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalDataDSL.g:5706:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:5706:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalDataDSL.g:5707:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_121); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5715:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop112: |
| do { |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( (LA112_0==133) ) { |
| int LA112_2 = input.LA(2); |
| |
| if ( (synpred16_InternalDataDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| else if ( (LA112_0==134) ) { |
| int LA112_3 = input.LA(2); |
| |
| if ( (synpred16_InternalDataDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt112) { |
| case 1 : |
| // InternalDataDSL.g:5716:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalDataDSL.g:5716:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDataDSL.g:5717:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDataDSL.g:5727:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDataDSL.g:5728:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDataDSL.g:5728:6: () |
| // InternalDataDSL.g:5729:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5735:6: ( ( ruleOpAdd ) ) |
| // InternalDataDSL.g:5736:7: ( ruleOpAdd ) |
| { |
| // InternalDataDSL.g:5736:7: ( ruleOpAdd ) |
| // InternalDataDSL.g:5737: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_103); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5753:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalDataDSL.g:5754:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalDataDSL.g:5754:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalDataDSL.g:5755:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_121); |
| 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 loop112; |
| } |
| } 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:5777: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:5777:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalDataDSL.g:5778: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:5784: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:5790:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalDataDSL.g:5791:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalDataDSL.g:5791:2: (kw= '+' | kw= '-' ) |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==133) ) { |
| alt113=1; |
| } |
| else if ( (LA113_0==134) ) { |
| alt113=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 113, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalDataDSL.g:5792:3: kw= '+' |
| { |
| kw=(Token)match(input,133,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:5798:3: kw= '-' |
| { |
| kw=(Token)match(input,134,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:5807: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:5807:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalDataDSL.g:5808: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:5814: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:5820:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalDataDSL.g:5821:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalDataDSL.g:5821:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalDataDSL.g:5822:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:5830:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop114: |
| do { |
| int alt114=2; |
| switch ( input.LA(1) ) { |
| case 101: |
| { |
| int LA114_2 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt114=1; |
| } |
| |
| |
| } |
| break; |
| case 135: |
| { |
| int LA114_3 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt114=1; |
| } |
| |
| |
| } |
| break; |
| case 136: |
| { |
| int LA114_4 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt114=1; |
| } |
| |
| |
| } |
| break; |
| case 137: |
| { |
| int LA114_5 = input.LA(2); |
| |
| if ( (synpred17_InternalDataDSL()) ) { |
| alt114=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt114) { |
| case 1 : |
| // InternalDataDSL.g:5831:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDataDSL.g:5831:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDataDSL.g:5832:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDataDSL.g:5842:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDataDSL.g:5843:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDataDSL.g:5843:6: () |
| // InternalDataDSL.g:5844:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5850:6: ( ( ruleOpMulti ) ) |
| // InternalDataDSL.g:5851:7: ( ruleOpMulti ) |
| { |
| // InternalDataDSL.g:5851:7: ( ruleOpMulti ) |
| // InternalDataDSL.g:5852: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_103); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5868:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalDataDSL.g:5869:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalDataDSL.g:5869:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalDataDSL.g:5870:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| 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 loop114; |
| } |
| } 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:5892: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:5892:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalDataDSL.g:5893: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:5899: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:5905:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalDataDSL.g:5906:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalDataDSL.g:5906:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt115=4; |
| switch ( input.LA(1) ) { |
| case 101: |
| { |
| alt115=1; |
| } |
| break; |
| case 135: |
| { |
| alt115=2; |
| } |
| break; |
| case 136: |
| { |
| alt115=3; |
| } |
| break; |
| case 137: |
| { |
| alt115=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 115, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt115) { |
| case 1 : |
| // InternalDataDSL.g:5907:3: kw= '*' |
| { |
| kw=(Token)match(input,101,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:5913:3: kw= '**' |
| { |
| kw=(Token)match(input,135,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:5919:3: kw= '/' |
| { |
| kw=(Token)match(input,136,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:5925:3: kw= '%' |
| { |
| kw=(Token)match(input,137,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:5934: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:5934:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalDataDSL.g:5935: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:5941: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:5947:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalDataDSL.g:5948:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalDataDSL.g:5948:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( ((LA116_0>=133 && LA116_0<=134)||LA116_0==138) ) { |
| alt116=1; |
| } |
| else if ( ((LA116_0>=RULE_STRING && LA116_0<=RULE_DECIMAL)||LA116_0==14||LA116_0==58||LA116_0==85||(LA116_0>=99 && LA116_0<=100)||LA116_0==105||(LA116_0>=109 && LA116_0<=110)||LA116_0==117||LA116_0==144||LA116_0==146||(LA116_0>=150 && LA116_0<=151)||(LA116_0>=154 && LA116_0<=163)||LA116_0==165) ) { |
| alt116=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 116, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt116) { |
| case 1 : |
| // InternalDataDSL.g:5949:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalDataDSL.g:5949:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalDataDSL.g:5950:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDataDSL.g:5950:4: () |
| // InternalDataDSL.g:5951:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:5957:4: ( ( ruleOpUnary ) ) |
| // InternalDataDSL.g:5958:5: ( ruleOpUnary ) |
| { |
| // InternalDataDSL.g:5958:5: ( ruleOpUnary ) |
| // InternalDataDSL.g:5959: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_103); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:5973:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalDataDSL.g:5974:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalDataDSL.g:5974:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalDataDSL.g:5975: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:5994: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:6006: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:6006:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalDataDSL.g:6007: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:6013: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:6019:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalDataDSL.g:6020:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalDataDSL.g:6020:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt117=3; |
| switch ( input.LA(1) ) { |
| case 138: |
| { |
| alt117=1; |
| } |
| break; |
| case 134: |
| { |
| alt117=2; |
| } |
| break; |
| case 133: |
| { |
| alt117=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 117, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt117) { |
| case 1 : |
| // InternalDataDSL.g:6021:3: kw= '!' |
| { |
| kw=(Token)match(input,138,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:6027:3: kw= '-' |
| { |
| kw=(Token)match(input,134,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:6033:3: kw= '+' |
| { |
| kw=(Token)match(input,133,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:6042: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:6042:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalDataDSL.g:6043: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:6049: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:6055:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalDataDSL.g:6056:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalDataDSL.g:6056:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalDataDSL.g:6057: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_123); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:6065:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop118: |
| do { |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==81) ) { |
| int LA118_2 = input.LA(2); |
| |
| if ( (synpred18_InternalDataDSL()) ) { |
| alt118=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt118) { |
| case 1 : |
| // InternalDataDSL.g:6066:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDataDSL.g:6066:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalDataDSL.g:6067:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalDataDSL.g:6073:5: ( () otherlv_2= 'as' ) |
| // InternalDataDSL.g:6074:6: () otherlv_2= 'as' |
| { |
| // InternalDataDSL.g:6074:6: () |
| // InternalDataDSL.g:6075:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,81,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6087:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:6088:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:6088:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:6089:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| 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 loop118; |
| } |
| } 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:6111: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:6111:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalDataDSL.g:6112: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:6118: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:6124:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalDataDSL.g:6125:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalDataDSL.g:6125:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalDataDSL.g:6126:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:6134:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==139) ) { |
| int LA119_1 = input.LA(2); |
| |
| if ( (synpred19_InternalDataDSL()) ) { |
| alt119=1; |
| } |
| } |
| else if ( (LA119_0==140) ) { |
| int LA119_2 = input.LA(2); |
| |
| if ( (synpred19_InternalDataDSL()) ) { |
| alt119=1; |
| } |
| } |
| switch (alt119) { |
| case 1 : |
| // InternalDataDSL.g:6135:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDataDSL.g:6145:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDataDSL.g:6146:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDataDSL.g:6146:5: () |
| // InternalDataDSL.g:6147:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6153:5: ( ( ruleOpPostfix ) ) |
| // InternalDataDSL.g:6154:6: ( ruleOpPostfix ) |
| { |
| // InternalDataDSL.g:6154:6: ( ruleOpPostfix ) |
| // InternalDataDSL.g:6155: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:6175: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:6175:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalDataDSL.g:6176: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:6182: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:6188:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalDataDSL.g:6189:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalDataDSL.g:6189:2: (kw= '++' | kw= '--' ) |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==139) ) { |
| alt120=1; |
| } |
| else if ( (LA120_0==140) ) { |
| alt120=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 120, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt120) { |
| case 1 : |
| // InternalDataDSL.g:6190:3: kw= '++' |
| { |
| kw=(Token)match(input,139,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:6196:3: kw= '--' |
| { |
| kw=(Token)match(input,140,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:6205: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:6205:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalDataDSL.g:6206: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:6212: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:6218: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:6219: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:6219: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:6220: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_125); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:6228: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 ) )? ) )* |
| loop129: |
| do { |
| int alt129=3; |
| switch ( input.LA(1) ) { |
| case 77: |
| { |
| int LA129_2 = input.LA(2); |
| |
| if ( (synpred20_InternalDataDSL()) ) { |
| alt129=1; |
| } |
| else if ( (synpred21_InternalDataDSL()) ) { |
| alt129=2; |
| } |
| |
| |
| } |
| break; |
| case 141: |
| { |
| int LA129_3 = input.LA(2); |
| |
| if ( (synpred20_InternalDataDSL()) ) { |
| alt129=1; |
| } |
| else if ( (synpred21_InternalDataDSL()) ) { |
| alt129=2; |
| } |
| |
| |
| } |
| break; |
| case 142: |
| { |
| int LA129_4 = input.LA(2); |
| |
| if ( (synpred21_InternalDataDSL()) ) { |
| alt129=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt129) { |
| case 1 : |
| // InternalDataDSL.g:6229:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalDataDSL.g:6229:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalDataDSL.g:6230:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalDataDSL.g:6230:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDataDSL.g:6231:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDataDSL.g:6251:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDataDSL.g:6252:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDataDSL.g:6252:7: () |
| // InternalDataDSL.g:6253:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6259:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==77) ) { |
| alt121=1; |
| } |
| else if ( (LA121_0==141) ) { |
| alt121=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 121, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt121) { |
| case 1 : |
| // InternalDataDSL.g:6260:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,77,FOLLOW_126); 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:6265:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalDataDSL.g:6265:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalDataDSL.g:6266:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalDataDSL.g:6266:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalDataDSL.g:6267:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,141,FOLLOW_126); 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:6280:7: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:6281:8: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:6281:8: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:6282: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_102); |
| 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_103); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6305:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalDataDSL.g:6306:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalDataDSL.g:6306:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalDataDSL.g:6307:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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:6326: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:6326: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:6327: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:6327:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalDataDSL.g:6328:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalDataDSL.g:6348:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalDataDSL.g:6349:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalDataDSL.g:6349:7: () |
| // InternalDataDSL.g:6350:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:6356:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt122=3; |
| switch ( input.LA(1) ) { |
| case 77: |
| { |
| alt122=1; |
| } |
| break; |
| case 142: |
| { |
| alt122=2; |
| } |
| break; |
| case 141: |
| { |
| alt122=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 122, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt122) { |
| case 1 : |
| // InternalDataDSL.g:6357:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,77,FOLLOW_127); 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:6362:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalDataDSL.g:6362:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalDataDSL.g:6363:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalDataDSL.g:6363:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalDataDSL.g:6364:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,142,FOLLOW_127); 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:6377:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalDataDSL.g:6377:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalDataDSL.g:6378:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalDataDSL.g:6378:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalDataDSL.g:6379:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,141,FOLLOW_127); 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:6394:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( (LA124_0==117) ) { |
| alt124=1; |
| } |
| switch (alt124) { |
| case 1 : |
| // InternalDataDSL.g:6395:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,117,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:6399:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:6400:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:6400:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:6401:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:6418:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==106) ) { |
| alt123=1; |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalDataDSL.g:6419:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,106,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:6423:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:6424:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:6424:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:6425:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop123; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,118,FOLLOW_127); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6448:5: ( ( ruleIdOrSuper ) ) |
| // InternalDataDSL.g:6449:6: ( ruleIdOrSuper ) |
| { |
| // InternalDataDSL.g:6449:6: ( ruleIdOrSuper ) |
| // InternalDataDSL.g:6450: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_130); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6464: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 alt127=2; |
| alt127 = dfa127.predict(input); |
| switch (alt127) { |
| case 1 : |
| // InternalDataDSL.g:6465: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:6465:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalDataDSL.g:6466:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalDataDSL.g:6470:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalDataDSL.g:6471:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,105,FOLLOW_131); 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:6483:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt126=3; |
| alt126 = dfa126.predict(input); |
| switch (alt126) { |
| case 1 : |
| // InternalDataDSL.g:6484:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:6484:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:6485:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:6510:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalDataDSL.g:6511:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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:6529:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:6529:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:6530:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:6530:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6531:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6531:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalDataDSL.g:6532:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:6549:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop125: |
| do { |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==106) ) { |
| alt125=1; |
| } |
| |
| |
| switch (alt125) { |
| case 1 : |
| // InternalDataDSL.g:6550:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:6554:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6555:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6555:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalDataDSL.g:6556:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop125; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,107,FOLLOW_132); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6581:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt128=2; |
| alt128 = dfa128.predict(input); |
| switch (alt128) { |
| case 1 : |
| // InternalDataDSL.g:6582:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:6588:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalDataDSL.g:6589:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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 loop129; |
| } |
| } 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:6612: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:6612:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalDataDSL.g:6613: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:6619: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:6625: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:6626: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:6626: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 alt130=15; |
| alt130 = dfa130.predict(input); |
| switch (alt130) { |
| case 1 : |
| // InternalDataDSL.g:6627: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:6636: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:6645: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:6654:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalDataDSL.g:6654:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalDataDSL.g:6655: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:6672: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:6681: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:6690: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:6699:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalDataDSL.g:6699:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalDataDSL.g:6700: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:6723: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:6732: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:6741: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:6750: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:6759: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:6768: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:6777: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:6789: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:6789:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalDataDSL.g:6790: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:6796: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:6802: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:6803: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:6803: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 alt131=7; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==109) ) { |
| alt131=1; |
| } |
| else if ( (LA131_0==110) && (synpred27_InternalDataDSL())) { |
| alt131=2; |
| } |
| else if ( ((LA131_0>=157 && LA131_0<=158)) ) { |
| alt131=3; |
| } |
| else if ( (LA131_0==RULE_INT||(LA131_0>=RULE_HEX && LA131_0<=RULE_DECIMAL)) ) { |
| alt131=4; |
| } |
| else if ( (LA131_0==159) ) { |
| alt131=5; |
| } |
| else if ( (LA131_0==RULE_STRING) ) { |
| alt131=6; |
| } |
| else if ( (LA131_0==160) ) { |
| alt131=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 131, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt131) { |
| case 1 : |
| // InternalDataDSL.g:6804: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:6813:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalDataDSL.g:6813:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalDataDSL.g:6814: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:6830: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:6839: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:6848: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:6857: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:6866: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:6878: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:6878:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalDataDSL.g:6879: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:6885: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:6891:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalDataDSL.g:6892:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalDataDSL.g:6892:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==109) ) { |
| int LA132_1 = input.LA(2); |
| |
| if ( (LA132_1==110) ) { |
| alt132=2; |
| } |
| else if ( (LA132_1==14) ) { |
| alt132=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalDataDSL.g:6893: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:6902: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:6914: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:6914:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalDataDSL.g:6915: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:6921: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:6927:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalDataDSL.g:6928:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalDataDSL.g:6928:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalDataDSL.g:6929:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalDataDSL.g:6929:3: () |
| // InternalDataDSL.g:6930:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,109,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:6944:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( ((LA134_0>=RULE_STRING && LA134_0<=RULE_DECIMAL)||LA134_0==14||LA134_0==58||LA134_0==85||(LA134_0>=99 && LA134_0<=100)||LA134_0==105||(LA134_0>=109 && LA134_0<=110)||LA134_0==117||(LA134_0>=133 && LA134_0<=134)||LA134_0==138||LA134_0==144||LA134_0==146||(LA134_0>=150 && LA134_0<=151)||(LA134_0>=154 && LA134_0<=163)||LA134_0==165) ) { |
| alt134=1; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalDataDSL.g:6945:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:6945:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6946:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6946:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDataDSL.g:6947:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_134); |
| 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:6964:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop133: |
| do { |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==106) ) { |
| alt133=1; |
| } |
| |
| |
| switch (alt133) { |
| case 1 : |
| // InternalDataDSL.g:6965:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:6969:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:6970:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:6970:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDataDSL.g:6971:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_134); |
| 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 loop133; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSetLiteral" |
| |
| |
| // $ANTLR start "entryRuleXListLiteral" |
| // InternalDataDSL.g:6998: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:6998:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalDataDSL.g:6999: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:7005: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:7011:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalDataDSL.g:7012:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDataDSL.g:7012:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDataDSL.g:7013:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDataDSL.g:7013:3: () |
| // InternalDataDSL.g:7014:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,109,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,110,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:7028:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( ((LA136_0>=RULE_STRING && LA136_0<=RULE_DECIMAL)||LA136_0==14||LA136_0==58||LA136_0==85||(LA136_0>=99 && LA136_0<=100)||LA136_0==105||(LA136_0>=109 && LA136_0<=110)||LA136_0==117||(LA136_0>=133 && LA136_0<=134)||LA136_0==138||LA136_0==144||LA136_0==146||(LA136_0>=150 && LA136_0<=151)||(LA136_0>=154 && LA136_0<=163)||LA136_0==165) ) { |
| alt136=1; |
| } |
| switch (alt136) { |
| case 1 : |
| // InternalDataDSL.g:7029:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:7029:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7030:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7030:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDataDSL.g:7031:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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:7048:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop135: |
| do { |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==106) ) { |
| alt135=1; |
| } |
| |
| |
| switch (alt135) { |
| case 1 : |
| // InternalDataDSL.g:7049:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:7053:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7054:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7054:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7055:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop135; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,111,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:7082: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:7082:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalDataDSL.g:7083: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:7089: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:7095: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:7096: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:7096: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:7097: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:7097:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalDataDSL.g:7098:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalDataDSL.g:7104:4: ( () otherlv_1= '[' ) |
| // InternalDataDSL.g:7105:5: () otherlv_1= '[' |
| { |
| // InternalDataDSL.g:7105:5: () |
| // InternalDataDSL.g:7106:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,110,FOLLOW_135); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7118:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt139=2; |
| alt139 = dfa139.predict(input); |
| switch (alt139) { |
| case 1 : |
| // InternalDataDSL.g:7119:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalDataDSL.g:7142:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalDataDSL.g:7143:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalDataDSL.g:7143:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( (LA138_0==RULE_ID||LA138_0==105||LA138_0==130) ) { |
| alt138=1; |
| } |
| switch (alt138) { |
| case 1 : |
| // InternalDataDSL.g:7144:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:7144:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7145:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7145:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7146:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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:7163:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop137: |
| do { |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==106) ) { |
| alt137=1; |
| } |
| |
| |
| switch (alt137) { |
| case 1 : |
| // InternalDataDSL.g:7164:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,106,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalDataDSL.g:7168:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7169:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7169:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7170:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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 loop137; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7189:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalDataDSL.g:7190:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalDataDSL.g:7190:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalDataDSL.g:7191:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,143,FOLLOW_137); 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:7205:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalDataDSL.g:7206:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalDataDSL.g:7206:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalDataDSL.g:7207:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_138); |
| 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,111,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:7232: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:7232:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalDataDSL.g:7233: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:7239: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:7245:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalDataDSL.g:7246:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalDataDSL.g:7246:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalDataDSL.g:7247:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalDataDSL.g:7247:3: () |
| // InternalDataDSL.g:7248:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7254:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop141: |
| do { |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( ((LA141_0>=RULE_STRING && LA141_0<=RULE_DECIMAL)||LA141_0==14||LA141_0==58||LA141_0==85||(LA141_0>=99 && LA141_0<=100)||LA141_0==105||(LA141_0>=109 && LA141_0<=110)||LA141_0==117||(LA141_0>=133 && LA141_0<=134)||LA141_0==138||LA141_0==144||LA141_0==146||(LA141_0>=150 && LA141_0<=163)||LA141_0==165) ) { |
| alt141=1; |
| } |
| |
| |
| switch (alt141) { |
| case 1 : |
| // InternalDataDSL.g:7255:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalDataDSL.g:7255:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:7256:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:7256:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:7257:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_139); |
| 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:7274:4: (otherlv_2= ';' )? |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==103) ) { |
| alt140=1; |
| } |
| switch (alt140) { |
| case 1 : |
| // InternalDataDSL.g:7275:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,103,FOLLOW_140); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop141; |
| } |
| } 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:7285: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:7285:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalDataDSL.g:7286: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:7292: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:7298: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:7299: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:7299: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:7300: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:7300:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalDataDSL.g:7301:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalDataDSL.g:7326:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalDataDSL.g:7327:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalDataDSL.g:7327:5: () |
| // InternalDataDSL.g:7328:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7334:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==RULE_ID||LA143_0==105||LA143_0==130) ) { |
| alt143=1; |
| } |
| switch (alt143) { |
| case 1 : |
| // InternalDataDSL.g:7335:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:7335:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7336:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7336:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7337:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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:7354:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop142: |
| do { |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==106) ) { |
| alt142=1; |
| } |
| |
| |
| switch (alt142) { |
| case 1 : |
| // InternalDataDSL.g:7355:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,106,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:7359:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7360:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7360:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7361:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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 loop142; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7380:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalDataDSL.g:7381:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalDataDSL.g:7381:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalDataDSL.g:7382:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,143,FOLLOW_103); 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:7396:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7397:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7397:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7398: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:7419: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:7419:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalDataDSL.g:7420: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:7426: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:7432:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalDataDSL.g:7433:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalDataDSL.g:7433:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalDataDSL.g:7434:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,105,FOLLOW_103); 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_101); |
| 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,107,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:7454: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:7454:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalDataDSL.g:7455: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:7461: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:7467: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:7468: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:7468: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:7469: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:7469:3: () |
| // InternalDataDSL.g:7470:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,144,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:7484:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7485:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7485:4: (lv_if_3_0= ruleXExpression ) |
| // InternalDataDSL.g:7486:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:7507:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7508:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7508:4: (lv_then_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7509:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_142); |
| 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:7526:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==145) ) { |
| int LA144_1 = input.LA(2); |
| |
| if ( (synpred31_InternalDataDSL()) ) { |
| alt144=1; |
| } |
| } |
| switch (alt144) { |
| case 1 : |
| // InternalDataDSL.g:7527:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:7527:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalDataDSL.g:7528:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,145,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7534:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7535:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7535:5: (lv_else_7_0= ruleXExpression ) |
| // InternalDataDSL.g:7536: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:7558: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:7558:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalDataDSL.g:7559: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:7565: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:7571: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:7572: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:7572: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:7573: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:7573:3: () |
| // InternalDataDSL.g:7574:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,146,FOLLOW_143); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:7584: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 alt146=2; |
| alt146 = dfa146.predict(input); |
| switch (alt146) { |
| case 1 : |
| // InternalDataDSL.g:7585:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDataDSL.g:7585:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDataDSL.g:7586:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDataDSL.g:7586:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDataDSL.g:7587:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDataDSL.g:7597:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDataDSL.g:7598:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,105,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalDataDSL.g:7602:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7603:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7603:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7604:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_144); |
| 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,147,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7627:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7628:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7628:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7629:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,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:7652:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:7652:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:7653:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:7653:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt145=2; |
| alt145 = dfa145.predict(input); |
| switch (alt145) { |
| case 1 : |
| // InternalDataDSL.g:7654:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalDataDSL.g:7663:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalDataDSL.g:7664:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalDataDSL.g:7664:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7665:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7665:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7666:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_144); |
| 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,147,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7689:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7690:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7690:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalDataDSL.g:7691: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,14,FOLLOW_145); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:7714:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop147: |
| do { |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==RULE_ID||(LA147_0>=105 && LA147_0<=106)||LA147_0==130||LA147_0==147||LA147_0==149) ) { |
| alt147=1; |
| } |
| |
| |
| switch (alt147) { |
| case 1 : |
| // InternalDataDSL.g:7715:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalDataDSL.g:7715:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalDataDSL.g:7716:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| 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 loop147; |
| } |
| } while (true); |
| |
| // InternalDataDSL.g:7733:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==148) ) { |
| alt148=1; |
| } |
| switch (alt148) { |
| case 1 : |
| // InternalDataDSL.g:7734:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,148,FOLLOW_144); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,147,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalDataDSL.g:7742:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7743:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7743:5: (lv_default_14_0= ruleXExpression ) |
| // InternalDataDSL.g:7744:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_default_14_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "default", |
| lv_default_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSwitchExpression" |
| |
| |
| // $ANTLR start "entryRuleXCasePart" |
| // InternalDataDSL.g:7770: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:7770:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalDataDSL.g:7771: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:7777: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:7783: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:7784: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:7784: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:7785: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:7785:3: () |
| // InternalDataDSL.g:7786:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:7792:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==RULE_ID||LA149_0==105||LA149_0==130) ) { |
| alt149=1; |
| } |
| switch (alt149) { |
| case 1 : |
| // InternalDataDSL.g:7793:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:7793:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:7794:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_146); |
| 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:7811:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==149) ) { |
| alt150=1; |
| } |
| switch (alt150) { |
| case 1 : |
| // InternalDataDSL.g:7812:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,149,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalDataDSL.g:7816:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7817:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7817:5: (lv_case_3_0= ruleXExpression ) |
| // InternalDataDSL.g:7818:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_147); |
| 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:7836:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( (LA151_0==147) ) { |
| alt151=1; |
| } |
| else if ( (LA151_0==106) ) { |
| 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:7837:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:7837:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:7838:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,147,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalDataDSL.g:7842:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7843:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7843:6: (lv_then_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7844: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:7863:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalDataDSL.g:7863:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalDataDSL.g:7864:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalDataDSL.g:7864:5: (lv_fallThrough_6_0= ',' ) |
| // InternalDataDSL.g:7865:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,106,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:7882: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:7882:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalDataDSL.g:7883: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:7889: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:7895: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:7896: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:7896: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:7897: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:7897:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDataDSL.g:7898:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDataDSL.g:7911:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDataDSL.g:7912:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalDataDSL.g:7912:5: () |
| // InternalDataDSL.g:7913:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalDataDSL.g:7927:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7928:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7928:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7929:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_144); |
| 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,147,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7952:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7953:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7953:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:7954:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:7975:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:7976:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:7976:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:7977: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:7998: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:7998:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalDataDSL.g:7999: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:8005: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:8011: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:8012: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:8012: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:8013: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:8013:3: () |
| // InternalDataDSL.g:8014:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_148); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:8028:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( ((LA153_0>=RULE_STRING && LA153_0<=RULE_DECIMAL)||LA153_0==14||LA153_0==58||LA153_0==85||(LA153_0>=99 && LA153_0<=100)||LA153_0==105||(LA153_0>=109 && LA153_0<=110)||LA153_0==117||(LA153_0>=133 && LA153_0<=134)||LA153_0==138||LA153_0==144||LA153_0==146||(LA153_0>=150 && LA153_0<=163)||LA153_0==165) ) { |
| alt153=1; |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalDataDSL.g:8029:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalDataDSL.g:8029:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:8030:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:8030:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:8031:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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:8048:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop152: |
| do { |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==106) ) { |
| alt152=1; |
| } |
| |
| |
| switch (alt152) { |
| case 1 : |
| // InternalDataDSL.g:8049:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,106,FOLLOW_150); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:8053:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:8054:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:8054:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:8055:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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 loop152; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,103,FOLLOW_151); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:8078:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( ((LA154_0>=RULE_STRING && LA154_0<=RULE_DECIMAL)||LA154_0==14||LA154_0==58||LA154_0==85||(LA154_0>=99 && LA154_0<=100)||LA154_0==105||(LA154_0>=109 && LA154_0<=110)||LA154_0==117||(LA154_0>=133 && LA154_0<=134)||LA154_0==138||LA154_0==144||LA154_0==146||(LA154_0>=150 && LA154_0<=151)||(LA154_0>=154 && LA154_0<=163)||LA154_0==165) ) { |
| alt154=1; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalDataDSL.g:8079:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8079:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:8080:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_152); |
| 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,103,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalDataDSL.g:8101:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( ((LA156_0>=RULE_STRING && LA156_0<=RULE_DECIMAL)||LA156_0==14||LA156_0==58||LA156_0==85||(LA156_0>=99 && LA156_0<=100)||LA156_0==105||(LA156_0>=109 && LA156_0<=110)||LA156_0==117||(LA156_0>=133 && LA156_0<=134)||LA156_0==138||LA156_0==144||LA156_0==146||(LA156_0>=150 && LA156_0<=151)||(LA156_0>=154 && LA156_0<=163)||LA156_0==165) ) { |
| alt156=1; |
| } |
| switch (alt156) { |
| case 1 : |
| // InternalDataDSL.g:8102:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:8102:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8103:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8103:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalDataDSL.g:8104:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:8121:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop155: |
| do { |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==106) ) { |
| alt155=1; |
| } |
| |
| |
| switch (alt155) { |
| case 1 : |
| // InternalDataDSL.g:8122:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalDataDSL.g:8126:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8127:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8127:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalDataDSL.g:8128:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop155; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalDataDSL.g:8151:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8152:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8152:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalDataDSL.g:8153: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:8174: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:8174:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalDataDSL.g:8175: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:8181: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:8187:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:8188:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:8188:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:8189:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:8189:3: () |
| // InternalDataDSL.g:8190:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,150,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:8204:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8205:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8205:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalDataDSL.g:8206:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:8227:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8228:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8228:4: (lv_body_5_0= ruleXExpression ) |
| // InternalDataDSL.g:8229: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:8250: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:8250:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalDataDSL.g:8251: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:8257: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:8263:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalDataDSL.g:8264:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDataDSL.g:8264:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDataDSL.g:8265:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDataDSL.g:8265:3: () |
| // InternalDataDSL.g:8266:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,151,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8276:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8277:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8277:4: (lv_body_2_0= ruleXExpression ) |
| // InternalDataDSL.g:8278:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_153); |
| 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,150,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,105,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalDataDSL.g:8303:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8304:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8304:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalDataDSL.g:8305:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,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:8330: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:8330:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalDataDSL.g:8331: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:8337: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:8343:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalDataDSL.g:8344:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalDataDSL.g:8344:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalDataDSL.g:8345:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalDataDSL.g:8345:3: () |
| // InternalDataDSL.g:8346:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_154); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:8356:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop158: |
| do { |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( ((LA158_0>=RULE_STRING && LA158_0<=RULE_DECIMAL)||LA158_0==14||LA158_0==58||LA158_0==85||(LA158_0>=99 && LA158_0<=100)||LA158_0==105||(LA158_0>=109 && LA158_0<=110)||LA158_0==117||(LA158_0>=133 && LA158_0<=134)||LA158_0==138||LA158_0==144||LA158_0==146||(LA158_0>=150 && LA158_0<=163)||LA158_0==165) ) { |
| alt158=1; |
| } |
| |
| |
| switch (alt158) { |
| case 1 : |
| // InternalDataDSL.g:8357:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalDataDSL.g:8357:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDataDSL.g:8358:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDataDSL.g:8358:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDataDSL.g:8359:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_155); |
| 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:8376:4: (otherlv_3= ';' )? |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==103) ) { |
| alt157=1; |
| } |
| switch (alt157) { |
| case 1 : |
| // InternalDataDSL.g:8377:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,103,FOLLOW_154); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop158; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBlockExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpressionOrVarDeclaration" |
| // InternalDataDSL.g:8391: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:8391:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalDataDSL.g:8392: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:8398: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:8404:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalDataDSL.g:8405:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8405:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( ((LA159_0>=152 && LA159_0<=153)) ) { |
| alt159=1; |
| } |
| else if ( ((LA159_0>=RULE_STRING && LA159_0<=RULE_DECIMAL)||LA159_0==14||LA159_0==58||LA159_0==85||(LA159_0>=99 && LA159_0<=100)||LA159_0==105||(LA159_0>=109 && LA159_0<=110)||LA159_0==117||(LA159_0>=133 && LA159_0<=134)||LA159_0==138||LA159_0==144||LA159_0==146||(LA159_0>=150 && LA159_0<=151)||(LA159_0>=154 && LA159_0<=163)||LA159_0==165) ) { |
| alt159=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 159, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt159) { |
| case 1 : |
| // InternalDataDSL.g:8406: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:8415: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:8427: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:8427:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalDataDSL.g:8428: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:8434: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:8440: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:8441: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:8441: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:8442: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:8442:3: () |
| // InternalDataDSL.g:8443:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8449:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==152) ) { |
| alt160=1; |
| } |
| else if ( (LA160_0==153) ) { |
| alt160=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 160, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt160) { |
| case 1 : |
| // InternalDataDSL.g:8450:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalDataDSL.g:8450:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalDataDSL.g:8451:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalDataDSL.g:8451:5: (lv_writeable_1_0= 'var' ) |
| // InternalDataDSL.g:8452:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,152,FOLLOW_116); 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:8465:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,153,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8470:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==RULE_ID) ) { |
| int LA161_1 = input.LA(2); |
| |
| if ( (synpred35_InternalDataDSL()) ) { |
| alt161=1; |
| } |
| else if ( (true) ) { |
| alt161=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 161, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA161_0==105) && (synpred35_InternalDataDSL())) { |
| alt161=1; |
| } |
| else if ( (LA161_0==130) && (synpred35_InternalDataDSL())) { |
| alt161=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 161, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt161) { |
| case 1 : |
| // InternalDataDSL.g:8471:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalDataDSL.g:8471:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:8472:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:8485:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:8486:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:8486:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:8487:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8487:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:8488: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:8505:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalDataDSL.g:8506:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:8506:7: (lv_name_4_0= ruleValidID ) |
| // InternalDataDSL.g:8507:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_156); |
| 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:8527:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:8527:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalDataDSL.g:8528:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:8528:5: (lv_name_5_0= ruleValidID ) |
| // InternalDataDSL.g:8529:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_156); |
| 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:8547:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==108) ) { |
| alt162=1; |
| } |
| switch (alt162) { |
| case 1 : |
| // InternalDataDSL.g:8548:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,108,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalDataDSL.g:8552:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8553:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8553:5: (lv_right_7_0= ruleXExpression ) |
| // InternalDataDSL.g:8554: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:8576: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:8576:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalDataDSL.g:8577: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:8583: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:8589:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:8590:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:8590:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:8591:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:8591:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==RULE_ID) ) { |
| int LA163_1 = input.LA(2); |
| |
| if ( (LA163_1==RULE_ID||LA163_1==77||LA163_1==110||LA163_1==117) ) { |
| alt163=1; |
| } |
| } |
| else if ( (LA163_0==105||LA163_0==130) ) { |
| alt163=1; |
| } |
| switch (alt163) { |
| case 1 : |
| // InternalDataDSL.g:8592:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8592:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:8593: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:8610:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDataDSL.g:8611:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:8611:4: (lv_name_1_0= ruleValidID ) |
| // InternalDataDSL.g:8612: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:8633: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:8633:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalDataDSL.g:8634: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:8640: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:8646:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDataDSL.g:8647:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:8647:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDataDSL.g:8648:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDataDSL.g:8648:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:8649:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8649:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:8650: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:8667:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDataDSL.g:8668:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDataDSL.g:8668:4: (lv_name_1_0= ruleValidID ) |
| // InternalDataDSL.g:8669: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:8690: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:8690:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalDataDSL.g:8691: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:8697: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:8703: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:8704: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:8704: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:8705: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:8705:3: () |
| // InternalDataDSL.g:8706:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:8712:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt165=2; |
| int LA165_0 = input.LA(1); |
| |
| if ( (LA165_0==117) ) { |
| alt165=1; |
| } |
| switch (alt165) { |
| case 1 : |
| // InternalDataDSL.g:8713:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,117,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalDataDSL.g:8717:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:8718:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:8718:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:8719:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:8736:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop164: |
| do { |
| int alt164=2; |
| int LA164_0 = input.LA(1); |
| |
| if ( (LA164_0==106) ) { |
| alt164=1; |
| } |
| |
| |
| switch (alt164) { |
| case 1 : |
| // InternalDataDSL.g:8737:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,106,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:8741:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:8742:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:8742:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:8743:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop164; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,118,FOLLOW_127); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8766:3: ( ( ruleIdOrSuper ) ) |
| // InternalDataDSL.g:8767:4: ( ruleIdOrSuper ) |
| { |
| // InternalDataDSL.g:8767:4: ( ruleIdOrSuper ) |
| // InternalDataDSL.g:8768: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_157); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8782: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 alt168=2; |
| alt168 = dfa168.predict(input); |
| switch (alt168) { |
| case 1 : |
| // InternalDataDSL.g:8783: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:8783:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalDataDSL.g:8784:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalDataDSL.g:8788:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalDataDSL.g:8789:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,105,FOLLOW_131); 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:8801:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt167=3; |
| alt167 = dfa167.predict(input); |
| switch (alt167) { |
| case 1 : |
| // InternalDataDSL.g:8802:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:8802:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:8803:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:8828:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalDataDSL.g:8829:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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:8847:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:8847:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:8848:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:8848:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8849:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8849:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalDataDSL.g:8850:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:8867:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop166: |
| do { |
| int alt166=2; |
| int LA166_0 = input.LA(1); |
| |
| if ( (LA166_0==106) ) { |
| alt166=1; |
| } |
| |
| |
| switch (alt166) { |
| case 1 : |
| // InternalDataDSL.g:8868:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:8872:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalDataDSL.g:8873:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:8873:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalDataDSL.g:8874:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop166; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,107,FOLLOW_158); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8899:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt169=2; |
| alt169 = dfa169.predict(input); |
| switch (alt169) { |
| case 1 : |
| // InternalDataDSL.g:8900:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:8906:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalDataDSL.g:8907: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:8928: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:8928:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalDataDSL.g:8929: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:8935: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:8941:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalDataDSL.g:8942:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalDataDSL.g:8942:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt170=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt170=1; |
| } |
| break; |
| case 154: |
| { |
| alt170=2; |
| } |
| break; |
| case 100: |
| { |
| alt170=3; |
| } |
| break; |
| case 99: |
| { |
| alt170=4; |
| } |
| break; |
| case 85: |
| { |
| alt170=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 170, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt170) { |
| case 1 : |
| // InternalDataDSL.g:8943: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:8954:3: kw= 'extends' |
| { |
| kw=(Token)match(input,154,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:8960:3: kw= 'static' |
| { |
| kw=(Token)match(input,100,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:8966:3: kw= 'import' |
| { |
| kw=(Token)match(input,99,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:8972:3: kw= 'extension' |
| { |
| kw=(Token)match(input,85,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:8981: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:8981:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalDataDSL.g:8982: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:8988: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:8994:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalDataDSL.g:8995:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalDataDSL.g:8995:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==RULE_ID||LA171_0==85||(LA171_0>=99 && LA171_0<=100)||LA171_0==154) ) { |
| alt171=1; |
| } |
| else if ( (LA171_0==155) ) { |
| alt171=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 171, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt171) { |
| case 1 : |
| // InternalDataDSL.g:8996: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:9007:3: kw= 'super' |
| { |
| kw=(Token)match(input,155,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:9016: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:9016:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalDataDSL.g:9017: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:9023: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:9029: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:9030: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:9030: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:9031: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:9031:3: () |
| // InternalDataDSL.g:9032:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,156,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9042:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:9043:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:9043:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:9044: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_159); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9058:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt173=2; |
| alt173 = dfa173.predict(input); |
| switch (alt173) { |
| case 1 : |
| // InternalDataDSL.g:9059:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalDataDSL.g:9059:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalDataDSL.g:9060:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,117,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9066:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9067:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9067:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9068:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:9085:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop172: |
| do { |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==106) ) { |
| alt172=1; |
| } |
| |
| |
| switch (alt172) { |
| case 1 : |
| // InternalDataDSL.g:9086:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,106,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalDataDSL.g:9090:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:9091:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:9091:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:9092:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop172; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,118,FOLLOW_157); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:9115: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 alt176=2; |
| alt176 = dfa176.predict(input); |
| switch (alt176) { |
| case 1 : |
| // InternalDataDSL.g:9116: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:9116:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalDataDSL.g:9117:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalDataDSL.g:9121:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalDataDSL.g:9122:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,105,FOLLOW_131); 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:9134:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt175=3; |
| alt175 = dfa175.predict(input); |
| switch (alt175) { |
| case 1 : |
| // InternalDataDSL.g:9135:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalDataDSL.g:9135:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalDataDSL.g:9136:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalDataDSL.g:9161:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalDataDSL.g:9162:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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:9180:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDataDSL.g:9180:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalDataDSL.g:9181:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalDataDSL.g:9181:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9182:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9182:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalDataDSL.g:9183:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:9200:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop174: |
| do { |
| int alt174=2; |
| int LA174_0 = input.LA(1); |
| |
| if ( (LA174_0==106) ) { |
| alt174=1; |
| } |
| |
| |
| switch (alt174) { |
| case 1 : |
| // InternalDataDSL.g:9201:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,106,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:9205:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9206:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9206:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalDataDSL.g:9207:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop174; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,107,FOLLOW_158); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:9232:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt177=2; |
| alt177 = dfa177.predict(input); |
| switch (alt177) { |
| case 1 : |
| // InternalDataDSL.g:9233:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalDataDSL.g:9239:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalDataDSL.g:9240: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:9261: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:9261:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalDataDSL.g:9262: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:9268: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:9274:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalDataDSL.g:9275:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalDataDSL.g:9275:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalDataDSL.g:9276:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalDataDSL.g:9276:3: () |
| // InternalDataDSL.g:9277:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9283:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt178=2; |
| int LA178_0 = input.LA(1); |
| |
| if ( (LA178_0==157) ) { |
| alt178=1; |
| } |
| else if ( (LA178_0==158) ) { |
| 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:9284:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,157,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:9289:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalDataDSL.g:9289:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalDataDSL.g:9290:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalDataDSL.g:9290:5: (lv_isTrue_2_0= 'true' ) |
| // InternalDataDSL.g:9291:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,158,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:9308: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:9308:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalDataDSL.g:9309: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:9315: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:9321:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalDataDSL.g:9322:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalDataDSL.g:9322:2: ( () otherlv_1= 'null' ) |
| // InternalDataDSL.g:9323:3: () otherlv_1= 'null' |
| { |
| // InternalDataDSL.g:9323:3: () |
| // InternalDataDSL.g:9324:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,159,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:9338: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:9338:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalDataDSL.g:9339: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:9345: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:9351:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalDataDSL.g:9352:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalDataDSL.g:9352:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalDataDSL.g:9353:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalDataDSL.g:9353:3: () |
| // InternalDataDSL.g:9354:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9360:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalDataDSL.g:9361:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalDataDSL.g:9361:4: (lv_value_1_0= ruleNumber ) |
| // InternalDataDSL.g:9362: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:9383: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:9383:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalDataDSL.g:9384: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:9390: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:9396:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalDataDSL.g:9397:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalDataDSL.g:9397:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalDataDSL.g:9398:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalDataDSL.g:9398:3: () |
| // InternalDataDSL.g:9399:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9405:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalDataDSL.g:9406:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalDataDSL.g:9406:4: (lv_value_1_0= RULE_STRING ) |
| // InternalDataDSL.g:9407: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:9427: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:9427:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalDataDSL.g:9428: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:9434: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:9440:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalDataDSL.g:9441:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalDataDSL.g:9441:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalDataDSL.g:9442:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalDataDSL.g:9442:3: () |
| // InternalDataDSL.g:9443:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,160,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:9457:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:9458:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:9458:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:9459: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_160); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9473:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop179: |
| do { |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==110) ) { |
| alt179=1; |
| } |
| |
| |
| switch (alt179) { |
| case 1 : |
| // InternalDataDSL.g:9474:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:9474:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalDataDSL.g:9475:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_160); |
| 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 loop179; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,107,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:9500: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:9500:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalDataDSL.g:9501: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:9507: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:9513:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:9514:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:9514:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:9515:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:9515:3: () |
| // InternalDataDSL.g:9516:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,161,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9526:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9527:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9527:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:9528: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:9549: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:9549:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalDataDSL.g:9550: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:9556: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:9562: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:9563: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:9563: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:9564: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:9564:3: () |
| // InternalDataDSL.g:9565:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,162,FOLLOW_161); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9575: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 alt180=2; |
| alt180 = dfa180.predict(input); |
| switch (alt180) { |
| case 1 : |
| // InternalDataDSL.g:9576: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:9577:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:9578: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:9599: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:9599:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalDataDSL.g:9600: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:9606: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:9612: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:9613: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:9613: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:9614: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:9614:3: () |
| // InternalDataDSL.g:9615:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,163,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9625:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9626:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9626:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDataDSL.g:9627:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_162); |
| 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:9644: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 alt183=2; |
| int LA183_0 = input.LA(1); |
| |
| if ( (LA183_0==166) ) { |
| alt183=1; |
| } |
| else if ( (LA183_0==164) ) { |
| alt183=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 183, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt183) { |
| case 1 : |
| // InternalDataDSL.g:9645:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalDataDSL.g:9645:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalDataDSL.g:9646:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalDataDSL.g:9646:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt181=0; |
| loop181: |
| do { |
| int alt181=2; |
| int LA181_0 = input.LA(1); |
| |
| if ( (LA181_0==166) ) { |
| int LA181_2 = input.LA(2); |
| |
| if ( (synpred44_InternalDataDSL()) ) { |
| alt181=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt181) { |
| case 1 : |
| // InternalDataDSL.g:9647:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalDataDSL.g:9648:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalDataDSL.g:9649:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_163); |
| 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 ( cnt181 >= 1 ) break loop181; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(181, input); |
| throw eee; |
| } |
| cnt181++; |
| } while (true); |
| |
| // InternalDataDSL.g:9666:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==164) ) { |
| int LA182_1 = input.LA(2); |
| |
| if ( (synpred45_InternalDataDSL()) ) { |
| alt182=1; |
| } |
| } |
| switch (alt182) { |
| case 1 : |
| // InternalDataDSL.g:9667:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:9667:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalDataDSL.g:9668:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,164,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:9674:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9675:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9675:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:9676: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:9696:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:9696:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:9697:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,164,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalDataDSL.g:9701:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9702:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9702:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalDataDSL.g:9703: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:9726: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:9726:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalDataDSL.g:9727: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:9733: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:9739:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:9740:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:9740:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:9741:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:9741:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalDataDSL.g:9742:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalDataDSL.g:9749:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalDataDSL.g:9750:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalDataDSL.g:9750:5: () |
| // InternalDataDSL.g:9751:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,165,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,105,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9767:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9768:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9768:4: (lv_param_3_0= ruleXExpression ) |
| // InternalDataDSL.g:9769:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDataDSL.g:9790:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9791:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9791:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDataDSL.g:9792: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:9813: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:9813:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalDataDSL.g:9814: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:9820: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:9826:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalDataDSL.g:9827:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalDataDSL.g:9827:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalDataDSL.g:9828:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalDataDSL.g:9828:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalDataDSL.g:9829:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,166,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,105,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:9839:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalDataDSL.g:9840:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:9840:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalDataDSL.g:9841:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| 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,107,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalDataDSL.g:9862:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalDataDSL.g:9863:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalDataDSL.g:9863:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalDataDSL.g:9864: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:9885: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:9885:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalDataDSL.g:9886: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:9892: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:9898:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalDataDSL.g:9899:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalDataDSL.g:9899:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalDataDSL.g:9900:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| 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:9910:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop184: |
| do { |
| int alt184=2; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==77) ) { |
| int LA184_2 = input.LA(2); |
| |
| if ( (LA184_2==RULE_ID) ) { |
| int LA184_3 = input.LA(3); |
| |
| if ( (synpred48_InternalDataDSL()) ) { |
| alt184=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt184) { |
| case 1 : |
| // InternalDataDSL.g:9911:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalDataDSL.g:9911:4: ( ( '.' )=>kw= '.' ) |
| // InternalDataDSL.g:9912:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,77,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_93); |
| 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 loop184; |
| } |
| } 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:9934: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:9936:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalDataDSL.g:9937: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:9946: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:9953: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:9954: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:9954: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 alt188=2; |
| int LA188_0 = input.LA(1); |
| |
| if ( (LA188_0==RULE_HEX) ) { |
| alt188=1; |
| } |
| else if ( (LA188_0==RULE_INT||LA188_0==RULE_DECIMAL) ) { |
| alt188=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 188, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt188) { |
| case 1 : |
| // InternalDataDSL.g:9955: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:9963:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalDataDSL.g:9963:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalDataDSL.g:9964:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalDataDSL.g:9964:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt185=2; |
| int LA185_0 = input.LA(1); |
| |
| if ( (LA185_0==RULE_INT) ) { |
| alt185=1; |
| } |
| else if ( (LA185_0==RULE_DECIMAL) ) { |
| alt185=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 185, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt185) { |
| case 1 : |
| // InternalDataDSL.g:9965:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_93); 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:9973:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_93); 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:9981:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt187=2; |
| int LA187_0 = input.LA(1); |
| |
| if ( (LA187_0==77) ) { |
| int LA187_1 = input.LA(2); |
| |
| if ( (LA187_1==RULE_INT||LA187_1==RULE_DECIMAL) ) { |
| alt187=1; |
| } |
| } |
| switch (alt187) { |
| case 1 : |
| // InternalDataDSL.g:9982:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,77,FOLLOW_164); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:9987:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt186=2; |
| int LA186_0 = input.LA(1); |
| |
| if ( (LA186_0==RULE_INT) ) { |
| alt186=1; |
| } |
| else if ( (LA186_0==RULE_DECIMAL) ) { |
| alt186=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 186, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt186) { |
| case 1 : |
| // InternalDataDSL.g:9988: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:9996: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:10013: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:10013:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalDataDSL.g:10014: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:10020: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:10026:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalDataDSL.g:10027:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalDataDSL.g:10027:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==RULE_ID) ) { |
| alt190=1; |
| } |
| else if ( (LA190_0==105||LA190_0==130) ) { |
| alt190=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 190, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt190) { |
| case 1 : |
| // InternalDataDSL.g:10028:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalDataDSL.g:10028:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalDataDSL.g:10029:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_158); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDataDSL.g:10037:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop189: |
| do { |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==110) ) { |
| int LA189_2 = input.LA(2); |
| |
| if ( (LA189_2==111) ) { |
| int LA189_3 = input.LA(3); |
| |
| if ( (synpred49_InternalDataDSL()) ) { |
| alt189=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt189) { |
| case 1 : |
| // InternalDataDSL.g:10038:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:10044:5: ( () ruleArrayBrackets ) |
| // InternalDataDSL.g:10045:6: () ruleArrayBrackets |
| { |
| // InternalDataDSL.g:10045:6: () |
| // InternalDataDSL.g:10046: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_158); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop189; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:10063: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:10075: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:10075:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalDataDSL.g:10076: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:10082: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:10088:2: ( (kw= '[' kw= ']' ) ) |
| // InternalDataDSL.g:10089:2: (kw= '[' kw= ']' ) |
| { |
| // InternalDataDSL.g:10089:2: (kw= '[' kw= ']' ) |
| // InternalDataDSL.g:10090:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,110,FOLLOW_138); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,111,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:10104: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:10104:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalDataDSL.g:10105: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:10111: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:10117: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:10118: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:10118: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:10119: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:10119:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt193=2; |
| int LA193_0 = input.LA(1); |
| |
| if ( (LA193_0==105) ) { |
| alt193=1; |
| } |
| switch (alt193) { |
| case 1 : |
| // InternalDataDSL.g:10120:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,105,FOLLOW_165); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalDataDSL.g:10124:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt192=2; |
| int LA192_0 = input.LA(1); |
| |
| if ( (LA192_0==RULE_ID||LA192_0==105||LA192_0==130) ) { |
| alt192=1; |
| } |
| switch (alt192) { |
| case 1 : |
| // InternalDataDSL.g:10125:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalDataDSL.g:10125:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10126:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10126:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10127:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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:10144:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop191: |
| do { |
| int alt191=2; |
| int LA191_0 = input.LA(1); |
| |
| if ( (LA191_0==106) ) { |
| alt191=1; |
| } |
| |
| |
| switch (alt191) { |
| case 1 : |
| // InternalDataDSL.g:10145:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,106,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDataDSL.g:10149:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10150:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10150:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10151:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop191; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,107,FOLLOW_166); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,130,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:10179:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10180:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10180:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10181: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:10202: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:10202:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalDataDSL.g:10203: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:10209: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:10215: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:10216: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:10216: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:10217: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:10217:3: ( ( ruleQualifiedName ) ) |
| // InternalDataDSL.g:10218:4: ( ruleQualifiedName ) |
| { |
| // InternalDataDSL.g:10218:4: ( ruleQualifiedName ) |
| // InternalDataDSL.g:10219: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_167); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:10233: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 alt198=2; |
| alt198 = dfa198.predict(input); |
| switch (alt198) { |
| case 1 : |
| // InternalDataDSL.g:10234: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:10234:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalDataDSL.g:10235:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,117,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:10241:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:10242:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:10242:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:10243:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:10260:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop194: |
| do { |
| int alt194=2; |
| int LA194_0 = input.LA(1); |
| |
| if ( (LA194_0==106) ) { |
| alt194=1; |
| } |
| |
| |
| switch (alt194) { |
| case 1 : |
| // InternalDataDSL.g:10261:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,106,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDataDSL.g:10265:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:10266:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:10266:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:10267:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop194; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,118,FOLLOW_93); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalDataDSL.g:10289:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop197: |
| do { |
| int alt197=2; |
| int LA197_0 = input.LA(1); |
| |
| if ( (LA197_0==77) ) { |
| int LA197_2 = input.LA(2); |
| |
| if ( (LA197_2==RULE_ID) ) { |
| int LA197_3 = input.LA(3); |
| |
| if ( (synpred51_InternalDataDSL()) ) { |
| alt197=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt197) { |
| case 1 : |
| // InternalDataDSL.g:10290:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalDataDSL.g:10290:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalDataDSL.g:10291:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalDataDSL.g:10297:6: ( () otherlv_7= '.' ) |
| // InternalDataDSL.g:10298:7: () otherlv_7= '.' |
| { |
| // InternalDataDSL.g:10298:7: () |
| // InternalDataDSL.g:10299:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,77,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:10311:5: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:10312:6: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:10312:6: ( ruleValidID ) |
| // InternalDataDSL.g:10313: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_168); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:10327:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt196=2; |
| alt196 = dfa196.predict(input); |
| switch (alt196) { |
| case 1 : |
| // InternalDataDSL.g:10328:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalDataDSL.g:10328:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalDataDSL.g:10329:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,117,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalDataDSL.g:10335:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:10336:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:10336:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:10337:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:10354:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop195: |
| do { |
| int alt195=2; |
| int LA195_0 = input.LA(1); |
| |
| if ( (LA195_0==106) ) { |
| alt195=1; |
| } |
| |
| |
| switch (alt195) { |
| case 1 : |
| // InternalDataDSL.g:10355:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,106,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalDataDSL.g:10359:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDataDSL.g:10360:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDataDSL.g:10360:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDataDSL.g:10361:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop195; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,118,FOLLOW_93); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop197; |
| } |
| } 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:10390: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:10390:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalDataDSL.g:10391: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:10397: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:10403:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalDataDSL.g:10404:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalDataDSL.g:10404:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt199=2; |
| int LA199_0 = input.LA(1); |
| |
| if ( (LA199_0==RULE_ID||LA199_0==105||LA199_0==130) ) { |
| alt199=1; |
| } |
| else if ( (LA199_0==167) ) { |
| alt199=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 199, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt199) { |
| case 1 : |
| // InternalDataDSL.g:10405: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:10414: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:10426: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:10426:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalDataDSL.g:10427: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:10433: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:10439: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:10440: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:10440: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:10441: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:10441:3: () |
| // InternalDataDSL.g:10442:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,167,FOLLOW_169); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalDataDSL.g:10452:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt202=3; |
| int LA202_0 = input.LA(1); |
| |
| if ( (LA202_0==154) ) { |
| alt202=1; |
| } |
| else if ( (LA202_0==155) ) { |
| alt202=2; |
| } |
| switch (alt202) { |
| case 1 : |
| // InternalDataDSL.g:10453:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalDataDSL.g:10453:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalDataDSL.g:10454:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalDataDSL.g:10454:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalDataDSL.g:10455:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalDataDSL.g:10455:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalDataDSL.g:10456:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_170); |
| 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:10473:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop200: |
| do { |
| int alt200=2; |
| int LA200_0 = input.LA(1); |
| |
| if ( (LA200_0==168) ) { |
| alt200=1; |
| } |
| |
| |
| switch (alt200) { |
| case 1 : |
| // InternalDataDSL.g:10474:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalDataDSL.g:10474:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalDataDSL.g:10475:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_170); |
| 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 loop200; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:10494:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalDataDSL.g:10494:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalDataDSL.g:10495:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalDataDSL.g:10495:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalDataDSL.g:10496:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalDataDSL.g:10496:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalDataDSL.g:10497:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_170); |
| 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:10514:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop201: |
| do { |
| int alt201=2; |
| int LA201_0 = input.LA(1); |
| |
| if ( (LA201_0==168) ) { |
| alt201=1; |
| } |
| |
| |
| switch (alt201) { |
| case 1 : |
| // InternalDataDSL.g:10515:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalDataDSL.g:10515:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalDataDSL.g:10516:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_170); |
| 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 loop201; |
| } |
| } 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:10539: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:10539:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalDataDSL.g:10540: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:10546: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:10552:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:10553:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:10553:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:10554:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,154,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:10558:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10559:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10559:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10560: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:10581: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:10581:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalDataDSL.g:10582: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:10588: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:10594:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:10595:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:10595:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:10596:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,168,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:10600:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10601:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10601:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10602: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:10623: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:10623:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalDataDSL.g:10624: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:10630: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:10636:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:10637:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:10637:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:10638:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,155,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:10642:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10643:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10643:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10644: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:10665: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:10665:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalDataDSL.g:10666: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:10672: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:10678:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDataDSL.g:10679:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDataDSL.g:10679:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDataDSL.g:10680:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,168,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDataDSL.g:10684:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:10685:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:10685:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDataDSL.g:10686: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:10707: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:10707:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalDataDSL.g:10708: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:10714: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:10720:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalDataDSL.g:10721:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalDataDSL.g:10721:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalDataDSL.g:10722:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| 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,77,FOLLOW_171); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,101,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:10746: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:10746:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalDataDSL.g:10747: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:10753: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:10759:2: (this_ID_0= RULE_ID ) |
| // InternalDataDSL.g:10760: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:10770: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:10770:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalDataDSL.g:10771: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:10777: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:10783:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalDataDSL.g:10784:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalDataDSL.g:10784:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt203=0; |
| loop203: |
| do { |
| int alt203=2; |
| int LA203_0 = input.LA(1); |
| |
| if ( (LA203_0==99) ) { |
| alt203=1; |
| } |
| |
| |
| switch (alt203) { |
| case 1 : |
| // InternalDataDSL.g:10785:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalDataDSL.g:10785:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalDataDSL.g:10786:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_172); |
| 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 ( cnt203 >= 1 ) break loop203; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(203, input); |
| throw eee; |
| } |
| cnt203++; |
| } 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:10806: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:10806:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalDataDSL.g:10807: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:10813: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:10819:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalDataDSL.g:10820:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalDataDSL.g:10820:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt204=0; |
| loop204: |
| do { |
| int alt204=2; |
| int LA204_0 = input.LA(1); |
| |
| if ( (LA204_0==RULE_ID) ) { |
| int LA204_2 = input.LA(2); |
| |
| if ( (LA204_2==77) ) { |
| alt204=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt204) { |
| case 1 : |
| // InternalDataDSL.g:10821:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| 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,77,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt204 >= 1 ) break loop204; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(204, input); |
| throw eee; |
| } |
| cnt204++; |
| } 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:10840: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:10846:2: ( ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) ) |
| // InternalDataDSL.g:10847:2: ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) |
| { |
| // InternalDataDSL.g:10847:2: ( (enumLiteral_0= 'plain' ) | (enumLiteral_1= 'jpg' ) | (enumLiteral_2= 'png' ) | (enumLiteral_3= 'mpeg' ) | (enumLiteral_4= 'octet-stream' ) | (enumLiteral_5= 'pdf' ) ) |
| int alt205=6; |
| switch ( input.LA(1) ) { |
| case 169: |
| { |
| alt205=1; |
| } |
| break; |
| case 170: |
| { |
| alt205=2; |
| } |
| break; |
| case 171: |
| { |
| alt205=3; |
| } |
| break; |
| case 172: |
| { |
| alt205=4; |
| } |
| break; |
| case 173: |
| { |
| alt205=5; |
| } |
| break; |
| case 174: |
| { |
| alt205=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 205, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt205) { |
| case 1 : |
| // InternalDataDSL.g:10848:3: (enumLiteral_0= 'plain' ) |
| { |
| // InternalDataDSL.g:10848:3: (enumLiteral_0= 'plain' ) |
| // InternalDataDSL.g:10849:4: enumLiteral_0= 'plain' |
| { |
| enumLiteral_0=(Token)match(input,169,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:10856:3: (enumLiteral_1= 'jpg' ) |
| { |
| // InternalDataDSL.g:10856:3: (enumLiteral_1= 'jpg' ) |
| // InternalDataDSL.g:10857:4: enumLiteral_1= 'jpg' |
| { |
| enumLiteral_1=(Token)match(input,170,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:10864:3: (enumLiteral_2= 'png' ) |
| { |
| // InternalDataDSL.g:10864:3: (enumLiteral_2= 'png' ) |
| // InternalDataDSL.g:10865:4: enumLiteral_2= 'png' |
| { |
| enumLiteral_2=(Token)match(input,171,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:10872:3: (enumLiteral_3= 'mpeg' ) |
| { |
| // InternalDataDSL.g:10872:3: (enumLiteral_3= 'mpeg' ) |
| // InternalDataDSL.g:10873:4: enumLiteral_3= 'mpeg' |
| { |
| enumLiteral_3=(Token)match(input,172,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:10880:3: (enumLiteral_4= 'octet-stream' ) |
| { |
| // InternalDataDSL.g:10880:3: (enumLiteral_4= 'octet-stream' ) |
| // InternalDataDSL.g:10881:4: enumLiteral_4= 'octet-stream' |
| { |
| enumLiteral_4=(Token)match(input,173,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:10888:3: (enumLiteral_5= 'pdf' ) |
| { |
| // InternalDataDSL.g:10888:3: (enumLiteral_5= 'pdf' ) |
| // InternalDataDSL.g:10889:4: enumLiteral_5= 'pdf' |
| { |
| enumLiteral_5=(Token)match(input,174,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:10899: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:10905:2: ( ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) ) |
| // InternalDataDSL.g:10906:2: ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) |
| { |
| // InternalDataDSL.g:10906:2: ( (enumLiteral_0= 'NowDate' ) | (enumLiteral_1= 'StartDate' ) | (enumLiteral_2= 'UniversallyUniqueIdentifier' ) ) |
| int alt206=3; |
| switch ( input.LA(1) ) { |
| case 175: |
| { |
| alt206=1; |
| } |
| break; |
| case 176: |
| { |
| alt206=2; |
| } |
| break; |
| case 177: |
| { |
| alt206=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 206, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt206) { |
| case 1 : |
| // InternalDataDSL.g:10907:3: (enumLiteral_0= 'NowDate' ) |
| { |
| // InternalDataDSL.g:10907:3: (enumLiteral_0= 'NowDate' ) |
| // InternalDataDSL.g:10908:4: enumLiteral_0= 'NowDate' |
| { |
| enumLiteral_0=(Token)match(input,175,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:10915:3: (enumLiteral_1= 'StartDate' ) |
| { |
| // InternalDataDSL.g:10915:3: (enumLiteral_1= 'StartDate' ) |
| // InternalDataDSL.g:10916:4: enumLiteral_1= 'StartDate' |
| { |
| enumLiteral_1=(Token)match(input,176,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:10923:3: (enumLiteral_2= 'UniversallyUniqueIdentifier' ) |
| { |
| // InternalDataDSL.g:10923:3: (enumLiteral_2= 'UniversallyUniqueIdentifier' ) |
| // InternalDataDSL.g:10924:4: enumLiteral_2= 'UniversallyUniqueIdentifier' |
| { |
| enumLiteral_2=(Token)match(input,177,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:10934: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:10940:2: ( ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) ) |
| // InternalDataDSL.g:10941:2: ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) |
| { |
| // InternalDataDSL.g:10941:2: ( (enumLiteral_0= 'Date' ) | (enumLiteral_1= 'Milliseconds' ) | (enumLiteral_2= 'Nanoseconds' ) | (enumLiteral_3= 'Random' ) | (enumLiteral_4= 'ExecuteContext' ) ) |
| int alt207=5; |
| switch ( input.LA(1) ) { |
| case 178: |
| { |
| alt207=1; |
| } |
| break; |
| case 179: |
| { |
| alt207=2; |
| } |
| break; |
| case 180: |
| { |
| alt207=3; |
| } |
| break; |
| case 181: |
| { |
| alt207=4; |
| } |
| break; |
| case 182: |
| { |
| alt207=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 207, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt207) { |
| case 1 : |
| // InternalDataDSL.g:10942:3: (enumLiteral_0= 'Date' ) |
| { |
| // InternalDataDSL.g:10942:3: (enumLiteral_0= 'Date' ) |
| // InternalDataDSL.g:10943:4: enumLiteral_0= 'Date' |
| { |
| enumLiteral_0=(Token)match(input,178,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:10950:3: (enumLiteral_1= 'Milliseconds' ) |
| { |
| // InternalDataDSL.g:10950:3: (enumLiteral_1= 'Milliseconds' ) |
| // InternalDataDSL.g:10951:4: enumLiteral_1= 'Milliseconds' |
| { |
| enumLiteral_1=(Token)match(input,179,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:10958:3: (enumLiteral_2= 'Nanoseconds' ) |
| { |
| // InternalDataDSL.g:10958:3: (enumLiteral_2= 'Nanoseconds' ) |
| // InternalDataDSL.g:10959:4: enumLiteral_2= 'Nanoseconds' |
| { |
| enumLiteral_2=(Token)match(input,180,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:10966:3: (enumLiteral_3= 'Random' ) |
| { |
| // InternalDataDSL.g:10966:3: (enumLiteral_3= 'Random' ) |
| // InternalDataDSL.g:10967:4: enumLiteral_3= 'Random' |
| { |
| enumLiteral_3=(Token)match(input,181,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:10974:3: (enumLiteral_4= 'ExecuteContext' ) |
| { |
| // InternalDataDSL.g:10974:3: (enumLiteral_4= 'ExecuteContext' ) |
| // InternalDataDSL.g:10975:4: enumLiteral_4= 'ExecuteContext' |
| { |
| enumLiteral_4=(Token)match(input,182,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:10985: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:10991:2: ( ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) ) |
| // InternalDataDSL.g:10992:2: ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) |
| { |
| // InternalDataDSL.g:10992:2: ( (enumLiteral_0= 'persist' ) | (enumLiteral_1= 'merge' ) | (enumLiteral_2= 'remove' ) ) |
| int alt208=3; |
| switch ( input.LA(1) ) { |
| case 183: |
| { |
| alt208=1; |
| } |
| break; |
| case 184: |
| { |
| alt208=2; |
| } |
| break; |
| case 185: |
| { |
| alt208=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 208, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt208) { |
| case 1 : |
| // InternalDataDSL.g:10993:3: (enumLiteral_0= 'persist' ) |
| { |
| // InternalDataDSL.g:10993:3: (enumLiteral_0= 'persist' ) |
| // InternalDataDSL.g:10994:4: enumLiteral_0= 'persist' |
| { |
| enumLiteral_0=(Token)match(input,183,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:11001:3: (enumLiteral_1= 'merge' ) |
| { |
| // InternalDataDSL.g:11001:3: (enumLiteral_1= 'merge' ) |
| // InternalDataDSL.g:11002:4: enumLiteral_1= 'merge' |
| { |
| enumLiteral_1=(Token)match(input,184,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:11009:3: (enumLiteral_2= 'remove' ) |
| { |
| // InternalDataDSL.g:11009:3: (enumLiteral_2= 'remove' ) |
| // InternalDataDSL.g:11010:4: enumLiteral_2= 'remove' |
| { |
| enumLiteral_2=(Token)match(input,185,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 "ruleOperator" |
| // InternalDataDSL.g:11020:1: ruleOperator returns [Enumerator current=null] : ( (enumLiteral_0= 'equals' ) | (enumLiteral_1= 'notEquals' ) | (enumLiteral_2= 'greaterThan' ) | (enumLiteral_3= 'greatThanOrEqualTo' ) | (enumLiteral_4= 'lessThan' ) | (enumLiteral_5= 'lessThanOrEqualTo' ) | (enumLiteral_6= 'isNull' ) | (enumLiteral_7= 'isNotNull' ) ) ; |
| public final Enumerator ruleOperator() 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:11026:2: ( ( (enumLiteral_0= 'equals' ) | (enumLiteral_1= 'notEquals' ) | (enumLiteral_2= 'greaterThan' ) | (enumLiteral_3= 'greatThanOrEqualTo' ) | (enumLiteral_4= 'lessThan' ) | (enumLiteral_5= 'lessThanOrEqualTo' ) | (enumLiteral_6= 'isNull' ) | (enumLiteral_7= 'isNotNull' ) ) ) |
| // InternalDataDSL.g:11027:2: ( (enumLiteral_0= 'equals' ) | (enumLiteral_1= 'notEquals' ) | (enumLiteral_2= 'greaterThan' ) | (enumLiteral_3= 'greatThanOrEqualTo' ) | (enumLiteral_4= 'lessThan' ) | (enumLiteral_5= 'lessThanOrEqualTo' ) | (enumLiteral_6= 'isNull' ) | (enumLiteral_7= 'isNotNull' ) ) |
| { |
| // InternalDataDSL.g:11027:2: ( (enumLiteral_0= 'equals' ) | (enumLiteral_1= 'notEquals' ) | (enumLiteral_2= 'greaterThan' ) | (enumLiteral_3= 'greatThanOrEqualTo' ) | (enumLiteral_4= 'lessThan' ) | (enumLiteral_5= 'lessThanOrEqualTo' ) | (enumLiteral_6= 'isNull' ) | (enumLiteral_7= 'isNotNull' ) ) |
| int alt209=8; |
| switch ( input.LA(1) ) { |
| case 186: |
| { |
| alt209=1; |
| } |
| break; |
| case 187: |
| { |
| alt209=2; |
| } |
| break; |
| case 188: |
| { |
| alt209=3; |
| } |
| break; |
| case 189: |
| { |
| alt209=4; |
| } |
| break; |
| case 190: |
| { |
| alt209=5; |
| } |
| break; |
| case 191: |
| { |
| alt209=6; |
| } |
| break; |
| case 192: |
| { |
| alt209=7; |
| } |
| break; |
| case 193: |
| { |
| alt209=8; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 209, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt209) { |
| case 1 : |
| // InternalDataDSL.g:11028:3: (enumLiteral_0= 'equals' ) |
| { |
| // InternalDataDSL.g:11028:3: (enumLiteral_0= 'equals' ) |
| // InternalDataDSL.g:11029:4: enumLiteral_0= 'equals' |
| { |
| enumLiteral_0=(Token)match(input,186,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getEqualsEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getOperatorAccess().getEqualsEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:11036:3: (enumLiteral_1= 'notEquals' ) |
| { |
| // InternalDataDSL.g:11036:3: (enumLiteral_1= 'notEquals' ) |
| // InternalDataDSL.g:11037:4: enumLiteral_1= 'notEquals' |
| { |
| enumLiteral_1=(Token)match(input,187,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getNotequalsEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getOperatorAccess().getNotequalsEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:11044:3: (enumLiteral_2= 'greaterThan' ) |
| { |
| // InternalDataDSL.g:11044:3: (enumLiteral_2= 'greaterThan' ) |
| // InternalDataDSL.g:11045:4: enumLiteral_2= 'greaterThan' |
| { |
| enumLiteral_2=(Token)match(input,188,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getGreaterthanEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getOperatorAccess().getGreaterthanEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDataDSL.g:11052:3: (enumLiteral_3= 'greatThanOrEqualTo' ) |
| { |
| // InternalDataDSL.g:11052:3: (enumLiteral_3= 'greatThanOrEqualTo' ) |
| // InternalDataDSL.g:11053:4: enumLiteral_3= 'greatThanOrEqualTo' |
| { |
| enumLiteral_3=(Token)match(input,189,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getGreaterthanorequaltoEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getOperatorAccess().getGreaterthanorequaltoEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDataDSL.g:11060:3: (enumLiteral_4= 'lessThan' ) |
| { |
| // InternalDataDSL.g:11060:3: (enumLiteral_4= 'lessThan' ) |
| // InternalDataDSL.g:11061:4: enumLiteral_4= 'lessThan' |
| { |
| enumLiteral_4=(Token)match(input,190,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getLessthanEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getOperatorAccess().getLessthanEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDataDSL.g:11068:3: (enumLiteral_5= 'lessThanOrEqualTo' ) |
| { |
| // InternalDataDSL.g:11068:3: (enumLiteral_5= 'lessThanOrEqualTo' ) |
| // InternalDataDSL.g:11069:4: enumLiteral_5= 'lessThanOrEqualTo' |
| { |
| enumLiteral_5=(Token)match(input,191,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getLessthanorequaltoEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getOperatorAccess().getLessthanorequaltoEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDataDSL.g:11076:3: (enumLiteral_6= 'isNull' ) |
| { |
| // InternalDataDSL.g:11076:3: (enumLiteral_6= 'isNull' ) |
| // InternalDataDSL.g:11077:4: enumLiteral_6= 'isNull' |
| { |
| enumLiteral_6=(Token)match(input,192,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getIsnullEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getOperatorAccess().getIsnullEnumLiteralDeclaration_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalDataDSL.g:11084:3: (enumLiteral_7= 'isNotNull' ) |
| { |
| // InternalDataDSL.g:11084:3: (enumLiteral_7= 'isNotNull' ) |
| // InternalDataDSL.g:11085:4: enumLiteral_7= 'isNotNull' |
| { |
| enumLiteral_7=(Token)match(input,193,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorAccess().getIsnotnullEnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getOperatorAccess().getIsnotnullEnumLiteralDeclaration_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOperator" |
| |
| |
| // $ANTLR start "ruleJunction" |
| // InternalDataDSL.g:11095:1: ruleJunction returns [Enumerator current=null] : ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) ; |
| public final Enumerator ruleJunction() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDataDSL.g:11101:2: ( ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) ) |
| // InternalDataDSL.g:11102:2: ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) |
| { |
| // InternalDataDSL.g:11102:2: ( (enumLiteral_0= 'and' ) | (enumLiteral_1= 'or' ) ) |
| int alt210=2; |
| int LA210_0 = input.LA(1); |
| |
| if ( (LA210_0==194) ) { |
| alt210=1; |
| } |
| else if ( (LA210_0==195) ) { |
| alt210=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 210, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt210) { |
| case 1 : |
| // InternalDataDSL.g:11103:3: (enumLiteral_0= 'and' ) |
| { |
| // InternalDataDSL.g:11103:3: (enumLiteral_0= 'and' ) |
| // InternalDataDSL.g:11104:4: enumLiteral_0= 'and' |
| { |
| enumLiteral_0=(Token)match(input,194,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getJunctionAccess().getAndEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getJunctionAccess().getAndEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:11111:3: (enumLiteral_1= 'or' ) |
| { |
| // InternalDataDSL.g:11111:3: (enumLiteral_1= 'or' ) |
| // InternalDataDSL.g:11112:4: enumLiteral_1= 'or' |
| { |
| enumLiteral_1=(Token)match(input,195,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getJunctionAccess().getOrEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getJunctionAccess().getOrEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJunction" |
| |
| // $ANTLR start synpred1_InternalDataDSL |
| public final void synpred1_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4216:5: ( '(' ) |
| // InternalDataDSL.g:4216:6: '(' |
| { |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalDataDSL |
| |
| // $ANTLR start synpred2_InternalDataDSL |
| public final void synpred2_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4225:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalDataDSL.g:4225:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalDataDSL.g:4225:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalDataDSL.g:4226:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalDataDSL.g:4226:8: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:4227:9: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:4227:9: ( ruleValidID ) |
| // InternalDataDSL.g:4228:10: ruleValidID |
| { |
| pushFollow(FOLLOW_102); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,108,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalDataDSL |
| |
| // $ANTLR start synpred5_InternalDataDSL |
| public final void synpred5_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4405:5: ( ( () '#' '[' ) ) |
| // InternalDataDSL.g:4405:6: ( () '#' '[' ) |
| { |
| // InternalDataDSL.g:4405:6: ( () '#' '[' ) |
| // InternalDataDSL.g:4406:6: () '#' '[' |
| { |
| // InternalDataDSL.g:4406:6: () |
| // InternalDataDSL.g:4407:6: |
| { |
| } |
| |
| match(input,109,FOLLOW_104); if (state.failed) return ; |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalDataDSL |
| |
| // $ANTLR start synpred6_InternalDataDSL |
| public final void synpred6_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4547:5: ( ( () '#' '[' ) ) |
| // InternalDataDSL.g:4547:6: ( () '#' '[' ) |
| { |
| // InternalDataDSL.g:4547:6: ( () '#' '[' ) |
| // InternalDataDSL.g:4548:6: () '#' '[' |
| { |
| // InternalDataDSL.g:4548:6: () |
| // InternalDataDSL.g:4549:6: |
| { |
| } |
| |
| match(input,109,FOLLOW_104); if (state.failed) return ; |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalDataDSL |
| |
| // $ANTLR start synpred7_InternalDataDSL |
| public final void synpred7_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:4775:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDataDSL.g:4775:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDataDSL.g:4775:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDataDSL.g:4776:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDataDSL.g:4776:7: () |
| // InternalDataDSL.g:4777:7: |
| { |
| } |
| |
| // InternalDataDSL.g:4778:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDataDSL.g:4779:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDataDSL.g:4779:8: ( ruleOpMultiAssign ) |
| // InternalDataDSL.g:4780: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:4969:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDataDSL.g:4969:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDataDSL.g:4969:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalDataDSL.g:4970:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDataDSL.g:4970:6: () |
| // InternalDataDSL.g:4971:6: |
| { |
| } |
| |
| // InternalDataDSL.g:4972:6: ( ( ruleOpOr ) ) |
| // InternalDataDSL.g:4973:7: ( ruleOpOr ) |
| { |
| // InternalDataDSL.g:4973:7: ( ruleOpOr ) |
| // InternalDataDSL.g:4974: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:5076:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDataDSL.g:5076:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDataDSL.g:5076:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDataDSL.g:5077:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDataDSL.g:5077:6: () |
| // InternalDataDSL.g:5078:6: |
| { |
| } |
| |
| // InternalDataDSL.g:5079:6: ( ( ruleOpAnd ) ) |
| // InternalDataDSL.g:5080:7: ( ruleOpAnd ) |
| { |
| // InternalDataDSL.g:5080:7: ( ruleOpAnd ) |
| // InternalDataDSL.g:5081: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:5183:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDataDSL.g:5183:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDataDSL.g:5183:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDataDSL.g:5184:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDataDSL.g:5184:6: () |
| // InternalDataDSL.g:5185:6: |
| { |
| } |
| |
| // InternalDataDSL.g:5186:6: ( ( ruleOpEquality ) ) |
| // InternalDataDSL.g:5187:7: ( ruleOpEquality ) |
| { |
| // InternalDataDSL.g:5187:7: ( ruleOpEquality ) |
| // InternalDataDSL.g:5188: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:5311:6: ( ( () 'instanceof' ) ) |
| // InternalDataDSL.g:5311:7: ( () 'instanceof' ) |
| { |
| // InternalDataDSL.g:5311:7: ( () 'instanceof' ) |
| // InternalDataDSL.g:5312:7: () 'instanceof' |
| { |
| // InternalDataDSL.g:5312:7: () |
| // InternalDataDSL.g:5313:7: |
| { |
| } |
| |
| match(input,126,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalDataDSL |
| |
| // $ANTLR start synpred12_InternalDataDSL |
| public final void synpred12_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5354:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDataDSL.g:5354:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDataDSL.g:5354:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDataDSL.g:5355:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDataDSL.g:5355:7: () |
| // InternalDataDSL.g:5356:7: |
| { |
| } |
| |
| // InternalDataDSL.g:5357:7: ( ( ruleOpCompare ) ) |
| // InternalDataDSL.g:5358:8: ( ruleOpCompare ) |
| { |
| // InternalDataDSL.g:5358:8: ( ruleOpCompare ) |
| // InternalDataDSL.g:5359: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:5489:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDataDSL.g:5489:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDataDSL.g:5489:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalDataDSL.g:5490:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDataDSL.g:5490:6: () |
| // InternalDataDSL.g:5491:6: |
| { |
| } |
| |
| // InternalDataDSL.g:5492:6: ( ( ruleOpOther ) ) |
| // InternalDataDSL.g:5493:7: ( ruleOpOther ) |
| { |
| // InternalDataDSL.g:5493:7: ( ruleOpOther ) |
| // InternalDataDSL.g:5494: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:5609:6: ( ( '>' '>' ) ) |
| // InternalDataDSL.g:5609:7: ( '>' '>' ) |
| { |
| // InternalDataDSL.g:5609:7: ( '>' '>' ) |
| // InternalDataDSL.g:5610:7: '>' '>' |
| { |
| match(input,118,FOLLOW_119); if (state.failed) return ; |
| match(input,118,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalDataDSL |
| |
| // $ANTLR start synpred15_InternalDataDSL |
| public final void synpred15_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5644:6: ( ( '<' '<' ) ) |
| // InternalDataDSL.g:5644:7: ( '<' '<' ) |
| { |
| // InternalDataDSL.g:5644:7: ( '<' '<' ) |
| // InternalDataDSL.g:5645:7: '<' '<' |
| { |
| match(input,117,FOLLOW_109); if (state.failed) return ; |
| match(input,117,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalDataDSL |
| |
| // $ANTLR start synpred16_InternalDataDSL |
| public final void synpred16_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:5717:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDataDSL.g:5717:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDataDSL.g:5717:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDataDSL.g:5718:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDataDSL.g:5718:6: () |
| // InternalDataDSL.g:5719:6: |
| { |
| } |
| |
| // InternalDataDSL.g:5720:6: ( ( ruleOpAdd ) ) |
| // InternalDataDSL.g:5721:7: ( ruleOpAdd ) |
| { |
| // InternalDataDSL.g:5721:7: ( ruleOpAdd ) |
| // InternalDataDSL.g:5722: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:5832:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDataDSL.g:5832:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDataDSL.g:5832:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDataDSL.g:5833:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDataDSL.g:5833:6: () |
| // InternalDataDSL.g:5834:6: |
| { |
| } |
| |
| // InternalDataDSL.g:5835:6: ( ( ruleOpMulti ) ) |
| // InternalDataDSL.g:5836:7: ( ruleOpMulti ) |
| { |
| // InternalDataDSL.g:5836:7: ( ruleOpMulti ) |
| // InternalDataDSL.g:5837: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:6067:5: ( ( () 'as' ) ) |
| // InternalDataDSL.g:6067:6: ( () 'as' ) |
| { |
| // InternalDataDSL.g:6067:6: ( () 'as' ) |
| // InternalDataDSL.g:6068:6: () 'as' |
| { |
| // InternalDataDSL.g:6068:6: () |
| // InternalDataDSL.g:6069:6: |
| { |
| } |
| |
| match(input,81,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalDataDSL |
| |
| // $ANTLR start synpred19_InternalDataDSL |
| public final void synpred19_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6135:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalDataDSL.g:6135:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDataDSL.g:6135:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDataDSL.g:6136:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDataDSL.g:6136:5: () |
| // InternalDataDSL.g:6137:5: |
| { |
| } |
| |
| // InternalDataDSL.g:6138:5: ( ( ruleOpPostfix ) ) |
| // InternalDataDSL.g:6139:6: ( ruleOpPostfix ) |
| { |
| // InternalDataDSL.g:6139:6: ( ruleOpPostfix ) |
| // InternalDataDSL.g:6140: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:6231:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDataDSL.g:6231:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDataDSL.g:6231:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDataDSL.g:6232:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDataDSL.g:6232:7: () |
| // InternalDataDSL.g:6233:7: |
| { |
| } |
| |
| // InternalDataDSL.g:6234:7: ( '.' | ( ( '::' ) ) ) |
| int alt211=2; |
| int LA211_0 = input.LA(1); |
| |
| if ( (LA211_0==77) ) { |
| alt211=1; |
| } |
| else if ( (LA211_0==141) ) { |
| alt211=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 211, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt211) { |
| case 1 : |
| // InternalDataDSL.g:6235:8: '.' |
| { |
| match(input,77,FOLLOW_126); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:6237:8: ( ( '::' ) ) |
| { |
| // InternalDataDSL.g:6237:8: ( ( '::' ) ) |
| // InternalDataDSL.g:6238:9: ( '::' ) |
| { |
| // InternalDataDSL.g:6238:9: ( '::' ) |
| // InternalDataDSL.g:6239:10: '::' |
| { |
| match(input,141,FOLLOW_126); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6243:7: ( ( ruleFeatureCallID ) ) |
| // InternalDataDSL.g:6244:8: ( ruleFeatureCallID ) |
| { |
| // InternalDataDSL.g:6244:8: ( ruleFeatureCallID ) |
| // InternalDataDSL.g:6245:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_102); |
| 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:6328:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalDataDSL.g:6328:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalDataDSL.g:6328:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalDataDSL.g:6329:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalDataDSL.g:6329:7: () |
| // InternalDataDSL.g:6330:7: |
| { |
| } |
| |
| // InternalDataDSL.g:6331:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt212=3; |
| switch ( input.LA(1) ) { |
| case 77: |
| { |
| alt212=1; |
| } |
| break; |
| case 142: |
| { |
| alt212=2; |
| } |
| break; |
| case 141: |
| { |
| alt212=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 212, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt212) { |
| case 1 : |
| // InternalDataDSL.g:6332:8: '.' |
| { |
| match(input,77,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDataDSL.g:6334:8: ( ( '?.' ) ) |
| { |
| // InternalDataDSL.g:6334:8: ( ( '?.' ) ) |
| // InternalDataDSL.g:6335:9: ( '?.' ) |
| { |
| // InternalDataDSL.g:6335:9: ( '?.' ) |
| // InternalDataDSL.g:6336:10: '?.' |
| { |
| match(input,142,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDataDSL.g:6340:8: ( ( '::' ) ) |
| { |
| // InternalDataDSL.g:6340:8: ( ( '::' ) ) |
| // InternalDataDSL.g:6341:9: ( '::' ) |
| { |
| // InternalDataDSL.g:6341:9: ( '::' ) |
| // InternalDataDSL.g:6342:10: '::' |
| { |
| match(input,141,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:6466:7: ( ( '(' ) ) |
| // InternalDataDSL.g:6466:8: ( '(' ) |
| { |
| // InternalDataDSL.g:6466:8: ( '(' ) |
| // InternalDataDSL.g:6467:8: '(' |
| { |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalDataDSL |
| |
| // $ANTLR start synpred23_InternalDataDSL |
| public final void synpred23_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6485:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:6485:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:6485:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:6486:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:6486:9: () |
| // InternalDataDSL.g:6487:9: |
| { |
| } |
| |
| // InternalDataDSL.g:6488:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt214=2; |
| int LA214_0 = input.LA(1); |
| |
| if ( (LA214_0==RULE_ID||LA214_0==105||LA214_0==130) ) { |
| alt214=1; |
| } |
| switch (alt214) { |
| case 1 : |
| // InternalDataDSL.g:6489:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:6489:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6490:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6490:11: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6491:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:6494:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop213: |
| do { |
| int alt213=2; |
| int LA213_0 = input.LA(1); |
| |
| if ( (LA213_0==106) ) { |
| alt213=1; |
| } |
| |
| |
| switch (alt213) { |
| case 1 : |
| // InternalDataDSL.g:6495:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,106,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:6496:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6497:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6497:12: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6498:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop213; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:6503:9: ( ( '|' ) ) |
| // InternalDataDSL.g:6504:10: ( '|' ) |
| { |
| // InternalDataDSL.g:6504:10: ( '|' ) |
| // InternalDataDSL.g:6505:11: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalDataDSL |
| |
| // $ANTLR start synpred24_InternalDataDSL |
| public final void synpred24_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6582:6: ( ( () '[' ) ) |
| // InternalDataDSL.g:6582:7: ( () '[' ) |
| { |
| // InternalDataDSL.g:6582:7: ( () '[' ) |
| // InternalDataDSL.g:6583:7: () '[' |
| { |
| // InternalDataDSL.g:6583:7: () |
| // InternalDataDSL.g:6584:7: |
| { |
| } |
| |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalDataDSL |
| |
| // $ANTLR start synpred25_InternalDataDSL |
| public final void synpred25_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6655:4: ( ( () 'synchronized' '(' ) ) |
| // InternalDataDSL.g:6655:5: ( () 'synchronized' '(' ) |
| { |
| // InternalDataDSL.g:6655:5: ( () 'synchronized' '(' ) |
| // InternalDataDSL.g:6656:5: () 'synchronized' '(' |
| { |
| // InternalDataDSL.g:6656:5: () |
| // InternalDataDSL.g:6657:5: |
| { |
| } |
| |
| match(input,165,FOLLOW_141); if (state.failed) return ; |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalDataDSL |
| |
| // $ANTLR start synpred26_InternalDataDSL |
| public final void synpred26_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6700:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:6700:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:6700:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:6701:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDataDSL.g:6701:5: () |
| // InternalDataDSL.g:6702:5: |
| { |
| } |
| |
| match(input,58,FOLLOW_141); if (state.failed) return ; |
| match(input,105,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:6705:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:6706:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:6706:6: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:6707:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_144); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalDataDSL |
| |
| // $ANTLR start synpred27_InternalDataDSL |
| public final void synpred27_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:6814:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:6814:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:6814:5: ( () '[' ) |
| // InternalDataDSL.g:6815:5: () '[' |
| { |
| // InternalDataDSL.g:6815:5: () |
| // InternalDataDSL.g:6816:5: |
| { |
| } |
| |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalDataDSL |
| |
| // $ANTLR start synpred29_InternalDataDSL |
| public final void synpred29_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7119:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:7119:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:7119:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:7120:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:7120:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt216=2; |
| int LA216_0 = input.LA(1); |
| |
| if ( (LA216_0==RULE_ID||LA216_0==105||LA216_0==130) ) { |
| alt216=1; |
| } |
| switch (alt216) { |
| case 1 : |
| // InternalDataDSL.g:7121:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:7121:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7122:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7122:7: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7123:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:7126:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop215: |
| do { |
| int alt215=2; |
| int LA215_0 = input.LA(1); |
| |
| if ( (LA215_0==106) ) { |
| alt215=1; |
| } |
| |
| |
| switch (alt215) { |
| case 1 : |
| // InternalDataDSL.g:7127:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,106,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:7128:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7129:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7129:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7130:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop215; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:7135:5: ( ( '|' ) ) |
| // InternalDataDSL.g:7136:6: ( '|' ) |
| { |
| // InternalDataDSL.g:7136:6: ( '|' ) |
| // InternalDataDSL.g:7137:7: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalDataDSL |
| |
| // $ANTLR start synpred31_InternalDataDSL |
| public final void synpred31_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7528:5: ( 'else' ) |
| // InternalDataDSL.g:7528:6: 'else' |
| { |
| match(input,145,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalDataDSL |
| |
| // $ANTLR start synpred32_InternalDataDSL |
| public final void synpred32_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7587:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:7587:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:7587:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:7588:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,105,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:7589:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7590:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7590:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7591:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_144); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalDataDSL |
| |
| // $ANTLR start synpred33_InternalDataDSL |
| public final void synpred33_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:7654:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDataDSL.g:7654:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDataDSL.g:7654:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDataDSL.g:7655:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDataDSL.g:7655:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:7656:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:7656:8: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:7657:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_144); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalDataDSL |
| |
| // $ANTLR start synpred35_InternalDataDSL |
| public final void synpred35_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8472:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalDataDSL.g:8472:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalDataDSL.g:8472:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalDataDSL.g:8473:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalDataDSL.g:8473:6: ( ( ruleJvmTypeReference ) ) |
| // InternalDataDSL.g:8474:7: ( ruleJvmTypeReference ) |
| { |
| // InternalDataDSL.g:8474:7: ( ruleJvmTypeReference ) |
| // InternalDataDSL.g:8475:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8478:6: ( ( ruleValidID ) ) |
| // InternalDataDSL.g:8479:7: ( ruleValidID ) |
| { |
| // InternalDataDSL.g:8479:7: ( ruleValidID ) |
| // InternalDataDSL.g:8480: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:8784:5: ( ( '(' ) ) |
| // InternalDataDSL.g:8784:6: ( '(' ) |
| { |
| // InternalDataDSL.g:8784:6: ( '(' ) |
| // InternalDataDSL.g:8785:6: '(' |
| { |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalDataDSL |
| |
| // $ANTLR start synpred37_InternalDataDSL |
| public final void synpred37_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8803:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:8803:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:8803:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:8804:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:8804:7: () |
| // InternalDataDSL.g:8805:7: |
| { |
| } |
| |
| // InternalDataDSL.g:8806:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt220=2; |
| int LA220_0 = input.LA(1); |
| |
| if ( (LA220_0==RULE_ID||LA220_0==105||LA220_0==130) ) { |
| alt220=1; |
| } |
| switch (alt220) { |
| case 1 : |
| // InternalDataDSL.g:8807:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:8807:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:8808:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:8808:9: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:8809:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:8812:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop219: |
| do { |
| int alt219=2; |
| int LA219_0 = input.LA(1); |
| |
| if ( (LA219_0==106) ) { |
| alt219=1; |
| } |
| |
| |
| switch (alt219) { |
| case 1 : |
| // InternalDataDSL.g:8813:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,106,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:8814:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:8815:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:8815:10: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:8816:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop219; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:8821:7: ( ( '|' ) ) |
| // InternalDataDSL.g:8822:8: ( '|' ) |
| { |
| // InternalDataDSL.g:8822:8: ( '|' ) |
| // InternalDataDSL.g:8823:9: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalDataDSL |
| |
| // $ANTLR start synpred38_InternalDataDSL |
| public final void synpred38_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:8900:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:8900:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:8900:5: ( () '[' ) |
| // InternalDataDSL.g:8901:5: () '[' |
| { |
| // InternalDataDSL.g:8901:5: () |
| // InternalDataDSL.g:8902:5: |
| { |
| } |
| |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalDataDSL |
| |
| // $ANTLR start synpred39_InternalDataDSL |
| public final void synpred39_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9060:5: ( '<' ) |
| // InternalDataDSL.g:9060:6: '<' |
| { |
| match(input,117,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalDataDSL |
| |
| // $ANTLR start synpred40_InternalDataDSL |
| public final void synpred40_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9117:5: ( ( '(' ) ) |
| // InternalDataDSL.g:9117:6: ( '(' ) |
| { |
| // InternalDataDSL.g:9117:6: ( '(' ) |
| // InternalDataDSL.g:9118:6: '(' |
| { |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalDataDSL |
| |
| // $ANTLR start synpred41_InternalDataDSL |
| public final void synpred41_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9136:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDataDSL.g:9136:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDataDSL.g:9136:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDataDSL.g:9137:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDataDSL.g:9137:7: () |
| // InternalDataDSL.g:9138:7: |
| { |
| } |
| |
| // InternalDataDSL.g:9139:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt222=2; |
| int LA222_0 = input.LA(1); |
| |
| if ( (LA222_0==RULE_ID||LA222_0==105||LA222_0==130) ) { |
| alt222=1; |
| } |
| switch (alt222) { |
| case 1 : |
| // InternalDataDSL.g:9140:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDataDSL.g:9140:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:9141:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:9141:9: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:9142:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDataDSL.g:9145:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop221: |
| do { |
| int alt221=2; |
| int LA221_0 = input.LA(1); |
| |
| if ( (LA221_0==106) ) { |
| alt221=1; |
| } |
| |
| |
| switch (alt221) { |
| case 1 : |
| // InternalDataDSL.g:9146:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,106,FOLLOW_116); if (state.failed) return ; |
| // InternalDataDSL.g:9147:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDataDSL.g:9148:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDataDSL.g:9148:10: ( ruleJvmFormalParameter ) |
| // InternalDataDSL.g:9149:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_136); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop221; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDataDSL.g:9154:7: ( ( '|' ) ) |
| // InternalDataDSL.g:9155:8: ( '|' ) |
| { |
| // InternalDataDSL.g:9155:8: ( '|' ) |
| // InternalDataDSL.g:9156:9: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalDataDSL |
| |
| // $ANTLR start synpred42_InternalDataDSL |
| public final void synpred42_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9233:4: ( ( () '[' ) ) |
| // InternalDataDSL.g:9233:5: ( () '[' ) |
| { |
| // InternalDataDSL.g:9233:5: ( () '[' ) |
| // InternalDataDSL.g:9234:5: () '[' |
| { |
| // InternalDataDSL.g:9234:5: () |
| // InternalDataDSL.g:9235:5: |
| { |
| } |
| |
| match(input,110,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalDataDSL |
| |
| // $ANTLR start synpred43_InternalDataDSL |
| public final void synpred43_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9576: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)==14||input.LA(1)==58||input.LA(1)==85||(input.LA(1)>=99 && input.LA(1)<=100)||input.LA(1)==105||(input.LA(1)>=109 && input.LA(1)<=110)||input.LA(1)==117||(input.LA(1)>=133 && input.LA(1)<=134)||input.LA(1)==138||input.LA(1)==144||input.LA(1)==146||(input.LA(1)>=150 && input.LA(1)<=151)||(input.LA(1)>=154 && input.LA(1)<=163)||input.LA(1)==165 ) { |
| 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:9647:6: ( 'catch' ) |
| // InternalDataDSL.g:9647:7: 'catch' |
| { |
| match(input,166,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalDataDSL |
| |
| // $ANTLR start synpred45_InternalDataDSL |
| public final void synpred45_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9668:7: ( 'finally' ) |
| // InternalDataDSL.g:9668:8: 'finally' |
| { |
| match(input,164,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalDataDSL |
| |
| // $ANTLR start synpred48_InternalDataDSL |
| public final void synpred48_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:9912:5: ( '.' ) |
| // InternalDataDSL.g:9912:6: '.' |
| { |
| match(input,77,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalDataDSL |
| |
| // $ANTLR start synpred49_InternalDataDSL |
| public final void synpred49_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:10038:5: ( ( () ruleArrayBrackets ) ) |
| // InternalDataDSL.g:10038:6: ( () ruleArrayBrackets ) |
| { |
| // InternalDataDSL.g:10038:6: ( () ruleArrayBrackets ) |
| // InternalDataDSL.g:10039:6: () ruleArrayBrackets |
| { |
| // InternalDataDSL.g:10039:6: () |
| // InternalDataDSL.g:10040: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:10235:5: ( '<' ) |
| // InternalDataDSL.g:10235:6: '<' |
| { |
| match(input,117,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalDataDSL |
| |
| // $ANTLR start synpred51_InternalDataDSL |
| public final void synpred51_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:10291:6: ( ( () '.' ) ) |
| // InternalDataDSL.g:10291:7: ( () '.' ) |
| { |
| // InternalDataDSL.g:10291:7: ( () '.' ) |
| // InternalDataDSL.g:10292:7: () '.' |
| { |
| // InternalDataDSL.g:10292:7: () |
| // InternalDataDSL.g:10293:7: |
| { |
| } |
| |
| match(input,77,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalDataDSL |
| |
| // $ANTLR start synpred52_InternalDataDSL |
| public final void synpred52_InternalDataDSL_fragment() throws RecognitionException { |
| // InternalDataDSL.g:10329:7: ( '<' ) |
| // InternalDataDSL.g:10329:8: '<' |
| { |
| match(input,117,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 DFA84 dfa84 = new DFA84(this); |
| protected DFA87 dfa87 = new DFA87(this); |
| protected DFA93 dfa93 = new DFA93(this); |
| protected DFA96 dfa96 = new DFA96(this); |
| protected DFA98 dfa98 = new DFA98(this); |
| protected DFA108 dfa108 = new DFA108(this); |
| protected DFA111 dfa111 = new DFA111(this); |
| protected DFA127 dfa127 = new DFA127(this); |
| protected DFA126 dfa126 = new DFA126(this); |
| protected DFA128 dfa128 = new DFA128(this); |
| protected DFA130 dfa130 = new DFA130(this); |
| protected DFA139 dfa139 = new DFA139(this); |
| protected DFA146 dfa146 = new DFA146(this); |
| protected DFA145 dfa145 = new DFA145(this); |
| protected DFA168 dfa168 = new DFA168(this); |
| protected DFA167 dfa167 = new DFA167(this); |
| protected DFA169 dfa169 = new DFA169(this); |
| protected DFA173 dfa173 = new DFA173(this); |
| protected DFA176 dfa176 = new DFA176(this); |
| protected DFA175 dfa175 = new DFA175(this); |
| protected DFA177 dfa177 = new DFA177(this); |
| protected DFA180 dfa180 = new DFA180(this); |
| protected DFA198 dfa198 = new DFA198(this); |
| protected DFA196 dfa196 = new DFA196(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\3\uffff\1\5\1\uffff"; |
| static final String dfa_3s = "\1\6\1\uffff\1\15\1\uffff\1\6\1\uffff\1\15\1\uffff"; |
| static final String dfa_4s = "\1\146\1\uffff\1\147\1\uffff\1\145\1\uffff\1\147\1\uffff"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\uffff\1\3"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\135\uffff\1\1\1\uffff\1\3", |
| "", |
| "\1\5\77\uffff\1\4\25\uffff\1\5\3\uffff\1\5", |
| "", |
| "\1\6\136\uffff\1\7", |
| "", |
| "\1\5\77\uffff\1\4\25\uffff\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 DFA84 extends DFA { |
| |
| public DFA84(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 84; |
| 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 "4005: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\u00a5\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\5\uffff\1\2\53\uffff\1\2\32\uffff\1\2\15\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 DFA87 extends DFA { |
| |
| public DFA87(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 87; |
| 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 "4222: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 LA87_1 = input.LA(1); |
| |
| |
| int index87_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalDataDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index87_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 87, _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\u00a5\1\0\41\uffff"; |
| static final String dfa_17s = "\2\uffff\1\2\37\uffff\1\1"; |
| static final String dfa_18s = "\1\uffff\1\0\41\uffff}>"; |
| static final String[] dfa_19s = { |
| "\5\2\5\uffff\1\2\53\uffff\1\2\32\uffff\1\2\15\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 DFA93 extends DFA { |
| |
| public DFA93(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 93; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "4402: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 LA93_1 = input.LA(1); |
| |
| |
| int index93_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalDataDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index93_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 93, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA96 extends DFA { |
| |
| public DFA96(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 96; |
| 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 "4544: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 LA96_1 = input.LA(1); |
| |
| |
| int index96_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalDataDSL()) ) {s = 34;} |
| |
| 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_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\u00a6\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\0\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\52\uffff\1\10\22\uffff\1\10\3\uffff\1\10\3\uffff\1\10\15\uffff\3\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 DFA98 extends DFA { |
| |
| public DFA98(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 98; |
| 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 "4773: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 LA98_7 = input.LA(1); |
| |
| |
| int index98_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_7); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA98_1 = input.LA(1); |
| |
| |
| int index98_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA98_2 = input.LA(1); |
| |
| |
| int index98_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_2); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA98_3 = input.LA(1); |
| |
| |
| int index98_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_3); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA98_4 = input.LA(1); |
| |
| |
| int index98_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_4); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA98_5 = input.LA(1); |
| |
| |
| int index98_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_5); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA98_6 = input.LA(1); |
| |
| |
| int index98_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDataDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index98_6); |
| 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_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\u00a6\1\uffff\10\0\1\uffff"; |
| static final String dfa_31s = "\1\uffff\1\2\10\uffff\1\1"; |
| static final String dfa_32s = "\2\uffff\1\1\1\5\1\6\1\7\1\4\1\0\1\2\1\3\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\52\uffff\1\1\22\uffff\1\1\3\uffff\1\1\3\uffff\1\1\15\uffff\3\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 DFA108 extends DFA { |
| |
| public DFA108(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 108; |
| 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 5487: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 LA108_7 = input.LA(1); |
| |
| |
| int index108_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_7); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA108_2 = input.LA(1); |
| |
| |
| int index108_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA108_8 = input.LA(1); |
| |
| |
| int index108_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_8); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA108_9 = input.LA(1); |
| |
| |
| int index108_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_9); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA108_6 = input.LA(1); |
| |
| |
| int index108_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_6); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA108_3 = input.LA(1); |
| |
| |
| int index108_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_3); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA108_4 = input.LA(1); |
| |
| |
| int index108_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_4); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA108_5 = input.LA(1); |
| |
| |
| int index108_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDataDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index108_5); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 108, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\165\2\uffff\1\166\7\uffff"; |
| static final String dfa_35s = "\1\u0084\2\uffff\1\u0081\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 DFA111 extends DFA { |
| |
| public DFA111(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 111; |
| 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 "5563: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\u00a6\1\0\114\uffff"; |
| static final String dfa_43s = "\2\uffff\1\2\112\uffff\1\1"; |
| static final String dfa_44s = "\1\uffff\1\0\114\uffff}>"; |
| static final String[] dfa_45s = { |
| "\5\2\5\uffff\2\2\52\uffff\1\2\22\uffff\1\2\3\uffff\1\2\3\uffff\1\2\15\uffff\3\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 DFA127 extends DFA { |
| |
| public DFA127(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 127; |
| 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 "6464: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 LA127_1 = input.LA(1); |
| |
| |
| int index127_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index127_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 127, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u00a5\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\5\uffff\1\5\53\uffff\1\5\32\uffff\1\5\15\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 DFA126 extends DFA { |
| |
| public DFA126(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 126; |
| 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 "6483: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 LA126_0 = input.LA(1); |
| |
| |
| int index126_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA126_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA126_0==105) ) {s = 2;} |
| |
| else if ( (LA126_0==130) && (synpred23_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA126_0==143) && (synpred23_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA126_0>=RULE_STRING && LA126_0<=RULE_INT)||(LA126_0>=RULE_HEX && LA126_0<=RULE_DECIMAL)||LA126_0==14||LA126_0==58||LA126_0==85||(LA126_0>=99 && LA126_0<=100)||(LA126_0>=109 && LA126_0<=110)||LA126_0==117||(LA126_0>=133 && LA126_0<=134)||LA126_0==138||LA126_0==144||LA126_0==146||(LA126_0>=150 && LA126_0<=151)||(LA126_0>=154 && LA126_0<=163)||LA126_0==165) ) {s = 5;} |
| |
| else if ( (LA126_0==107) ) {s = 35;} |
| |
| |
| input.seek(index126_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA126_1 = input.LA(1); |
| |
| |
| int index126_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index126_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA126_2 = input.LA(1); |
| |
| |
| int index126_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index126_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 126, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\5\uffff\2\2\52\uffff\1\2\22\uffff\1\2\3\uffff\1\2\3\uffff\1\2\15\uffff\3\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 DFA128 extends DFA { |
| |
| public DFA128(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 128; |
| 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 "6581: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 LA128_1 = input.LA(1); |
| |
| |
| int index128_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index128_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 128, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_52s = "\40\uffff"; |
| static final String dfa_53s = "\1\4\26\uffff\1\0\10\uffff"; |
| static final String dfa_54s = "\1\u00a5\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\5\uffff\1\2\53\uffff\1\27\32\uffff\1\5\15\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 DFA130 extends DFA { |
| |
| public DFA130(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 130; |
| 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 "6626: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 LA130_0 = input.LA(1); |
| |
| |
| int index130_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA130_0==156) ) {s = 1;} |
| |
| else if ( (LA130_0==14) ) {s = 2;} |
| |
| else if ( (LA130_0==146) ) {s = 3;} |
| |
| else if ( (LA130_0==165) && (synpred25_InternalDataDSL())) {s = 4;} |
| |
| else if ( (LA130_0==RULE_ID||LA130_0==85||(LA130_0>=99 && LA130_0<=100)||LA130_0==117||(LA130_0>=154 && LA130_0<=155)) ) {s = 5;} |
| |
| else if ( ((LA130_0>=RULE_STRING && LA130_0<=RULE_INT)||(LA130_0>=RULE_HEX && LA130_0<=RULE_DECIMAL)||(LA130_0>=109 && LA130_0<=110)||(LA130_0>=157 && LA130_0<=160)) ) {s = 12;} |
| |
| else if ( (LA130_0==144) ) {s = 22;} |
| |
| else if ( (LA130_0==58) ) {s = 23;} |
| |
| else if ( (LA130_0==150) ) {s = 24;} |
| |
| else if ( (LA130_0==151) ) {s = 25;} |
| |
| else if ( (LA130_0==161) ) {s = 26;} |
| |
| else if ( (LA130_0==162) ) {s = 27;} |
| |
| else if ( (LA130_0==163) ) {s = 28;} |
| |
| else if ( (LA130_0==105) ) {s = 29;} |
| |
| |
| input.seek(index130_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA130_23 = input.LA(1); |
| |
| |
| int index130_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalDataDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index130_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 130, _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\u00a5\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\5\uffff\1\5\53\uffff\1\5\32\uffff\1\5\15\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 DFA139 extends DFA { |
| |
| public DFA139(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 139; |
| 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 "7118: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 LA139_0 = input.LA(1); |
| |
| |
| int index139_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA139_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA139_0==105) ) {s = 2;} |
| |
| else if ( (LA139_0==130) && (synpred29_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA139_0==143) && (synpred29_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA139_0>=RULE_STRING && LA139_0<=RULE_INT)||(LA139_0>=RULE_HEX && LA139_0<=RULE_DECIMAL)||LA139_0==14||LA139_0==58||LA139_0==85||(LA139_0>=99 && LA139_0<=100)||(LA139_0>=109 && LA139_0<=111)||LA139_0==117||(LA139_0>=133 && LA139_0<=134)||LA139_0==138||LA139_0==144||LA139_0==146||(LA139_0>=150 && LA139_0<=163)||LA139_0==165) ) {s = 5;} |
| |
| |
| input.seek(index139_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA139_1 = input.LA(1); |
| |
| |
| int index139_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index139_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA139_2 = input.LA(1); |
| |
| |
| int index139_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index139_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 139, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\53\uffff\1\2\32\uffff\1\2\15\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 DFA146 extends DFA { |
| |
| public DFA146(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 146; |
| 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 "7584: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 LA146_1 = input.LA(1); |
| |
| |
| int index146_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalDataDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index146_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 146, _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\u00a5\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\5\uffff\1\4\53\uffff\1\4\32\uffff\1\4\15\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 DFA145 extends DFA { |
| |
| public DFA145(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 145; |
| 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 "7653: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 LA145_0 = input.LA(1); |
| |
| |
| int index145_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA145_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA145_0==105) ) {s = 2;} |
| |
| else if ( (LA145_0==130) && (synpred33_InternalDataDSL())) {s = 3;} |
| |
| else if ( ((LA145_0>=RULE_STRING && LA145_0<=RULE_INT)||(LA145_0>=RULE_HEX && LA145_0<=RULE_DECIMAL)||LA145_0==14||LA145_0==58||LA145_0==85||(LA145_0>=99 && LA145_0<=100)||(LA145_0>=109 && LA145_0<=110)||LA145_0==117||(LA145_0>=133 && LA145_0<=134)||LA145_0==138||LA145_0==144||LA145_0==146||(LA145_0>=150 && LA145_0<=151)||(LA145_0>=154 && LA145_0<=163)||LA145_0==165) ) {s = 4;} |
| |
| |
| input.seek(index145_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA145_1 = input.LA(1); |
| |
| |
| int index145_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDataDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index145_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA145_2 = input.LA(1); |
| |
| |
| int index145_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDataDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index145_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 145, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA168 extends DFA { |
| |
| public DFA168(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 168; |
| 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 "8782: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 LA168_1 = input.LA(1); |
| |
| |
| int index168_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index168_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 168, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA167 extends DFA { |
| |
| public DFA167(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 167; |
| 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 "8801: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 LA167_0 = input.LA(1); |
| |
| |
| int index167_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA167_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA167_0==105) ) {s = 2;} |
| |
| else if ( (LA167_0==130) && (synpred37_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA167_0==143) && (synpred37_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA167_0>=RULE_STRING && LA167_0<=RULE_INT)||(LA167_0>=RULE_HEX && LA167_0<=RULE_DECIMAL)||LA167_0==14||LA167_0==58||LA167_0==85||(LA167_0>=99 && LA167_0<=100)||(LA167_0>=109 && LA167_0<=110)||LA167_0==117||(LA167_0>=133 && LA167_0<=134)||LA167_0==138||LA167_0==144||LA167_0==146||(LA167_0>=150 && LA167_0<=151)||(LA167_0>=154 && LA167_0<=163)||LA167_0==165) ) {s = 5;} |
| |
| else if ( (LA167_0==107) ) {s = 35;} |
| |
| |
| input.seek(index167_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA167_1 = input.LA(1); |
| |
| |
| int index167_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index167_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA167_2 = input.LA(1); |
| |
| |
| int index167_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index167_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 167, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA169 extends DFA { |
| |
| public DFA169(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 169; |
| 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 "8899: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 LA169_1 = input.LA(1); |
| |
| |
| int index169_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index169_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 169, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\52\uffff\1\2\22\uffff\1\2\3\uffff\1\2\3\uffff\1\2\15\uffff\3\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 DFA173 extends DFA { |
| |
| public DFA173(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 173; |
| 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 "9058: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 LA173_1 = input.LA(1); |
| |
| |
| int index173_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index173_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 173, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA176 extends DFA { |
| |
| public DFA176(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 176; |
| 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 "9115: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 LA176_1 = input.LA(1); |
| |
| |
| int index176_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index176_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 176, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA175 extends DFA { |
| |
| public DFA175(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 175; |
| 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 "9134: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 LA175_0 = input.LA(1); |
| |
| |
| int index175_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA175_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA175_0==105) ) {s = 2;} |
| |
| else if ( (LA175_0==130) && (synpred41_InternalDataDSL())) {s = 3;} |
| |
| else if ( (LA175_0==143) && (synpred41_InternalDataDSL())) {s = 4;} |
| |
| else if ( ((LA175_0>=RULE_STRING && LA175_0<=RULE_INT)||(LA175_0>=RULE_HEX && LA175_0<=RULE_DECIMAL)||LA175_0==14||LA175_0==58||LA175_0==85||(LA175_0>=99 && LA175_0<=100)||(LA175_0>=109 && LA175_0<=110)||LA175_0==117||(LA175_0>=133 && LA175_0<=134)||LA175_0==138||LA175_0==144||LA175_0==146||(LA175_0>=150 && LA175_0<=151)||(LA175_0>=154 && LA175_0<=163)||LA175_0==165) ) {s = 5;} |
| |
| else if ( (LA175_0==107) ) {s = 35;} |
| |
| |
| input.seek(index175_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA175_1 = input.LA(1); |
| |
| |
| int index175_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index175_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA175_2 = input.LA(1); |
| |
| |
| int index175_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDataDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index175_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 175, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA177 extends DFA { |
| |
| public DFA177(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 177; |
| 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 "9232: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 LA177_1 = input.LA(1); |
| |
| |
| int index177_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index177_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 177, _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\u00a6\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\5\uffff\1\12\1\41\52\uffff\1\32\22\uffff\1\41\3\uffff\1\41\3\uffff\1\5\15\uffff\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 DFA180 extends DFA { |
| |
| public DFA180(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 180; |
| 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 "9575: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 LA180_1 = input.LA(1); |
| |
| |
| int index180_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA180_2 = input.LA(1); |
| |
| |
| int index180_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA180_3 = input.LA(1); |
| |
| |
| int index180_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA180_4 = input.LA(1); |
| |
| |
| int index180_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA180_5 = input.LA(1); |
| |
| |
| int index180_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA180_6 = input.LA(1); |
| |
| |
| int index180_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA180_7 = input.LA(1); |
| |
| |
| int index180_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA180_8 = input.LA(1); |
| |
| |
| int index180_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA180_9 = input.LA(1); |
| |
| |
| int index180_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA180_10 = input.LA(1); |
| |
| |
| int index180_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA180_11 = input.LA(1); |
| |
| |
| int index180_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA180_12 = input.LA(1); |
| |
| |
| int index180_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA180_13 = input.LA(1); |
| |
| |
| int index180_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA180_14 = input.LA(1); |
| |
| |
| int index180_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA180_15 = input.LA(1); |
| |
| |
| int index180_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA180_16 = input.LA(1); |
| |
| |
| int index180_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA180_17 = input.LA(1); |
| |
| |
| int index180_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA180_18 = input.LA(1); |
| |
| |
| int index180_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA180_19 = input.LA(1); |
| |
| |
| int index180_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA180_20 = input.LA(1); |
| |
| |
| int index180_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA180_21 = input.LA(1); |
| |
| |
| int index180_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA180_22 = input.LA(1); |
| |
| |
| int index180_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA180_23 = input.LA(1); |
| |
| |
| int index180_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA180_24 = input.LA(1); |
| |
| |
| int index180_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA180_25 = input.LA(1); |
| |
| |
| int index180_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA180_26 = input.LA(1); |
| |
| |
| int index180_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA180_27 = input.LA(1); |
| |
| |
| int index180_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA180_28 = input.LA(1); |
| |
| |
| int index180_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA180_29 = input.LA(1); |
| |
| |
| int index180_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA180_30 = input.LA(1); |
| |
| |
| int index180_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA180_31 = input.LA(1); |
| |
| |
| int index180_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA180_32 = input.LA(1); |
| |
| |
| int index180_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDataDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index180_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 180, _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\u00a8\1\0\115\uffff"; |
| static final String dfa_82s = "\2\uffff\1\2\113\uffff\1\1"; |
| static final String dfa_83s = "\1\uffff\1\0\115\uffff}>"; |
| static final String[] dfa_84s = { |
| "\5\2\5\uffff\2\2\52\uffff\1\2\22\uffff\1\2\3\uffff\1\2\3\uffff\1\2\15\uffff\3\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 DFA198 extends DFA { |
| |
| public DFA198(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 198; |
| 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 "10233: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 LA198_1 = input.LA(1); |
| |
| |
| int index198_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalDataDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index198_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 198, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA196 extends DFA { |
| |
| public DFA196(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 196; |
| 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 "10327: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 LA196_1 = input.LA(1); |
| |
| |
| int index196_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalDataDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index196_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 196, _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[]{0x0000000000004002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000018000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000028000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000040000L,0x0000000000000000L,0x0380000000000000L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000000010L}); |
| 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[]{0x0000090880000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000001000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x000010000E008000L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000008000L,0x0000000000000401L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x000000000C008000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000000008000L,0x0000000000005800L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000008008000L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000010000000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000060000000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000700000002L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000002L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000400000002L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x000000F600000002L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x000000E600000002L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x000000C600000002L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000008600000002L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000020600000000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000020400000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000020000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000040000000002L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x01FFE00000000002L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x01FFC00000000002L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x01FF800000000002L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x01FF000000000002L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x01FE000000000002L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x01FC000000000002L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x01F8000000000002L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000000008000L,0x0000000000008020L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x01F0000000000002L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0400000000008000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x01E0000000000002L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x01C0000000000002L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000008000L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0180000000000002L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000000008000L,0x0000000600940000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0100000000000002L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0200000000008000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0800000000000000L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0001000000000000L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x1000000000000000L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x6000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x4000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x4000000000000000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x8000000000000002L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000008000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000080L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0040000000000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000008000L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000000000042L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000002L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0xFC00000000000000L,0x0000000000000003L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000012L,0x0000000000000000L,0x0000000000000000L,0x000000000000000CL}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000000L,0x000000000000000CL}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000800L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000000L,0x0000000000005000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000052L,0x0000000000000000L,0x0000000000000000L,0x000000000000000CL}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0003800000000000L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x007C000000000000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000001000000L,0x0000000000600000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000001000000L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000000L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x00007E0000000000L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000000L,0x0000000001000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000002L,0x00000001FE000000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000002L,0x00000001F0000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000002L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000040L,0x0000005000000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000040L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000040L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000002L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000002L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x04000000000041F0L,0x00206B1800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x00000C0000000000L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000000L,0x0000080000000000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000000L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x04000000000041F0L,0x0020631800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x04000000000041F0L,0x0020E31800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000000000000L,0x0000840000000000L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000002L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x0000000000000002L,0x007F000000000000L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000000000L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000000L,0x00C0000000000000L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000000000L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x0000000000000002L,0x0100000000000000L}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x0000000000000002L,0x0200000000000000L}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x0000000000000002L,0x3C00000000000000L}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x0000000000000002L,0x40E0000000000000L}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x0000000000000040L,0x0000020000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x0000000000000002L,0x8060000000000000L,0x000000000000001FL}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x0000000000000000L,0x0040000000000000L}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x0000000000000000L,0x0020000000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000060L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x0000000000000002L,0x0000002000000000L,0x0000000000000380L}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x0000000000000002L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000001800L}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x0000000000000002L,0x0000000000002000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x0000000000000040L,0x0000001800200000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x0000000000000040L,0x0020001800200000L,0x000000000C000000L}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x0000000000000040L,0x0000020000000000L,0x0000008000000004L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x0000000000000000L,0x0040040000000000L}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x0000000000000002L,0x0000420000002000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x04000000000041F0L,0x00206B1800200000L,0x0000002FFCC58464L}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000002L,0x0000400000002000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x040000000000C1F0L,0x0020631800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x0000000000008000L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x04000000000041F0L,0x0020E31800200000L,0x0000002FFFC58464L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x04000000000041F0L,0x0020E31800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000000000000L,0x0000800000000000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x04000000000041F2L,0x0020639800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x04000000000041F2L,0x0020631800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x04000000000041F0L,0x0020631800200000L,0x0000002FFCC50464L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_145 = new BitSet(new long[]{0x0000000000008040L,0x0000060000000000L,0x0000000000380004L}); |
| public static final BitSet FOLLOW_146 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L,0x0000000000280000L}); |
| public static final BitSet FOLLOW_147 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_148 = new BitSet(new long[]{0x04000000000041F0L,0x0020639800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_149 = new BitSet(new long[]{0x0000000000000000L,0x0000048000000000L}); |
| public static final BitSet FOLLOW_150 = new BitSet(new long[]{0x04000000000041F0L,0x0020631800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_151 = new BitSet(new long[]{0x04000000000041F0L,0x0020639800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_152 = new BitSet(new long[]{0x0000000000000000L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_153 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_154 = new BitSet(new long[]{0x040000000000C1F0L,0x0020631800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_155 = new BitSet(new long[]{0x040000000000C1F0L,0x0020639800200000L,0x0000002FFFC50460L}); |
| public static final BitSet FOLLOW_156 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_157 = new BitSet(new long[]{0x0000000000000002L,0x0000420000000000L}); |
| public static final BitSet FOLLOW_158 = new BitSet(new long[]{0x0000000000000002L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_159 = new BitSet(new long[]{0x0000000000000002L,0x0020420000000000L}); |
| public static final BitSet FOLLOW_160 = new BitSet(new long[]{0x0000000000000000L,0x0000480000000000L}); |
| public static final BitSet FOLLOW_161 = new BitSet(new long[]{0x04000000000041F2L,0x0020631800200000L,0x0000002FFCC50460L}); |
| public static final BitSet FOLLOW_162 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000005000000000L}); |
| public static final BitSet FOLLOW_163 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000005000000000L}); |
| public static final BitSet FOLLOW_164 = new BitSet(new long[]{0x0000000000000120L}); |
| public static final BitSet FOLLOW_165 = new BitSet(new long[]{0x0000000000000040L,0x00000A0000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_166 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_167 = new BitSet(new long[]{0x0000000000000002L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_168 = new BitSet(new long[]{0x0000000000000002L,0x0020000000002000L}); |
| public static final BitSet FOLLOW_169 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x000000000C000000L}); |
| public static final BitSet FOLLOW_170 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_171 = new BitSet(new long[]{0x0000000000000000L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_172 = new BitSet(new long[]{0x0000000000000002L,0x0000000800000000L}); |
| |
| } |