| package org.eclipse.osbp.xtext.datamartdsl.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.datamartdsl.services.DatamartDSLGrammarAccess; |
| |
| |
| |
| 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, 2017 - 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 InternalDatamartDSLParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'datamart'", "'description'", "'showFilterCaptions'", "'numberOfMultiSelectionRows'", "'fetchSize'", "'using'", "'task'", "'columns'", "'conditions'", "'column'", "'filter'", "'cube'", "'nonempty'", "'join'", "'entity'", "'tracking'", "'navigation'", "'attributes'", "'suppressAttributes'", "'ordering'", "'many2one'", "'to'", "'one2many'", "'axis'", "'attribute'", "'reference'", "'alias'", "'columnWeight'", "'aggregate'", "'scale'", "'distinct'", "'condition'", "'order'", "'or'", "'and'", "'('", "')'", "'filtered'", "'optional'", "'selected'", "'ranged'", "'unreferenced'", "'derive'", "'from'", "'+'", "'-'", "'*'", "'/'", "'of'", "'over'", "'slicer'", "'derived'", "'measure'", "'hierarchy'", "'default'", "'condensed'", "'exploded'", "'detailed'", "'except'", "'orderBy'", "'descending'", "'level'", "'sorted'", "'hierarchize'", "'post'", "'import'", "'static'", "'extension'", "'ns'", "';'", "'@'", "','", "'='", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'**'", "'%'", "'!'", "'as'", "'++'", "'--'", "'.'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'case'", "'for'", "'while'", "'do'", "'var'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'rows'", "'pages'", "'chapters'", "'sections'", "'previous'", "'next'", "'first'", "'last'", "'lag'", "'lead'", "'year-to-date'", "'periods'", "'tail'", "'head'", "'topcount'", "'topsummation'", "'toppercentage'", "'bottomcount'", "'bottomsummation'", "'bottompercentage'", "'average'", "'summation'", "'deviation'", "'<='", "'like'", "'count'", "'group1'", "'group2'", "'group3'", "'group4'", "'group5'", "'group6'", "'group7'", "'group8'", "'group9'", "'BusinessAdministrator'", "'PotentialOwner'", "'Recipient'", "'TaskInitiator'", "'TaskStakeholder'", "'ExcludedOwner'", "'Name'", "'Priority'", "'Status'", "'Subject'", "'Description'", "'ExpirationTime'", "'CreatedOn'", "'CreatedBy'", "'ActivationTime'", "'ActualOwner'", "'TaskId'", "'ProcessId'", "'ProcessInstanceId'", "'ProcessSessionId'", "'Groups'", "'Users'", "'ascending'" |
| }; |
| 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=4; |
| 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__203=203; |
| public static final int T__202=202; |
| public static final int T__20=20; |
| public static final int T__205=205; |
| public static final int T__21=21; |
| public static final int T__204=204; |
| 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__201=201; |
| public static final int T__200=200; |
| 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=6; |
| 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__199=199; |
| public static final int T__81=81; |
| public static final int T__198=198; |
| 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__197=197; |
| public static final int T__196=196; |
| 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 InternalDatamartDSLParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalDatamartDSLParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalDatamartDSLParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalDatamartDSL.g"; } |
| |
| |
| |
| private DatamartDSLGrammarAccess grammarAccess; |
| |
| public InternalDatamartDSLParser(TokenStream input, DatamartDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "DatamartModel"; |
| } |
| |
| @Override |
| protected DatamartDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleDatamartModel" |
| // InternalDatamartDSL.g:80:1: entryRuleDatamartModel returns [EObject current=null] : iv_ruleDatamartModel= ruleDatamartModel EOF ; |
| public final EObject entryRuleDatamartModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartModel = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:80:54: (iv_ruleDatamartModel= ruleDatamartModel EOF ) |
| // InternalDatamartDSL.g:81:2: iv_ruleDatamartModel= ruleDatamartModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartModel=ruleDatamartModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartModel" |
| |
| |
| // $ANTLR start "ruleDatamartModel" |
| // InternalDatamartDSL.g:87:1: ruleDatamartModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDatamartPackage ) )* ) ; |
| public final EObject ruleDatamartModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:93:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDatamartPackage ) )* ) ) |
| // InternalDatamartDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDatamartPackage ) )* ) |
| { |
| // InternalDatamartDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDatamartPackage ) )* ) |
| // InternalDatamartDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleDatamartPackage ) )* |
| { |
| // InternalDatamartDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==81) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalDatamartDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalDatamartDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalDatamartDSL.g:97:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartModelAccess().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.getDatamartModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:114:3: ( (lv_packages_1_0= ruleDatamartPackage ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==13) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalDatamartDSL.g:115:4: (lv_packages_1_0= ruleDatamartPackage ) |
| { |
| // InternalDatamartDSL.g:115:4: (lv_packages_1_0= ruleDatamartPackage ) |
| // InternalDatamartDSL.g:116:5: lv_packages_1_0= ruleDatamartPackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartModelAccess().getPackagesDatamartPackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_packages_1_0=ruleDatamartPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartModelRule()); |
| } |
| add( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartPackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartModel" |
| |
| |
| // $ANTLR start "entryRuleDatamartPackage" |
| // InternalDatamartDSL.g:137:1: entryRuleDatamartPackage returns [EObject current=null] : iv_ruleDatamartPackage= ruleDatamartPackage EOF ; |
| public final EObject entryRuleDatamartPackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartPackage = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:137:56: (iv_ruleDatamartPackage= ruleDatamartPackage EOF ) |
| // InternalDatamartDSL.g:138:2: iv_ruleDatamartPackage= ruleDatamartPackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartPackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartPackage=ruleDatamartPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartPackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartPackage" |
| |
| |
| // $ANTLR start "ruleDatamartPackage" |
| // InternalDatamartDSL.g:144:1: ruleDatamartPackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleDatamartPackage() 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_definitions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:150:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? ) ) |
| // InternalDatamartDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? ) |
| { |
| // InternalDatamartDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? ) |
| // InternalDatamartDSL.g:152:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? |
| { |
| // InternalDatamartDSL.g:152:3: () |
| // InternalDatamartDSL.g:153:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDatamartPackageAccess().getDatamartPackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartPackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:163:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalDatamartDSL.g:165:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartPackageAccess().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.getDatamartPackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:182:3: (otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==14) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalDatamartDSL.g:183:4: otherlv_3= '{' ( (lv_definitions_4_0= ruleDatamartDefinition ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartPackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalDatamartDSL.g:187:4: ( (lv_definitions_4_0= ruleDatamartDefinition ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==16) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalDatamartDSL.g:188:5: (lv_definitions_4_0= ruleDatamartDefinition ) |
| { |
| // InternalDatamartDSL.g:188:5: (lv_definitions_4_0= ruleDatamartDefinition ) |
| // InternalDatamartDSL.g:189:6: lv_definitions_4_0= ruleDatamartDefinition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartPackageAccess().getDefinitionsDatamartDefinitionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_definitions_4_0=ruleDatamartDefinition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartPackageRule()); |
| } |
| add( |
| current, |
| "definitions", |
| lv_definitions_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartDefinition"); |
| 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.getDatamartPackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartPackage" |
| |
| |
| // $ANTLR start "entryRuleDatamartDefinition" |
| // InternalDatamartDSL.g:215:1: entryRuleDatamartDefinition returns [EObject current=null] : iv_ruleDatamartDefinition= ruleDatamartDefinition EOF ; |
| public final EObject entryRuleDatamartDefinition() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartDefinition = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:215:59: (iv_ruleDatamartDefinition= ruleDatamartDefinition EOF ) |
| // InternalDatamartDSL.g:216:2: iv_ruleDatamartDefinition= ruleDatamartDefinition EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartDefinitionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartDefinition=ruleDatamartDefinition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartDefinition; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartDefinition" |
| |
| |
| // $ANTLR start "ruleDatamartDefinition" |
| // InternalDatamartDSL.g:222:1: ruleDatamartDefinition returns [EObject current=null] : (otherlv_0= 'datamart' ( (lv_name_1_0= RULE_ID ) ) ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) otherlv_10= 'using' ( (lv_source_11_0= ruleDatamartSource ) ) ) ; |
| public final EObject ruleDatamartDefinition() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token lv_description_2_0=null; |
| Token lv_showCaption_5_0=null; |
| Token otherlv_6=null; |
| Token lv_numMultiRows_7_0=null; |
| Token lv_rowLimitSet_8_0=null; |
| Token lv_fetchSize_9_0=null; |
| Token otherlv_10=null; |
| AntlrDatatypeRuleToken lv_descriptionValue_3_0 = null; |
| |
| EObject lv_source_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:228:2: ( (otherlv_0= 'datamart' ( (lv_name_1_0= RULE_ID ) ) ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) otherlv_10= 'using' ( (lv_source_11_0= ruleDatamartSource ) ) ) ) |
| // InternalDatamartDSL.g:229:2: (otherlv_0= 'datamart' ( (lv_name_1_0= RULE_ID ) ) ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) otherlv_10= 'using' ( (lv_source_11_0= ruleDatamartSource ) ) ) |
| { |
| // InternalDatamartDSL.g:229:2: (otherlv_0= 'datamart' ( (lv_name_1_0= RULE_ID ) ) ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) otherlv_10= 'using' ( (lv_source_11_0= ruleDatamartSource ) ) ) |
| // InternalDatamartDSL.g:230:3: otherlv_0= 'datamart' ( (lv_name_1_0= RULE_ID ) ) ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) otherlv_10= 'using' ( (lv_source_11_0= ruleDatamartSource ) ) |
| { |
| otherlv_0=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartDefinitionAccess().getDatamartKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:234:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalDatamartDSL.g:235:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:235:4: (lv_name_1_0= RULE_ID ) |
| // InternalDatamartDSL.g:236:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getDatamartDefinitionAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:252:3: ( ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==17) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalDatamartDSL.g:253:4: ( (lv_description_2_0= 'description' ) ) ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalDatamartDSL.g:253:4: ( (lv_description_2_0= 'description' ) ) |
| // InternalDatamartDSL.g:254:5: (lv_description_2_0= 'description' ) |
| { |
| // InternalDatamartDSL.g:254:5: (lv_description_2_0= 'description' ) |
| // InternalDatamartDSL.g:255:6: lv_description_2_0= 'description' |
| { |
| lv_description_2_0=(Token)match(input,17,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_description_2_0, grammarAccess.getDatamartDefinitionAccess().getDescriptionDescriptionKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed(current, "description", true, "description"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:267:4: ( (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) ) |
| // InternalDatamartDSL.g:268:5: (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalDatamartDSL.g:268:5: (lv_descriptionValue_3_0= ruleTRANSLATABLESTRING ) |
| // InternalDatamartDSL.g:269:6: lv_descriptionValue_3_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDefinitionAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_descriptionValue_3_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDefinitionRule()); |
| } |
| set( |
| current, |
| "descriptionValue", |
| lv_descriptionValue_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:287:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) ) |
| // InternalDatamartDSL.g:288:4: ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) |
| { |
| // InternalDatamartDSL.g:288:4: ( ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) ) |
| // InternalDatamartDSL.g:289:5: ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3()); |
| // InternalDatamartDSL.g:292:5: ( ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* ) |
| // InternalDatamartDSL.g:293:6: ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* |
| { |
| // InternalDatamartDSL.g:293:6: ( ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) )* |
| loop6: |
| do { |
| int alt6=4; |
| int LA6_0 = input.LA(1); |
| |
| if ( LA6_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
| alt6=1; |
| } |
| else if ( LA6_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
| alt6=2; |
| } |
| else if ( LA6_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 2) ) { |
| alt6=3; |
| } |
| |
| |
| switch (alt6) { |
| case 1 : |
| // InternalDatamartDSL.g:294:4: ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:294:4: ({...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) ) |
| // InternalDatamartDSL.g:295:5: {...}? => ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalDatamartDSL.g:295:115: ( ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) ) |
| // InternalDatamartDSL.g:296:6: ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 0); |
| // InternalDatamartDSL.g:299:9: ({...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) ) |
| // InternalDatamartDSL.g:299:10: {...}? => ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "true"); |
| } |
| // InternalDatamartDSL.g:299:19: ( (lv_showCaption_5_0= 'showFilterCaptions' ) ) |
| // InternalDatamartDSL.g:299:20: (lv_showCaption_5_0= 'showFilterCaptions' ) |
| { |
| // InternalDatamartDSL.g:299:20: (lv_showCaption_5_0= 'showFilterCaptions' ) |
| // InternalDatamartDSL.g:300:10: lv_showCaption_5_0= 'showFilterCaptions' |
| { |
| lv_showCaption_5_0=(Token)match(input,18,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_showCaption_5_0, grammarAccess.getDatamartDefinitionAccess().getShowCaptionShowFilterCaptionsKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed(current, "showCaption", true, "showFilterCaptions"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:317:4: ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:317:4: ({...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) ) |
| // InternalDatamartDSL.g:318:5: {...}? => ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalDatamartDSL.g:318:115: ( ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) ) |
| // InternalDatamartDSL.g:319:6: ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 1); |
| // InternalDatamartDSL.g:322:9: ({...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) ) |
| // InternalDatamartDSL.g:322:10: {...}? => (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "true"); |
| } |
| // InternalDatamartDSL.g:322:19: (otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) ) |
| // InternalDatamartDSL.g:322:20: otherlv_6= 'numberOfMultiSelectionRows' ( (lv_numMultiRows_7_0= RULE_INT ) ) |
| { |
| otherlv_6=(Token)match(input,19,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDatamartDefinitionAccess().getNumberOfMultiSelectionRowsKeyword_3_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:326:9: ( (lv_numMultiRows_7_0= RULE_INT ) ) |
| // InternalDatamartDSL.g:327:10: (lv_numMultiRows_7_0= RULE_INT ) |
| { |
| // InternalDatamartDSL.g:327:10: (lv_numMultiRows_7_0= RULE_INT ) |
| // InternalDatamartDSL.g:328:11: lv_numMultiRows_7_0= RULE_INT |
| { |
| lv_numMultiRows_7_0=(Token)match(input,RULE_INT,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_numMultiRows_7_0, grammarAccess.getDatamartDefinitionAccess().getNumMultiRowsINTTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "numMultiRows", |
| lv_numMultiRows_7_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:350:4: ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:350:4: ({...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) ) |
| // InternalDatamartDSL.g:351:5: {...}? => ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalDatamartDSL.g:351:115: ( ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) ) |
| // InternalDatamartDSL.g:352:6: ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3(), 2); |
| // InternalDatamartDSL.g:355:9: ({...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) ) |
| // InternalDatamartDSL.g:355:10: {...}? => ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartDefinition", "true"); |
| } |
| // InternalDatamartDSL.g:355:19: ( ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) ) |
| // InternalDatamartDSL.g:355:20: ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) ( (lv_fetchSize_9_0= RULE_INT ) ) |
| { |
| // InternalDatamartDSL.g:355:20: ( (lv_rowLimitSet_8_0= 'fetchSize' ) ) |
| // InternalDatamartDSL.g:356:10: (lv_rowLimitSet_8_0= 'fetchSize' ) |
| { |
| // InternalDatamartDSL.g:356:10: (lv_rowLimitSet_8_0= 'fetchSize' ) |
| // InternalDatamartDSL.g:357:11: lv_rowLimitSet_8_0= 'fetchSize' |
| { |
| lv_rowLimitSet_8_0=(Token)match(input,20,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rowLimitSet_8_0, grammarAccess.getDatamartDefinitionAccess().getRowLimitSetFetchSizeKeyword_3_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed(current, "rowLimitSet", true, "fetchSize"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:369:9: ( (lv_fetchSize_9_0= RULE_INT ) ) |
| // InternalDatamartDSL.g:370:10: (lv_fetchSize_9_0= RULE_INT ) |
| { |
| // InternalDatamartDSL.g:370:10: (lv_fetchSize_9_0= RULE_INT ) |
| // InternalDatamartDSL.g:371:11: lv_fetchSize_9_0= RULE_INT |
| { |
| lv_fetchSize_9_0=(Token)match(input,RULE_INT,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fetchSize_9_0, grammarAccess.getDatamartDefinitionAccess().getFetchSizeINTTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDefinitionRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fetchSize", |
| lv_fetchSize_9_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop6; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDatamartDefinitionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| otherlv_10=(Token)match(input,21,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getDatamartDefinitionAccess().getUsingKeyword_4()); |
| |
| } |
| // InternalDatamartDSL.g:404:3: ( (lv_source_11_0= ruleDatamartSource ) ) |
| // InternalDatamartDSL.g:405:4: (lv_source_11_0= ruleDatamartSource ) |
| { |
| // InternalDatamartDSL.g:405:4: (lv_source_11_0= ruleDatamartSource ) |
| // InternalDatamartDSL.g:406:5: lv_source_11_0= ruleDatamartSource |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDefinitionAccess().getSourceDatamartSourceParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_11_0=ruleDatamartSource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDefinitionRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_11_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSource"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartDefinition" |
| |
| |
| // $ANTLR start "entryRuleDatamartSource" |
| // InternalDatamartDSL.g:427:1: entryRuleDatamartSource returns [EObject current=null] : iv_ruleDatamartSource= ruleDatamartSource EOF ; |
| public final EObject entryRuleDatamartSource() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSource = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:427:55: (iv_ruleDatamartSource= ruleDatamartSource EOF ) |
| // InternalDatamartDSL.g:428:2: iv_ruleDatamartSource= ruleDatamartSource EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSourceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSource=ruleDatamartSource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSource; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSource" |
| |
| |
| // $ANTLR start "ruleDatamartSource" |
| // InternalDatamartDSL.g:434:1: ruleDatamartSource returns [EObject current=null] : (this_DatamartCube_0= ruleDatamartCube | this_DatamartEntity_1= ruleDatamartEntity | this_DatamartTask_2= ruleDatamartTask ) ; |
| public final EObject ruleDatamartSource() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartCube_0 = null; |
| |
| EObject this_DatamartEntity_1 = null; |
| |
| EObject this_DatamartTask_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:440:2: ( (this_DatamartCube_0= ruleDatamartCube | this_DatamartEntity_1= ruleDatamartEntity | this_DatamartTask_2= ruleDatamartTask ) ) |
| // InternalDatamartDSL.g:441:2: (this_DatamartCube_0= ruleDatamartCube | this_DatamartEntity_1= ruleDatamartEntity | this_DatamartTask_2= ruleDatamartTask ) |
| { |
| // InternalDatamartDSL.g:441:2: (this_DatamartCube_0= ruleDatamartCube | this_DatamartEntity_1= ruleDatamartEntity | this_DatamartTask_2= ruleDatamartTask ) |
| int alt7=3; |
| switch ( input.LA(1) ) { |
| case 27: |
| { |
| alt7=1; |
| } |
| break; |
| case 30: |
| { |
| alt7=2; |
| } |
| break; |
| case 22: |
| { |
| alt7=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 7, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt7) { |
| case 1 : |
| // InternalDatamartDSL.g:442:3: this_DatamartCube_0= ruleDatamartCube |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartCubeParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartCube_0=ruleDatamartCube(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartCube_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:451:3: this_DatamartEntity_1= ruleDatamartEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartEntityParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartEntity_1=ruleDatamartEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartEntity_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:460:3: this_DatamartTask_2= ruleDatamartTask |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSourceAccess().getDatamartTaskParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartTask_2=ruleDatamartTask(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartTask_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSource" |
| |
| |
| // $ANTLR start "entryRuleDatamartTask" |
| // InternalDatamartDSL.g:472:1: entryRuleDatamartTask returns [EObject current=null] : iv_ruleDatamartTask= ruleDatamartTask EOF ; |
| public final EObject entryRuleDatamartTask() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartTask = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:472:53: (iv_ruleDatamartTask= ruleDatamartTask EOF ) |
| // InternalDatamartDSL.g:473:2: iv_ruleDatamartTask= ruleDatamartTask EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartTaskRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartTask=ruleDatamartTask(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartTask; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartTask" |
| |
| |
| // $ANTLR start "ruleDatamartTask" |
| // InternalDatamartDSL.g:479:1: ruleDatamartTask returns [EObject current=null] : (otherlv_0= 'task' ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? ) ; |
| public final EObject ruleDatamartTask() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Enumerator lv_taskQuery_1_0 = null; |
| |
| EObject lv_columns_4_0 = null; |
| |
| EObject lv_conditions_8_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:485:2: ( (otherlv_0= 'task' ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? ) ) |
| // InternalDatamartDSL.g:486:2: (otherlv_0= 'task' ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? ) |
| { |
| // InternalDatamartDSL.g:486:2: (otherlv_0= 'task' ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? ) |
| // InternalDatamartDSL.g:487:3: otherlv_0= 'task' ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? |
| { |
| otherlv_0=(Token)match(input,22,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartTaskAccess().getTaskKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:491:3: ( (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) ) |
| // InternalDatamartDSL.g:492:4: (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) |
| { |
| // InternalDatamartDSL.g:492:4: (lv_taskQuery_1_0= ruleTaskQueryTopicEnum ) |
| // InternalDatamartDSL.g:493:5: lv_taskQuery_1_0= ruleTaskQueryTopicEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartTaskAccess().getTaskQueryTaskQueryTopicEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_13); |
| lv_taskQuery_1_0=ruleTaskQueryTopicEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartTaskRule()); |
| } |
| set( |
| current, |
| "taskQuery", |
| lv_taskQuery_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskQueryTopicEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:510:3: (otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==23) ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalDatamartDSL.g:511:4: otherlv_2= 'columns' otherlv_3= '{' ( (lv_columns_4_0= ruleDatamartColumn ) )* otherlv_5= '}' |
| { |
| otherlv_2=(Token)match(input,23,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartTaskAccess().getColumnsKeyword_2_0()); |
| |
| } |
| otherlv_3=(Token)match(input,14,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartTaskAccess().getLeftCurlyBracketKeyword_2_1()); |
| |
| } |
| // InternalDatamartDSL.g:519:4: ( (lv_columns_4_0= ruleDatamartColumn ) )* |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==25) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalDatamartDSL.g:520:5: (lv_columns_4_0= ruleDatamartColumn ) |
| { |
| // InternalDatamartDSL.g:520:5: (lv_columns_4_0= ruleDatamartColumn ) |
| // InternalDatamartDSL.g:521:6: lv_columns_4_0= ruleDatamartColumn |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartTaskAccess().getColumnsDatamartColumnParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| lv_columns_4_0=ruleDatamartColumn(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartTaskRule()); |
| } |
| add( |
| current, |
| "columns", |
| lv_columns_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartColumn"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartTaskAccess().getRightCurlyBracketKeyword_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:543:3: (otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==24) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalDatamartDSL.g:544:4: otherlv_6= 'conditions' otherlv_7= '{' ( (lv_conditions_8_0= ruleDatamartCondition ) )* otherlv_9= '}' |
| { |
| otherlv_6=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDatamartTaskAccess().getConditionsKeyword_3_0()); |
| |
| } |
| otherlv_7=(Token)match(input,14,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDatamartTaskAccess().getLeftCurlyBracketKeyword_3_1()); |
| |
| } |
| // InternalDatamartDSL.g:552:4: ( (lv_conditions_8_0= ruleDatamartCondition ) )* |
| loop10: |
| do { |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==47) ) { |
| alt10=1; |
| } |
| |
| |
| switch (alt10) { |
| case 1 : |
| // InternalDatamartDSL.g:553:5: (lv_conditions_8_0= ruleDatamartCondition ) |
| { |
| // InternalDatamartDSL.g:553:5: (lv_conditions_8_0= ruleDatamartCondition ) |
| // InternalDatamartDSL.g:554:6: lv_conditions_8_0= ruleDatamartCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartTaskAccess().getConditionsDatamartConditionParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| lv_conditions_8_0=ruleDatamartCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartTaskRule()); |
| } |
| add( |
| current, |
| "conditions", |
| lv_conditions_8_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop10; |
| } |
| } while (true); |
| |
| otherlv_9=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDatamartTaskAccess().getRightCurlyBracketKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartTask" |
| |
| |
| // $ANTLR start "entryRuleDatamartColumn" |
| // InternalDatamartDSL.g:580:1: entryRuleDatamartColumn returns [EObject current=null] : iv_ruleDatamartColumn= ruleDatamartColumn EOF ; |
| public final EObject entryRuleDatamartColumn() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartColumn = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:580:55: (iv_ruleDatamartColumn= ruleDatamartColumn EOF ) |
| // InternalDatamartDSL.g:581:2: iv_ruleDatamartColumn= ruleDatamartColumn EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartColumnRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartColumn=ruleDatamartColumn(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartColumn; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartColumn" |
| |
| |
| // $ANTLR start "ruleDatamartColumn" |
| // InternalDatamartDSL.g:587:1: ruleDatamartColumn returns [EObject current=null] : (otherlv_0= 'column' ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) ) ; |
| public final EObject ruleDatamartColumn() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Enumerator lv_columnRef_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:593:2: ( (otherlv_0= 'column' ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) ) ) |
| // InternalDatamartDSL.g:594:2: (otherlv_0= 'column' ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) ) |
| { |
| // InternalDatamartDSL.g:594:2: (otherlv_0= 'column' ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) ) |
| // InternalDatamartDSL.g:595:3: otherlv_0= 'column' ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartColumnAccess().getColumnKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:599:3: ( (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) ) |
| // InternalDatamartDSL.g:600:4: (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) |
| { |
| // InternalDatamartDSL.g:600:4: (lv_columnRef_1_0= ruleTaskQueryColumnEnum ) |
| // InternalDatamartDSL.g:601:5: lv_columnRef_1_0= ruleTaskQueryColumnEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartColumnAccess().getColumnRefTaskQueryColumnEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_columnRef_1_0=ruleTaskQueryColumnEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartColumnRule()); |
| } |
| set( |
| current, |
| "columnRef", |
| lv_columnRef_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskQueryColumnEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartColumn" |
| |
| |
| // $ANTLR start "entryRuleDatamartTaskFilter" |
| // InternalDatamartDSL.g:622:1: entryRuleDatamartTaskFilter returns [EObject current=null] : iv_ruleDatamartTaskFilter= ruleDatamartTaskFilter EOF ; |
| public final EObject entryRuleDatamartTaskFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartTaskFilter = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:622:59: (iv_ruleDatamartTaskFilter= ruleDatamartTaskFilter EOF ) |
| // InternalDatamartDSL.g:623:2: iv_ruleDatamartTaskFilter= ruleDatamartTaskFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartTaskFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartTaskFilter=ruleDatamartTaskFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartTaskFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartTaskFilter" |
| |
| |
| // $ANTLR start "ruleDatamartTaskFilter" |
| // InternalDatamartDSL.g:629:1: ruleDatamartTaskFilter returns [EObject current=null] : (otherlv_0= 'filter' ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) ) ; |
| public final EObject ruleDatamartTaskFilter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Enumerator lv_filterRef_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:635:2: ( (otherlv_0= 'filter' ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) ) ) |
| // InternalDatamartDSL.g:636:2: (otherlv_0= 'filter' ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) ) |
| { |
| // InternalDatamartDSL.g:636:2: (otherlv_0= 'filter' ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) ) |
| // InternalDatamartDSL.g:637:3: otherlv_0= 'filter' ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) |
| { |
| otherlv_0=(Token)match(input,26,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartTaskFilterAccess().getFilterKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:641:3: ( (lv_filterRef_1_0= ruleTaskFilterEnum ) ) |
| // InternalDatamartDSL.g:642:4: (lv_filterRef_1_0= ruleTaskFilterEnum ) |
| { |
| // InternalDatamartDSL.g:642:4: (lv_filterRef_1_0= ruleTaskFilterEnum ) |
| // InternalDatamartDSL.g:643:5: lv_filterRef_1_0= ruleTaskFilterEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartTaskFilterAccess().getFilterRefTaskFilterEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_filterRef_1_0=ruleTaskFilterEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartTaskFilterRule()); |
| } |
| set( |
| current, |
| "filterRef", |
| lv_filterRef_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TaskFilterEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartTaskFilter" |
| |
| |
| // $ANTLR start "entryRuleDatamartCube" |
| // InternalDatamartDSL.g:664:1: entryRuleDatamartCube returns [EObject current=null] : iv_ruleDatamartCube= ruleDatamartCube EOF ; |
| public final EObject entryRuleDatamartCube() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartCube = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:664:53: (iv_ruleDatamartCube= ruleDatamartCube EOF ) |
| // InternalDatamartDSL.g:665:2: iv_ruleDatamartCube= ruleDatamartCube EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartCubeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartCube=ruleDatamartCube(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartCube; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartCube" |
| |
| |
| // $ANTLR start "ruleDatamartCube" |
| // InternalDatamartDSL.g:671:1: ruleDatamartCube returns [EObject current=null] : (otherlv_0= 'cube' ( (otherlv_1= RULE_ID ) ) ( (lv_nonEmpty_2_0= 'nonempty' ) )? otherlv_3= '{' ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* otherlv_5= '}' ) ; |
| public final EObject ruleDatamartCube() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_nonEmpty_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_axisslicer_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:677:2: ( (otherlv_0= 'cube' ( (otherlv_1= RULE_ID ) ) ( (lv_nonEmpty_2_0= 'nonempty' ) )? otherlv_3= '{' ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* otherlv_5= '}' ) ) |
| // InternalDatamartDSL.g:678:2: (otherlv_0= 'cube' ( (otherlv_1= RULE_ID ) ) ( (lv_nonEmpty_2_0= 'nonempty' ) )? otherlv_3= '{' ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* otherlv_5= '}' ) |
| { |
| // InternalDatamartDSL.g:678:2: (otherlv_0= 'cube' ( (otherlv_1= RULE_ID ) ) ( (lv_nonEmpty_2_0= 'nonempty' ) )? otherlv_3= '{' ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* otherlv_5= '}' ) |
| // InternalDatamartDSL.g:679:3: otherlv_0= 'cube' ( (otherlv_1= RULE_ID ) ) ( (lv_nonEmpty_2_0= 'nonempty' ) )? otherlv_3= '{' ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* otherlv_5= '}' |
| { |
| otherlv_0=(Token)match(input,27,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartCubeAccess().getCubeKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:683:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:684:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:684:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:685:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartCubeRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartCubeAccess().getCubeRefCubeTypeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:696:3: ( (lv_nonEmpty_2_0= 'nonempty' ) )? |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==28) ) { |
| alt12=1; |
| } |
| switch (alt12) { |
| case 1 : |
| // InternalDatamartDSL.g:697:4: (lv_nonEmpty_2_0= 'nonempty' ) |
| { |
| // InternalDatamartDSL.g:697:4: (lv_nonEmpty_2_0= 'nonempty' ) |
| // InternalDatamartDSL.g:698:5: lv_nonEmpty_2_0= 'nonempty' |
| { |
| lv_nonEmpty_2_0=(Token)match(input,28,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nonEmpty_2_0, grammarAccess.getDatamartCubeAccess().getNonEmptyNonemptyKeyword_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartCubeRule()); |
| } |
| setWithLastConsumed(current, "nonEmpty", true, "nonempty"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,14,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartCubeAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalDatamartDSL.g:714:3: ( (lv_axisslicer_4_0= ruleDatamartCubeElement ) )* |
| loop13: |
| do { |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==39||LA13_0==58||LA13_0==66) ) { |
| alt13=1; |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalDatamartDSL.g:715:4: (lv_axisslicer_4_0= ruleDatamartCubeElement ) |
| { |
| // InternalDatamartDSL.g:715:4: (lv_axisslicer_4_0= ruleDatamartCubeElement ) |
| // InternalDatamartDSL.g:716:5: lv_axisslicer_4_0= ruleDatamartCubeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeAccess().getAxisslicerDatamartCubeElementParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_axisslicer_4_0=ruleDatamartCubeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartCubeRule()); |
| } |
| add( |
| current, |
| "axisslicer", |
| lv_axisslicer_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCubeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop13; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartCubeAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartCube" |
| |
| |
| // $ANTLR start "entryRuleDatamartReference" |
| // InternalDatamartDSL.g:741:1: entryRuleDatamartReference returns [EObject current=null] : iv_ruleDatamartReference= ruleDatamartReference EOF ; |
| public final EObject entryRuleDatamartReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartReference = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:741:58: (iv_ruleDatamartReference= ruleDatamartReference EOF ) |
| // InternalDatamartDSL.g:742:2: iv_ruleDatamartReference= ruleDatamartReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartReference=ruleDatamartReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartReference" |
| |
| |
| // $ANTLR start "ruleDatamartReference" |
| // InternalDatamartDSL.g:748:1: ruleDatamartReference returns [EObject current=null] : (otherlv_0= 'join' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleDatamartReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:754:2: ( (otherlv_0= 'join' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDatamartDSL.g:755:2: (otherlv_0= 'join' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDatamartDSL.g:755:2: (otherlv_0= 'join' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDatamartDSL.g:756:3: otherlv_0= 'join' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartReferenceAccess().getJoinKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:760:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:761:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:761:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:762:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartReferenceRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartReferenceAccess().getRefLEntityReferenceCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartReference" |
| |
| |
| // $ANTLR start "entryRuleDatamartEntity" |
| // InternalDatamartDSL.g:777:1: entryRuleDatamartEntity returns [EObject current=null] : iv_ruleDatamartEntity= ruleDatamartEntity EOF ; |
| public final EObject entryRuleDatamartEntity() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartEntity = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:777:55: (iv_ruleDatamartEntity= ruleDatamartEntity EOF ) |
| // InternalDatamartDSL.g:778:2: iv_ruleDatamartEntity= ruleDatamartEntity EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartEntityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartEntity=ruleDatamartEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartEntity; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartEntity" |
| |
| |
| // $ANTLR start "ruleDatamartEntity" |
| // InternalDatamartDSL.g:784:1: ruleDatamartEntity returns [EObject current=null] : (otherlv_0= 'entity' ( (otherlv_1= RULE_ID ) ) ( (lv_tracking_2_0= 'tracking' ) )? (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? ) ; |
| public final EObject ruleDatamartEntity() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_tracking_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token lv_suppressAttributes_12_0=null; |
| Token otherlv_13=null; |
| Token otherlv_14=null; |
| Token otherlv_16=null; |
| Token otherlv_17=null; |
| Token otherlv_18=null; |
| Token otherlv_20=null; |
| Token otherlv_21=null; |
| EObject lv_navigations_6_0 = null; |
| |
| EObject lv_attributes_10_0 = null; |
| |
| EObject lv_conditions_15_0 = null; |
| |
| EObject lv_ordering_19_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:790:2: ( (otherlv_0= 'entity' ( (otherlv_1= RULE_ID ) ) ( (lv_tracking_2_0= 'tracking' ) )? (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? ) ) |
| // InternalDatamartDSL.g:791:2: (otherlv_0= 'entity' ( (otherlv_1= RULE_ID ) ) ( (lv_tracking_2_0= 'tracking' ) )? (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? ) |
| { |
| // InternalDatamartDSL.g:791:2: (otherlv_0= 'entity' ( (otherlv_1= RULE_ID ) ) ( (lv_tracking_2_0= 'tracking' ) )? (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? ) |
| // InternalDatamartDSL.g:792:3: otherlv_0= 'entity' ( (otherlv_1= RULE_ID ) ) ( (lv_tracking_2_0= 'tracking' ) )? (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? |
| { |
| otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartEntityAccess().getEntityKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:796:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:797:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:797:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:798:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartEntityRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartEntityAccess().getEntityRefLEntityCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:809:3: ( (lv_tracking_2_0= 'tracking' ) )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==31) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalDatamartDSL.g:810:4: (lv_tracking_2_0= 'tracking' ) |
| { |
| // InternalDatamartDSL.g:810:4: (lv_tracking_2_0= 'tracking' ) |
| // InternalDatamartDSL.g:811:5: lv_tracking_2_0= 'tracking' |
| { |
| lv_tracking_2_0=(Token)match(input,31,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_tracking_2_0, grammarAccess.getDatamartEntityAccess().getTrackingTrackingKeyword_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartEntityRule()); |
| } |
| setWithLastConsumed(current, "tracking", true, "tracking"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:823:3: (otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' )? |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==14) ) { |
| alt23=1; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalDatamartDSL.g:824:4: otherlv_3= '{' (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? otherlv_21= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalDatamartDSL.g:828:4: (otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==32) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalDatamartDSL.g:829:5: otherlv_4= 'navigation' otherlv_5= '{' ( (lv_navigations_6_0= ruleDatamartNavigation ) )* otherlv_7= '}' |
| { |
| otherlv_4=(Token)match(input,32,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDatamartEntityAccess().getNavigationKeyword_3_1_0()); |
| |
| } |
| otherlv_5=(Token)match(input,14,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_1_1()); |
| |
| } |
| // InternalDatamartDSL.g:837:5: ( (lv_navigations_6_0= ruleDatamartNavigation ) )* |
| loop15: |
| do { |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==36||LA15_0==38) ) { |
| alt15=1; |
| } |
| |
| |
| switch (alt15) { |
| case 1 : |
| // InternalDatamartDSL.g:838:6: (lv_navigations_6_0= ruleDatamartNavigation ) |
| { |
| // InternalDatamartDSL.g:838:6: (lv_navigations_6_0= ruleDatamartNavigation ) |
| // InternalDatamartDSL.g:839:7: lv_navigations_6_0= ruleDatamartNavigation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartEntityAccess().getNavigationsDatamartNavigationParserRuleCall_3_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_24); |
| lv_navigations_6_0=ruleDatamartNavigation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartEntityRule()); |
| } |
| add( |
| current, |
| "navigations", |
| lv_navigations_6_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartNavigation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop15; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,15,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:861:4: ( (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) | ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) )? |
| int alt18=3; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==33) ) { |
| alt18=1; |
| } |
| else if ( (LA18_0==34) ) { |
| alt18=2; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalDatamartDSL.g:862:5: (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) |
| { |
| // InternalDatamartDSL.g:862:5: (otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' ) |
| // InternalDatamartDSL.g:863:6: otherlv_8= 'attributes' otherlv_9= '{' ( (lv_attributes_10_0= ruleDatamartAttribute ) )* otherlv_11= '}' |
| { |
| otherlv_8=(Token)match(input,33,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDatamartEntityAccess().getAttributesKeyword_3_2_0_0()); |
| |
| } |
| otherlv_9=(Token)match(input,14,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_2_0_1()); |
| |
| } |
| // InternalDatamartDSL.g:871:6: ( (lv_attributes_10_0= ruleDatamartAttribute ) )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==40) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalDatamartDSL.g:872:7: (lv_attributes_10_0= ruleDatamartAttribute ) |
| { |
| // InternalDatamartDSL.g:872:7: (lv_attributes_10_0= ruleDatamartAttribute ) |
| // InternalDatamartDSL.g:873:8: lv_attributes_10_0= ruleDatamartAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartEntityAccess().getAttributesDatamartAttributeParserRuleCall_3_2_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| lv_attributes_10_0=ruleDatamartAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartEntityRule()); |
| } |
| add( |
| current, |
| "attributes", |
| lv_attributes_10_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| otherlv_11=(Token)match(input,15,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_2_0_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:896:5: ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) |
| { |
| // InternalDatamartDSL.g:896:5: ( (lv_suppressAttributes_12_0= 'suppressAttributes' ) ) |
| // InternalDatamartDSL.g:897:6: (lv_suppressAttributes_12_0= 'suppressAttributes' ) |
| { |
| // InternalDatamartDSL.g:897:6: (lv_suppressAttributes_12_0= 'suppressAttributes' ) |
| // InternalDatamartDSL.g:898:7: lv_suppressAttributes_12_0= 'suppressAttributes' |
| { |
| lv_suppressAttributes_12_0=(Token)match(input,34,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_suppressAttributes_12_0, grammarAccess.getDatamartEntityAccess().getSuppressAttributesSuppressAttributesKeyword_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartEntityRule()); |
| } |
| setWithLastConsumed(current, "suppressAttributes", true, "suppressAttributes"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:911:4: (otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==24) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalDatamartDSL.g:912:5: otherlv_13= 'conditions' otherlv_14= '{' ( (lv_conditions_15_0= ruleDatamartCondition ) )* otherlv_16= '}' |
| { |
| otherlv_13=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getDatamartEntityAccess().getConditionsKeyword_3_3_0()); |
| |
| } |
| otherlv_14=(Token)match(input,14,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_3_1()); |
| |
| } |
| // InternalDatamartDSL.g:920:5: ( (lv_conditions_15_0= ruleDatamartCondition ) )* |
| loop19: |
| do { |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==47) ) { |
| alt19=1; |
| } |
| |
| |
| switch (alt19) { |
| case 1 : |
| // InternalDatamartDSL.g:921:6: (lv_conditions_15_0= ruleDatamartCondition ) |
| { |
| // InternalDatamartDSL.g:921:6: (lv_conditions_15_0= ruleDatamartCondition ) |
| // InternalDatamartDSL.g:922:7: lv_conditions_15_0= ruleDatamartCondition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartEntityAccess().getConditionsDatamartConditionParserRuleCall_3_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| lv_conditions_15_0=ruleDatamartCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartEntityRule()); |
| } |
| add( |
| current, |
| "conditions", |
| lv_conditions_15_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartCondition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop19; |
| } |
| } while (true); |
| |
| otherlv_16=(Token)match(input,15,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:944:4: (otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==35) ) { |
| alt22=1; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalDatamartDSL.g:945:5: otherlv_17= 'ordering' otherlv_18= '{' ( (lv_ordering_19_0= ruleDatamartOrder ) )* otherlv_20= '}' |
| { |
| otherlv_17=(Token)match(input,35,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getDatamartEntityAccess().getOrderingKeyword_3_4_0()); |
| |
| } |
| otherlv_18=(Token)match(input,14,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_18, grammarAccess.getDatamartEntityAccess().getLeftCurlyBracketKeyword_3_4_1()); |
| |
| } |
| // InternalDatamartDSL.g:953:5: ( (lv_ordering_19_0= ruleDatamartOrder ) )* |
| loop21: |
| do { |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==48) ) { |
| alt21=1; |
| } |
| |
| |
| switch (alt21) { |
| case 1 : |
| // InternalDatamartDSL.g:954:6: (lv_ordering_19_0= ruleDatamartOrder ) |
| { |
| // InternalDatamartDSL.g:954:6: (lv_ordering_19_0= ruleDatamartOrder ) |
| // InternalDatamartDSL.g:955:7: lv_ordering_19_0= ruleDatamartOrder |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartEntityAccess().getOrderingDatamartOrderParserRuleCall_3_4_2_0()); |
| |
| } |
| pushFollow(FOLLOW_29); |
| lv_ordering_19_0=ruleDatamartOrder(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartEntityRule()); |
| } |
| add( |
| current, |
| "ordering", |
| lv_ordering_19_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartOrder"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop21; |
| } |
| } while (true); |
| |
| otherlv_20=(Token)match(input,15,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_4_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_21=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_21, grammarAccess.getDatamartEntityAccess().getRightCurlyBracketKeyword_3_5()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartEntity" |
| |
| |
| // $ANTLR start "entryRuleDatamartNavigation" |
| // InternalDatamartDSL.g:986:1: entryRuleDatamartNavigation returns [EObject current=null] : iv_ruleDatamartNavigation= ruleDatamartNavigation EOF ; |
| public final EObject entryRuleDatamartNavigation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartNavigation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:986:59: (iv_ruleDatamartNavigation= ruleDatamartNavigation EOF ) |
| // InternalDatamartDSL.g:987:2: iv_ruleDatamartNavigation= ruleDatamartNavigation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartNavigationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartNavigation=ruleDatamartNavigation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartNavigation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartNavigation" |
| |
| |
| // $ANTLR start "ruleDatamartNavigation" |
| // InternalDatamartDSL.g:993:1: ruleDatamartNavigation returns [EObject current=null] : (this_DatamartOwner_0= ruleDatamartOwner | this_DatamartMember_1= ruleDatamartMember ) ; |
| public final EObject ruleDatamartNavigation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartOwner_0 = null; |
| |
| EObject this_DatamartMember_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:999:2: ( (this_DatamartOwner_0= ruleDatamartOwner | this_DatamartMember_1= ruleDatamartMember ) ) |
| // InternalDatamartDSL.g:1000:2: (this_DatamartOwner_0= ruleDatamartOwner | this_DatamartMember_1= ruleDatamartMember ) |
| { |
| // InternalDatamartDSL.g:1000:2: (this_DatamartOwner_0= ruleDatamartOwner | this_DatamartMember_1= ruleDatamartMember ) |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==36) ) { |
| alt24=1; |
| } |
| else if ( (LA24_0==38) ) { |
| alt24=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 24, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalDatamartDSL.g:1001:3: this_DatamartOwner_0= ruleDatamartOwner |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNavigationAccess().getDatamartOwnerParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartOwner_0=ruleDatamartOwner(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartOwner_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:1010:3: this_DatamartMember_1= ruleDatamartMember |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNavigationAccess().getDatamartMemberParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartMember_1=ruleDatamartMember(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartMember_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartNavigation" |
| |
| |
| // $ANTLR start "entryRuleDatamartOwner" |
| // InternalDatamartDSL.g:1022:1: entryRuleDatamartOwner returns [EObject current=null] : iv_ruleDatamartOwner= ruleDatamartOwner EOF ; |
| public final EObject entryRuleDatamartOwner() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartOwner = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1022:54: (iv_ruleDatamartOwner= ruleDatamartOwner EOF ) |
| // InternalDatamartDSL.g:1023:2: iv_ruleDatamartOwner= ruleDatamartOwner EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartOwnerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartOwner=ruleDatamartOwner(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartOwner; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartOwner" |
| |
| |
| // $ANTLR start "ruleDatamartOwner" |
| // InternalDatamartDSL.g:1029:1: ruleDatamartOwner returns [EObject current=null] : (otherlv_0= 'many2one' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) ; |
| public final EObject ruleDatamartOwner() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject lv_joinRef_1_0 = null; |
| |
| EObject lv_datamartEntity_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1035:2: ( (otherlv_0= 'many2one' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) ) |
| // InternalDatamartDSL.g:1036:2: (otherlv_0= 'many2one' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) |
| { |
| // InternalDatamartDSL.g:1036:2: (otherlv_0= 'many2one' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) |
| // InternalDatamartDSL.g:1037:3: otherlv_0= 'many2one' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) |
| { |
| otherlv_0=(Token)match(input,36,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartOwnerAccess().getMany2oneKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1041:3: ( (lv_joinRef_1_0= ruleDatamartReference ) ) |
| // InternalDatamartDSL.g:1042:4: (lv_joinRef_1_0= ruleDatamartReference ) |
| { |
| // InternalDatamartDSL.g:1042:4: (lv_joinRef_1_0= ruleDatamartReference ) |
| // InternalDatamartDSL.g:1043:5: lv_joinRef_1_0= ruleDatamartReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartOwnerAccess().getJoinRefDatamartReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| lv_joinRef_1_0=ruleDatamartReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartOwnerRule()); |
| } |
| set( |
| current, |
| "joinRef", |
| lv_joinRef_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,37,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartOwnerAccess().getToKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:1064:3: ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) |
| // InternalDatamartDSL.g:1065:4: (lv_datamartEntity_3_0= ruleDatamartEntity ) |
| { |
| // InternalDatamartDSL.g:1065:4: (lv_datamartEntity_3_0= ruleDatamartEntity ) |
| // InternalDatamartDSL.g:1066:5: lv_datamartEntity_3_0= ruleDatamartEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartOwnerAccess().getDatamartEntityDatamartEntityParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_datamartEntity_3_0=ruleDatamartEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartOwnerRule()); |
| } |
| set( |
| current, |
| "datamartEntity", |
| lv_datamartEntity_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartEntity"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartOwner" |
| |
| |
| // $ANTLR start "entryRuleDatamartMember" |
| // InternalDatamartDSL.g:1087:1: entryRuleDatamartMember returns [EObject current=null] : iv_ruleDatamartMember= ruleDatamartMember EOF ; |
| public final EObject entryRuleDatamartMember() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartMember = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1087:55: (iv_ruleDatamartMember= ruleDatamartMember EOF ) |
| // InternalDatamartDSL.g:1088:2: iv_ruleDatamartMember= ruleDatamartMember EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartMemberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartMember=ruleDatamartMember(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartMember; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartMember" |
| |
| |
| // $ANTLR start "ruleDatamartMember" |
| // InternalDatamartDSL.g:1094:1: ruleDatamartMember returns [EObject current=null] : (otherlv_0= 'one2many' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) ; |
| public final EObject ruleDatamartMember() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject lv_joinRef_1_0 = null; |
| |
| EObject lv_datamartEntity_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1100:2: ( (otherlv_0= 'one2many' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) ) |
| // InternalDatamartDSL.g:1101:2: (otherlv_0= 'one2many' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) |
| { |
| // InternalDatamartDSL.g:1101:2: (otherlv_0= 'one2many' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) ) |
| // InternalDatamartDSL.g:1102:3: otherlv_0= 'one2many' ( (lv_joinRef_1_0= ruleDatamartReference ) ) otherlv_2= 'to' ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) |
| { |
| otherlv_0=(Token)match(input,38,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartMemberAccess().getOne2manyKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1106:3: ( (lv_joinRef_1_0= ruleDatamartReference ) ) |
| // InternalDatamartDSL.g:1107:4: (lv_joinRef_1_0= ruleDatamartReference ) |
| { |
| // InternalDatamartDSL.g:1107:4: (lv_joinRef_1_0= ruleDatamartReference ) |
| // InternalDatamartDSL.g:1108:5: lv_joinRef_1_0= ruleDatamartReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberAccess().getJoinRefDatamartReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| lv_joinRef_1_0=ruleDatamartReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberRule()); |
| } |
| set( |
| current, |
| "joinRef", |
| lv_joinRef_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,37,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartMemberAccess().getToKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:1129:3: ( (lv_datamartEntity_3_0= ruleDatamartEntity ) ) |
| // InternalDatamartDSL.g:1130:4: (lv_datamartEntity_3_0= ruleDatamartEntity ) |
| { |
| // InternalDatamartDSL.g:1130:4: (lv_datamartEntity_3_0= ruleDatamartEntity ) |
| // InternalDatamartDSL.g:1131:5: lv_datamartEntity_3_0= ruleDatamartEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberAccess().getDatamartEntityDatamartEntityParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_datamartEntity_3_0=ruleDatamartEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberRule()); |
| } |
| set( |
| current, |
| "datamartEntity", |
| lv_datamartEntity_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartEntity"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartMember" |
| |
| |
| // $ANTLR start "entryRuleDatamartAxis" |
| // InternalDatamartDSL.g:1152:1: entryRuleDatamartAxis returns [EObject current=null] : iv_ruleDatamartAxis= ruleDatamartAxis EOF ; |
| public final EObject entryRuleDatamartAxis() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAxis = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1152:53: (iv_ruleDatamartAxis= ruleDatamartAxis EOF ) |
| // InternalDatamartDSL.g:1153:2: iv_ruleDatamartAxis= ruleDatamartAxis EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAxisRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAxis=ruleDatamartAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAxis; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAxis" |
| |
| |
| // $ANTLR start "ruleDatamartAxis" |
| // InternalDatamartDSL.g:1159:1: ruleDatamartAxis returns [EObject current=null] : (otherlv_0= 'axis' ( (lv_name_1_0= ruleAxisEnum ) ) ) ; |
| public final EObject ruleDatamartAxis() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Enumerator lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1165:2: ( (otherlv_0= 'axis' ( (lv_name_1_0= ruleAxisEnum ) ) ) ) |
| // InternalDatamartDSL.g:1166:2: (otherlv_0= 'axis' ( (lv_name_1_0= ruleAxisEnum ) ) ) |
| { |
| // InternalDatamartDSL.g:1166:2: (otherlv_0= 'axis' ( (lv_name_1_0= ruleAxisEnum ) ) ) |
| // InternalDatamartDSL.g:1167:3: otherlv_0= 'axis' ( (lv_name_1_0= ruleAxisEnum ) ) |
| { |
| otherlv_0=(Token)match(input,39,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartAxisAccess().getAxisKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1171:3: ( (lv_name_1_0= ruleAxisEnum ) ) |
| // InternalDatamartDSL.g:1172:4: (lv_name_1_0= ruleAxisEnum ) |
| { |
| // InternalDatamartDSL.g:1172:4: (lv_name_1_0= ruleAxisEnum ) |
| // InternalDatamartDSL.g:1173:5: lv_name_1_0= ruleAxisEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAxisAccess().getNameAxisEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleAxisEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAxisRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.AxisEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAxis" |
| |
| |
| // $ANTLR start "entryRuleDatamartAttributeBase" |
| // InternalDatamartDSL.g:1194:1: entryRuleDatamartAttributeBase returns [EObject current=null] : iv_ruleDatamartAttributeBase= ruleDatamartAttributeBase EOF ; |
| public final EObject entryRuleDatamartAttributeBase() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAttributeBase = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1194:62: (iv_ruleDatamartAttributeBase= ruleDatamartAttributeBase EOF ) |
| // InternalDatamartDSL.g:1195:2: iv_ruleDatamartAttributeBase= ruleDatamartAttributeBase EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAttributeBaseRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAttributeBase=ruleDatamartAttributeBase(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAttributeBase; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAttributeBase" |
| |
| |
| // $ANTLR start "ruleDatamartAttributeBase" |
| // InternalDatamartDSL.g:1201:1: ruleDatamartAttributeBase returns [EObject current=null] : (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleDatamartAttributeBase() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1207:2: ( (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDatamartDSL.g:1208:2: (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDatamartDSL.g:1208:2: (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDatamartDSL.g:1209:3: otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,40,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartAttributeBaseAccess().getAttributeKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1213:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:1214:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:1214:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:1215:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeBaseRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartAttributeBaseAccess().getAttributeRefLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAttributeBase" |
| |
| |
| // $ANTLR start "entryRuleDatamartReferenceBase" |
| // InternalDatamartDSL.g:1230:1: entryRuleDatamartReferenceBase returns [EObject current=null] : iv_ruleDatamartReferenceBase= ruleDatamartReferenceBase EOF ; |
| public final EObject entryRuleDatamartReferenceBase() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartReferenceBase = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1230:62: (iv_ruleDatamartReferenceBase= ruleDatamartReferenceBase EOF ) |
| // InternalDatamartDSL.g:1231:2: iv_ruleDatamartReferenceBase= ruleDatamartReferenceBase EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartReferenceBaseRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartReferenceBase=ruleDatamartReferenceBase(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartReferenceBase; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartReferenceBase" |
| |
| |
| // $ANTLR start "ruleDatamartReferenceBase" |
| // InternalDatamartDSL.g:1237:1: ruleDatamartReferenceBase returns [EObject current=null] : (otherlv_0= 'reference' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleDatamartReferenceBase() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1243:2: ( (otherlv_0= 'reference' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalDatamartDSL.g:1244:2: (otherlv_0= 'reference' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalDatamartDSL.g:1244:2: (otherlv_0= 'reference' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalDatamartDSL.g:1245:3: otherlv_0= 'reference' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,41,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartReferenceBaseAccess().getReferenceKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1249:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:1250:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:1250:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:1251:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartReferenceBaseRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartReferenceBaseAccess().getReferenceRefLEntityReferenceCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartReferenceBase" |
| |
| |
| // $ANTLR start "entryRuleDatamartAttribute" |
| // InternalDatamartDSL.g:1266:1: entryRuleDatamartAttribute returns [EObject current=null] : iv_ruleDatamartAttribute= ruleDatamartAttribute EOF ; |
| public final EObject entryRuleDatamartAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAttribute = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1266:58: (iv_ruleDatamartAttribute= ruleDatamartAttribute EOF ) |
| // InternalDatamartDSL.g:1267:2: iv_ruleDatamartAttribute= ruleDatamartAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAttribute=ruleDatamartAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAttribute" |
| |
| |
| // $ANTLR start "ruleDatamartAttribute" |
| // InternalDatamartDSL.g:1273:1: ruleDatamartAttribute returns [EObject current=null] : (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? ( (lv_axis_4_0= ruleDatamartAxis ) ) ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleDatamartAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_aliased_2_0=null; |
| Token lv_hasColumnWeight_5_0=null; |
| Token lv_columnWeight_6_0=null; |
| Token lv_aggregated_8_0=null; |
| Token lv_scaled_10_0=null; |
| Token lv_distinct_12_0=null; |
| AntlrDatatypeRuleToken lv_aliasName_3_0 = null; |
| |
| EObject lv_axis_4_0 = null; |
| |
| Enumerator lv_aggregate_9_0 = null; |
| |
| Enumerator lv_scale_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1279:2: ( (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? ( (lv_axis_4_0= ruleDatamartAxis ) ) ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) ) ) |
| // InternalDatamartDSL.g:1280:2: (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? ( (lv_axis_4_0= ruleDatamartAxis ) ) ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalDatamartDSL.g:1280:2: (otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? ( (lv_axis_4_0= ruleDatamartAxis ) ) ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) ) |
| // InternalDatamartDSL.g:1281:3: otherlv_0= 'attribute' ( (otherlv_1= RULE_ID ) ) ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? ( (lv_axis_4_0= ruleDatamartAxis ) ) ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) |
| { |
| otherlv_0=(Token)match(input,40,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartAttributeAccess().getAttributeKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1285:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:1286:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:1286:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:1287:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartAttributeAccess().getAttributeRefLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1298:3: ( ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) )? |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==42) ) { |
| alt25=1; |
| } |
| switch (alt25) { |
| case 1 : |
| // InternalDatamartDSL.g:1299:4: ( (lv_aliased_2_0= 'alias' ) ) ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) |
| { |
| // InternalDatamartDSL.g:1299:4: ( (lv_aliased_2_0= 'alias' ) ) |
| // InternalDatamartDSL.g:1300:5: (lv_aliased_2_0= 'alias' ) |
| { |
| // InternalDatamartDSL.g:1300:5: (lv_aliased_2_0= 'alias' ) |
| // InternalDatamartDSL.g:1301:6: lv_aliased_2_0= 'alias' |
| { |
| lv_aliased_2_0=(Token)match(input,42,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_aliased_2_0, grammarAccess.getDatamartAttributeAccess().getAliasedAliasKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed(current, "aliased", true, "alias"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1313:4: ( (lv_aliasName_3_0= ruleTRANSLATABLEID ) ) |
| // InternalDatamartDSL.g:1314:5: (lv_aliasName_3_0= ruleTRANSLATABLEID ) |
| { |
| // InternalDatamartDSL.g:1314:5: (lv_aliasName_3_0= ruleTRANSLATABLEID ) |
| // InternalDatamartDSL.g:1315:6: lv_aliasName_3_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAliasNameTRANSLATABLEIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| lv_aliasName_3_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAttributeRule()); |
| } |
| set( |
| current, |
| "aliasName", |
| lv_aliasName_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:1333:3: ( (lv_axis_4_0= ruleDatamartAxis ) ) |
| // InternalDatamartDSL.g:1334:4: (lv_axis_4_0= ruleDatamartAxis ) |
| { |
| // InternalDatamartDSL.g:1334:4: (lv_axis_4_0= ruleDatamartAxis ) |
| // InternalDatamartDSL.g:1335:5: lv_axis_4_0= ruleDatamartAxis |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAxisDatamartAxisParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| lv_axis_4_0=ruleDatamartAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAttributeRule()); |
| } |
| set( |
| current, |
| "axis", |
| lv_axis_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAxis"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1352:3: ( ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==43) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalDatamartDSL.g:1353:4: ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) ( (lv_columnWeight_6_0= RULE_INT ) ) |
| { |
| // InternalDatamartDSL.g:1353:4: ( (lv_hasColumnWeight_5_0= 'columnWeight' ) ) |
| // InternalDatamartDSL.g:1354:5: (lv_hasColumnWeight_5_0= 'columnWeight' ) |
| { |
| // InternalDatamartDSL.g:1354:5: (lv_hasColumnWeight_5_0= 'columnWeight' ) |
| // InternalDatamartDSL.g:1355:6: lv_hasColumnWeight_5_0= 'columnWeight' |
| { |
| lv_hasColumnWeight_5_0=(Token)match(input,43,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasColumnWeight_5_0, grammarAccess.getDatamartAttributeAccess().getHasColumnWeightColumnWeightKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed(current, "hasColumnWeight", true, "columnWeight"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1367:4: ( (lv_columnWeight_6_0= RULE_INT ) ) |
| // InternalDatamartDSL.g:1368:5: (lv_columnWeight_6_0= RULE_INT ) |
| { |
| // InternalDatamartDSL.g:1368:5: (lv_columnWeight_6_0= RULE_INT ) |
| // InternalDatamartDSL.g:1369:6: lv_columnWeight_6_0= RULE_INT |
| { |
| lv_columnWeight_6_0=(Token)match(input,RULE_INT,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_columnWeight_6_0, grammarAccess.getDatamartAttributeAccess().getColumnWeightINTTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "columnWeight", |
| lv_columnWeight_6_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:1386:3: ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) ) |
| // InternalDatamartDSL.g:1387:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) |
| { |
| // InternalDatamartDSL.g:1387:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) ) |
| // InternalDatamartDSL.g:1388:5: ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5()); |
| // InternalDatamartDSL.g:1391:5: ( ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* ) |
| // InternalDatamartDSL.g:1392:6: ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* |
| { |
| // InternalDatamartDSL.g:1392:6: ( ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) )* |
| loop27: |
| do { |
| int alt27=4; |
| int LA27_0 = input.LA(1); |
| |
| if ( LA27_0 == 44 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0) ) { |
| alt27=1; |
| } |
| else if ( LA27_0 == 45 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1) ) { |
| alt27=2; |
| } |
| else if ( LA27_0 == 46 && getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 2) ) { |
| alt27=3; |
| } |
| |
| |
| switch (alt27) { |
| case 1 : |
| // InternalDatamartDSL.g:1393:4: ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:1393:4: ({...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) ) |
| // InternalDatamartDSL.g:1394:5: {...}? => ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0)"); |
| } |
| // InternalDatamartDSL.g:1394:114: ( ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) ) |
| // InternalDatamartDSL.g:1395:6: ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 0); |
| // InternalDatamartDSL.g:1398:9: ({...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) ) |
| // InternalDatamartDSL.g:1398:10: {...}? => ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "true"); |
| } |
| // InternalDatamartDSL.g:1398:19: ( ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) ) |
| // InternalDatamartDSL.g:1398:20: ( (lv_aggregated_8_0= 'aggregate' ) ) ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) |
| { |
| // InternalDatamartDSL.g:1398:20: ( (lv_aggregated_8_0= 'aggregate' ) ) |
| // InternalDatamartDSL.g:1399:10: (lv_aggregated_8_0= 'aggregate' ) |
| { |
| // InternalDatamartDSL.g:1399:10: (lv_aggregated_8_0= 'aggregate' ) |
| // InternalDatamartDSL.g:1400:11: lv_aggregated_8_0= 'aggregate' |
| { |
| lv_aggregated_8_0=(Token)match(input,44,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_aggregated_8_0, grammarAccess.getDatamartAttributeAccess().getAggregatedAggregateKeyword_5_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed(current, "aggregated", true, "aggregate"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1412:9: ( (lv_aggregate_9_0= ruleSqlAggregationEnum ) ) |
| // InternalDatamartDSL.g:1413:10: (lv_aggregate_9_0= ruleSqlAggregationEnum ) |
| { |
| // InternalDatamartDSL.g:1413:10: (lv_aggregate_9_0= ruleSqlAggregationEnum ) |
| // InternalDatamartDSL.g:1414:11: lv_aggregate_9_0= ruleSqlAggregationEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAttributeAccess().getAggregateSqlAggregationEnumEnumRuleCall_5_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_aggregate_9_0=ruleSqlAggregationEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAttributeRule()); |
| } |
| set( |
| current, |
| "aggregate", |
| lv_aggregate_9_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SqlAggregationEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:1437:4: ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:1437:4: ({...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) ) |
| // InternalDatamartDSL.g:1438:5: {...}? => ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1)"); |
| } |
| // InternalDatamartDSL.g:1438:114: ( ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) ) |
| // InternalDatamartDSL.g:1439:6: ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 1); |
| // InternalDatamartDSL.g:1442:9: ({...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) ) |
| // InternalDatamartDSL.g:1442:10: {...}? => ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "true"); |
| } |
| // InternalDatamartDSL.g:1442:19: ( ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) ) |
| // InternalDatamartDSL.g:1442:20: ( (lv_scaled_10_0= 'scale' ) ) ( (lv_scale_11_0= ruleValueScaleEnum ) ) |
| { |
| // InternalDatamartDSL.g:1442:20: ( (lv_scaled_10_0= 'scale' ) ) |
| // InternalDatamartDSL.g:1443:10: (lv_scaled_10_0= 'scale' ) |
| { |
| // InternalDatamartDSL.g:1443:10: (lv_scaled_10_0= 'scale' ) |
| // InternalDatamartDSL.g:1444:11: lv_scaled_10_0= 'scale' |
| { |
| lv_scaled_10_0=(Token)match(input,45,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_scaled_10_0, grammarAccess.getDatamartAttributeAccess().getScaledScaleKeyword_5_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed(current, "scaled", true, "scale"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1456:9: ( (lv_scale_11_0= ruleValueScaleEnum ) ) |
| // InternalDatamartDSL.g:1457:10: (lv_scale_11_0= ruleValueScaleEnum ) |
| { |
| // InternalDatamartDSL.g:1457:10: (lv_scale_11_0= ruleValueScaleEnum ) |
| // InternalDatamartDSL.g:1458:11: lv_scale_11_0= ruleValueScaleEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAttributeAccess().getScaleValueScaleEnumEnumRuleCall_5_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_scale_11_0=ruleValueScaleEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAttributeRule()); |
| } |
| set( |
| current, |
| "scale", |
| lv_scale_11_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:1481:4: ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:1481:4: ({...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) ) |
| // InternalDatamartDSL.g:1482:5: {...}? => ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "getUnorderedGroupHelper().canSelect(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 2)"); |
| } |
| // InternalDatamartDSL.g:1482:114: ( ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) ) |
| // InternalDatamartDSL.g:1483:6: ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5(), 2); |
| // InternalDatamartDSL.g:1486:9: ({...}? => ( (lv_distinct_12_0= 'distinct' ) ) ) |
| // InternalDatamartDSL.g:1486:10: {...}? => ( (lv_distinct_12_0= 'distinct' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleDatamartAttribute", "true"); |
| } |
| // InternalDatamartDSL.g:1486:19: ( (lv_distinct_12_0= 'distinct' ) ) |
| // InternalDatamartDSL.g:1486:20: (lv_distinct_12_0= 'distinct' ) |
| { |
| // InternalDatamartDSL.g:1486:20: (lv_distinct_12_0= 'distinct' ) |
| // InternalDatamartDSL.g:1487:10: lv_distinct_12_0= 'distinct' |
| { |
| lv_distinct_12_0=(Token)match(input,46,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_distinct_12_0, grammarAccess.getDatamartAttributeAccess().getDistinctDistinctKeyword_5_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartAttributeRule()); |
| } |
| setWithLastConsumed(current, "distinct", true, "distinct"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop27; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getDatamartAttributeAccess().getUnorderedGroup_5()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAttribute" |
| |
| |
| // $ANTLR start "entryRuleDatamartCondition" |
| // InternalDatamartDSL.g:1515:1: entryRuleDatamartCondition returns [EObject current=null] : iv_ruleDatamartCondition= ruleDatamartCondition EOF ; |
| public final EObject entryRuleDatamartCondition() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartCondition = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1515:58: (iv_ruleDatamartCondition= ruleDatamartCondition EOF ) |
| // InternalDatamartDSL.g:1516:2: iv_ruleDatamartCondition= ruleDatamartCondition EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartConditionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartCondition=ruleDatamartCondition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartCondition; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartCondition" |
| |
| |
| // $ANTLR start "ruleDatamartCondition" |
| // InternalDatamartDSL.g:1522:1: ruleDatamartCondition returns [EObject current=null] : (otherlv_0= 'condition' ( (lv_condition_1_0= ruleDatamartDisjunction ) ) ) ; |
| public final EObject ruleDatamartCondition() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_condition_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1528:2: ( (otherlv_0= 'condition' ( (lv_condition_1_0= ruleDatamartDisjunction ) ) ) ) |
| // InternalDatamartDSL.g:1529:2: (otherlv_0= 'condition' ( (lv_condition_1_0= ruleDatamartDisjunction ) ) ) |
| { |
| // InternalDatamartDSL.g:1529:2: (otherlv_0= 'condition' ( (lv_condition_1_0= ruleDatamartDisjunction ) ) ) |
| // InternalDatamartDSL.g:1530:3: otherlv_0= 'condition' ( (lv_condition_1_0= ruleDatamartDisjunction ) ) |
| { |
| otherlv_0=(Token)match(input,47,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartConditionAccess().getConditionKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1534:3: ( (lv_condition_1_0= ruleDatamartDisjunction ) ) |
| // InternalDatamartDSL.g:1535:4: (lv_condition_1_0= ruleDatamartDisjunction ) |
| { |
| // InternalDatamartDSL.g:1535:4: (lv_condition_1_0= ruleDatamartDisjunction ) |
| // InternalDatamartDSL.g:1536:5: lv_condition_1_0= ruleDatamartDisjunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConditionAccess().getConditionDatamartDisjunctionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_condition_1_0=ruleDatamartDisjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartConditionRule()); |
| } |
| set( |
| current, |
| "condition", |
| lv_condition_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartDisjunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartCondition" |
| |
| |
| // $ANTLR start "entryRuleDatamartOrder" |
| // InternalDatamartDSL.g:1557:1: entryRuleDatamartOrder returns [EObject current=null] : iv_ruleDatamartOrder= ruleDatamartOrder EOF ; |
| public final EObject entryRuleDatamartOrder() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartOrder = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1557:54: (iv_ruleDatamartOrder= ruleDatamartOrder EOF ) |
| // InternalDatamartDSL.g:1558:2: iv_ruleDatamartOrder= ruleDatamartOrder EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartOrderRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartOrder=ruleDatamartOrder(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartOrder; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartOrder" |
| |
| |
| // $ANTLR start "ruleDatamartOrder" |
| // InternalDatamartDSL.g:1564:1: ruleDatamartOrder returns [EObject current=null] : (otherlv_0= 'order' ( (otherlv_1= RULE_ID ) ) ( (lv_orderHow_2_0= ruleOrderEnum ) ) ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? ) ; |
| public final EObject ruleDatamartOrder() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_hasColumnWeight_3_0=null; |
| Token lv_columnWeight_4_0=null; |
| Enumerator lv_orderHow_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1570:2: ( (otherlv_0= 'order' ( (otherlv_1= RULE_ID ) ) ( (lv_orderHow_2_0= ruleOrderEnum ) ) ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? ) ) |
| // InternalDatamartDSL.g:1571:2: (otherlv_0= 'order' ( (otherlv_1= RULE_ID ) ) ( (lv_orderHow_2_0= ruleOrderEnum ) ) ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? ) |
| { |
| // InternalDatamartDSL.g:1571:2: (otherlv_0= 'order' ( (otherlv_1= RULE_ID ) ) ( (lv_orderHow_2_0= ruleOrderEnum ) ) ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? ) |
| // InternalDatamartDSL.g:1572:3: otherlv_0= 'order' ( (otherlv_1= RULE_ID ) ) ( (lv_orderHow_2_0= ruleOrderEnum ) ) ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? |
| { |
| otherlv_0=(Token)match(input,48,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartOrderAccess().getOrderKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:1576:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:1577:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:1577:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:1578:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartOrderRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartOrderAccess().getOrderByLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1589:3: ( (lv_orderHow_2_0= ruleOrderEnum ) ) |
| // InternalDatamartDSL.g:1590:4: (lv_orderHow_2_0= ruleOrderEnum ) |
| { |
| // InternalDatamartDSL.g:1590:4: (lv_orderHow_2_0= ruleOrderEnum ) |
| // InternalDatamartDSL.g:1591:5: lv_orderHow_2_0= ruleOrderEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartOrderAccess().getOrderHowOrderEnumEnumRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| lv_orderHow_2_0=ruleOrderEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartOrderRule()); |
| } |
| set( |
| current, |
| "orderHow", |
| lv_orderHow_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.OrderEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1608:3: ( ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) )? |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==43) ) { |
| alt28=1; |
| } |
| switch (alt28) { |
| case 1 : |
| // InternalDatamartDSL.g:1609:4: ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) ( (lv_columnWeight_4_0= RULE_INT ) ) |
| { |
| // InternalDatamartDSL.g:1609:4: ( (lv_hasColumnWeight_3_0= 'columnWeight' ) ) |
| // InternalDatamartDSL.g:1610:5: (lv_hasColumnWeight_3_0= 'columnWeight' ) |
| { |
| // InternalDatamartDSL.g:1610:5: (lv_hasColumnWeight_3_0= 'columnWeight' ) |
| // InternalDatamartDSL.g:1611:6: lv_hasColumnWeight_3_0= 'columnWeight' |
| { |
| lv_hasColumnWeight_3_0=(Token)match(input,43,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasColumnWeight_3_0, grammarAccess.getDatamartOrderAccess().getHasColumnWeightColumnWeightKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartOrderRule()); |
| } |
| setWithLastConsumed(current, "hasColumnWeight", true, "columnWeight"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1623:4: ( (lv_columnWeight_4_0= RULE_INT ) ) |
| // InternalDatamartDSL.g:1624:5: (lv_columnWeight_4_0= RULE_INT ) |
| { |
| // InternalDatamartDSL.g:1624:5: (lv_columnWeight_4_0= RULE_INT ) |
| // InternalDatamartDSL.g:1625:6: lv_columnWeight_4_0= RULE_INT |
| { |
| lv_columnWeight_4_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_columnWeight_4_0, grammarAccess.getDatamartOrderAccess().getColumnWeightINTTerminalRuleCall_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartOrderRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "columnWeight", |
| lv_columnWeight_4_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartOrder" |
| |
| |
| // $ANTLR start "entryRuleDatamartDisjunction" |
| // InternalDatamartDSL.g:1646:1: entryRuleDatamartDisjunction returns [EObject current=null] : iv_ruleDatamartDisjunction= ruleDatamartDisjunction EOF ; |
| public final EObject entryRuleDatamartDisjunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartDisjunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1646:60: (iv_ruleDatamartDisjunction= ruleDatamartDisjunction EOF ) |
| // InternalDatamartDSL.g:1647:2: iv_ruleDatamartDisjunction= ruleDatamartDisjunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartDisjunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartDisjunction=ruleDatamartDisjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartDisjunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartDisjunction" |
| |
| |
| // $ANTLR start "ruleDatamartDisjunction" |
| // InternalDatamartDSL.g:1653:1: ruleDatamartDisjunction returns [EObject current=null] : (this_DatamartConjunction_0= ruleDatamartConjunction ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* ) ; |
| public final EObject ruleDatamartDisjunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_DatamartConjunction_0 = null; |
| |
| EObject lv_right_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1659:2: ( (this_DatamartConjunction_0= ruleDatamartConjunction ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* ) ) |
| // InternalDatamartDSL.g:1660:2: (this_DatamartConjunction_0= ruleDatamartConjunction ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* ) |
| { |
| // InternalDatamartDSL.g:1660:2: (this_DatamartConjunction_0= ruleDatamartConjunction ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* ) |
| // InternalDatamartDSL.g:1661:3: this_DatamartConjunction_0= ruleDatamartConjunction ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDisjunctionAccess().getDatamartConjunctionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| this_DatamartConjunction_0=ruleDatamartConjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartConjunction_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:1669:3: ( ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) )* |
| loop29: |
| do { |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==49) ) { |
| alt29=1; |
| } |
| |
| |
| switch (alt29) { |
| case 1 : |
| // InternalDatamartDSL.g:1670:4: ( () otherlv_2= 'or' ) ( (lv_right_3_0= ruleDatamartConjunction ) ) |
| { |
| // InternalDatamartDSL.g:1670:4: ( () otherlv_2= 'or' ) |
| // InternalDatamartDSL.g:1671:5: () otherlv_2= 'or' |
| { |
| // InternalDatamartDSL.g:1671:5: () |
| // InternalDatamartDSL.g:1672:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartDisjunctionAccess().getDisjunctionLeftAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,49,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartDisjunctionAccess().getOrKeyword_1_0_1()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:1683:4: ( (lv_right_3_0= ruleDatamartConjunction ) ) |
| // InternalDatamartDSL.g:1684:5: (lv_right_3_0= ruleDatamartConjunction ) |
| { |
| // InternalDatamartDSL.g:1684:5: (lv_right_3_0= ruleDatamartConjunction ) |
| // InternalDatamartDSL.g:1685:6: lv_right_3_0= ruleDatamartConjunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDisjunctionAccess().getRightDatamartConjunctionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| lv_right_3_0=ruleDatamartConjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDisjunctionRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartConjunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop29; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartDisjunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartConjunction" |
| // InternalDatamartDSL.g:1707:1: entryRuleDatamartConjunction returns [EObject current=null] : iv_ruleDatamartConjunction= ruleDatamartConjunction EOF ; |
| public final EObject entryRuleDatamartConjunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartConjunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1707:60: (iv_ruleDatamartConjunction= ruleDatamartConjunction EOF ) |
| // InternalDatamartDSL.g:1708:2: iv_ruleDatamartConjunction= ruleDatamartConjunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartConjunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartConjunction=ruleDatamartConjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartConjunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartConjunction" |
| |
| |
| // $ANTLR start "ruleDatamartConjunction" |
| // InternalDatamartDSL.g:1714:1: ruleDatamartConjunction returns [EObject current=null] : (this_DatamartConditionalExpression_0= ruleDatamartConditionalExpression ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* ) ; |
| public final EObject ruleDatamartConjunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_DatamartConditionalExpression_0 = null; |
| |
| EObject lv_right_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1720:2: ( (this_DatamartConditionalExpression_0= ruleDatamartConditionalExpression ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:1721:2: (this_DatamartConditionalExpression_0= ruleDatamartConditionalExpression ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:1721:2: (this_DatamartConditionalExpression_0= ruleDatamartConditionalExpression ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* ) |
| // InternalDatamartDSL.g:1722:3: this_DatamartConditionalExpression_0= ruleDatamartConditionalExpression ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConjunctionAccess().getDatamartConditionalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| this_DatamartConditionalExpression_0=ruleDatamartConditionalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartConditionalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:1730:3: ( ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) )* |
| loop30: |
| do { |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==50) ) { |
| alt30=1; |
| } |
| |
| |
| switch (alt30) { |
| case 1 : |
| // InternalDatamartDSL.g:1731:4: ( () otherlv_2= 'and' ) ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) |
| { |
| // InternalDatamartDSL.g:1731:4: ( () otherlv_2= 'and' ) |
| // InternalDatamartDSL.g:1732:5: () otherlv_2= 'and' |
| { |
| // InternalDatamartDSL.g:1732:5: () |
| // InternalDatamartDSL.g:1733:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartConjunctionAccess().getConjunctionLeftAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,50,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartConjunctionAccess().getAndKeyword_1_0_1()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:1744:4: ( (lv_right_3_0= ruleDatamartConditionalExpression ) ) |
| // InternalDatamartDSL.g:1745:5: (lv_right_3_0= ruleDatamartConditionalExpression ) |
| { |
| // InternalDatamartDSL.g:1745:5: (lv_right_3_0= ruleDatamartConditionalExpression ) |
| // InternalDatamartDSL.g:1746:6: lv_right_3_0= ruleDatamartConditionalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConjunctionAccess().getRightDatamartConditionalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_right_3_0=ruleDatamartConditionalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartConjunctionRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartConditionalExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop30; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartConjunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartConditionalExpression" |
| // InternalDatamartDSL.g:1768:1: entryRuleDatamartConditionalExpression returns [EObject current=null] : iv_ruleDatamartConditionalExpression= ruleDatamartConditionalExpression EOF ; |
| public final EObject entryRuleDatamartConditionalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartConditionalExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1768:70: (iv_ruleDatamartConditionalExpression= ruleDatamartConditionalExpression EOF ) |
| // InternalDatamartDSL.g:1769:2: iv_ruleDatamartConditionalExpression= ruleDatamartConditionalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartConditionalExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartConditionalExpression=ruleDatamartConditionalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartConditionalExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartConditionalExpression" |
| |
| |
| // $ANTLR start "ruleDatamartConditionalExpression" |
| // InternalDatamartDSL.g:1775:1: ruleDatamartConditionalExpression returns [EObject current=null] : (this_DatamartOperand_0= ruleDatamartOperand ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* ) ; |
| public final EObject ruleDatamartConditionalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartOperand_0 = null; |
| |
| Enumerator lv_operator_2_0 = null; |
| |
| EObject lv_right_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1781:2: ( (this_DatamartOperand_0= ruleDatamartOperand ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* ) ) |
| // InternalDatamartDSL.g:1782:2: (this_DatamartOperand_0= ruleDatamartOperand ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* ) |
| { |
| // InternalDatamartDSL.g:1782:2: (this_DatamartOperand_0= ruleDatamartOperand ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* ) |
| // InternalDatamartDSL.g:1783:3: this_DatamartOperand_0= ruleDatamartOperand ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getDatamartOperandParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_46); |
| this_DatamartOperand_0=ruleDatamartOperand(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartOperand_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:1791:3: ( ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) )* |
| loop31: |
| do { |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==88||(LA31_0>=97 && LA31_0<=99)||(LA31_0>=171 && LA31_0<=172)) ) { |
| alt31=1; |
| } |
| |
| |
| switch (alt31) { |
| case 1 : |
| // InternalDatamartDSL.g:1792:4: ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) ( (lv_right_3_0= ruleDatamartOperand ) ) |
| { |
| // InternalDatamartDSL.g:1792:4: ( () ( (lv_operator_2_0= ruleOperatorEnum ) ) ) |
| // InternalDatamartDSL.g:1793:5: () ( (lv_operator_2_0= ruleOperatorEnum ) ) |
| { |
| // InternalDatamartDSL.g:1793:5: () |
| // InternalDatamartDSL.g:1794:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartConditionalExpressionAccess().getConditionalExpressionLeftAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:1800:5: ( (lv_operator_2_0= ruleOperatorEnum ) ) |
| // InternalDatamartDSL.g:1801:6: (lv_operator_2_0= ruleOperatorEnum ) |
| { |
| // InternalDatamartDSL.g:1801:6: (lv_operator_2_0= ruleOperatorEnum ) |
| // InternalDatamartDSL.g:1802:7: lv_operator_2_0= ruleOperatorEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getOperatorOperatorEnumEnumRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_operator_2_0=ruleOperatorEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartConditionalExpressionRule()); |
| } |
| set( |
| current, |
| "operator", |
| lv_operator_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.OperatorEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1820:4: ( (lv_right_3_0= ruleDatamartOperand ) ) |
| // InternalDatamartDSL.g:1821:5: (lv_right_3_0= ruleDatamartOperand ) |
| { |
| // InternalDatamartDSL.g:1821:5: (lv_right_3_0= ruleDatamartOperand ) |
| // InternalDatamartDSL.g:1822:6: lv_right_3_0= ruleDatamartOperand |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartConditionalExpressionAccess().getRightDatamartOperandParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_46); |
| lv_right_3_0=ruleDatamartOperand(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartConditionalExpressionRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartOperand"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop31; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartConditionalExpression" |
| |
| |
| // $ANTLR start "entryRuleDatamartOperand" |
| // InternalDatamartDSL.g:1844:1: entryRuleDatamartOperand returns [EObject current=null] : iv_ruleDatamartOperand= ruleDatamartOperand EOF ; |
| public final EObject entryRuleDatamartOperand() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartOperand = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1844:56: (iv_ruleDatamartOperand= ruleDatamartOperand EOF ) |
| // InternalDatamartDSL.g:1845:2: iv_ruleDatamartOperand= ruleDatamartOperand EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartOperandRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartOperand=ruleDatamartOperand(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartOperand; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartOperand" |
| |
| |
| // $ANTLR start "ruleDatamartOperand" |
| // InternalDatamartDSL.g:1851:1: ruleDatamartOperand returns [EObject current=null] : (this_DatamartValue_0= ruleDatamartValue | (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) ) ; |
| public final EObject ruleDatamartOperand() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject this_DatamartValue_0 = null; |
| |
| EObject this_DatamartDisjunction_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1857:2: ( (this_DatamartValue_0= ruleDatamartValue | (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) ) ) |
| // InternalDatamartDSL.g:1858:2: (this_DatamartValue_0= ruleDatamartValue | (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) ) |
| { |
| // InternalDatamartDSL.g:1858:2: (this_DatamartValue_0= ruleDatamartValue | (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) ) |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( ((LA32_0>=RULE_INT && LA32_0<=RULE_DECIMAL)||(LA32_0>=25 && LA32_0<=26)||(LA32_0>=40 && LA32_0<=41)||LA32_0==53||(LA32_0>=55 && LA32_0<=57)) ) { |
| alt32=1; |
| } |
| else if ( (LA32_0==51) ) { |
| alt32=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 32, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalDatamartDSL.g:1859:3: this_DatamartValue_0= ruleDatamartValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartOperandAccess().getDatamartValueParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartValue_0=ruleDatamartValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartValue_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:1868:3: (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) |
| { |
| // InternalDatamartDSL.g:1868:3: (otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' ) |
| // InternalDatamartDSL.g:1869:4: otherlv_1= '(' this_DatamartDisjunction_2= ruleDatamartDisjunction otherlv_3= ')' |
| { |
| otherlv_1=(Token)match(input,51,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartOperandAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartOperandAccess().getDatamartDisjunctionParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| this_DatamartDisjunction_2=ruleDatamartDisjunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartDisjunction_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_3=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartOperandAccess().getRightParenthesisKeyword_1_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartOperand" |
| |
| |
| // $ANTLR start "entryRuleDatamartValue" |
| // InternalDatamartDSL.g:1890:1: entryRuleDatamartValue returns [EObject current=null] : iv_ruleDatamartValue= ruleDatamartValue EOF ; |
| public final EObject entryRuleDatamartValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartValue = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:1890:54: (iv_ruleDatamartValue= ruleDatamartValue EOF ) |
| // InternalDatamartDSL.g:1891:2: iv_ruleDatamartValue= ruleDatamartValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartValue=ruleDatamartValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartValue" |
| |
| |
| // $ANTLR start "ruleDatamartValue" |
| // InternalDatamartDSL.g:1897:1: ruleDatamartValue returns [EObject current=null] : ( ( (lv_numberValue_0_0= ruleNumber ) ) | ( (lv_stringValue_1_0= RULE_STRING ) ) | ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) | this_DatamartTaskFilter_7= ruleDatamartTaskFilter | this_DatamartColumn_8= ruleDatamartColumn | this_DatamartAttributeBase_9= ruleDatamartAttributeBase | this_DatamartReferenceBase_10= ruleDatamartReferenceBase ) ; |
| public final EObject ruleDatamartValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_stringValue_1_0=null; |
| Token lv_filtered_2_0=null; |
| Token lv_optional_3_0=null; |
| Token lv_selected_4_0=null; |
| Token lv_ranged_5_0=null; |
| Token lv_unreferenced_6_0=null; |
| AntlrDatatypeRuleToken lv_numberValue_0_0 = null; |
| |
| EObject this_DatamartTaskFilter_7 = null; |
| |
| EObject this_DatamartColumn_8 = null; |
| |
| EObject this_DatamartAttributeBase_9 = null; |
| |
| EObject this_DatamartReferenceBase_10 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:1903:2: ( ( ( (lv_numberValue_0_0= ruleNumber ) ) | ( (lv_stringValue_1_0= RULE_STRING ) ) | ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) | this_DatamartTaskFilter_7= ruleDatamartTaskFilter | this_DatamartColumn_8= ruleDatamartColumn | this_DatamartAttributeBase_9= ruleDatamartAttributeBase | this_DatamartReferenceBase_10= ruleDatamartReferenceBase ) ) |
| // InternalDatamartDSL.g:1904:2: ( ( (lv_numberValue_0_0= ruleNumber ) ) | ( (lv_stringValue_1_0= RULE_STRING ) ) | ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) | this_DatamartTaskFilter_7= ruleDatamartTaskFilter | this_DatamartColumn_8= ruleDatamartColumn | this_DatamartAttributeBase_9= ruleDatamartAttributeBase | this_DatamartReferenceBase_10= ruleDatamartReferenceBase ) |
| { |
| // InternalDatamartDSL.g:1904:2: ( ( (lv_numberValue_0_0= ruleNumber ) ) | ( (lv_stringValue_1_0= RULE_STRING ) ) | ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) | this_DatamartTaskFilter_7= ruleDatamartTaskFilter | this_DatamartColumn_8= ruleDatamartColumn | this_DatamartAttributeBase_9= ruleDatamartAttributeBase | this_DatamartReferenceBase_10= ruleDatamartReferenceBase ) |
| int alt35=7; |
| switch ( input.LA(1) ) { |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| { |
| alt35=1; |
| } |
| break; |
| case RULE_STRING: |
| { |
| alt35=2; |
| } |
| break; |
| case 53: |
| case 55: |
| case 56: |
| case 57: |
| { |
| alt35=3; |
| } |
| break; |
| case 26: |
| { |
| alt35=4; |
| } |
| break; |
| case 25: |
| { |
| alt35=5; |
| } |
| break; |
| case 40: |
| { |
| alt35=6; |
| } |
| break; |
| case 41: |
| { |
| alt35=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 35, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt35) { |
| case 1 : |
| // InternalDatamartDSL.g:1905:3: ( (lv_numberValue_0_0= ruleNumber ) ) |
| { |
| // InternalDatamartDSL.g:1905:3: ( (lv_numberValue_0_0= ruleNumber ) ) |
| // InternalDatamartDSL.g:1906:4: (lv_numberValue_0_0= ruleNumber ) |
| { |
| // InternalDatamartDSL.g:1906:4: (lv_numberValue_0_0= ruleNumber ) |
| // InternalDatamartDSL.g:1907:5: lv_numberValue_0_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartValueAccess().getNumberValueNumberParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_numberValue_0_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartValueRule()); |
| } |
| set( |
| current, |
| "numberValue", |
| lv_numberValue_0_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:1925:3: ( (lv_stringValue_1_0= RULE_STRING ) ) |
| { |
| // InternalDatamartDSL.g:1925:3: ( (lv_stringValue_1_0= RULE_STRING ) ) |
| // InternalDatamartDSL.g:1926:4: (lv_stringValue_1_0= RULE_STRING ) |
| { |
| // InternalDatamartDSL.g:1926:4: (lv_stringValue_1_0= RULE_STRING ) |
| // InternalDatamartDSL.g:1927:5: lv_stringValue_1_0= RULE_STRING |
| { |
| lv_stringValue_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_stringValue_1_0, grammarAccess.getDatamartValueAccess().getStringValueSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "stringValue", |
| lv_stringValue_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:1944:3: ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) |
| { |
| // InternalDatamartDSL.g:1944:3: ( ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) | ( (lv_selected_4_0= 'selected' ) ) | ( (lv_ranged_5_0= 'ranged' ) ) | ( (lv_unreferenced_6_0= 'unreferenced' ) ) ) |
| int alt34=4; |
| switch ( input.LA(1) ) { |
| case 53: |
| { |
| alt34=1; |
| } |
| break; |
| case 55: |
| { |
| alt34=2; |
| } |
| break; |
| case 56: |
| { |
| alt34=3; |
| } |
| break; |
| case 57: |
| { |
| alt34=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 34, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt34) { |
| case 1 : |
| // InternalDatamartDSL.g:1945:4: ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) |
| { |
| // InternalDatamartDSL.g:1945:4: ( ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? ) |
| // InternalDatamartDSL.g:1946:5: ( (lv_filtered_2_0= 'filtered' ) ) ( (lv_optional_3_0= 'optional' ) )? |
| { |
| // InternalDatamartDSL.g:1946:5: ( (lv_filtered_2_0= 'filtered' ) ) |
| // InternalDatamartDSL.g:1947:6: (lv_filtered_2_0= 'filtered' ) |
| { |
| // InternalDatamartDSL.g:1947:6: (lv_filtered_2_0= 'filtered' ) |
| // InternalDatamartDSL.g:1948:7: lv_filtered_2_0= 'filtered' |
| { |
| lv_filtered_2_0=(Token)match(input,53,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtered_2_0, grammarAccess.getDatamartValueAccess().getFilteredFilteredKeyword_2_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed(current, "filtered", true, "filtered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:1960:5: ( (lv_optional_3_0= 'optional' ) )? |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==54) ) { |
| alt33=1; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalDatamartDSL.g:1961:6: (lv_optional_3_0= 'optional' ) |
| { |
| // InternalDatamartDSL.g:1961:6: (lv_optional_3_0= 'optional' ) |
| // InternalDatamartDSL.g:1962:7: lv_optional_3_0= 'optional' |
| { |
| lv_optional_3_0=(Token)match(input,54,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_optional_3_0, grammarAccess.getDatamartValueAccess().getOptionalOptionalKeyword_2_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed(current, "optional", true, "optional"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:1976:4: ( (lv_selected_4_0= 'selected' ) ) |
| { |
| // InternalDatamartDSL.g:1976:4: ( (lv_selected_4_0= 'selected' ) ) |
| // InternalDatamartDSL.g:1977:5: (lv_selected_4_0= 'selected' ) |
| { |
| // InternalDatamartDSL.g:1977:5: (lv_selected_4_0= 'selected' ) |
| // InternalDatamartDSL.g:1978:6: lv_selected_4_0= 'selected' |
| { |
| lv_selected_4_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selected_4_0, grammarAccess.getDatamartValueAccess().getSelectedSelectedKeyword_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed(current, "selected", true, "selected"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:1991:4: ( (lv_ranged_5_0= 'ranged' ) ) |
| { |
| // InternalDatamartDSL.g:1991:4: ( (lv_ranged_5_0= 'ranged' ) ) |
| // InternalDatamartDSL.g:1992:5: (lv_ranged_5_0= 'ranged' ) |
| { |
| // InternalDatamartDSL.g:1992:5: (lv_ranged_5_0= 'ranged' ) |
| // InternalDatamartDSL.g:1993:6: lv_ranged_5_0= 'ranged' |
| { |
| lv_ranged_5_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_ranged_5_0, grammarAccess.getDatamartValueAccess().getRangedRangedKeyword_2_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed(current, "ranged", true, "ranged"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:2006:4: ( (lv_unreferenced_6_0= 'unreferenced' ) ) |
| { |
| // InternalDatamartDSL.g:2006:4: ( (lv_unreferenced_6_0= 'unreferenced' ) ) |
| // InternalDatamartDSL.g:2007:5: (lv_unreferenced_6_0= 'unreferenced' ) |
| { |
| // InternalDatamartDSL.g:2007:5: (lv_unreferenced_6_0= 'unreferenced' ) |
| // InternalDatamartDSL.g:2008:6: lv_unreferenced_6_0= 'unreferenced' |
| { |
| lv_unreferenced_6_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_unreferenced_6_0, grammarAccess.getDatamartValueAccess().getUnreferencedUnreferencedKeyword_2_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartValueRule()); |
| } |
| setWithLastConsumed(current, "unreferenced", true, "unreferenced"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:2022:3: this_DatamartTaskFilter_7= ruleDatamartTaskFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartTaskFilterParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartTaskFilter_7=ruleDatamartTaskFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartTaskFilter_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:2031:3: this_DatamartColumn_8= ruleDatamartColumn |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartColumnParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartColumn_8=ruleDatamartColumn(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartColumn_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:2040:3: this_DatamartAttributeBase_9= ruleDatamartAttributeBase |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartAttributeBaseParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartAttributeBase_9=ruleDatamartAttributeBase(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartAttributeBase_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalDatamartDSL.g:2049:3: this_DatamartReferenceBase_10= ruleDatamartReferenceBase |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartValueAccess().getDatamartReferenceBaseParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartReferenceBase_10=ruleDatamartReferenceBase(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartReferenceBase_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartValue" |
| |
| |
| // $ANTLR start "entryRuleDatamartCubeElement" |
| // InternalDatamartDSL.g:2061:1: entryRuleDatamartCubeElement returns [EObject current=null] : iv_ruleDatamartCubeElement= ruleDatamartCubeElement EOF ; |
| public final EObject entryRuleDatamartCubeElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartCubeElement = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2061:60: (iv_ruleDatamartCubeElement= ruleDatamartCubeElement EOF ) |
| // InternalDatamartDSL.g:2062:2: iv_ruleDatamartCubeElement= ruleDatamartCubeElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartCubeElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartCubeElement=ruleDatamartCubeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartCubeElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartCubeElement" |
| |
| |
| // $ANTLR start "ruleDatamartCubeElement" |
| // InternalDatamartDSL.g:2068:1: ruleDatamartCubeElement returns [EObject current=null] : (this_DatamartCubeAxis_0= ruleDatamartCubeAxis | this_DatamartSlicer_1= ruleDatamartSlicer | this_DatamartDefineDerivedMeasure_2= ruleDatamartDefineDerivedMeasure ) ; |
| public final EObject ruleDatamartCubeElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartCubeAxis_0 = null; |
| |
| EObject this_DatamartSlicer_1 = null; |
| |
| EObject this_DatamartDefineDerivedMeasure_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2074:2: ( (this_DatamartCubeAxis_0= ruleDatamartCubeAxis | this_DatamartSlicer_1= ruleDatamartSlicer | this_DatamartDefineDerivedMeasure_2= ruleDatamartDefineDerivedMeasure ) ) |
| // InternalDatamartDSL.g:2075:2: (this_DatamartCubeAxis_0= ruleDatamartCubeAxis | this_DatamartSlicer_1= ruleDatamartSlicer | this_DatamartDefineDerivedMeasure_2= ruleDatamartDefineDerivedMeasure ) |
| { |
| // InternalDatamartDSL.g:2075:2: (this_DatamartCubeAxis_0= ruleDatamartCubeAxis | this_DatamartSlicer_1= ruleDatamartSlicer | this_DatamartDefineDerivedMeasure_2= ruleDatamartDefineDerivedMeasure ) |
| int alt36=3; |
| switch ( input.LA(1) ) { |
| case 39: |
| { |
| alt36=1; |
| } |
| break; |
| case 66: |
| { |
| alt36=2; |
| } |
| break; |
| case 58: |
| { |
| alt36=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt36) { |
| case 1 : |
| // InternalDatamartDSL.g:2076:3: this_DatamartCubeAxis_0= ruleDatamartCubeAxis |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartCubeAxisParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartCubeAxis_0=ruleDatamartCubeAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartCubeAxis_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2085:3: this_DatamartSlicer_1= ruleDatamartSlicer |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartSlicerParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartSlicer_1=ruleDatamartSlicer(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartSlicer_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:2094:3: this_DatamartDefineDerivedMeasure_2= ruleDatamartDefineDerivedMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeElementAccess().getDatamartDefineDerivedMeasureParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartDefineDerivedMeasure_2=ruleDatamartDefineDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartDefineDerivedMeasure_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartCubeElement" |
| |
| |
| // $ANTLR start "entryRuleDatamartDefineDerivedMeasure" |
| // InternalDatamartDSL.g:2106:1: entryRuleDatamartDefineDerivedMeasure returns [EObject current=null] : iv_ruleDatamartDefineDerivedMeasure= ruleDatamartDefineDerivedMeasure EOF ; |
| public final EObject entryRuleDatamartDefineDerivedMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartDefineDerivedMeasure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2106:69: (iv_ruleDatamartDefineDerivedMeasure= ruleDatamartDefineDerivedMeasure EOF ) |
| // InternalDatamartDSL.g:2107:2: iv_ruleDatamartDefineDerivedMeasure= ruleDatamartDefineDerivedMeasure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartDefineDerivedMeasure=ruleDatamartDefineDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartDefineDerivedMeasure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartDefineDerivedMeasure" |
| |
| |
| // $ANTLR start "ruleDatamartDefineDerivedMeasure" |
| // InternalDatamartDSL.g:2113:1: ruleDatamartDefineDerivedMeasure returns [EObject current=null] : (otherlv_0= 'derive' ( (lv_name_1_0= ruleTRANSLATABLEID ) ) otherlv_2= 'from' ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* ) ; |
| public final EObject ruleDatamartDefineDerivedMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| EObject lv_derivedElement_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2119:2: ( (otherlv_0= 'derive' ( (lv_name_1_0= ruleTRANSLATABLEID ) ) otherlv_2= 'from' ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* ) ) |
| // InternalDatamartDSL.g:2120:2: (otherlv_0= 'derive' ( (lv_name_1_0= ruleTRANSLATABLEID ) ) otherlv_2= 'from' ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* ) |
| { |
| // InternalDatamartDSL.g:2120:2: (otherlv_0= 'derive' ( (lv_name_1_0= ruleTRANSLATABLEID ) ) otherlv_2= 'from' ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* ) |
| // InternalDatamartDSL.g:2121:3: otherlv_0= 'derive' ( (lv_name_1_0= ruleTRANSLATABLEID ) ) otherlv_2= 'from' ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* |
| { |
| otherlv_0=(Token)match(input,58,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartDefineDerivedMeasureAccess().getDeriveKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:2125:3: ( (lv_name_1_0= ruleTRANSLATABLEID ) ) |
| // InternalDatamartDSL.g:2126:4: (lv_name_1_0= ruleTRANSLATABLEID ) |
| { |
| // InternalDatamartDSL.g:2126:4: (lv_name_1_0= ruleTRANSLATABLEID ) |
| // InternalDatamartDSL.g:2127:5: lv_name_1_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureAccess().getNameTRANSLATABLEIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| lv_name_1_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDefineDerivedMeasureRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,59,FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartDefineDerivedMeasureAccess().getFromKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:2148:3: ( (lv_derivedElement_3_0= ruleDatamartAddition ) )* |
| loop37: |
| do { |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==RULE_INT||(LA37_0>=RULE_HEX && LA37_0<=RULE_DECIMAL)||LA37_0==44||LA37_0==51||(LA37_0>=67 && LA37_0<=69)||(LA37_0>=152 && LA37_0<=157)||(LA37_0>=168 && LA37_0<=170)) ) { |
| alt37=1; |
| } |
| |
| |
| switch (alt37) { |
| case 1 : |
| // InternalDatamartDSL.g:2149:4: (lv_derivedElement_3_0= ruleDatamartAddition ) |
| { |
| // InternalDatamartDSL.g:2149:4: (lv_derivedElement_3_0= ruleDatamartAddition ) |
| // InternalDatamartDSL.g:2150:5: lv_derivedElement_3_0= ruleDatamartAddition |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDefineDerivedMeasureAccess().getDerivedElementDatamartAdditionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_derivedElement_3_0=ruleDatamartAddition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDefineDerivedMeasureRule()); |
| } |
| add( |
| current, |
| "derivedElement", |
| lv_derivedElement_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAddition"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop37; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartDefineDerivedMeasure" |
| |
| |
| // $ANTLR start "entryRuleDatamartAddition" |
| // InternalDatamartDSL.g:2171:1: entryRuleDatamartAddition returns [EObject current=null] : iv_ruleDatamartAddition= ruleDatamartAddition EOF ; |
| public final EObject entryRuleDatamartAddition() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAddition = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2171:57: (iv_ruleDatamartAddition= ruleDatamartAddition EOF ) |
| // InternalDatamartDSL.g:2172:2: iv_ruleDatamartAddition= ruleDatamartAddition EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAdditionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAddition=ruleDatamartAddition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAddition; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAddition" |
| |
| |
| // $ANTLR start "ruleDatamartAddition" |
| // InternalDatamartDSL.g:2178:1: ruleDatamartAddition returns [EObject current=null] : (this_DatamartMultiplication_0= ruleDatamartMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* ) ; |
| public final EObject ruleDatamartAddition() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject this_DatamartMultiplication_0 = null; |
| |
| EObject lv_right_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2184:2: ( (this_DatamartMultiplication_0= ruleDatamartMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* ) ) |
| // InternalDatamartDSL.g:2185:2: (this_DatamartMultiplication_0= ruleDatamartMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* ) |
| { |
| // InternalDatamartDSL.g:2185:2: (this_DatamartMultiplication_0= ruleDatamartMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* ) |
| // InternalDatamartDSL.g:2186:3: this_DatamartMultiplication_0= ruleDatamartMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAdditionAccess().getDatamartMultiplicationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| this_DatamartMultiplication_0=ruleDatamartMultiplication(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartMultiplication_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:2194:3: ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) )* |
| loop39: |
| do { |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( ((LA39_0>=60 && LA39_0<=61)) ) { |
| alt39=1; |
| } |
| |
| |
| switch (alt39) { |
| case 1 : |
| // InternalDatamartDSL.g:2195:4: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleDatamartMultiplication ) ) |
| { |
| // InternalDatamartDSL.g:2195:4: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==60) ) { |
| alt38=1; |
| } |
| else if ( (LA38_0==61) ) { |
| alt38=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 38, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalDatamartDSL.g:2196:5: ( () otherlv_2= '+' ) |
| { |
| // InternalDatamartDSL.g:2196:5: ( () otherlv_2= '+' ) |
| // InternalDatamartDSL.g:2197:6: () otherlv_2= '+' |
| { |
| // InternalDatamartDSL.g:2197:6: () |
| // InternalDatamartDSL.g:2198:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartAdditionAccess().getAdditionLeftAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,60,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartAdditionAccess().getPlusSignKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2210:5: ( () otherlv_4= '-' ) |
| { |
| // InternalDatamartDSL.g:2210:5: ( () otherlv_4= '-' ) |
| // InternalDatamartDSL.g:2211:6: () otherlv_4= '-' |
| { |
| // InternalDatamartDSL.g:2211:6: () |
| // InternalDatamartDSL.g:2212:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartAdditionAccess().getSubtractionLeftAction_1_0_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_4=(Token)match(input,61,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDatamartAdditionAccess().getHyphenMinusKeyword_1_0_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:2224:4: ( (lv_right_5_0= ruleDatamartMultiplication ) ) |
| // InternalDatamartDSL.g:2225:5: (lv_right_5_0= ruleDatamartMultiplication ) |
| { |
| // InternalDatamartDSL.g:2225:5: (lv_right_5_0= ruleDatamartMultiplication ) |
| // InternalDatamartDSL.g:2226:6: lv_right_5_0= ruleDatamartMultiplication |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAdditionAccess().getRightDatamartMultiplicationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| lv_right_5_0=ruleDatamartMultiplication(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAdditionRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_5_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMultiplication"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop39; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAddition" |
| |
| |
| // $ANTLR start "entryRuleDatamartMultiplication" |
| // InternalDatamartDSL.g:2248:1: entryRuleDatamartMultiplication returns [EObject current=null] : iv_ruleDatamartMultiplication= ruleDatamartMultiplication EOF ; |
| public final EObject entryRuleDatamartMultiplication() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartMultiplication = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2248:63: (iv_ruleDatamartMultiplication= ruleDatamartMultiplication EOF ) |
| // InternalDatamartDSL.g:2249:2: iv_ruleDatamartMultiplication= ruleDatamartMultiplication EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartMultiplicationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartMultiplication=ruleDatamartMultiplication(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartMultiplication; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartMultiplication" |
| |
| |
| // $ANTLR start "ruleDatamartMultiplication" |
| // InternalDatamartDSL.g:2255:1: ruleDatamartMultiplication returns [EObject current=null] : (this_DatamartPrimary_0= ruleDatamartPrimary ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* ) ; |
| public final EObject ruleDatamartMultiplication() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject this_DatamartPrimary_0 = null; |
| |
| EObject lv_right_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2261:2: ( (this_DatamartPrimary_0= ruleDatamartPrimary ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* ) ) |
| // InternalDatamartDSL.g:2262:2: (this_DatamartPrimary_0= ruleDatamartPrimary ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* ) |
| { |
| // InternalDatamartDSL.g:2262:2: (this_DatamartPrimary_0= ruleDatamartPrimary ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* ) |
| // InternalDatamartDSL.g:2263:3: this_DatamartPrimary_0= ruleDatamartPrimary ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMultiplicationAccess().getDatamartPrimaryParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_53); |
| this_DatamartPrimary_0=ruleDatamartPrimary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartPrimary_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:2271:3: ( ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) )* |
| loop41: |
| do { |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( ((LA41_0>=62 && LA41_0<=63)) ) { |
| alt41=1; |
| } |
| |
| |
| switch (alt41) { |
| case 1 : |
| // InternalDatamartDSL.g:2272:4: ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) ( (lv_right_5_0= ruleDatamartPrimary ) ) |
| { |
| // InternalDatamartDSL.g:2272:4: ( ( () otherlv_2= '*' ) | ( () otherlv_4= '/' ) ) |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==62) ) { |
| alt40=1; |
| } |
| else if ( (LA40_0==63) ) { |
| alt40=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 40, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt40) { |
| case 1 : |
| // InternalDatamartDSL.g:2273:5: ( () otherlv_2= '*' ) |
| { |
| // InternalDatamartDSL.g:2273:5: ( () otherlv_2= '*' ) |
| // InternalDatamartDSL.g:2274:6: () otherlv_2= '*' |
| { |
| // InternalDatamartDSL.g:2274:6: () |
| // InternalDatamartDSL.g:2275:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartMultiplicationAccess().getMultiplicationLeftAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,62,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartMultiplicationAccess().getAsteriskKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2287:5: ( () otherlv_4= '/' ) |
| { |
| // InternalDatamartDSL.g:2287:5: ( () otherlv_4= '/' ) |
| // InternalDatamartDSL.g:2288:6: () otherlv_4= '/' |
| { |
| // InternalDatamartDSL.g:2288:6: () |
| // InternalDatamartDSL.g:2289:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartMultiplicationAccess().getDivisionLeftAction_1_0_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_4=(Token)match(input,63,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDatamartMultiplicationAccess().getSolidusKeyword_1_0_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:2301:4: ( (lv_right_5_0= ruleDatamartPrimary ) ) |
| // InternalDatamartDSL.g:2302:5: (lv_right_5_0= ruleDatamartPrimary ) |
| { |
| // InternalDatamartDSL.g:2302:5: (lv_right_5_0= ruleDatamartPrimary ) |
| // InternalDatamartDSL.g:2303:6: lv_right_5_0= ruleDatamartPrimary |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMultiplicationAccess().getRightDatamartPrimaryParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_53); |
| lv_right_5_0=ruleDatamartPrimary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMultiplicationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_5_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartPrimary"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop41; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartMultiplication" |
| |
| |
| // $ANTLR start "entryRuleDatamartPrimary" |
| // InternalDatamartDSL.g:2325:1: entryRuleDatamartPrimary returns [EObject current=null] : iv_ruleDatamartPrimary= ruleDatamartPrimary EOF ; |
| public final EObject entryRuleDatamartPrimary() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartPrimary = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2325:56: (iv_ruleDatamartPrimary= ruleDatamartPrimary EOF ) |
| // InternalDatamartDSL.g:2326:2: iv_ruleDatamartPrimary= ruleDatamartPrimary EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartPrimaryRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartPrimary=ruleDatamartPrimary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartPrimary; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartPrimary" |
| |
| |
| // $ANTLR start "ruleDatamartPrimary" |
| // InternalDatamartDSL.g:2332:1: ruleDatamartPrimary returns [EObject current=null] : (this_DatamartNumberOrElement_0= ruleDatamartNumberOrElement | (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) ) ; |
| public final EObject ruleDatamartPrimary() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject this_DatamartNumberOrElement_0 = null; |
| |
| EObject this_DatamartAddition_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2338:2: ( (this_DatamartNumberOrElement_0= ruleDatamartNumberOrElement | (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) ) ) |
| // InternalDatamartDSL.g:2339:2: (this_DatamartNumberOrElement_0= ruleDatamartNumberOrElement | (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) ) |
| { |
| // InternalDatamartDSL.g:2339:2: (this_DatamartNumberOrElement_0= ruleDatamartNumberOrElement | (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) ) |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==RULE_INT||(LA42_0>=RULE_HEX && LA42_0<=RULE_DECIMAL)||LA42_0==44||(LA42_0>=67 && LA42_0<=69)||(LA42_0>=152 && LA42_0<=157)||(LA42_0>=168 && LA42_0<=170)) ) { |
| alt42=1; |
| } |
| else if ( (LA42_0==51) ) { |
| alt42=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 42, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt42) { |
| case 1 : |
| // InternalDatamartDSL.g:2340:3: this_DatamartNumberOrElement_0= ruleDatamartNumberOrElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartPrimaryAccess().getDatamartNumberOrElementParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartNumberOrElement_0=ruleDatamartNumberOrElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartNumberOrElement_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2349:3: (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) |
| { |
| // InternalDatamartDSL.g:2349:3: (otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' ) |
| // InternalDatamartDSL.g:2350:4: otherlv_1= '(' this_DatamartAddition_2= ruleDatamartAddition otherlv_3= ')' |
| { |
| otherlv_1=(Token)match(input,51,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartPrimaryAccess().getLeftParenthesisKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartPrimaryAccess().getDatamartAdditionParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| this_DatamartAddition_2=ruleDatamartAddition(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartAddition_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_3=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartPrimaryAccess().getRightParenthesisKeyword_1_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartPrimary" |
| |
| |
| // $ANTLR start "entryRuleDatamartNumberOrElement" |
| // InternalDatamartDSL.g:2371:1: entryRuleDatamartNumberOrElement returns [EObject current=null] : iv_ruleDatamartNumberOrElement= ruleDatamartNumberOrElement EOF ; |
| public final EObject entryRuleDatamartNumberOrElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartNumberOrElement = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2371:64: (iv_ruleDatamartNumberOrElement= ruleDatamartNumberOrElement EOF ) |
| // InternalDatamartDSL.g:2372:2: iv_ruleDatamartNumberOrElement= ruleDatamartNumberOrElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartNumberOrElement=ruleDatamartNumberOrElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartNumberOrElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartNumberOrElement" |
| |
| |
| // $ANTLR start "ruleDatamartNumberOrElement" |
| // InternalDatamartDSL.g:2378:1: ruleDatamartNumberOrElement returns [EObject current=null] : ( ( (lv_value_0_0= ruleNumber ) ) | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartMemberTuple_3= ruleDatamartMemberTuple | this_DatamartAggregation_4= ruleDatamartAggregation ) ; |
| public final EObject ruleDatamartNumberOrElement() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_0_0 = null; |
| |
| EObject this_DatamartMeasure_1 = null; |
| |
| EObject this_DatamartDerivedMeasure_2 = null; |
| |
| EObject this_DatamartMemberTuple_3 = null; |
| |
| EObject this_DatamartAggregation_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2384:2: ( ( ( (lv_value_0_0= ruleNumber ) ) | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartMemberTuple_3= ruleDatamartMemberTuple | this_DatamartAggregation_4= ruleDatamartAggregation ) ) |
| // InternalDatamartDSL.g:2385:2: ( ( (lv_value_0_0= ruleNumber ) ) | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartMemberTuple_3= ruleDatamartMemberTuple | this_DatamartAggregation_4= ruleDatamartAggregation ) |
| { |
| // InternalDatamartDSL.g:2385:2: ( ( (lv_value_0_0= ruleNumber ) ) | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartMemberTuple_3= ruleDatamartMemberTuple | this_DatamartAggregation_4= ruleDatamartAggregation ) |
| int alt43=5; |
| switch ( input.LA(1) ) { |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| { |
| alt43=1; |
| } |
| break; |
| case 68: |
| { |
| alt43=2; |
| } |
| break; |
| case 67: |
| { |
| alt43=3; |
| } |
| break; |
| case 69: |
| case 152: |
| case 153: |
| case 154: |
| case 155: |
| case 156: |
| case 157: |
| { |
| alt43=4; |
| } |
| break; |
| case 44: |
| case 168: |
| case 169: |
| case 170: |
| { |
| alt43=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 43, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt43) { |
| case 1 : |
| // InternalDatamartDSL.g:2386:3: ( (lv_value_0_0= ruleNumber ) ) |
| { |
| // InternalDatamartDSL.g:2386:3: ( (lv_value_0_0= ruleNumber ) ) |
| // InternalDatamartDSL.g:2387:4: (lv_value_0_0= ruleNumber ) |
| { |
| // InternalDatamartDSL.g:2387:4: (lv_value_0_0= ruleNumber ) |
| // InternalDatamartDSL.g:2388:5: lv_value_0_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getValueNumberParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_0_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartNumberOrElementRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2406:3: this_DatamartMeasure_1= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartMeasureParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartMeasure_1=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartMeasure_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:2415:3: this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartDerivedMeasureParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartDerivedMeasure_2=ruleDatamartDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartDerivedMeasure_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:2424:3: this_DatamartMemberTuple_3= ruleDatamartMemberTuple |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartMemberTupleParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartMemberTuple_3=ruleDatamartMemberTuple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartMemberTuple_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:2433:3: this_DatamartAggregation_4= ruleDatamartAggregation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartNumberOrElementAccess().getDatamartAggregationParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartAggregation_4=ruleDatamartAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartAggregation_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartNumberOrElement" |
| |
| |
| // $ANTLR start "entryRuleDatamartMemberTuple" |
| // InternalDatamartDSL.g:2445:1: entryRuleDatamartMemberTuple returns [EObject current=null] : iv_ruleDatamartMemberTuple= ruleDatamartMemberTuple EOF ; |
| public final EObject entryRuleDatamartMemberTuple() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartMemberTuple = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2445:60: (iv_ruleDatamartMemberTuple= ruleDatamartMemberTuple EOF ) |
| // InternalDatamartDSL.g:2446:2: iv_ruleDatamartMemberTuple= ruleDatamartMemberTuple EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartMemberTupleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartMemberTuple=ruleDatamartMemberTuple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartMemberTuple; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartMemberTuple" |
| |
| |
| // $ANTLR start "ruleDatamartMemberTuple" |
| // InternalDatamartDSL.g:2452:1: ruleDatamartMemberTuple returns [EObject current=null] : ( ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ; |
| public final EObject ruleDatamartMemberTuple() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| EObject lv_function_0_0 = null; |
| |
| EObject lv_function_1_0 = null; |
| |
| EObject lv_hierarchy_3_0 = null; |
| |
| EObject lv_right_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2458:2: ( ( ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ) |
| // InternalDatamartDSL.g:2459:2: ( ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| { |
| // InternalDatamartDSL.g:2459:2: ( ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| // InternalDatamartDSL.g:2460:3: ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| { |
| // InternalDatamartDSL.g:2460:3: ( ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( ((LA45_0>=152 && LA45_0<=157)) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalDatamartDSL.g:2461:4: ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) otherlv_2= 'of' |
| { |
| // InternalDatamartDSL.g:2461:4: ( ( (lv_function_0_0= ruleDatamartFunction ) ) | ( (lv_function_1_0= ruleDatamartParameterFunction ) ) ) |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( ((LA44_0>=152 && LA44_0<=155)) ) { |
| alt44=1; |
| } |
| else if ( ((LA44_0>=156 && LA44_0<=157)) ) { |
| alt44=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 44, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalDatamartDSL.g:2462:5: ( (lv_function_0_0= ruleDatamartFunction ) ) |
| { |
| // InternalDatamartDSL.g:2462:5: ( (lv_function_0_0= ruleDatamartFunction ) ) |
| // InternalDatamartDSL.g:2463:6: (lv_function_0_0= ruleDatamartFunction ) |
| { |
| // InternalDatamartDSL.g:2463:6: (lv_function_0_0= ruleDatamartFunction ) |
| // InternalDatamartDSL.g:2464:7: lv_function_0_0= ruleDatamartFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getFunctionDatamartFunctionParserRuleCall_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_function_0_0=ruleDatamartFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule()); |
| } |
| set( |
| current, |
| "function", |
| lv_function_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2482:5: ( (lv_function_1_0= ruleDatamartParameterFunction ) ) |
| { |
| // InternalDatamartDSL.g:2482:5: ( (lv_function_1_0= ruleDatamartParameterFunction ) ) |
| // InternalDatamartDSL.g:2483:6: (lv_function_1_0= ruleDatamartParameterFunction ) |
| { |
| // InternalDatamartDSL.g:2483:6: (lv_function_1_0= ruleDatamartParameterFunction ) |
| // InternalDatamartDSL.g:2484:7: lv_function_1_0= ruleDatamartParameterFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getFunctionDatamartParameterFunctionParserRuleCall_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_function_1_0=ruleDatamartParameterFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule()); |
| } |
| set( |
| current, |
| "function", |
| lv_function_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartParameterFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_2=(Token)match(input,64,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartMemberTupleAccess().getOfKeyword_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:2507:3: ( (lv_hierarchy_3_0= ruleDatamartHierarchy ) ) |
| // InternalDatamartDSL.g:2508:4: (lv_hierarchy_3_0= ruleDatamartHierarchy ) |
| { |
| // InternalDatamartDSL.g:2508:4: (lv_hierarchy_3_0= ruleDatamartHierarchy ) |
| // InternalDatamartDSL.g:2509:5: lv_hierarchy_3_0= ruleDatamartHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getHierarchyDatamartHierarchyParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_hierarchy_3_0=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule()); |
| } |
| set( |
| current, |
| "hierarchy", |
| lv_hierarchy_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:2526:3: ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| // InternalDatamartDSL.g:2527:4: () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| { |
| // InternalDatamartDSL.g:2527:4: () |
| // InternalDatamartDSL.g:2528:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartMemberTupleAccess().getDatamartMemberTupleLeftAction_2_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_5=(Token)match(input,65,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartMemberTupleAccess().getOverKeyword_2_1()); |
| |
| } |
| // InternalDatamartDSL.g:2538:4: ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| // InternalDatamartDSL.g:2539:5: (lv_right_6_0= ruleDatamartMeasure ) |
| { |
| // InternalDatamartDSL.g:2539:5: (lv_right_6_0= ruleDatamartMeasure ) |
| // InternalDatamartDSL.g:2540:6: lv_right_6_0= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMemberTupleAccess().getRightDatamartMeasureParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_6_0=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMemberTupleRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_6_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartMemberTuple" |
| |
| |
| // $ANTLR start "entryRuleDatamartFunction" |
| // InternalDatamartDSL.g:2562:1: entryRuleDatamartFunction returns [EObject current=null] : iv_ruleDatamartFunction= ruleDatamartFunction EOF ; |
| public final EObject entryRuleDatamartFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2562:57: (iv_ruleDatamartFunction= ruleDatamartFunction EOF ) |
| // InternalDatamartDSL.g:2563:2: iv_ruleDatamartFunction= ruleDatamartFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartFunction=ruleDatamartFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartFunction" |
| |
| |
| // $ANTLR start "ruleDatamartFunction" |
| // InternalDatamartDSL.g:2569:1: ruleDatamartFunction returns [EObject current=null] : ( (lv_function_0_0= ruleFunctionEnum ) ) ; |
| public final EObject ruleDatamartFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Enumerator lv_function_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2575:2: ( ( (lv_function_0_0= ruleFunctionEnum ) ) ) |
| // InternalDatamartDSL.g:2576:2: ( (lv_function_0_0= ruleFunctionEnum ) ) |
| { |
| // InternalDatamartDSL.g:2576:2: ( (lv_function_0_0= ruleFunctionEnum ) ) |
| // InternalDatamartDSL.g:2577:3: (lv_function_0_0= ruleFunctionEnum ) |
| { |
| // InternalDatamartDSL.g:2577:3: (lv_function_0_0= ruleFunctionEnum ) |
| // InternalDatamartDSL.g:2578:4: lv_function_0_0= ruleFunctionEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartFunctionAccess().getFunctionFunctionEnumEnumRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_function_0_0=ruleFunctionEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartFunctionRule()); |
| } |
| set( |
| current, |
| "function", |
| lv_function_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.FunctionEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartParameterFunction" |
| // InternalDatamartDSL.g:2598:1: entryRuleDatamartParameterFunction returns [EObject current=null] : iv_ruleDatamartParameterFunction= ruleDatamartParameterFunction EOF ; |
| public final EObject entryRuleDatamartParameterFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartParameterFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2598:66: (iv_ruleDatamartParameterFunction= ruleDatamartParameterFunction EOF ) |
| // InternalDatamartDSL.g:2599:2: iv_ruleDatamartParameterFunction= ruleDatamartParameterFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartParameterFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartParameterFunction=ruleDatamartParameterFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartParameterFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartParameterFunction" |
| |
| |
| // $ANTLR start "ruleDatamartParameterFunction" |
| // InternalDatamartDSL.g:2605:1: ruleDatamartParameterFunction returns [EObject current=null] : ( ( (lv_function_0_0= ruleParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ; |
| public final EObject ruleDatamartParameterFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Enumerator lv_function_0_0 = null; |
| |
| EObject lv_parameter_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2611:2: ( ( ( (lv_function_0_0= ruleParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ) |
| // InternalDatamartDSL.g:2612:2: ( ( (lv_function_0_0= ruleParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| { |
| // InternalDatamartDSL.g:2612:2: ( ( (lv_function_0_0= ruleParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| // InternalDatamartDSL.g:2613:3: ( (lv_function_0_0= ruleParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' |
| { |
| // InternalDatamartDSL.g:2613:3: ( (lv_function_0_0= ruleParameterFunctionEnum ) ) |
| // InternalDatamartDSL.g:2614:4: (lv_function_0_0= ruleParameterFunctionEnum ) |
| { |
| // InternalDatamartDSL.g:2614:4: (lv_function_0_0= ruleParameterFunctionEnum ) |
| // InternalDatamartDSL.g:2615:5: lv_function_0_0= ruleParameterFunctionEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartParameterFunctionAccess().getFunctionParameterFunctionEnumEnumRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_58); |
| lv_function_0_0=ruleParameterFunctionEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartParameterFunctionRule()); |
| } |
| set( |
| current, |
| "function", |
| lv_function_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ParameterFunctionEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,51,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartParameterFunctionAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:2636:3: ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) |
| // InternalDatamartDSL.g:2637:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| { |
| // InternalDatamartDSL.g:2637:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| // InternalDatamartDSL.g:2638:5: lv_parameter_2_0= ruleDatamartFunctionIntParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartParameterFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_parameter_2_0=ruleDatamartFunctionIntParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartParameterFunctionRule()); |
| } |
| set( |
| current, |
| "parameter", |
| lv_parameter_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartParameterFunctionAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartParameterFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartFunctionIntParameter" |
| // InternalDatamartDSL.g:2663:1: entryRuleDatamartFunctionIntParameter returns [EObject current=null] : iv_ruleDatamartFunctionIntParameter= ruleDatamartFunctionIntParameter EOF ; |
| public final EObject entryRuleDatamartFunctionIntParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartFunctionIntParameter = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2663:69: (iv_ruleDatamartFunctionIntParameter= ruleDatamartFunctionIntParameter EOF ) |
| // InternalDatamartDSL.g:2664:2: iv_ruleDatamartFunctionIntParameter= ruleDatamartFunctionIntParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartFunctionIntParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartFunctionIntParameter=ruleDatamartFunctionIntParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartFunctionIntParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartFunctionIntParameter" |
| |
| |
| // $ANTLR start "ruleDatamartFunctionIntParameter" |
| // InternalDatamartDSL.g:2670:1: ruleDatamartFunctionIntParameter returns [EObject current=null] : ( (lv_value_0_0= RULE_INT ) ) ; |
| public final EObject ruleDatamartFunctionIntParameter() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_value_0_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2676:2: ( ( (lv_value_0_0= RULE_INT ) ) ) |
| // InternalDatamartDSL.g:2677:2: ( (lv_value_0_0= RULE_INT ) ) |
| { |
| // InternalDatamartDSL.g:2677:2: ( (lv_value_0_0= RULE_INT ) ) |
| // InternalDatamartDSL.g:2678:3: (lv_value_0_0= RULE_INT ) |
| { |
| // InternalDatamartDSL.g:2678:3: (lv_value_0_0= RULE_INT ) |
| // InternalDatamartDSL.g:2679:4: lv_value_0_0= RULE_INT |
| { |
| lv_value_0_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_0_0, grammarAccess.getDatamartFunctionIntParameterAccess().getValueINTTerminalRuleCall_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartFunctionIntParameterRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_0_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartFunctionIntParameter" |
| |
| |
| // $ANTLR start "entryRuleDatamartSetFunction" |
| // InternalDatamartDSL.g:2698:1: entryRuleDatamartSetFunction returns [EObject current=null] : iv_ruleDatamartSetFunction= ruleDatamartSetFunction EOF ; |
| public final EObject entryRuleDatamartSetFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSetFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2698:60: (iv_ruleDatamartSetFunction= ruleDatamartSetFunction EOF ) |
| // InternalDatamartDSL.g:2699:2: iv_ruleDatamartSetFunction= ruleDatamartSetFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSetFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSetFunction=ruleDatamartSetFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSetFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSetFunction" |
| |
| |
| // $ANTLR start "ruleDatamartSetFunction" |
| // InternalDatamartDSL.g:2705:1: ruleDatamartSetFunction returns [EObject current=null] : ( (lv_setFunction_0_0= ruleSetFunctionEnum ) ) ; |
| public final EObject ruleDatamartSetFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Enumerator lv_setFunction_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2711:2: ( ( (lv_setFunction_0_0= ruleSetFunctionEnum ) ) ) |
| // InternalDatamartDSL.g:2712:2: ( (lv_setFunction_0_0= ruleSetFunctionEnum ) ) |
| { |
| // InternalDatamartDSL.g:2712:2: ( (lv_setFunction_0_0= ruleSetFunctionEnum ) ) |
| // InternalDatamartDSL.g:2713:3: (lv_setFunction_0_0= ruleSetFunctionEnum ) |
| { |
| // InternalDatamartDSL.g:2713:3: (lv_setFunction_0_0= ruleSetFunctionEnum ) |
| // InternalDatamartDSL.g:2714:4: lv_setFunction_0_0= ruleSetFunctionEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetFunctionAccess().getSetFunctionSetFunctionEnumEnumRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_setFunction_0_0=ruleSetFunctionEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetFunctionRule()); |
| } |
| set( |
| current, |
| "setFunction", |
| lv_setFunction_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetFunctionEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSetFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartSetParameterFunction" |
| // InternalDatamartDSL.g:2734:1: entryRuleDatamartSetParameterFunction returns [EObject current=null] : iv_ruleDatamartSetParameterFunction= ruleDatamartSetParameterFunction EOF ; |
| public final EObject entryRuleDatamartSetParameterFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSetParameterFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2734:69: (iv_ruleDatamartSetParameterFunction= ruleDatamartSetParameterFunction EOF ) |
| // InternalDatamartDSL.g:2735:2: iv_ruleDatamartSetParameterFunction= ruleDatamartSetParameterFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSetParameterFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSetParameterFunction=ruleDatamartSetParameterFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSetParameterFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSetParameterFunction" |
| |
| |
| // $ANTLR start "ruleDatamartSetParameterFunction" |
| // InternalDatamartDSL.g:2741:1: ruleDatamartSetParameterFunction returns [EObject current=null] : ( ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ; |
| public final EObject ruleDatamartSetParameterFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Enumerator lv_setFunction_0_0 = null; |
| |
| EObject lv_parameter_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2747:2: ( ( ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ) |
| // InternalDatamartDSL.g:2748:2: ( ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| { |
| // InternalDatamartDSL.g:2748:2: ( ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| // InternalDatamartDSL.g:2749:3: ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' |
| { |
| // InternalDatamartDSL.g:2749:3: ( (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) ) |
| // InternalDatamartDSL.g:2750:4: (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) |
| { |
| // InternalDatamartDSL.g:2750:4: (lv_setFunction_0_0= ruleSetParameterFunctionEnum ) |
| // InternalDatamartDSL.g:2751:5: lv_setFunction_0_0= ruleSetParameterFunctionEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetParameterFunctionAccess().getSetFunctionSetParameterFunctionEnumEnumRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_58); |
| lv_setFunction_0_0=ruleSetParameterFunctionEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetParameterFunctionRule()); |
| } |
| set( |
| current, |
| "setFunction", |
| lv_setFunction_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetParameterFunctionEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,51,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartSetParameterFunctionAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:2772:3: ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) |
| // InternalDatamartDSL.g:2773:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| { |
| // InternalDatamartDSL.g:2773:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| // InternalDatamartDSL.g:2774:5: lv_parameter_2_0= ruleDatamartFunctionIntParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetParameterFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_parameter_2_0=ruleDatamartFunctionIntParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetParameterFunctionRule()); |
| } |
| set( |
| current, |
| "parameter", |
| lv_parameter_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartSetParameterFunctionAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSetParameterFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartSetAggregationFunction" |
| // InternalDatamartDSL.g:2799:1: entryRuleDatamartSetAggregationFunction returns [EObject current=null] : iv_ruleDatamartSetAggregationFunction= ruleDatamartSetAggregationFunction EOF ; |
| public final EObject entryRuleDatamartSetAggregationFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSetAggregationFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2799:71: (iv_ruleDatamartSetAggregationFunction= ruleDatamartSetAggregationFunction EOF ) |
| // InternalDatamartDSL.g:2800:2: iv_ruleDatamartSetAggregationFunction= ruleDatamartSetAggregationFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSetAggregationFunction=ruleDatamartSetAggregationFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSetAggregationFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSetAggregationFunction" |
| |
| |
| // $ANTLR start "ruleDatamartSetAggregationFunction" |
| // InternalDatamartDSL.g:2806:1: ruleDatamartSetAggregationFunction returns [EObject current=null] : ( ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ; |
| public final EObject ruleDatamartSetAggregationFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Enumerator lv_aggregation_0_0 = null; |
| |
| EObject lv_parameter_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2812:2: ( ( ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) ) |
| // InternalDatamartDSL.g:2813:2: ( ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| { |
| // InternalDatamartDSL.g:2813:2: ( ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' ) |
| // InternalDatamartDSL.g:2814:3: ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) otherlv_1= '(' ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) otherlv_3= ')' |
| { |
| // InternalDatamartDSL.g:2814:3: ( (lv_aggregation_0_0= ruleSetAggregationEnum ) ) |
| // InternalDatamartDSL.g:2815:4: (lv_aggregation_0_0= ruleSetAggregationEnum ) |
| { |
| // InternalDatamartDSL.g:2815:4: (lv_aggregation_0_0= ruleSetAggregationEnum ) |
| // InternalDatamartDSL.g:2816:5: lv_aggregation_0_0= ruleSetAggregationEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionAccess().getAggregationSetAggregationEnumEnumRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_58); |
| lv_aggregation_0_0=ruleSetAggregationEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationFunctionRule()); |
| } |
| set( |
| current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.SetAggregationEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,51,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartSetAggregationFunctionAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:2837:3: ( (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) ) |
| // InternalDatamartDSL.g:2838:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| { |
| // InternalDatamartDSL.g:2838:4: (lv_parameter_2_0= ruleDatamartFunctionIntParameter ) |
| // InternalDatamartDSL.g:2839:5: lv_parameter_2_0= ruleDatamartFunctionIntParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationFunctionAccess().getParameterDatamartFunctionIntParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| lv_parameter_2_0=ruleDatamartFunctionIntParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationFunctionRule()); |
| } |
| set( |
| current, |
| "parameter", |
| lv_parameter_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartFunctionIntParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,52,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartSetAggregationFunctionAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSetAggregationFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartSetTuple" |
| // InternalDatamartDSL.g:2864:1: entryRuleDatamartSetTuple returns [EObject current=null] : iv_ruleDatamartSetTuple= ruleDatamartSetTuple EOF ; |
| public final EObject entryRuleDatamartSetTuple() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSetTuple = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2864:57: (iv_ruleDatamartSetTuple= ruleDatamartSetTuple EOF ) |
| // InternalDatamartDSL.g:2865:2: iv_ruleDatamartSetTuple= ruleDatamartSetTuple EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSetTupleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSetTuple=ruleDatamartSetTuple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSetTuple; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSetTuple" |
| |
| |
| // $ANTLR start "ruleDatamartSetTuple" |
| // InternalDatamartDSL.g:2871:1: ruleDatamartSetTuple returns [EObject current=null] : ( ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) ) ; |
| public final EObject ruleDatamartSetTuple() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_3=null; |
| EObject lv_setFunction_0_0 = null; |
| |
| EObject lv_setFunction_1_0 = null; |
| |
| EObject lv_right_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2877:2: ( ( ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) ) ) |
| // InternalDatamartDSL.g:2878:2: ( ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) ) |
| { |
| // InternalDatamartDSL.g:2878:2: ( ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) ) |
| // InternalDatamartDSL.g:2879:3: ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) |
| { |
| // InternalDatamartDSL.g:2879:3: ( ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) | ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) ) |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( ((LA46_0>=158 && LA46_0<=159)) ) { |
| alt46=1; |
| } |
| else if ( ((LA46_0>=160 && LA46_0<=161)) ) { |
| alt46=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalDatamartDSL.g:2880:4: ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) |
| { |
| // InternalDatamartDSL.g:2880:4: ( (lv_setFunction_0_0= ruleDatamartSetFunction ) ) |
| // InternalDatamartDSL.g:2881:5: (lv_setFunction_0_0= ruleDatamartSetFunction ) |
| { |
| // InternalDatamartDSL.g:2881:5: (lv_setFunction_0_0= ruleDatamartSetFunction ) |
| // InternalDatamartDSL.g:2882:6: lv_setFunction_0_0= ruleDatamartSetFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getSetFunctionDatamartSetFunctionParserRuleCall_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_setFunction_0_0=ruleDatamartSetFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule()); |
| } |
| set( |
| current, |
| "setFunction", |
| lv_setFunction_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:2900:4: ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) |
| { |
| // InternalDatamartDSL.g:2900:4: ( (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) ) |
| // InternalDatamartDSL.g:2901:5: (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) |
| { |
| // InternalDatamartDSL.g:2901:5: (lv_setFunction_1_0= ruleDatamartSetParameterFunction ) |
| // InternalDatamartDSL.g:2902:6: lv_setFunction_1_0= ruleDatamartSetParameterFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getSetFunctionDatamartSetParameterFunctionParserRuleCall_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_setFunction_1_0=ruleDatamartSetParameterFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule()); |
| } |
| set( |
| current, |
| "setFunction", |
| lv_setFunction_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetParameterFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:2920:3: ( () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) ) |
| // InternalDatamartDSL.g:2921:4: () otherlv_3= 'of' ( (lv_right_4_0= ruleDatamartHierarchy ) ) |
| { |
| // InternalDatamartDSL.g:2921:4: () |
| // InternalDatamartDSL.g:2922:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartSetTupleAccess().getDatamartSetTupleLeftAction_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_3=(Token)match(input,64,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartSetTupleAccess().getOfKeyword_1_1()); |
| |
| } |
| // InternalDatamartDSL.g:2932:4: ( (lv_right_4_0= ruleDatamartHierarchy ) ) |
| // InternalDatamartDSL.g:2933:5: (lv_right_4_0= ruleDatamartHierarchy ) |
| { |
| // InternalDatamartDSL.g:2933:5: (lv_right_4_0= ruleDatamartHierarchy ) |
| // InternalDatamartDSL.g:2934:6: lv_right_4_0= ruleDatamartHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetTupleAccess().getRightDatamartHierarchyParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_4_0=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetTupleRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSetTuple" |
| |
| |
| // $ANTLR start "entryRuleDatamartAggregationFunction" |
| // InternalDatamartDSL.g:2956:1: entryRuleDatamartAggregationFunction returns [EObject current=null] : iv_ruleDatamartAggregationFunction= ruleDatamartAggregationFunction EOF ; |
| public final EObject entryRuleDatamartAggregationFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAggregationFunction = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2956:68: (iv_ruleDatamartAggregationFunction= ruleDatamartAggregationFunction EOF ) |
| // InternalDatamartDSL.g:2957:2: iv_ruleDatamartAggregationFunction= ruleDatamartAggregationFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAggregationFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAggregationFunction=ruleDatamartAggregationFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAggregationFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAggregationFunction" |
| |
| |
| // $ANTLR start "ruleDatamartAggregationFunction" |
| // InternalDatamartDSL.g:2963:1: ruleDatamartAggregationFunction returns [EObject current=null] : ( (lv_aggregation_0_0= ruleAggregationEnum ) ) ; |
| public final EObject ruleDatamartAggregationFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Enumerator lv_aggregation_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:2969:2: ( ( (lv_aggregation_0_0= ruleAggregationEnum ) ) ) |
| // InternalDatamartDSL.g:2970:2: ( (lv_aggregation_0_0= ruleAggregationEnum ) ) |
| { |
| // InternalDatamartDSL.g:2970:2: ( (lv_aggregation_0_0= ruleAggregationEnum ) ) |
| // InternalDatamartDSL.g:2971:3: (lv_aggregation_0_0= ruleAggregationEnum ) |
| { |
| // InternalDatamartDSL.g:2971:3: (lv_aggregation_0_0= ruleAggregationEnum ) |
| // InternalDatamartDSL.g:2972:4: lv_aggregation_0_0= ruleAggregationEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAggregationFunctionAccess().getAggregationAggregationEnumEnumRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_aggregation_0_0=ruleAggregationEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAggregationFunctionRule()); |
| } |
| set( |
| current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.AggregationEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAggregationFunction" |
| |
| |
| // $ANTLR start "entryRuleDatamartAggregation" |
| // InternalDatamartDSL.g:2992:1: entryRuleDatamartAggregation returns [EObject current=null] : iv_ruleDatamartAggregation= ruleDatamartAggregation EOF ; |
| public final EObject entryRuleDatamartAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartAggregation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:2992:60: (iv_ruleDatamartAggregation= ruleDatamartAggregation EOF ) |
| // InternalDatamartDSL.g:2993:2: iv_ruleDatamartAggregation= ruleDatamartAggregation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartAggregationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartAggregation=ruleDatamartAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartAggregation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartAggregation" |
| |
| |
| // $ANTLR start "ruleDatamartAggregation" |
| // InternalDatamartDSL.g:2999:1: ruleDatamartAggregation returns [EObject current=null] : ( ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ; |
| public final EObject ruleDatamartAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_5=null; |
| EObject lv_aggregation_0_0 = null; |
| |
| EObject lv_set_2_0 = null; |
| |
| EObject lv_set_3_0 = null; |
| |
| EObject lv_right_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3005:2: ( ( ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ) |
| // InternalDatamartDSL.g:3006:2: ( ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| { |
| // InternalDatamartDSL.g:3006:2: ( ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| // InternalDatamartDSL.g:3007:3: ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| { |
| // InternalDatamartDSL.g:3007:3: ( (lv_aggregation_0_0= ruleDatamartAggregationFunction ) ) |
| // InternalDatamartDSL.g:3008:4: (lv_aggregation_0_0= ruleDatamartAggregationFunction ) |
| { |
| // InternalDatamartDSL.g:3008:4: (lv_aggregation_0_0= ruleDatamartAggregationFunction ) |
| // InternalDatamartDSL.g:3009:5: lv_aggregation_0_0= ruleDatamartAggregationFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAggregationAccess().getAggregationDatamartAggregationFunctionParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_aggregation_0_0=ruleDatamartAggregationFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAggregationRule()); |
| } |
| set( |
| current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAggregationFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,64,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartAggregationAccess().getOfKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:3030:3: ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( ((LA47_0>=158 && LA47_0<=161)) ) { |
| alt47=1; |
| } |
| else if ( (LA47_0==69) ) { |
| alt47=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 47, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalDatamartDSL.g:3031:4: ( (lv_set_2_0= ruleDatamartSetTuple ) ) |
| { |
| // InternalDatamartDSL.g:3031:4: ( (lv_set_2_0= ruleDatamartSetTuple ) ) |
| // InternalDatamartDSL.g:3032:5: (lv_set_2_0= ruleDatamartSetTuple ) |
| { |
| // InternalDatamartDSL.g:3032:5: (lv_set_2_0= ruleDatamartSetTuple ) |
| // InternalDatamartDSL.g:3033:6: lv_set_2_0= ruleDatamartSetTuple |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAggregationAccess().getSetDatamartSetTupleParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_set_2_0=ruleDatamartSetTuple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAggregationRule()); |
| } |
| set( |
| current, |
| "set", |
| lv_set_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetTuple"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3051:4: ( (lv_set_3_0= ruleDatamartHierarchy ) ) |
| { |
| // InternalDatamartDSL.g:3051:4: ( (lv_set_3_0= ruleDatamartHierarchy ) ) |
| // InternalDatamartDSL.g:3052:5: (lv_set_3_0= ruleDatamartHierarchy ) |
| { |
| // InternalDatamartDSL.g:3052:5: (lv_set_3_0= ruleDatamartHierarchy ) |
| // InternalDatamartDSL.g:3053:6: lv_set_3_0= ruleDatamartHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAggregationAccess().getSetDatamartHierarchyParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_set_3_0=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAggregationRule()); |
| } |
| set( |
| current, |
| "set", |
| lv_set_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3071:3: ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| // InternalDatamartDSL.g:3072:4: () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| { |
| // InternalDatamartDSL.g:3072:4: () |
| // InternalDatamartDSL.g:3073:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartAggregationAccess().getDatamartAggregationLeftAction_3_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_5=(Token)match(input,65,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartAggregationAccess().getOverKeyword_3_1()); |
| |
| } |
| // InternalDatamartDSL.g:3083:4: ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| // InternalDatamartDSL.g:3084:5: (lv_right_6_0= ruleDatamartMeasure ) |
| { |
| // InternalDatamartDSL.g:3084:5: (lv_right_6_0= ruleDatamartMeasure ) |
| // InternalDatamartDSL.g:3085:6: lv_right_6_0= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartAggregationAccess().getRightDatamartMeasureParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_6_0=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartAggregationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_6_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartAggregation" |
| |
| |
| // $ANTLR start "entryRuleDatamartSetAggregation" |
| // InternalDatamartDSL.g:3107:1: entryRuleDatamartSetAggregation returns [EObject current=null] : iv_ruleDatamartSetAggregation= ruleDatamartSetAggregation EOF ; |
| public final EObject entryRuleDatamartSetAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSetAggregation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3107:63: (iv_ruleDatamartSetAggregation= ruleDatamartSetAggregation EOF ) |
| // InternalDatamartDSL.g:3108:2: iv_ruleDatamartSetAggregation= ruleDatamartSetAggregation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSetAggregationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSetAggregation=ruleDatamartSetAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSetAggregation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSetAggregation" |
| |
| |
| // $ANTLR start "ruleDatamartSetAggregation" |
| // InternalDatamartDSL.g:3114:1: ruleDatamartSetAggregation returns [EObject current=null] : ( ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ; |
| public final EObject ruleDatamartSetAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_5=null; |
| EObject lv_aggregation_0_0 = null; |
| |
| EObject lv_set_2_0 = null; |
| |
| EObject lv_set_3_0 = null; |
| |
| EObject lv_right_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3120:2: ( ( ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) ) |
| // InternalDatamartDSL.g:3121:2: ( ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| { |
| // InternalDatamartDSL.g:3121:2: ( ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) ) |
| // InternalDatamartDSL.g:3122:3: ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) otherlv_1= 'of' ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| { |
| // InternalDatamartDSL.g:3122:3: ( (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) ) |
| // InternalDatamartDSL.g:3123:4: (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) |
| { |
| // InternalDatamartDSL.g:3123:4: (lv_aggregation_0_0= ruleDatamartSetAggregationFunction ) |
| // InternalDatamartDSL.g:3124:5: lv_aggregation_0_0= ruleDatamartSetAggregationFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getAggregationDatamartSetAggregationFunctionParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_aggregation_0_0=ruleDatamartSetAggregationFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule()); |
| } |
| set( |
| current, |
| "aggregation", |
| lv_aggregation_0_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetAggregationFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,64,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartSetAggregationAccess().getOfKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:3145:3: ( ( (lv_set_2_0= ruleDatamartSetTuple ) ) | ( (lv_set_3_0= ruleDatamartHierarchy ) ) ) |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( ((LA48_0>=158 && LA48_0<=161)) ) { |
| alt48=1; |
| } |
| else if ( (LA48_0==69) ) { |
| alt48=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalDatamartDSL.g:3146:4: ( (lv_set_2_0= ruleDatamartSetTuple ) ) |
| { |
| // InternalDatamartDSL.g:3146:4: ( (lv_set_2_0= ruleDatamartSetTuple ) ) |
| // InternalDatamartDSL.g:3147:5: (lv_set_2_0= ruleDatamartSetTuple ) |
| { |
| // InternalDatamartDSL.g:3147:5: (lv_set_2_0= ruleDatamartSetTuple ) |
| // InternalDatamartDSL.g:3148:6: lv_set_2_0= ruleDatamartSetTuple |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getSetDatamartSetTupleParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_set_2_0=ruleDatamartSetTuple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule()); |
| } |
| set( |
| current, |
| "set", |
| lv_set_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartSetTuple"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3166:4: ( (lv_set_3_0= ruleDatamartHierarchy ) ) |
| { |
| // InternalDatamartDSL.g:3166:4: ( (lv_set_3_0= ruleDatamartHierarchy ) ) |
| // InternalDatamartDSL.g:3167:5: (lv_set_3_0= ruleDatamartHierarchy ) |
| { |
| // InternalDatamartDSL.g:3167:5: (lv_set_3_0= ruleDatamartHierarchy ) |
| // InternalDatamartDSL.g:3168:6: lv_set_3_0= ruleDatamartHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getSetDatamartHierarchyParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_set_3_0=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule()); |
| } |
| set( |
| current, |
| "set", |
| lv_set_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchy"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3186:3: ( () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) ) |
| // InternalDatamartDSL.g:3187:4: () otherlv_5= 'over' ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| { |
| // InternalDatamartDSL.g:3187:4: () |
| // InternalDatamartDSL.g:3188:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getDatamartSetAggregationAccess().getDatamartSetAggregationLeftAction_3_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_5=(Token)match(input,65,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartSetAggregationAccess().getOverKeyword_3_1()); |
| |
| } |
| // InternalDatamartDSL.g:3198:4: ( (lv_right_6_0= ruleDatamartMeasure ) ) |
| // InternalDatamartDSL.g:3199:5: (lv_right_6_0= ruleDatamartMeasure ) |
| { |
| // InternalDatamartDSL.g:3199:5: (lv_right_6_0= ruleDatamartMeasure ) |
| // InternalDatamartDSL.g:3200:6: lv_right_6_0= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSetAggregationAccess().getRightDatamartMeasureParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_6_0=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSetAggregationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_6_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSetAggregation" |
| |
| |
| // $ANTLR start "entryRuleDatamartSlicer" |
| // InternalDatamartDSL.g:3222:1: entryRuleDatamartSlicer returns [EObject current=null] : iv_ruleDatamartSlicer= ruleDatamartSlicer EOF ; |
| public final EObject entryRuleDatamartSlicer() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartSlicer = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3222:55: (iv_ruleDatamartSlicer= ruleDatamartSlicer EOF ) |
| // InternalDatamartDSL.g:3223:2: iv_ruleDatamartSlicer= ruleDatamartSlicer EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartSlicerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartSlicer=ruleDatamartSlicer(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartSlicer; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartSlicer" |
| |
| |
| // $ANTLR start "ruleDatamartSlicer" |
| // InternalDatamartDSL.g:3229:1: ruleDatamartSlicer returns [EObject current=null] : (otherlv_0= 'slicer' ( (lv_element_1_0= ruleDatamartElement ) ) ) ; |
| public final EObject ruleDatamartSlicer() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_element_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3235:2: ( (otherlv_0= 'slicer' ( (lv_element_1_0= ruleDatamartElement ) ) ) ) |
| // InternalDatamartDSL.g:3236:2: (otherlv_0= 'slicer' ( (lv_element_1_0= ruleDatamartElement ) ) ) |
| { |
| // InternalDatamartDSL.g:3236:2: (otherlv_0= 'slicer' ( (lv_element_1_0= ruleDatamartElement ) ) ) |
| // InternalDatamartDSL.g:3237:3: otherlv_0= 'slicer' ( (lv_element_1_0= ruleDatamartElement ) ) |
| { |
| otherlv_0=(Token)match(input,66,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartSlicerAccess().getSlicerKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:3241:3: ( (lv_element_1_0= ruleDatamartElement ) ) |
| // InternalDatamartDSL.g:3242:4: (lv_element_1_0= ruleDatamartElement ) |
| { |
| // InternalDatamartDSL.g:3242:4: (lv_element_1_0= ruleDatamartElement ) |
| // InternalDatamartDSL.g:3243:5: lv_element_1_0= ruleDatamartElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartSlicerAccess().getElementDatamartElementParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_element_1_0=ruleDatamartElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartSlicerRule()); |
| } |
| set( |
| current, |
| "element", |
| lv_element_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartSlicer" |
| |
| |
| // $ANTLR start "entryRuleDatamartCubeAxis" |
| // InternalDatamartDSL.g:3264:1: entryRuleDatamartCubeAxis returns [EObject current=null] : iv_ruleDatamartCubeAxis= ruleDatamartCubeAxis EOF ; |
| public final EObject entryRuleDatamartCubeAxis() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartCubeAxis = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3264:57: (iv_ruleDatamartCubeAxis= ruleDatamartCubeAxis EOF ) |
| // InternalDatamartDSL.g:3265:2: iv_ruleDatamartCubeAxis= ruleDatamartCubeAxis EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartCubeAxisRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartCubeAxis=ruleDatamartCubeAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartCubeAxis; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartCubeAxis" |
| |
| |
| // $ANTLR start "ruleDatamartCubeAxis" |
| // InternalDatamartDSL.g:3271:1: ruleDatamartCubeAxis returns [EObject current=null] : ( () ( (lv_axis_1_0= ruleDatamartAxis ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleDatamartElement ) )* otherlv_4= '}' ) ; |
| public final EObject ruleDatamartCubeAxis() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_axis_1_0 = null; |
| |
| EObject lv_elements_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3277:2: ( ( () ( (lv_axis_1_0= ruleDatamartAxis ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleDatamartElement ) )* otherlv_4= '}' ) ) |
| // InternalDatamartDSL.g:3278:2: ( () ( (lv_axis_1_0= ruleDatamartAxis ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleDatamartElement ) )* otherlv_4= '}' ) |
| { |
| // InternalDatamartDSL.g:3278:2: ( () ( (lv_axis_1_0= ruleDatamartAxis ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleDatamartElement ) )* otherlv_4= '}' ) |
| // InternalDatamartDSL.g:3279:3: () ( (lv_axis_1_0= ruleDatamartAxis ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleDatamartElement ) )* otherlv_4= '}' |
| { |
| // InternalDatamartDSL.g:3279:3: () |
| // InternalDatamartDSL.g:3280:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDatamartCubeAxisAccess().getDatamartCubeAxisAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:3286:3: ( (lv_axis_1_0= ruleDatamartAxis ) ) |
| // InternalDatamartDSL.g:3287:4: (lv_axis_1_0= ruleDatamartAxis ) |
| { |
| // InternalDatamartDSL.g:3287:4: (lv_axis_1_0= ruleDatamartAxis ) |
| // InternalDatamartDSL.g:3288:5: lv_axis_1_0= ruleDatamartAxis |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeAxisAccess().getAxisDatamartAxisParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_14); |
| lv_axis_1_0=ruleDatamartAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartCubeAxisRule()); |
| } |
| set( |
| current, |
| "axis", |
| lv_axis_1_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartAxis"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_61); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDatamartCubeAxisAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:3309:3: ( (lv_elements_3_0= ruleDatamartElement ) )* |
| loop49: |
| do { |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( ((LA49_0>=67 && LA49_0<=69)||(LA49_0>=162 && LA49_0<=167)) ) { |
| alt49=1; |
| } |
| |
| |
| switch (alt49) { |
| case 1 : |
| // InternalDatamartDSL.g:3310:4: (lv_elements_3_0= ruleDatamartElement ) |
| { |
| // InternalDatamartDSL.g:3310:4: (lv_elements_3_0= ruleDatamartElement ) |
| // InternalDatamartDSL.g:3311:5: lv_elements_3_0= ruleDatamartElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartCubeAxisAccess().getElementsDatamartElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_elements_3_0=ruleDatamartElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartCubeAxisRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop49; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDatamartCubeAxisAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartCubeAxis" |
| |
| |
| // $ANTLR start "entryRuleDatamartElement" |
| // InternalDatamartDSL.g:3336:1: entryRuleDatamartElement returns [EObject current=null] : iv_ruleDatamartElement= ruleDatamartElement EOF ; |
| public final EObject entryRuleDatamartElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartElement = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3336:56: (iv_ruleDatamartElement= ruleDatamartElement EOF ) |
| // InternalDatamartDSL.g:3337:2: iv_ruleDatamartElement= ruleDatamartElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartElement=ruleDatamartElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartElement" |
| |
| |
| // $ANTLR start "ruleDatamartElement" |
| // InternalDatamartDSL.g:3343:1: ruleDatamartElement returns [EObject current=null] : (this_DatamartHierarchy_0= ruleDatamartHierarchy | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartSetAggregation_3= ruleDatamartSetAggregation ) ; |
| public final EObject ruleDatamartElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartHierarchy_0 = null; |
| |
| EObject this_DatamartMeasure_1 = null; |
| |
| EObject this_DatamartDerivedMeasure_2 = null; |
| |
| EObject this_DatamartSetAggregation_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3349:2: ( (this_DatamartHierarchy_0= ruleDatamartHierarchy | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartSetAggregation_3= ruleDatamartSetAggregation ) ) |
| // InternalDatamartDSL.g:3350:2: (this_DatamartHierarchy_0= ruleDatamartHierarchy | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartSetAggregation_3= ruleDatamartSetAggregation ) |
| { |
| // InternalDatamartDSL.g:3350:2: (this_DatamartHierarchy_0= ruleDatamartHierarchy | this_DatamartMeasure_1= ruleDatamartMeasure | this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure | this_DatamartSetAggregation_3= ruleDatamartSetAggregation ) |
| int alt50=4; |
| switch ( input.LA(1) ) { |
| case 69: |
| { |
| alt50=1; |
| } |
| break; |
| case 68: |
| { |
| alt50=2; |
| } |
| break; |
| case 67: |
| { |
| alt50=3; |
| } |
| break; |
| case 162: |
| case 163: |
| case 164: |
| case 165: |
| case 166: |
| case 167: |
| { |
| alt50=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 50, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt50) { |
| case 1 : |
| // InternalDatamartDSL.g:3351:3: this_DatamartHierarchy_0= ruleDatamartHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartHierarchyParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartHierarchy_0=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartHierarchy_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3360:3: this_DatamartMeasure_1= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartMeasureParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartMeasure_1=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartMeasure_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:3369:3: this_DatamartDerivedMeasure_2= ruleDatamartDerivedMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartDerivedMeasureParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartDerivedMeasure_2=ruleDatamartDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartDerivedMeasure_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:3378:3: this_DatamartSetAggregation_3= ruleDatamartSetAggregation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartElementAccess().getDatamartSetAggregationParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartSetAggregation_3=ruleDatamartSetAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartSetAggregation_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartElement" |
| |
| |
| // $ANTLR start "entryRuleDatamartDerivedMeasure" |
| // InternalDatamartDSL.g:3390:1: entryRuleDatamartDerivedMeasure returns [EObject current=null] : iv_ruleDatamartDerivedMeasure= ruleDatamartDerivedMeasure EOF ; |
| public final EObject entryRuleDatamartDerivedMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartDerivedMeasure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3390:63: (iv_ruleDatamartDerivedMeasure= ruleDatamartDerivedMeasure EOF ) |
| // InternalDatamartDSL.g:3391:2: iv_ruleDatamartDerivedMeasure= ruleDatamartDerivedMeasure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartDerivedMeasureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartDerivedMeasure=ruleDatamartDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartDerivedMeasure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartDerivedMeasure" |
| |
| |
| // $ANTLR start "ruleDatamartDerivedMeasure" |
| // InternalDatamartDSL.g:3397:1: ruleDatamartDerivedMeasure returns [EObject current=null] : (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) ; |
| public final EObject ruleDatamartDerivedMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_scaled_2_0=null; |
| Enumerator lv_scale_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3403:2: ( (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) ) |
| // InternalDatamartDSL.g:3404:2: (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) |
| { |
| // InternalDatamartDSL.g:3404:2: (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) |
| // InternalDatamartDSL.g:3405:3: otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? |
| { |
| otherlv_0=(Token)match(input,67,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartDerivedMeasureAccess().getDerivedKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:3409:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:3410:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:3410:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:3411:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDerivedMeasureRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartDerivedMeasureAccess().getDerivedRefDatamartDefineDerivedMeasureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3422:3: ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==45) ) { |
| alt51=1; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalDatamartDSL.g:3423:4: ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) |
| { |
| // InternalDatamartDSL.g:3423:4: ( (lv_scaled_2_0= 'scale' ) ) |
| // InternalDatamartDSL.g:3424:5: (lv_scaled_2_0= 'scale' ) |
| { |
| // InternalDatamartDSL.g:3424:5: (lv_scaled_2_0= 'scale' ) |
| // InternalDatamartDSL.g:3425:6: lv_scaled_2_0= 'scale' |
| { |
| lv_scaled_2_0=(Token)match(input,45,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_scaled_2_0, grammarAccess.getDatamartDerivedMeasureAccess().getScaledScaleKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartDerivedMeasureRule()); |
| } |
| setWithLastConsumed(current, "scaled", true, "scale"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3437:4: ( (lv_scale_3_0= ruleValueScaleEnum ) ) |
| // InternalDatamartDSL.g:3438:5: (lv_scale_3_0= ruleValueScaleEnum ) |
| { |
| // InternalDatamartDSL.g:3438:5: (lv_scale_3_0= ruleValueScaleEnum ) |
| // InternalDatamartDSL.g:3439:6: lv_scale_3_0= ruleValueScaleEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartDerivedMeasureAccess().getScaleValueScaleEnumEnumRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_scale_3_0=ruleValueScaleEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartDerivedMeasureRule()); |
| } |
| set( |
| current, |
| "scale", |
| lv_scale_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartDerivedMeasure" |
| |
| |
| // $ANTLR start "entryRuleDatamartMeasure" |
| // InternalDatamartDSL.g:3461:1: entryRuleDatamartMeasure returns [EObject current=null] : iv_ruleDatamartMeasure= ruleDatamartMeasure EOF ; |
| public final EObject entryRuleDatamartMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartMeasure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3461:56: (iv_ruleDatamartMeasure= ruleDatamartMeasure EOF ) |
| // InternalDatamartDSL.g:3462:2: iv_ruleDatamartMeasure= ruleDatamartMeasure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartMeasureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartMeasure=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartMeasure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartMeasure" |
| |
| |
| // $ANTLR start "ruleDatamartMeasure" |
| // InternalDatamartDSL.g:3468:1: ruleDatamartMeasure returns [EObject current=null] : (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) ; |
| public final EObject ruleDatamartMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_scaled_2_0=null; |
| Enumerator lv_scale_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3474:2: ( (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) ) |
| // InternalDatamartDSL.g:3475:2: (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) |
| { |
| // InternalDatamartDSL.g:3475:2: (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? ) |
| // InternalDatamartDSL.g:3476:3: otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? |
| { |
| otherlv_0=(Token)match(input,68,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartMeasureAccess().getMeasureKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:3480:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:3481:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:3481:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:3482:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartMeasureRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartMeasureAccess().getMeasureRefCubeMeasureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3493:3: ( ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) )? |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==45) ) { |
| alt52=1; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalDatamartDSL.g:3494:4: ( (lv_scaled_2_0= 'scale' ) ) ( (lv_scale_3_0= ruleValueScaleEnum ) ) |
| { |
| // InternalDatamartDSL.g:3494:4: ( (lv_scaled_2_0= 'scale' ) ) |
| // InternalDatamartDSL.g:3495:5: (lv_scaled_2_0= 'scale' ) |
| { |
| // InternalDatamartDSL.g:3495:5: (lv_scaled_2_0= 'scale' ) |
| // InternalDatamartDSL.g:3496:6: lv_scaled_2_0= 'scale' |
| { |
| lv_scaled_2_0=(Token)match(input,45,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_scaled_2_0, grammarAccess.getDatamartMeasureAccess().getScaledScaleKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartMeasureRule()); |
| } |
| setWithLastConsumed(current, "scaled", true, "scale"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3508:4: ( (lv_scale_3_0= ruleValueScaleEnum ) ) |
| // InternalDatamartDSL.g:3509:5: (lv_scale_3_0= ruleValueScaleEnum ) |
| { |
| // InternalDatamartDSL.g:3509:5: (lv_scale_3_0= ruleValueScaleEnum ) |
| // InternalDatamartDSL.g:3510:6: lv_scale_3_0= ruleValueScaleEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartMeasureAccess().getScaleValueScaleEnumEnumRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_scale_3_0=ruleValueScaleEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartMeasureRule()); |
| } |
| set( |
| current, |
| "scale", |
| lv_scale_3_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.ValueScaleEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartMeasure" |
| |
| |
| // $ANTLR start "entryRuleDatamartHierarchy" |
| // InternalDatamartDSL.g:3532:1: entryRuleDatamartHierarchy returns [EObject current=null] : iv_ruleDatamartHierarchy= ruleDatamartHierarchy EOF ; |
| public final EObject entryRuleDatamartHierarchy() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartHierarchy = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3532:58: (iv_ruleDatamartHierarchy= ruleDatamartHierarchy EOF ) |
| // InternalDatamartDSL.g:3533:2: iv_ruleDatamartHierarchy= ruleDatamartHierarchy EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartHierarchyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartHierarchy=ruleDatamartHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartHierarchy; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartHierarchy" |
| |
| |
| // $ANTLR start "ruleDatamartHierarchy" |
| // InternalDatamartDSL.g:3539:1: ruleDatamartHierarchy returns [EObject current=null] : (otherlv_0= 'hierarchy' ( (otherlv_1= RULE_ID ) ) ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? ) ; |
| public final EObject ruleDatamartHierarchy() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_defaultMember_3_0=null; |
| Token lv_allMember_4_0=null; |
| Token lv_allLevels_5_0=null; |
| Token lv_all_6_0=null; |
| Token lv_except_7_0=null; |
| Token otherlv_8=null; |
| Token lv_ordered_9_0=null; |
| Token lv_descending_11_0=null; |
| EObject lv_level_2_0 = null; |
| |
| EObject lv_orderRef_10_1 = null; |
| |
| EObject lv_orderRef_10_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3545:2: ( (otherlv_0= 'hierarchy' ( (otherlv_1= RULE_ID ) ) ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? ) ) |
| // InternalDatamartDSL.g:3546:2: (otherlv_0= 'hierarchy' ( (otherlv_1= RULE_ID ) ) ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? ) |
| { |
| // InternalDatamartDSL.g:3546:2: (otherlv_0= 'hierarchy' ( (otherlv_1= RULE_ID ) ) ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? ) |
| // InternalDatamartDSL.g:3547:3: otherlv_0= 'hierarchy' ( (otherlv_1= RULE_ID ) ) ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? |
| { |
| otherlv_0=(Token)match(input,69,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartHierarchyAccess().getHierarchyKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:3551:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:3552:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:3552:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:3553:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartHierarchyAccess().getHierarchyRefCubeHierarchyCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3564:3: ( (lv_level_2_0= ruleDatamartHierarchyLevelType ) )? |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==77||LA53_0==79) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalDatamartDSL.g:3565:4: (lv_level_2_0= ruleDatamartHierarchyLevelType ) |
| { |
| // InternalDatamartDSL.g:3565:4: (lv_level_2_0= ruleDatamartHierarchyLevelType ) |
| // InternalDatamartDSL.g:3566:5: lv_level_2_0= ruleDatamartHierarchyLevelType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyAccess().getLevelDatamartHierarchyLevelTypeParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_64); |
| lv_level_2_0=ruleDatamartHierarchyLevelType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartHierarchyRule()); |
| } |
| set( |
| current, |
| "level", |
| lv_level_2_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchyLevelType"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3583:3: ( ( (lv_defaultMember_3_0= 'default' ) ) | ( (lv_allMember_4_0= 'condensed' ) ) | ( (lv_allLevels_5_0= 'exploded' ) ) | ( (lv_all_6_0= 'detailed' ) ) )? |
| int alt54=5; |
| switch ( input.LA(1) ) { |
| case 70: |
| { |
| alt54=1; |
| } |
| break; |
| case 71: |
| { |
| alt54=2; |
| } |
| break; |
| case 72: |
| { |
| alt54=3; |
| } |
| break; |
| case 73: |
| { |
| alt54=4; |
| } |
| break; |
| } |
| |
| switch (alt54) { |
| case 1 : |
| // InternalDatamartDSL.g:3584:4: ( (lv_defaultMember_3_0= 'default' ) ) |
| { |
| // InternalDatamartDSL.g:3584:4: ( (lv_defaultMember_3_0= 'default' ) ) |
| // InternalDatamartDSL.g:3585:5: (lv_defaultMember_3_0= 'default' ) |
| { |
| // InternalDatamartDSL.g:3585:5: (lv_defaultMember_3_0= 'default' ) |
| // InternalDatamartDSL.g:3586:6: lv_defaultMember_3_0= 'default' |
| { |
| lv_defaultMember_3_0=(Token)match(input,70,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_defaultMember_3_0, grammarAccess.getDatamartHierarchyAccess().getDefaultMemberDefaultKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "defaultMember", true, "default"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3599:4: ( (lv_allMember_4_0= 'condensed' ) ) |
| { |
| // InternalDatamartDSL.g:3599:4: ( (lv_allMember_4_0= 'condensed' ) ) |
| // InternalDatamartDSL.g:3600:5: (lv_allMember_4_0= 'condensed' ) |
| { |
| // InternalDatamartDSL.g:3600:5: (lv_allMember_4_0= 'condensed' ) |
| // InternalDatamartDSL.g:3601:6: lv_allMember_4_0= 'condensed' |
| { |
| lv_allMember_4_0=(Token)match(input,71,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_allMember_4_0, grammarAccess.getDatamartHierarchyAccess().getAllMemberCondensedKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "allMember", true, "condensed"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:3614:4: ( (lv_allLevels_5_0= 'exploded' ) ) |
| { |
| // InternalDatamartDSL.g:3614:4: ( (lv_allLevels_5_0= 'exploded' ) ) |
| // InternalDatamartDSL.g:3615:5: (lv_allLevels_5_0= 'exploded' ) |
| { |
| // InternalDatamartDSL.g:3615:5: (lv_allLevels_5_0= 'exploded' ) |
| // InternalDatamartDSL.g:3616:6: lv_allLevels_5_0= 'exploded' |
| { |
| lv_allLevels_5_0=(Token)match(input,72,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_allLevels_5_0, grammarAccess.getDatamartHierarchyAccess().getAllLevelsExplodedKeyword_3_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "allLevels", true, "exploded"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:3629:4: ( (lv_all_6_0= 'detailed' ) ) |
| { |
| // InternalDatamartDSL.g:3629:4: ( (lv_all_6_0= 'detailed' ) ) |
| // InternalDatamartDSL.g:3630:5: (lv_all_6_0= 'detailed' ) |
| { |
| // InternalDatamartDSL.g:3630:5: (lv_all_6_0= 'detailed' ) |
| // InternalDatamartDSL.g:3631:6: lv_all_6_0= 'detailed' |
| { |
| lv_all_6_0=(Token)match(input,73,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_all_6_0, grammarAccess.getDatamartHierarchyAccess().getAllDetailedKeyword_3_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "all", true, "detailed"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3644:3: ( ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) )? |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==74) ) { |
| alt55=1; |
| } |
| switch (alt55) { |
| case 1 : |
| // InternalDatamartDSL.g:3645:4: ( (lv_except_7_0= 'except' ) ) ( (otherlv_8= RULE_ID ) ) |
| { |
| // InternalDatamartDSL.g:3645:4: ( (lv_except_7_0= 'except' ) ) |
| // InternalDatamartDSL.g:3646:5: (lv_except_7_0= 'except' ) |
| { |
| // InternalDatamartDSL.g:3646:5: (lv_except_7_0= 'except' ) |
| // InternalDatamartDSL.g:3647:6: lv_except_7_0= 'except' |
| { |
| lv_except_7_0=(Token)match(input,74,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_except_7_0, grammarAccess.getDatamartHierarchyAccess().getExceptExceptKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "except", true, "except"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3659:4: ( (otherlv_8= RULE_ID ) ) |
| // InternalDatamartDSL.g:3660:5: (otherlv_8= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:3660:5: (otherlv_8= RULE_ID ) |
| // InternalDatamartDSL.g:3661:6: otherlv_8= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| |
| } |
| otherlv_8=(Token)match(input,RULE_ID,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getDatamartHierarchyAccess().getExceptRefCubeLevelCrossReference_4_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3673:3: ( ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? )? |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==75) ) { |
| alt58=1; |
| } |
| switch (alt58) { |
| case 1 : |
| // InternalDatamartDSL.g:3674:4: ( (lv_ordered_9_0= 'orderBy' ) ) ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) ( (lv_descending_11_0= 'descending' ) )? |
| { |
| // InternalDatamartDSL.g:3674:4: ( (lv_ordered_9_0= 'orderBy' ) ) |
| // InternalDatamartDSL.g:3675:5: (lv_ordered_9_0= 'orderBy' ) |
| { |
| // InternalDatamartDSL.g:3675:5: (lv_ordered_9_0= 'orderBy' ) |
| // InternalDatamartDSL.g:3676:6: lv_ordered_9_0= 'orderBy' |
| { |
| lv_ordered_9_0=(Token)match(input,75,FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_ordered_9_0, grammarAccess.getDatamartHierarchyAccess().getOrderedOrderByKeyword_5_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "ordered", true, "orderBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3688:4: ( ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) ) |
| // InternalDatamartDSL.g:3689:5: ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) |
| { |
| // InternalDatamartDSL.g:3689:5: ( (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) ) |
| // InternalDatamartDSL.g:3690:6: (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) |
| { |
| // InternalDatamartDSL.g:3690:6: (lv_orderRef_10_1= ruleDatamartMeasure | lv_orderRef_10_2= ruleDatamartDerivedMeasure ) |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==68) ) { |
| alt56=1; |
| } |
| else if ( (LA56_0==67) ) { |
| 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 : |
| // InternalDatamartDSL.g:3691:7: lv_orderRef_10_1= ruleDatamartMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyAccess().getOrderRefDatamartMeasureParserRuleCall_5_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| lv_orderRef_10_1=ruleDatamartMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartHierarchyRule()); |
| } |
| set( |
| current, |
| "orderRef", |
| lv_orderRef_10_1, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartMeasure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3707:7: lv_orderRef_10_2= ruleDatamartDerivedMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyAccess().getOrderRefDatamartDerivedMeasureParserRuleCall_5_1_0_1()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| lv_orderRef_10_2=ruleDatamartDerivedMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartHierarchyRule()); |
| } |
| set( |
| current, |
| "orderRef", |
| lv_orderRef_10_2, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartDerivedMeasure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3725:4: ( (lv_descending_11_0= 'descending' ) )? |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==76) ) { |
| alt57=1; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalDatamartDSL.g:3726:5: (lv_descending_11_0= 'descending' ) |
| { |
| // InternalDatamartDSL.g:3726:5: (lv_descending_11_0= 'descending' ) |
| // InternalDatamartDSL.g:3727:6: lv_descending_11_0= 'descending' |
| { |
| lv_descending_11_0=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_descending_11_0, grammarAccess.getDatamartHierarchyAccess().getDescendingDescendingKeyword_5_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyRule()); |
| } |
| setWithLastConsumed(current, "descending", true, "descending"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartHierarchy" |
| |
| |
| // $ANTLR start "entryRuleDatamartHierarchyLevelType" |
| // InternalDatamartDSL.g:3744:1: entryRuleDatamartHierarchyLevelType returns [EObject current=null] : iv_ruleDatamartHierarchyLevelType= ruleDatamartHierarchyLevelType EOF ; |
| public final EObject entryRuleDatamartHierarchyLevelType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartHierarchyLevelType = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3744:67: (iv_ruleDatamartHierarchyLevelType= ruleDatamartHierarchyLevelType EOF ) |
| // InternalDatamartDSL.g:3745:2: iv_ruleDatamartHierarchyLevelType= ruleDatamartHierarchyLevelType EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelTypeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartHierarchyLevelType=ruleDatamartHierarchyLevelType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartHierarchyLevelType; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartHierarchyLevelType" |
| |
| |
| // $ANTLR start "ruleDatamartHierarchyLevelType" |
| // InternalDatamartDSL.g:3751:1: ruleDatamartHierarchyLevelType returns [EObject current=null] : (this_DatamartHierarchyLevelSingle_0= ruleDatamartHierarchyLevelSingle | this_DatamartHierarchyLevelMultiple_1= ruleDatamartHierarchyLevelMultiple ) ; |
| public final EObject ruleDatamartHierarchyLevelType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_DatamartHierarchyLevelSingle_0 = null; |
| |
| EObject this_DatamartHierarchyLevelMultiple_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3757:2: ( (this_DatamartHierarchyLevelSingle_0= ruleDatamartHierarchyLevelSingle | this_DatamartHierarchyLevelMultiple_1= ruleDatamartHierarchyLevelMultiple ) ) |
| // InternalDatamartDSL.g:3758:2: (this_DatamartHierarchyLevelSingle_0= ruleDatamartHierarchyLevelSingle | this_DatamartHierarchyLevelMultiple_1= ruleDatamartHierarchyLevelMultiple ) |
| { |
| // InternalDatamartDSL.g:3758:2: (this_DatamartHierarchyLevelSingle_0= ruleDatamartHierarchyLevelSingle | this_DatamartHierarchyLevelMultiple_1= ruleDatamartHierarchyLevelMultiple ) |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==77) ) { |
| alt59=1; |
| } |
| else if ( (LA59_0==79) ) { |
| alt59=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 59, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt59) { |
| case 1 : |
| // InternalDatamartDSL.g:3759:3: this_DatamartHierarchyLevelSingle_0= ruleDatamartHierarchyLevelSingle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelTypeAccess().getDatamartHierarchyLevelSingleParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartHierarchyLevelSingle_0=ruleDatamartHierarchyLevelSingle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartHierarchyLevelSingle_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3768:3: this_DatamartHierarchyLevelMultiple_1= ruleDatamartHierarchyLevelMultiple |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelTypeAccess().getDatamartHierarchyLevelMultipleParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DatamartHierarchyLevelMultiple_1=ruleDatamartHierarchyLevelMultiple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DatamartHierarchyLevelMultiple_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartHierarchyLevelType" |
| |
| |
| // $ANTLR start "entryRuleDatamartHierarchyLevelSingle" |
| // InternalDatamartDSL.g:3780:1: entryRuleDatamartHierarchyLevelSingle returns [EObject current=null] : iv_ruleDatamartHierarchyLevelSingle= ruleDatamartHierarchyLevelSingle EOF ; |
| public final EObject entryRuleDatamartHierarchyLevelSingle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartHierarchyLevelSingle = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3780:69: (iv_ruleDatamartHierarchyLevelSingle= ruleDatamartHierarchyLevelSingle EOF ) |
| // InternalDatamartDSL.g:3781:2: iv_ruleDatamartHierarchyLevelSingle= ruleDatamartHierarchyLevelSingle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelSingleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartHierarchyLevelSingle=ruleDatamartHierarchyLevelSingle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartHierarchyLevelSingle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartHierarchyLevelSingle" |
| |
| |
| // $ANTLR start "ruleDatamartHierarchyLevelSingle" |
| // InternalDatamartDSL.g:3787:1: ruleDatamartHierarchyLevelSingle returns [EObject current=null] : (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? ( (lv_sorted_4_0= 'sorted' ) )? ) ; |
| public final EObject ruleDatamartHierarchyLevelSingle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_filtered_2_0=null; |
| Token lv_selected_3_0=null; |
| Token lv_sorted_4_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3793:2: ( (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? ( (lv_sorted_4_0= 'sorted' ) )? ) ) |
| // InternalDatamartDSL.g:3794:2: (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? ( (lv_sorted_4_0= 'sorted' ) )? ) |
| { |
| // InternalDatamartDSL.g:3794:2: (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? ( (lv_sorted_4_0= 'sorted' ) )? ) |
| // InternalDatamartDSL.g:3795:3: otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? ( (lv_sorted_4_0= 'sorted' ) )? |
| { |
| otherlv_0=(Token)match(input,77,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDatamartHierarchyLevelSingleAccess().getLevelKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:3799:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalDatamartDSL.g:3800:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalDatamartDSL.g:3800:4: (otherlv_1= RULE_ID ) |
| // InternalDatamartDSL.g:3801:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyLevelSingleRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartHierarchyLevelSingleAccess().getLevelRefCubeLevelCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:3812:3: ( ( (lv_filtered_2_0= 'filtered' ) ) | ( (lv_selected_3_0= 'selected' ) ) )? |
| int alt60=3; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==53) ) { |
| alt60=1; |
| } |
| else if ( (LA60_0==55) ) { |
| alt60=2; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalDatamartDSL.g:3813:4: ( (lv_filtered_2_0= 'filtered' ) ) |
| { |
| // InternalDatamartDSL.g:3813:4: ( (lv_filtered_2_0= 'filtered' ) ) |
| // InternalDatamartDSL.g:3814:5: (lv_filtered_2_0= 'filtered' ) |
| { |
| // InternalDatamartDSL.g:3814:5: (lv_filtered_2_0= 'filtered' ) |
| // InternalDatamartDSL.g:3815:6: lv_filtered_2_0= 'filtered' |
| { |
| lv_filtered_2_0=(Token)match(input,53,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtered_2_0, grammarAccess.getDatamartHierarchyLevelSingleAccess().getFilteredFilteredKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyLevelSingleRule()); |
| } |
| setWithLastConsumed(current, "filtered", true, "filtered"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:3828:4: ( (lv_selected_3_0= 'selected' ) ) |
| { |
| // InternalDatamartDSL.g:3828:4: ( (lv_selected_3_0= 'selected' ) ) |
| // InternalDatamartDSL.g:3829:5: (lv_selected_3_0= 'selected' ) |
| { |
| // InternalDatamartDSL.g:3829:5: (lv_selected_3_0= 'selected' ) |
| // InternalDatamartDSL.g:3830:6: lv_selected_3_0= 'selected' |
| { |
| lv_selected_3_0=(Token)match(input,55,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selected_3_0, grammarAccess.getDatamartHierarchyLevelSingleAccess().getSelectedSelectedKeyword_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyLevelSingleRule()); |
| } |
| setWithLastConsumed(current, "selected", true, "selected"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:3843:3: ( (lv_sorted_4_0= 'sorted' ) )? |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( (LA61_0==78) ) { |
| alt61=1; |
| } |
| switch (alt61) { |
| case 1 : |
| // InternalDatamartDSL.g:3844:4: (lv_sorted_4_0= 'sorted' ) |
| { |
| // InternalDatamartDSL.g:3844:4: (lv_sorted_4_0= 'sorted' ) |
| // InternalDatamartDSL.g:3845:5: lv_sorted_4_0= 'sorted' |
| { |
| lv_sorted_4_0=(Token)match(input,78,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_sorted_4_0, grammarAccess.getDatamartHierarchyLevelSingleAccess().getSortedSortedKeyword_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyLevelSingleRule()); |
| } |
| setWithLastConsumed(current, "sorted", true, "sorted"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartHierarchyLevelSingle" |
| |
| |
| // $ANTLR start "entryRuleDatamartHierarchyLevelMultiple" |
| // InternalDatamartDSL.g:3861:1: entryRuleDatamartHierarchyLevelMultiple returns [EObject current=null] : iv_ruleDatamartHierarchyLevelMultiple= ruleDatamartHierarchyLevelMultiple EOF ; |
| public final EObject entryRuleDatamartHierarchyLevelMultiple() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDatamartHierarchyLevelMultiple = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3861:71: (iv_ruleDatamartHierarchyLevelMultiple= ruleDatamartHierarchyLevelMultiple EOF ) |
| // InternalDatamartDSL.g:3862:2: iv_ruleDatamartHierarchyLevelMultiple= ruleDatamartHierarchyLevelMultiple EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelMultipleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDatamartHierarchyLevelMultiple=ruleDatamartHierarchyLevelMultiple(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDatamartHierarchyLevelMultiple; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDatamartHierarchyLevelMultiple" |
| |
| |
| // $ANTLR start "ruleDatamartHierarchyLevelMultiple" |
| // InternalDatamartDSL.g:3868:1: ruleDatamartHierarchyLevelMultiple returns [EObject current=null] : ( () otherlv_1= 'hierarchize' ( (lv_post_2_0= 'post' ) )? otherlv_3= '{' ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* otherlv_5= '}' ) ; |
| public final EObject ruleDatamartHierarchyLevelMultiple() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_post_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| EObject lv_levels_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:3874:2: ( ( () otherlv_1= 'hierarchize' ( (lv_post_2_0= 'post' ) )? otherlv_3= '{' ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* otherlv_5= '}' ) ) |
| // InternalDatamartDSL.g:3875:2: ( () otherlv_1= 'hierarchize' ( (lv_post_2_0= 'post' ) )? otherlv_3= '{' ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* otherlv_5= '}' ) |
| { |
| // InternalDatamartDSL.g:3875:2: ( () otherlv_1= 'hierarchize' ( (lv_post_2_0= 'post' ) )? otherlv_3= '{' ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* otherlv_5= '}' ) |
| // InternalDatamartDSL.g:3876:3: () otherlv_1= 'hierarchize' ( (lv_post_2_0= 'post' ) )? otherlv_3= '{' ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* otherlv_5= '}' |
| { |
| // InternalDatamartDSL.g:3876:3: () |
| // InternalDatamartDSL.g:3877:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getDatamartHierarchyLevelMultipleAccess().getDatamartHierarchyLevelMultipleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,79,FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getDatamartHierarchyLevelMultipleAccess().getHierarchizeKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:3887:3: ( (lv_post_2_0= 'post' ) )? |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==80) ) { |
| alt62=1; |
| } |
| switch (alt62) { |
| case 1 : |
| // InternalDatamartDSL.g:3888:4: (lv_post_2_0= 'post' ) |
| { |
| // InternalDatamartDSL.g:3888:4: (lv_post_2_0= 'post' ) |
| // InternalDatamartDSL.g:3889:5: lv_post_2_0= 'post' |
| { |
| lv_post_2_0=(Token)match(input,80,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_post_2_0, grammarAccess.getDatamartHierarchyLevelMultipleAccess().getPostPostKeyword_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDatamartHierarchyLevelMultipleRule()); |
| } |
| setWithLastConsumed(current, "post", true, "post"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,14,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getDatamartHierarchyLevelMultipleAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalDatamartDSL.g:3905:3: ( (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) )* |
| loop63: |
| do { |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==77) ) { |
| alt63=1; |
| } |
| |
| |
| switch (alt63) { |
| case 1 : |
| // InternalDatamartDSL.g:3906:4: (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) |
| { |
| // InternalDatamartDSL.g:3906:4: (lv_levels_4_0= ruleDatamartHierarchyLevelSingle ) |
| // InternalDatamartDSL.g:3907:5: lv_levels_4_0= ruleDatamartHierarchyLevelSingle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDatamartHierarchyLevelMultipleAccess().getLevelsDatamartHierarchyLevelSingleParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| lv_levels_4_0=ruleDatamartHierarchyLevelSingle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDatamartHierarchyLevelMultipleRule()); |
| } |
| add( |
| current, |
| "levels", |
| lv_levels_4_0, |
| "org.eclipse.osbp.xtext.datamartdsl.DatamartDSL.DatamartHierarchyLevelSingle"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop63; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getDatamartHierarchyLevelMultipleAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDatamartHierarchyLevelMultiple" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLESTRING" |
| // InternalDatamartDSL.g:3932:1: entryRuleTRANSLATABLESTRING returns [String current=null] : iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ; |
| public final String entryRuleTRANSLATABLESTRING() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLESTRING = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3932:58: (iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ) |
| // InternalDatamartDSL.g:3933: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" |
| // InternalDatamartDSL.g:3939: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 { |
| // InternalDatamartDSL.g:3945:2: (this_STRING_0= RULE_STRING ) |
| // InternalDatamartDSL.g:3946: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" |
| // InternalDatamartDSL.g:3956:1: entryRuleTRANSLATABLEID returns [String current=null] : iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ; |
| public final String entryRuleTRANSLATABLEID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLEID = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3956:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ) |
| // InternalDatamartDSL.g:3957: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" |
| // InternalDatamartDSL.g:3963: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 { |
| // InternalDatamartDSL.g:3969:2: (this_ID_0= RULE_ID ) |
| // InternalDatamartDSL.g:3970: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" |
| // InternalDatamartDSL.g:3980:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:3980:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalDatamartDSL.g:3981: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" |
| // InternalDatamartDSL.g:3987: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 { |
| // InternalDatamartDSL.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= ';' )? ) ) |
| // InternalDatamartDSL.g:3994: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= ';' )? ) |
| { |
| // InternalDatamartDSL.g:3994: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= ';' )? ) |
| // InternalDatamartDSL.g:3995: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= ';' )? |
| { |
| // InternalDatamartDSL.g:3995:3: () |
| // InternalDatamartDSL.g:3996:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,81,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:4006: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 alt66=4; |
| alt66 = dfa66.predict(input); |
| switch (alt66) { |
| case 1 : |
| // InternalDatamartDSL.g:4007:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalDatamartDSL.g:4007:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalDatamartDSL.g:4008:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalDatamartDSL.g:4008:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalDatamartDSL.g:4009:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalDatamartDSL.g:4009:6: (lv_static_2_0= 'static' ) |
| // InternalDatamartDSL.g:4010:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,82,FOLLOW_74); 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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4022:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt64=2; |
| int LA64_0 = input.LA(1); |
| |
| if ( (LA64_0==83) ) { |
| alt64=1; |
| } |
| switch (alt64) { |
| case 1 : |
| // InternalDatamartDSL.g:4023:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalDatamartDSL.g:4023:6: (lv_extension_3_0= 'extension' ) |
| // InternalDatamartDSL.g:4024:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,83,FOLLOW_74); 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:4036:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalDatamartDSL.g:4037:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalDatamartDSL.g:4037:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalDatamartDSL.g:4038: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_75); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4052:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==62) ) { |
| alt65=1; |
| } |
| else if ( (LA65_0==RULE_ID) ) { |
| alt65=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 65, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt65) { |
| case 1 : |
| // InternalDatamartDSL.g:4053:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalDatamartDSL.g:4053:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalDatamartDSL.g:4054:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalDatamartDSL.g:4054:7: (lv_wildcard_5_0= '*' ) |
| // InternalDatamartDSL.g:4055:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,62,FOLLOW_76); 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 : |
| // InternalDatamartDSL.g:4068:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:4068:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalDatamartDSL.g:4069:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalDatamartDSL.g:4069:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalDatamartDSL.g:4070:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| 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 : |
| // InternalDatamartDSL.g:4090:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalDatamartDSL.g:4090:4: ( ( ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:4091:5: ( ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:4091:5: ( ruleQualifiedName ) |
| // InternalDatamartDSL.g:4092: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_76); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:4107:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalDatamartDSL.g:4107:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalDatamartDSL.g:4108:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalDatamartDSL.g:4108:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalDatamartDSL.g:4109:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| 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 : |
| // InternalDatamartDSL.g:4127:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalDatamartDSL.g:4127:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalDatamartDSL.g:4128:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalDatamartDSL.g:4128:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalDatamartDSL.g:4129:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalDatamartDSL.g:4129:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalDatamartDSL.g:4130:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,84,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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4142:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:4143:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:4143:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalDatamartDSL.g:4144:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:4163:3: (otherlv_11= ';' )? |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( (LA67_0==85) ) { |
| alt67=1; |
| } |
| switch (alt67) { |
| case 1 : |
| // InternalDatamartDSL.g:4164:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,85,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" |
| // InternalDatamartDSL.g:4173:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4173:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalDatamartDSL.g:4174: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" |
| // InternalDatamartDSL.g:4180: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 { |
| // InternalDatamartDSL.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= ')' )? ) ) |
| // InternalDatamartDSL.g:4187: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= ')' )? ) |
| { |
| // InternalDatamartDSL.g:4187: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= ')' )? ) |
| // InternalDatamartDSL.g:4188: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= ')' )? |
| { |
| // InternalDatamartDSL.g:4188:3: () |
| // InternalDatamartDSL.g:4189:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,86,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:4199:3: ( ( ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:4200:4: ( ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:4200:4: ( ruleQualifiedName ) |
| // InternalDatamartDSL.g:4201: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_77); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4215: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 alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==51) && (synpred1_InternalDatamartDSL())) { |
| alt70=1; |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalDatamartDSL.g:4216:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalDatamartDSL.g:4216:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalDatamartDSL.g:4217:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,51,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:4223:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt69=3; |
| alt69 = dfa69.predict(input); |
| switch (alt69) { |
| case 1 : |
| // InternalDatamartDSL.g:4224:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalDatamartDSL.g:4224:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalDatamartDSL.g:4225:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalDatamartDSL.g:4225:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDatamartDSL.g:4226:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDatamartDSL.g:4235:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalDatamartDSL.g:4236:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4253:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop68: |
| do { |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==87) ) { |
| alt68=1; |
| } |
| |
| |
| switch (alt68) { |
| case 1 : |
| // InternalDatamartDSL.g:4254:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,87,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:4258:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalDatamartDSL.g:4259:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalDatamartDSL.g:4268:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalDatamartDSL.g:4269:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop68; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:4289:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalDatamartDSL.g:4289:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalDatamartDSL.g:4290:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalDatamartDSL.g:4290:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalDatamartDSL.g:4291:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,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" |
| // InternalDatamartDSL.g:4318:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4318:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalDatamartDSL.g:4319: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" |
| // InternalDatamartDSL.g:4325: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 { |
| // InternalDatamartDSL.g:4331:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalDatamartDSL.g:4332:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalDatamartDSL.g:4332:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalDatamartDSL.g:4333:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalDatamartDSL.g:4333:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalDatamartDSL.g:4334:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalDatamartDSL.g:4343:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalDatamartDSL.g:4344:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalDatamartDSL.g:4344:5: ( ( ruleValidID ) ) |
| // InternalDatamartDSL.g:4345:6: ( ruleValidID ) |
| { |
| // InternalDatamartDSL.g:4345:6: ( ruleValidID ) |
| // InternalDatamartDSL.g:4346: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_80); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,88,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4366:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalDatamartDSL.g:4367:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalDatamartDSL.g:4367:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalDatamartDSL.g:4368: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" |
| // InternalDatamartDSL.g:4389:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4389:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalDatamartDSL.g:4390: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" |
| // InternalDatamartDSL.g:4396: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 { |
| // InternalDatamartDSL.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 ) ) )+ )? ) ) ) |
| // InternalDatamartDSL.g:4403: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 ) ) )+ )? ) ) |
| { |
| // InternalDatamartDSL.g:4403: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 alt75=2; |
| alt75 = dfa75.predict(input); |
| switch (alt75) { |
| case 1 : |
| // InternalDatamartDSL.g:4404:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDatamartDSL.g:4404:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDatamartDSL.g:4405:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDatamartDSL.g:4405:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDatamartDSL.g:4406:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDatamartDSL.g:4413:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDatamartDSL.g:4414:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDatamartDSL.g:4414:6: () |
| // InternalDatamartDSL.g:4415:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,89,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,90,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4431:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( ((LA72_0>=RULE_ID && LA72_0<=RULE_DECIMAL)||LA72_0==14||LA72_0==51||(LA72_0>=60 && LA72_0<=61)||(LA72_0>=81 && LA72_0<=83)||LA72_0==86||(LA72_0>=89 && LA72_0<=90)||LA72_0==97||LA72_0==115||LA72_0==123||LA72_0==125||(LA72_0>=128 && LA72_0<=130)||(LA72_0>=133 && LA72_0<=142)||LA72_0==144) ) { |
| alt72=1; |
| } |
| switch (alt72) { |
| case 1 : |
| // InternalDatamartDSL.g:4432:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:4432:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDatamartDSL.g:4433:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4433:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDatamartDSL.g:4434:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4451:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop71: |
| do { |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==87) ) { |
| alt71=1; |
| } |
| |
| |
| switch (alt71) { |
| case 1 : |
| // InternalDatamartDSL.g:4452:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:4456:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDatamartDSL.g:4457:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4457:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDatamartDSL.g:4458:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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 loop71; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,91,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:4483:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalDatamartDSL.g:4483:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalDatamartDSL.g:4484:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_85); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:4492:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==87) ) { |
| alt74=1; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalDatamartDSL.g:4493:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalDatamartDSL.g:4493:5: () |
| // InternalDatamartDSL.g:4494:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:4500:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt73=0; |
| loop73: |
| do { |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==87) ) { |
| alt73=1; |
| } |
| |
| |
| switch (alt73) { |
| case 1 : |
| // InternalDatamartDSL.g:4501:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:4505:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalDatamartDSL.g:4506:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4506:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalDatamartDSL.g:4507:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_85); |
| 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 ( cnt73 >= 1 ) break loop73; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(73, input); |
| throw eee; |
| } |
| cnt73++; |
| } 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" |
| // InternalDatamartDSL.g:4531:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4531:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalDatamartDSL.g:4532: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" |
| // InternalDatamartDSL.g:4538: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 { |
| // InternalDatamartDSL.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 ) ) |
| // InternalDatamartDSL.g:4545:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4545:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt78=2; |
| alt78 = dfa78.predict(input); |
| switch (alt78) { |
| case 1 : |
| // InternalDatamartDSL.g:4546:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDatamartDSL.g:4546:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDatamartDSL.g:4547:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDatamartDSL.g:4547:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalDatamartDSL.g:4548:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalDatamartDSL.g:4555:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalDatamartDSL.g:4556:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalDatamartDSL.g:4556:6: () |
| // InternalDatamartDSL.g:4557:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,89,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,90,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4573:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( ((LA77_0>=RULE_ID && LA77_0<=RULE_DECIMAL)||LA77_0==14||LA77_0==51||(LA77_0>=60 && LA77_0<=61)||(LA77_0>=81 && LA77_0<=83)||LA77_0==86||(LA77_0>=89 && LA77_0<=90)||LA77_0==97||LA77_0==115||LA77_0==123||LA77_0==125||(LA77_0>=128 && LA77_0<=130)||(LA77_0>=133 && LA77_0<=142)||LA77_0==144) ) { |
| alt77=1; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalDatamartDSL.g:4574:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:4574:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalDatamartDSL.g:4575:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4575:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalDatamartDSL.g:4576:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4593:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop76: |
| do { |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==87) ) { |
| alt76=1; |
| } |
| |
| |
| switch (alt76) { |
| case 1 : |
| // InternalDatamartDSL.g:4594:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:4598:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalDatamartDSL.g:4599:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalDatamartDSL.g:4599:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalDatamartDSL.g:4600:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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 loop76; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,91,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:4625: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" |
| // InternalDatamartDSL.g:4637:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4637:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalDatamartDSL.g:4638: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" |
| // InternalDatamartDSL.g:4644: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 { |
| // InternalDatamartDSL.g:4650:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalDatamartDSL.g:4651:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:4651:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==86) ) { |
| alt79=1; |
| } |
| else if ( ((LA79_0>=RULE_ID && LA79_0<=RULE_DECIMAL)||LA79_0==14||LA79_0==51||(LA79_0>=60 && LA79_0<=61)||(LA79_0>=81 && LA79_0<=83)||(LA79_0>=89 && LA79_0<=90)||LA79_0==97||LA79_0==115||LA79_0==123||LA79_0==125||(LA79_0>=128 && LA79_0<=130)||(LA79_0>=133 && LA79_0<=142)||LA79_0==144) ) { |
| alt79=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 79, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalDatamartDSL.g:4652: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 : |
| // InternalDatamartDSL.g:4661: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" |
| // InternalDatamartDSL.g:4673:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4673:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalDatamartDSL.g:4674: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" |
| // InternalDatamartDSL.g:4680: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 { |
| // InternalDatamartDSL.g:4686:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalDatamartDSL.g:4687: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" |
| // InternalDatamartDSL.g:4698:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4698:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalDatamartDSL.g:4699: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" |
| // InternalDatamartDSL.g:4705: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 { |
| // InternalDatamartDSL.g:4711:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalDatamartDSL.g:4712:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalDatamartDSL.g:4712:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt81=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA81_1 = input.LA(2); |
| |
| if ( (LA81_1==EOF||(LA81_1>=RULE_ID && LA81_1<=RULE_DECIMAL)||(LA81_1>=14 && LA81_1<=15)||(LA81_1>=51 && LA81_1<=52)||(LA81_1>=60 && LA81_1<=63)||LA81_1==70||(LA81_1>=81 && LA81_1<=83)||LA81_1==85||LA81_1==87||(LA81_1>=89 && LA81_1<=121)||(LA81_1>=123 && LA81_1<=145)) ) { |
| alt81=2; |
| } |
| else if ( (LA81_1==88) ) { |
| alt81=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 133: |
| { |
| int LA81_2 = input.LA(2); |
| |
| if ( (LA81_2==EOF||(LA81_2>=RULE_ID && LA81_2<=RULE_DECIMAL)||(LA81_2>=14 && LA81_2<=15)||(LA81_2>=51 && LA81_2<=52)||(LA81_2>=60 && LA81_2<=63)||LA81_2==70||(LA81_2>=81 && LA81_2<=83)||LA81_2==85||LA81_2==87||(LA81_2>=89 && LA81_2<=121)||(LA81_2>=123 && LA81_2<=145)) ) { |
| alt81=2; |
| } |
| else if ( (LA81_2==88) ) { |
| alt81=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 82: |
| { |
| int LA81_3 = input.LA(2); |
| |
| if ( (LA81_3==EOF||(LA81_3>=RULE_ID && LA81_3<=RULE_DECIMAL)||(LA81_3>=14 && LA81_3<=15)||(LA81_3>=51 && LA81_3<=52)||(LA81_3>=60 && LA81_3<=63)||LA81_3==70||(LA81_3>=81 && LA81_3<=83)||LA81_3==85||LA81_3==87||(LA81_3>=89 && LA81_3<=121)||(LA81_3>=123 && LA81_3<=145)) ) { |
| alt81=2; |
| } |
| else if ( (LA81_3==88) ) { |
| alt81=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 81: |
| { |
| int LA81_4 = input.LA(2); |
| |
| if ( (LA81_4==EOF||(LA81_4>=RULE_ID && LA81_4<=RULE_DECIMAL)||(LA81_4>=14 && LA81_4<=15)||(LA81_4>=51 && LA81_4<=52)||(LA81_4>=60 && LA81_4<=63)||LA81_4==70||(LA81_4>=81 && LA81_4<=83)||LA81_4==85||LA81_4==87||(LA81_4>=89 && LA81_4<=121)||(LA81_4>=123 && LA81_4<=145)) ) { |
| alt81=2; |
| } |
| else if ( (LA81_4==88) ) { |
| alt81=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 83: |
| { |
| int LA81_5 = input.LA(2); |
| |
| if ( (LA81_5==EOF||(LA81_5>=RULE_ID && LA81_5<=RULE_DECIMAL)||(LA81_5>=14 && LA81_5<=15)||(LA81_5>=51 && LA81_5<=52)||(LA81_5>=60 && LA81_5<=63)||LA81_5==70||(LA81_5>=81 && LA81_5<=83)||LA81_5==85||LA81_5==87||(LA81_5>=89 && LA81_5<=121)||(LA81_5>=123 && LA81_5<=145)) ) { |
| alt81=2; |
| } |
| else if ( (LA81_5==88) ) { |
| alt81=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_INT: |
| case RULE_STRING: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 51: |
| case 60: |
| case 61: |
| case 89: |
| case 90: |
| case 97: |
| case 115: |
| case 123: |
| case 125: |
| case 128: |
| case 129: |
| case 130: |
| case 134: |
| case 135: |
| case 136: |
| case 137: |
| case 138: |
| case 139: |
| case 140: |
| case 141: |
| case 142: |
| case 144: |
| { |
| alt81=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt81) { |
| case 1 : |
| // InternalDatamartDSL.g:4713:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalDatamartDSL.g:4713:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalDatamartDSL.g:4714:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalDatamartDSL.g:4714:4: () |
| // InternalDatamartDSL.g:4715:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:4721:4: ( ( ruleFeatureCallID ) ) |
| // InternalDatamartDSL.g:4722:5: ( ruleFeatureCallID ) |
| { |
| // InternalDatamartDSL.g:4722:5: ( ruleFeatureCallID ) |
| // InternalDatamartDSL.g:4723: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_80); |
| 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_81); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:4744:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalDatamartDSL.g:4745:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalDatamartDSL.g:4745:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalDatamartDSL.g:4746: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 : |
| // InternalDatamartDSL.g:4765:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalDatamartDSL.g:4765:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalDatamartDSL.g:4766:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_86); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:4774:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt80=2; |
| alt80 = dfa80.predict(input); |
| switch (alt80) { |
| case 1 : |
| // InternalDatamartDSL.g:4775:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalDatamartDSL.g:4775:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDatamartDSL.g:4776:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDatamartDSL.g:4786:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDatamartDSL.g:4787:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDatamartDSL.g:4787:7: () |
| // InternalDatamartDSL.g:4788:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:4794:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDatamartDSL.g:4795:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDatamartDSL.g:4795:8: ( ruleOpMultiAssign ) |
| // InternalDatamartDSL.g:4796: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_81); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:4812:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalDatamartDSL.g:4813:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalDatamartDSL.g:4813:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalDatamartDSL.g:4814: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" |
| // InternalDatamartDSL.g:4837:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4837:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalDatamartDSL.g:4838: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" |
| // InternalDatamartDSL.g:4844:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:4850:2: (kw= '=' ) |
| // InternalDatamartDSL.g:4851:2: kw= '=' |
| { |
| kw=(Token)match(input,88,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" |
| // InternalDatamartDSL.g:4859:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4859:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalDatamartDSL.g:4860: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" |
| // InternalDatamartDSL.g:4866: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 { |
| // InternalDatamartDSL.g:4872:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalDatamartDSL.g:4873:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalDatamartDSL.g:4873:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt83=7; |
| switch ( input.LA(1) ) { |
| case 92: |
| { |
| alt83=1; |
| } |
| break; |
| case 93: |
| { |
| alt83=2; |
| } |
| break; |
| case 94: |
| { |
| alt83=3; |
| } |
| break; |
| case 95: |
| { |
| alt83=4; |
| } |
| break; |
| case 96: |
| { |
| alt83=5; |
| } |
| break; |
| case 97: |
| { |
| alt83=6; |
| } |
| break; |
| case 98: |
| { |
| alt83=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 83, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt83) { |
| case 1 : |
| // InternalDatamartDSL.g:4874:3: kw= '+=' |
| { |
| kw=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:4880:3: kw= '-=' |
| { |
| kw=(Token)match(input,93,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:4886:3: kw= '*=' |
| { |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:4892:3: kw= '/=' |
| { |
| kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:4898:3: kw= '%=' |
| { |
| kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:4904:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalDatamartDSL.g:4904:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalDatamartDSL.g:4905:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,97,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,97,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDatamartDSL.g:4922:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalDatamartDSL.g:4922:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalDatamartDSL.g:4923:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,98,FOLLOW_88); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalDatamartDSL.g:4928:4: (kw= '>' )? |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==98) ) { |
| alt82=1; |
| } |
| switch (alt82) { |
| case 1 : |
| // InternalDatamartDSL.g:4929:5: kw= '>' |
| { |
| kw=(Token)match(input,98,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,99,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" |
| // InternalDatamartDSL.g:4945:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:4945:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalDatamartDSL.g:4946: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" |
| // InternalDatamartDSL.g:4952: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 { |
| // InternalDatamartDSL.g:4958:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:4959:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:4959:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalDatamartDSL.g:4960:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:4968:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop84: |
| do { |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==100) ) { |
| int LA84_2 = input.LA(2); |
| |
| if ( (synpred8_InternalDatamartDSL()) ) { |
| alt84=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt84) { |
| case 1 : |
| // InternalDatamartDSL.g:4969:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalDatamartDSL.g:4969:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDatamartDSL.g:4970:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDatamartDSL.g:4980:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalDatamartDSL.g:4981:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDatamartDSL.g:4981:6: () |
| // InternalDatamartDSL.g:4982:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:4988:6: ( ( ruleOpOr ) ) |
| // InternalDatamartDSL.g:4989:7: ( ruleOpOr ) |
| { |
| // InternalDatamartDSL.g:4989:7: ( ruleOpOr ) |
| // InternalDatamartDSL.g:4990: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_81); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5006:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalDatamartDSL.g:5007:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalDatamartDSL.g:5007:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalDatamartDSL.g:5008:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| 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 loop84; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalDatamartDSL.g:5030:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5030:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalDatamartDSL.g:5031: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" |
| // InternalDatamartDSL.g:5037:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:5043:2: (kw= '||' ) |
| // InternalDatamartDSL.g:5044:2: kw= '||' |
| { |
| kw=(Token)match(input,100,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" |
| // InternalDatamartDSL.g:5052:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5052:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalDatamartDSL.g:5053: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" |
| // InternalDatamartDSL.g:5059: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 { |
| // InternalDatamartDSL.g:5065:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:5066:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5066:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalDatamartDSL.g:5067:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_91); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5075:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop85: |
| do { |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==101) ) { |
| int LA85_2 = input.LA(2); |
| |
| if ( (synpred9_InternalDatamartDSL()) ) { |
| alt85=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt85) { |
| case 1 : |
| // InternalDatamartDSL.g:5076:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalDatamartDSL.g:5076:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDatamartDSL.g:5077:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDatamartDSL.g:5087:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDatamartDSL.g:5088:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDatamartDSL.g:5088:6: () |
| // InternalDatamartDSL.g:5089:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5095:6: ( ( ruleOpAnd ) ) |
| // InternalDatamartDSL.g:5096:7: ( ruleOpAnd ) |
| { |
| // InternalDatamartDSL.g:5096:7: ( ruleOpAnd ) |
| // InternalDatamartDSL.g:5097: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_81); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5113:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalDatamartDSL.g:5114:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalDatamartDSL.g:5114:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalDatamartDSL.g:5115:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_91); |
| 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 loop85; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalDatamartDSL.g:5137:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5137:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalDatamartDSL.g:5138: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" |
| // InternalDatamartDSL.g:5144:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:5150:2: (kw= '&&' ) |
| // InternalDatamartDSL.g:5151:2: kw= '&&' |
| { |
| kw=(Token)match(input,101,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" |
| // InternalDatamartDSL.g:5159:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5159:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalDatamartDSL.g:5160: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" |
| // InternalDatamartDSL.g:5166: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 { |
| // InternalDatamartDSL.g:5172:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:5173:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5173:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalDatamartDSL.g:5174:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5182:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop86: |
| do { |
| int alt86=2; |
| switch ( input.LA(1) ) { |
| case 102: |
| { |
| int LA86_2 = input.LA(2); |
| |
| if ( (synpred10_InternalDatamartDSL()) ) { |
| alt86=1; |
| } |
| |
| |
| } |
| break; |
| case 103: |
| { |
| int LA86_3 = input.LA(2); |
| |
| if ( (synpred10_InternalDatamartDSL()) ) { |
| alt86=1; |
| } |
| |
| |
| } |
| break; |
| case 104: |
| { |
| int LA86_4 = input.LA(2); |
| |
| if ( (synpred10_InternalDatamartDSL()) ) { |
| alt86=1; |
| } |
| |
| |
| } |
| break; |
| case 105: |
| { |
| int LA86_5 = input.LA(2); |
| |
| if ( (synpred10_InternalDatamartDSL()) ) { |
| alt86=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt86) { |
| case 1 : |
| // InternalDatamartDSL.g:5183:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalDatamartDSL.g:5183:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDatamartDSL.g:5184:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDatamartDSL.g:5194:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDatamartDSL.g:5195:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDatamartDSL.g:5195:6: () |
| // InternalDatamartDSL.g:5196:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5202:6: ( ( ruleOpEquality ) ) |
| // InternalDatamartDSL.g:5203:7: ( ruleOpEquality ) |
| { |
| // InternalDatamartDSL.g:5203:7: ( ruleOpEquality ) |
| // InternalDatamartDSL.g:5204: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_81); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5220:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalDatamartDSL.g:5221:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalDatamartDSL.g:5221:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalDatamartDSL.g:5222:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| 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 loop86; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalDatamartDSL.g:5244:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5244:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalDatamartDSL.g:5245: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" |
| // InternalDatamartDSL.g:5251: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 { |
| // InternalDatamartDSL.g:5257:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalDatamartDSL.g:5258:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalDatamartDSL.g:5258:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt87=4; |
| switch ( input.LA(1) ) { |
| case 102: |
| { |
| alt87=1; |
| } |
| break; |
| case 103: |
| { |
| alt87=2; |
| } |
| break; |
| case 104: |
| { |
| alt87=3; |
| } |
| break; |
| case 105: |
| { |
| alt87=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 87, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt87) { |
| case 1 : |
| // InternalDatamartDSL.g:5259:3: kw= '==' |
| { |
| kw=(Token)match(input,102,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:5265:3: kw= '!=' |
| { |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:5271:3: kw= '===' |
| { |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:5277:3: kw= '!==' |
| { |
| kw=(Token)match(input,105,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" |
| // InternalDatamartDSL.g:5286:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5286:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalDatamartDSL.g:5287: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" |
| // InternalDatamartDSL.g:5293: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 { |
| // InternalDatamartDSL.g:5299:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalDatamartDSL.g:5300:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5300:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalDatamartDSL.g:5301: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_93); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5309:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop88: |
| do { |
| int alt88=3; |
| switch ( input.LA(1) ) { |
| case 97: |
| { |
| int LA88_2 = input.LA(2); |
| |
| if ( (synpred12_InternalDatamartDSL()) ) { |
| alt88=2; |
| } |
| |
| |
| } |
| break; |
| case 98: |
| { |
| int LA88_3 = input.LA(2); |
| |
| if ( (synpred12_InternalDatamartDSL()) ) { |
| alt88=2; |
| } |
| |
| |
| } |
| break; |
| case 106: |
| { |
| int LA88_4 = input.LA(2); |
| |
| if ( (synpred11_InternalDatamartDSL()) ) { |
| alt88=1; |
| } |
| |
| |
| } |
| break; |
| case 99: |
| { |
| int LA88_5 = input.LA(2); |
| |
| if ( (synpred12_InternalDatamartDSL()) ) { |
| alt88=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt88) { |
| case 1 : |
| // InternalDatamartDSL.g:5310:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:5310:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:5311:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDatamartDSL.g:5311:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalDatamartDSL.g:5312:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalDatamartDSL.g:5318:6: ( () otherlv_2= 'instanceof' ) |
| // InternalDatamartDSL.g:5319:7: () otherlv_2= 'instanceof' |
| { |
| // InternalDatamartDSL.g:5319:7: () |
| // InternalDatamartDSL.g:5320:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,106,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5332:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:5333:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:5333:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:5334:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| 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 : |
| // InternalDatamartDSL.g:5353:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:5353:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalDatamartDSL.g:5354:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalDatamartDSL.g:5354:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDatamartDSL.g:5355:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDatamartDSL.g:5365:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDatamartDSL.g:5366:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDatamartDSL.g:5366:7: () |
| // InternalDatamartDSL.g:5367:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5373:7: ( ( ruleOpCompare ) ) |
| // InternalDatamartDSL.g:5374:8: ( ruleOpCompare ) |
| { |
| // InternalDatamartDSL.g:5374:8: ( ruleOpCompare ) |
| // InternalDatamartDSL.g:5375: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_81); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5391:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalDatamartDSL.g:5392:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalDatamartDSL.g:5392:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalDatamartDSL.g:5393:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| 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 loop88; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalDatamartDSL.g:5416:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5416:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalDatamartDSL.g:5417: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" |
| // InternalDatamartDSL.g:5423: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 { |
| // InternalDatamartDSL.g:5429:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalDatamartDSL.g:5430:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalDatamartDSL.g:5430:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt89=4; |
| switch ( input.LA(1) ) { |
| case 99: |
| { |
| alt89=1; |
| } |
| break; |
| case 97: |
| { |
| int LA89_2 = input.LA(2); |
| |
| if ( (LA89_2==EOF||(LA89_2>=RULE_ID && LA89_2<=RULE_DECIMAL)||LA89_2==14||LA89_2==51||(LA89_2>=60 && LA89_2<=61)||(LA89_2>=81 && LA89_2<=83)||(LA89_2>=89 && LA89_2<=90)||LA89_2==97||LA89_2==115||LA89_2==123||LA89_2==125||(LA89_2>=128 && LA89_2<=130)||(LA89_2>=133 && LA89_2<=142)||LA89_2==144) ) { |
| alt89=4; |
| } |
| else if ( (LA89_2==88) ) { |
| alt89=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 98: |
| { |
| alt89=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 89, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt89) { |
| case 1 : |
| // InternalDatamartDSL.g:5431:3: kw= '>=' |
| { |
| kw=(Token)match(input,99,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:5437:3: (kw= '<' kw= '=' ) |
| { |
| // InternalDatamartDSL.g:5437:3: (kw= '<' kw= '=' ) |
| // InternalDatamartDSL.g:5438:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,97,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:5450:3: kw= '>' |
| { |
| kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:5456:3: kw= '<' |
| { |
| kw=(Token)match(input,97,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" |
| // InternalDatamartDSL.g:5465:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5465:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalDatamartDSL.g:5466: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" |
| // InternalDatamartDSL.g:5472: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 { |
| // InternalDatamartDSL.g:5478:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:5479:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5479:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalDatamartDSL.g:5480:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5488:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop90: |
| do { |
| int alt90=2; |
| alt90 = dfa90.predict(input); |
| switch (alt90) { |
| case 1 : |
| // InternalDatamartDSL.g:5489:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalDatamartDSL.g:5489:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDatamartDSL.g:5490:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDatamartDSL.g:5500:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalDatamartDSL.g:5501:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDatamartDSL.g:5501:6: () |
| // InternalDatamartDSL.g:5502:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5508:6: ( ( ruleOpOther ) ) |
| // InternalDatamartDSL.g:5509:7: ( ruleOpOther ) |
| { |
| // InternalDatamartDSL.g:5509:7: ( ruleOpOther ) |
| // InternalDatamartDSL.g:5510: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_81); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5526:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalDatamartDSL.g:5527:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalDatamartDSL.g:5527:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalDatamartDSL.g:5528:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| 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 loop90; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalDatamartDSL.g:5550:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5550:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalDatamartDSL.g:5551: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" |
| // InternalDatamartDSL.g:5557: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 { |
| // InternalDatamartDSL.g:5563:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalDatamartDSL.g:5564:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalDatamartDSL.g:5564:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt93=9; |
| alt93 = dfa93.predict(input); |
| switch (alt93) { |
| case 1 : |
| // InternalDatamartDSL.g:5565:3: kw= '->' |
| { |
| kw=(Token)match(input,107,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:5571:3: kw= '..<' |
| { |
| kw=(Token)match(input,108,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:5577:3: (kw= '>' kw= '..' ) |
| { |
| // InternalDatamartDSL.g:5577:3: (kw= '>' kw= '..' ) |
| // InternalDatamartDSL.g:5578:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,98,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:5590:3: kw= '..' |
| { |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:5596:3: kw= '=>' |
| { |
| kw=(Token)match(input,110,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:5602:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalDatamartDSL.g:5602:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalDatamartDSL.g:5603:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,98,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalDatamartDSL.g:5608:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==98) ) { |
| int LA91_1 = input.LA(2); |
| |
| if ( (LA91_1==EOF||(LA91_1>=RULE_ID && LA91_1<=RULE_DECIMAL)||LA91_1==14||LA91_1==51||(LA91_1>=60 && LA91_1<=61)||(LA91_1>=81 && LA91_1<=83)||(LA91_1>=89 && LA91_1<=90)||LA91_1==97||LA91_1==115||LA91_1==123||LA91_1==125||(LA91_1>=128 && LA91_1<=130)||(LA91_1>=133 && LA91_1<=142)||LA91_1==144) ) { |
| alt91=2; |
| } |
| else if ( (LA91_1==98) && (synpred14_InternalDatamartDSL())) { |
| alt91=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalDatamartDSL.g:5609:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalDatamartDSL.g:5609:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalDatamartDSL.g:5610:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalDatamartDSL.g:5615:6: (kw= '>' kw= '>' ) |
| // InternalDatamartDSL.g:5616:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,98,FOLLOW_97); 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,98,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 : |
| // InternalDatamartDSL.g:5629:5: kw= '>' |
| { |
| kw=(Token)match(input,98,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 : |
| // InternalDatamartDSL.g:5637:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalDatamartDSL.g:5637:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalDatamartDSL.g:5638:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,97,FOLLOW_98); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalDatamartDSL.g:5643:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt92=3; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==97) ) { |
| int LA92_1 = input.LA(2); |
| |
| if ( (synpred15_InternalDatamartDSL()) ) { |
| alt92=1; |
| } |
| else if ( (true) ) { |
| alt92=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 92, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA92_0==110) ) { |
| alt92=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 92, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalDatamartDSL.g:5644:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalDatamartDSL.g:5644:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalDatamartDSL.g:5645:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalDatamartDSL.g:5650:6: (kw= '<' kw= '<' ) |
| // InternalDatamartDSL.g:5651:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,97,FOLLOW_87); 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,97,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 : |
| // InternalDatamartDSL.g:5664:5: kw= '<' |
| { |
| kw=(Token)match(input,97,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 : |
| // InternalDatamartDSL.g:5670:5: kw= '=>' |
| { |
| kw=(Token)match(input,110,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 : |
| // InternalDatamartDSL.g:5678:3: kw= '<>' |
| { |
| kw=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalDatamartDSL.g:5684:3: kw= '?:' |
| { |
| kw=(Token)match(input,112,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" |
| // InternalDatamartDSL.g:5693:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5693:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalDatamartDSL.g:5694: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" |
| // InternalDatamartDSL.g:5700: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 { |
| // InternalDatamartDSL.g:5706:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalDatamartDSL.g:5707:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5707:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalDatamartDSL.g:5708:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5716:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop94: |
| do { |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==60) ) { |
| int LA94_2 = input.LA(2); |
| |
| if ( (synpred16_InternalDatamartDSL()) ) { |
| alt94=1; |
| } |
| |
| |
| } |
| else if ( (LA94_0==61) ) { |
| int LA94_3 = input.LA(2); |
| |
| if ( (synpred16_InternalDatamartDSL()) ) { |
| alt94=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt94) { |
| case 1 : |
| // InternalDatamartDSL.g:5717:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalDatamartDSL.g:5717:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDatamartDSL.g:5718:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDatamartDSL.g:5728:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDatamartDSL.g:5729:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDatamartDSL.g:5729:6: () |
| // InternalDatamartDSL.g:5730:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5736:6: ( ( ruleOpAdd ) ) |
| // InternalDatamartDSL.g:5737:7: ( ruleOpAdd ) |
| { |
| // InternalDatamartDSL.g:5737:7: ( ruleOpAdd ) |
| // InternalDatamartDSL.g:5738: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_81); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5754:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalDatamartDSL.g:5755:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalDatamartDSL.g:5755:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalDatamartDSL.g:5756:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_51); |
| lv_rightOperand_3_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop94; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalDatamartDSL.g:5778:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5778:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalDatamartDSL.g:5779: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" |
| // InternalDatamartDSL.g:5785:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:5791:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalDatamartDSL.g:5792:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalDatamartDSL.g:5792:2: (kw= '+' | kw= '-' ) |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( (LA95_0==60) ) { |
| alt95=1; |
| } |
| else if ( (LA95_0==61) ) { |
| alt95=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 95, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalDatamartDSL.g:5793:3: kw= '+' |
| { |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:5799:3: kw= '-' |
| { |
| kw=(Token)match(input,61,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" |
| // InternalDatamartDSL.g:5808:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5808:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalDatamartDSL.g:5809: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" |
| // InternalDatamartDSL.g:5815: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 { |
| // InternalDatamartDSL.g:5821:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalDatamartDSL.g:5822:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalDatamartDSL.g:5822:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalDatamartDSL.g:5823:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_99); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:5831:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop96: |
| do { |
| int alt96=2; |
| switch ( input.LA(1) ) { |
| case 62: |
| { |
| int LA96_2 = input.LA(2); |
| |
| if ( (synpred17_InternalDatamartDSL()) ) { |
| alt96=1; |
| } |
| |
| |
| } |
| break; |
| case 113: |
| { |
| int LA96_3 = input.LA(2); |
| |
| if ( (synpred17_InternalDatamartDSL()) ) { |
| alt96=1; |
| } |
| |
| |
| } |
| break; |
| case 63: |
| { |
| int LA96_4 = input.LA(2); |
| |
| if ( (synpred17_InternalDatamartDSL()) ) { |
| alt96=1; |
| } |
| |
| |
| } |
| break; |
| case 114: |
| { |
| int LA96_5 = input.LA(2); |
| |
| if ( (synpred17_InternalDatamartDSL()) ) { |
| alt96=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt96) { |
| case 1 : |
| // InternalDatamartDSL.g:5832:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDatamartDSL.g:5832:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDatamartDSL.g:5833:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDatamartDSL.g:5843:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDatamartDSL.g:5844:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDatamartDSL.g:5844:6: () |
| // InternalDatamartDSL.g:5845:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5851:6: ( ( ruleOpMulti ) ) |
| // InternalDatamartDSL.g:5852:7: ( ruleOpMulti ) |
| { |
| // InternalDatamartDSL.g:5852:7: ( ruleOpMulti ) |
| // InternalDatamartDSL.g:5853: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_81); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5869:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalDatamartDSL.g:5870:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalDatamartDSL.g:5870:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalDatamartDSL.g:5871:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_99); |
| 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 loop96; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalDatamartDSL.g:5893:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5893:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalDatamartDSL.g:5894: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" |
| // InternalDatamartDSL.g:5900: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 { |
| // InternalDatamartDSL.g:5906:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalDatamartDSL.g:5907:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalDatamartDSL.g:5907:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt97=4; |
| switch ( input.LA(1) ) { |
| case 62: |
| { |
| alt97=1; |
| } |
| break; |
| case 113: |
| { |
| alt97=2; |
| } |
| break; |
| case 63: |
| { |
| alt97=3; |
| } |
| break; |
| case 114: |
| { |
| alt97=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt97) { |
| case 1 : |
| // InternalDatamartDSL.g:5908:3: kw= '*' |
| { |
| kw=(Token)match(input,62,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:5914:3: kw= '**' |
| { |
| kw=(Token)match(input,113,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:5920:3: kw= '/' |
| { |
| kw=(Token)match(input,63,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:5926:3: kw= '%' |
| { |
| kw=(Token)match(input,114,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" |
| // InternalDatamartDSL.g:5935:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:5935:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalDatamartDSL.g:5936: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" |
| // InternalDatamartDSL.g:5942: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 { |
| // InternalDatamartDSL.g:5948:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalDatamartDSL.g:5949:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalDatamartDSL.g:5949:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( ((LA98_0>=60 && LA98_0<=61)||LA98_0==115) ) { |
| alt98=1; |
| } |
| else if ( ((LA98_0>=RULE_ID && LA98_0<=RULE_DECIMAL)||LA98_0==14||LA98_0==51||(LA98_0>=81 && LA98_0<=83)||(LA98_0>=89 && LA98_0<=90)||LA98_0==97||LA98_0==123||LA98_0==125||(LA98_0>=128 && LA98_0<=130)||(LA98_0>=133 && LA98_0<=142)||LA98_0==144) ) { |
| alt98=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 98, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt98) { |
| case 1 : |
| // InternalDatamartDSL.g:5950:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalDatamartDSL.g:5950:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalDatamartDSL.g:5951:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalDatamartDSL.g:5951:4: () |
| // InternalDatamartDSL.g:5952:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:5958:4: ( ( ruleOpUnary ) ) |
| // InternalDatamartDSL.g:5959:5: ( ruleOpUnary ) |
| { |
| // InternalDatamartDSL.g:5959:5: ( ruleOpUnary ) |
| // InternalDatamartDSL.g:5960: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_81); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:5974:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalDatamartDSL.g:5975:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalDatamartDSL.g:5975:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalDatamartDSL.g:5976: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 : |
| // InternalDatamartDSL.g:5995: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" |
| // InternalDatamartDSL.g:6007:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6007:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalDatamartDSL.g:6008: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" |
| // InternalDatamartDSL.g:6014: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 { |
| // InternalDatamartDSL.g:6020:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalDatamartDSL.g:6021:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalDatamartDSL.g:6021:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt99=3; |
| switch ( input.LA(1) ) { |
| case 115: |
| { |
| alt99=1; |
| } |
| break; |
| case 61: |
| { |
| alt99=2; |
| } |
| break; |
| case 60: |
| { |
| alt99=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt99) { |
| case 1 : |
| // InternalDatamartDSL.g:6022:3: kw= '!' |
| { |
| kw=(Token)match(input,115,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6028:3: kw= '-' |
| { |
| kw=(Token)match(input,61,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:6034:3: kw= '+' |
| { |
| kw=(Token)match(input,60,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" |
| // InternalDatamartDSL.g:6043:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6043:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalDatamartDSL.g:6044: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" |
| // InternalDatamartDSL.g:6050: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 { |
| // InternalDatamartDSL.g:6056:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalDatamartDSL.g:6057:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalDatamartDSL.g:6057:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalDatamartDSL.g:6058: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_100); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:6066:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop100: |
| do { |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==116) ) { |
| int LA100_2 = input.LA(2); |
| |
| if ( (synpred18_InternalDatamartDSL()) ) { |
| alt100=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt100) { |
| case 1 : |
| // InternalDatamartDSL.g:6067:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDatamartDSL.g:6067:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalDatamartDSL.g:6068:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalDatamartDSL.g:6074:5: ( () otherlv_2= 'as' ) |
| // InternalDatamartDSL.g:6075:6: () otherlv_2= 'as' |
| { |
| // InternalDatamartDSL.g:6075:6: () |
| // InternalDatamartDSL.g:6076:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,116,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6088:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:6089:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:6089:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:6090:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_100); |
| 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 loop100; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalDatamartDSL.g:6112:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6112:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalDatamartDSL.g:6113: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" |
| // InternalDatamartDSL.g:6119: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 { |
| // InternalDatamartDSL.g:6125:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalDatamartDSL.g:6126:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalDatamartDSL.g:6126:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalDatamartDSL.g:6127:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:6135:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==117) ) { |
| int LA101_1 = input.LA(2); |
| |
| if ( (synpred19_InternalDatamartDSL()) ) { |
| alt101=1; |
| } |
| } |
| else if ( (LA101_0==118) ) { |
| int LA101_2 = input.LA(2); |
| |
| if ( (synpred19_InternalDatamartDSL()) ) { |
| alt101=1; |
| } |
| } |
| switch (alt101) { |
| case 1 : |
| // InternalDatamartDSL.g:6136:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDatamartDSL.g:6146:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDatamartDSL.g:6147:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDatamartDSL.g:6147:5: () |
| // InternalDatamartDSL.g:6148:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:6154:5: ( ( ruleOpPostfix ) ) |
| // InternalDatamartDSL.g:6155:6: ( ruleOpPostfix ) |
| { |
| // InternalDatamartDSL.g:6155:6: ( ruleOpPostfix ) |
| // InternalDatamartDSL.g:6156: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" |
| // InternalDatamartDSL.g:6176:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6176:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalDatamartDSL.g:6177: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" |
| // InternalDatamartDSL.g:6183:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:6189:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalDatamartDSL.g:6190:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalDatamartDSL.g:6190:2: (kw= '++' | kw= '--' ) |
| int alt102=2; |
| int LA102_0 = input.LA(1); |
| |
| if ( (LA102_0==117) ) { |
| alt102=1; |
| } |
| else if ( (LA102_0==118) ) { |
| alt102=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 102, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt102) { |
| case 1 : |
| // InternalDatamartDSL.g:6191:3: kw= '++' |
| { |
| kw=(Token)match(input,117,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6197:3: kw= '--' |
| { |
| kw=(Token)match(input,118,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" |
| // InternalDatamartDSL.g:6206:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6206:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalDatamartDSL.g:6207: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" |
| // InternalDatamartDSL.g:6213: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 { |
| // InternalDatamartDSL.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 ) )? ) )* ) ) |
| // InternalDatamartDSL.g:6220: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 ) )? ) )* ) |
| { |
| // InternalDatamartDSL.g:6220: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 ) )? ) )* ) |
| // InternalDatamartDSL.g:6221: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_102); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:6229: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 ) )? ) )* |
| loop111: |
| do { |
| int alt111=3; |
| switch ( input.LA(1) ) { |
| case 119: |
| { |
| int LA111_2 = input.LA(2); |
| |
| if ( (synpred20_InternalDatamartDSL()) ) { |
| alt111=1; |
| } |
| else if ( (synpred21_InternalDatamartDSL()) ) { |
| alt111=2; |
| } |
| |
| |
| } |
| break; |
| case 120: |
| { |
| int LA111_3 = input.LA(2); |
| |
| if ( (synpred20_InternalDatamartDSL()) ) { |
| alt111=1; |
| } |
| else if ( (synpred21_InternalDatamartDSL()) ) { |
| alt111=2; |
| } |
| |
| |
| } |
| break; |
| case 121: |
| { |
| int LA111_4 = input.LA(2); |
| |
| if ( (synpred21_InternalDatamartDSL()) ) { |
| alt111=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt111) { |
| case 1 : |
| // InternalDatamartDSL.g:6230:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalDatamartDSL.g:6230:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalDatamartDSL.g:6231:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalDatamartDSL.g:6231:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDatamartDSL.g:6232:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDatamartDSL.g:6252:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDatamartDSL.g:6253:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDatamartDSL.g:6253:7: () |
| // InternalDatamartDSL.g:6254:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:6260:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( (LA103_0==119) ) { |
| alt103=1; |
| } |
| else if ( (LA103_0==120) ) { |
| alt103=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 103, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt103) { |
| case 1 : |
| // InternalDatamartDSL.g:6261:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,119,FOLLOW_103); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6266:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalDatamartDSL.g:6266:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalDatamartDSL.g:6267:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalDatamartDSL.g:6267:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalDatamartDSL.g:6268:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,120,FOLLOW_103); 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:6281:7: ( ( ruleFeatureCallID ) ) |
| // InternalDatamartDSL.g:6282:8: ( ruleFeatureCallID ) |
| { |
| // InternalDatamartDSL.g:6282:8: ( ruleFeatureCallID ) |
| // InternalDatamartDSL.g:6283: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_80); |
| 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_81); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6306:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalDatamartDSL.g:6307:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalDatamartDSL.g:6307:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalDatamartDSL.g:6308:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| 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 : |
| // InternalDatamartDSL.g:6327: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 ) )? ) |
| { |
| // InternalDatamartDSL.g:6327: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 ) )? ) |
| // InternalDatamartDSL.g:6328: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 ) )? |
| { |
| // InternalDatamartDSL.g:6328:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalDatamartDSL.g:6329:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalDatamartDSL.g:6349:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalDatamartDSL.g:6350:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalDatamartDSL.g:6350:7: () |
| // InternalDatamartDSL.g:6351:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:6357:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt104=3; |
| switch ( input.LA(1) ) { |
| case 119: |
| { |
| alt104=1; |
| } |
| break; |
| case 121: |
| { |
| alt104=2; |
| } |
| break; |
| case 120: |
| { |
| alt104=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 104, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt104) { |
| case 1 : |
| // InternalDatamartDSL.g:6358:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,119,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6363:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalDatamartDSL.g:6363:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalDatamartDSL.g:6364:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalDatamartDSL.g:6364:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalDatamartDSL.g:6365:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,121,FOLLOW_104); 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 : |
| // InternalDatamartDSL.g:6378:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalDatamartDSL.g:6378:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalDatamartDSL.g:6379:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalDatamartDSL.g:6379:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalDatamartDSL.g:6380:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,120,FOLLOW_104); 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; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6395:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==97) ) { |
| alt106=1; |
| } |
| switch (alt106) { |
| case 1 : |
| // InternalDatamartDSL.g:6396:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,97,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:6400:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:6401:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:6401:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:6402:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6419:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop105: |
| do { |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( (LA105_0==87) ) { |
| alt105=1; |
| } |
| |
| |
| switch (alt105) { |
| case 1 : |
| // InternalDatamartDSL.g:6420:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,87,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:6424:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:6425:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:6425:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:6426:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop105; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,98,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:6449:5: ( ( ruleIdOrSuper ) ) |
| // InternalDatamartDSL.g:6450:6: ( ruleIdOrSuper ) |
| { |
| // InternalDatamartDSL.g:6450:6: ( ruleIdOrSuper ) |
| // InternalDatamartDSL.g:6451: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_107); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6465: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 alt109=2; |
| alt109 = dfa109.predict(input); |
| switch (alt109) { |
| case 1 : |
| // InternalDatamartDSL.g:6466: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= ')' |
| { |
| // InternalDatamartDSL.g:6466:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalDatamartDSL.g:6467:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalDatamartDSL.g:6471:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalDatamartDSL.g:6472:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,51,FOLLOW_108); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6484:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt108=3; |
| alt108 = dfa108.predict(input); |
| switch (alt108) { |
| case 1 : |
| // InternalDatamartDSL.g:6485:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalDatamartDSL.g:6485:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalDatamartDSL.g:6486:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalDatamartDSL.g:6511:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalDatamartDSL.g:6512:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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 : |
| // InternalDatamartDSL.g:6530:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:6530:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalDatamartDSL.g:6531:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:6531:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:6532:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:6532:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalDatamartDSL.g:6533:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6550:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop107: |
| do { |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==87) ) { |
| alt107=1; |
| } |
| |
| |
| switch (alt107) { |
| case 1 : |
| // InternalDatamartDSL.g:6551:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:6555:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:6556:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:6556:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalDatamartDSL.g:6557:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop107; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,52,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:6582:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt110=2; |
| alt110 = dfa110.predict(input); |
| switch (alt110) { |
| case 1 : |
| // InternalDatamartDSL.g:6583:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalDatamartDSL.g:6589:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalDatamartDSL.g:6590:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| 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 loop111; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalDatamartDSL.g:6613:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6613:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalDatamartDSL.g:6614: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" |
| // InternalDatamartDSL.g:6620: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 { |
| // InternalDatamartDSL.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 ) ) |
| // InternalDatamartDSL.g:6627: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 ) |
| { |
| // InternalDatamartDSL.g:6627: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 alt112=15; |
| alt112 = dfa112.predict(input); |
| switch (alt112) { |
| case 1 : |
| // InternalDatamartDSL.g:6628: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 : |
| // InternalDatamartDSL.g:6637: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 : |
| // InternalDatamartDSL.g:6646: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 : |
| // InternalDatamartDSL.g:6655:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalDatamartDSL.g:6655:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalDatamartDSL.g:6656: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 : |
| // InternalDatamartDSL.g:6673: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 : |
| // InternalDatamartDSL.g:6682: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 : |
| // InternalDatamartDSL.g:6691: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 : |
| // InternalDatamartDSL.g:6700:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalDatamartDSL.g:6700:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalDatamartDSL.g:6701: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 : |
| // InternalDatamartDSL.g:6724: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 : |
| // InternalDatamartDSL.g:6733: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 : |
| // InternalDatamartDSL.g:6742: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 : |
| // InternalDatamartDSL.g:6751: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 : |
| // InternalDatamartDSL.g:6760: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 : |
| // InternalDatamartDSL.g:6769: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 : |
| // InternalDatamartDSL.g:6778: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" |
| // InternalDatamartDSL.g:6790:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6790:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalDatamartDSL.g:6791: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" |
| // InternalDatamartDSL.g:6797: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 { |
| // InternalDatamartDSL.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 ) ) |
| // InternalDatamartDSL.g:6804: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 ) |
| { |
| // InternalDatamartDSL.g:6804: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 alt113=7; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==89) ) { |
| alt113=1; |
| } |
| else if ( (LA113_0==90) && (synpred27_InternalDatamartDSL())) { |
| alt113=2; |
| } |
| else if ( ((LA113_0>=136 && LA113_0<=137)) ) { |
| alt113=3; |
| } |
| else if ( (LA113_0==RULE_INT||(LA113_0>=RULE_HEX && LA113_0<=RULE_DECIMAL)) ) { |
| alt113=4; |
| } |
| else if ( (LA113_0==138) ) { |
| alt113=5; |
| } |
| else if ( (LA113_0==RULE_STRING) ) { |
| alt113=6; |
| } |
| else if ( (LA113_0==139) ) { |
| alt113=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 113, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalDatamartDSL.g:6805: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 : |
| // InternalDatamartDSL.g:6814:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalDatamartDSL.g:6814:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalDatamartDSL.g:6815: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 : |
| // InternalDatamartDSL.g:6831: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 : |
| // InternalDatamartDSL.g:6840: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 : |
| // InternalDatamartDSL.g:6849: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 : |
| // InternalDatamartDSL.g:6858: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 : |
| // InternalDatamartDSL.g:6867: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" |
| // InternalDatamartDSL.g:6879:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6879:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalDatamartDSL.g:6880: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" |
| // InternalDatamartDSL.g:6886: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 { |
| // InternalDatamartDSL.g:6892:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalDatamartDSL.g:6893:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalDatamartDSL.g:6893:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==89) ) { |
| int LA114_1 = input.LA(2); |
| |
| if ( (LA114_1==90) ) { |
| alt114=2; |
| } |
| else if ( (LA114_1==14) ) { |
| alt114=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 114, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 114, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt114) { |
| case 1 : |
| // InternalDatamartDSL.g:6894: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 : |
| // InternalDatamartDSL.g:6903: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" |
| // InternalDatamartDSL.g:6915:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6915:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalDatamartDSL.g:6916: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" |
| // InternalDatamartDSL.g:6922: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 { |
| // InternalDatamartDSL.g:6928:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalDatamartDSL.g:6929:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalDatamartDSL.g:6929:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalDatamartDSL.g:6930:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalDatamartDSL.g:6930:3: () |
| // InternalDatamartDSL.g:6931:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,89,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:6945:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( ((LA116_0>=RULE_ID && LA116_0<=RULE_DECIMAL)||LA116_0==14||LA116_0==51||(LA116_0>=60 && LA116_0<=61)||(LA116_0>=81 && LA116_0<=83)||(LA116_0>=89 && LA116_0<=90)||LA116_0==97||LA116_0==115||LA116_0==123||LA116_0==125||(LA116_0>=128 && LA116_0<=130)||(LA116_0>=133 && LA116_0<=142)||LA116_0==144) ) { |
| alt116=1; |
| } |
| switch (alt116) { |
| case 1 : |
| // InternalDatamartDSL.g:6946:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:6946:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:6947:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:6947:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:6948:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6965:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop115: |
| do { |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==87) ) { |
| alt115=1; |
| } |
| |
| |
| switch (alt115) { |
| case 1 : |
| // InternalDatamartDSL.g:6966:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:6970:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:6971:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:6971:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:6972:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| 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 loop115; |
| } |
| } 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" |
| // InternalDatamartDSL.g:6999:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:6999:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalDatamartDSL.g:7000: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" |
| // InternalDatamartDSL.g:7006: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 { |
| // InternalDatamartDSL.g:7012:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalDatamartDSL.g:7013:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalDatamartDSL.g:7013:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalDatamartDSL.g:7014:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalDatamartDSL.g:7014:3: () |
| // InternalDatamartDSL.g:7015:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,89,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,90,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:7029:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( ((LA118_0>=RULE_ID && LA118_0<=RULE_DECIMAL)||LA118_0==14||LA118_0==51||(LA118_0>=60 && LA118_0<=61)||(LA118_0>=81 && LA118_0<=83)||(LA118_0>=89 && LA118_0<=90)||LA118_0==97||LA118_0==115||LA118_0==123||LA118_0==125||(LA118_0>=128 && LA118_0<=130)||(LA118_0>=133 && LA118_0<=142)||LA118_0==144) ) { |
| alt118=1; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalDatamartDSL.g:7030:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:7030:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7031:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7031:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7032:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7049:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop117: |
| do { |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==87) ) { |
| alt117=1; |
| } |
| |
| |
| switch (alt117) { |
| case 1 : |
| // InternalDatamartDSL.g:7050:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:7054:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7055:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7055:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7056:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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 loop117; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,91,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" |
| // InternalDatamartDSL.g:7083:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7083:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalDatamartDSL.g:7084: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" |
| // InternalDatamartDSL.g:7090: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 { |
| // InternalDatamartDSL.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= ']' ) ) |
| // InternalDatamartDSL.g:7097: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= ']' ) |
| { |
| // InternalDatamartDSL.g:7097: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= ']' ) |
| // InternalDatamartDSL.g:7098: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= ']' |
| { |
| // InternalDatamartDSL.g:7098:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalDatamartDSL.g:7099:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalDatamartDSL.g:7105:4: ( () otherlv_1= '[' ) |
| // InternalDatamartDSL.g:7106:5: () otherlv_1= '[' |
| { |
| // InternalDatamartDSL.g:7106:5: () |
| // InternalDatamartDSL.g:7107:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,90,FOLLOW_112); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7119:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt121=2; |
| alt121 = dfa121.predict(input); |
| switch (alt121) { |
| case 1 : |
| // InternalDatamartDSL.g:7120:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:7143:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalDatamartDSL.g:7144:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalDatamartDSL.g:7144:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==RULE_ID||LA120_0==51||LA120_0==110) ) { |
| alt120=1; |
| } |
| switch (alt120) { |
| case 1 : |
| // InternalDatamartDSL.g:7145:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:7145:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7146:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7146:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7147:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7164:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop119: |
| do { |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==87) ) { |
| alt119=1; |
| } |
| |
| |
| switch (alt119) { |
| case 1 : |
| // InternalDatamartDSL.g:7165:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,87,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:7169:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7170:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7170:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7171:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| 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 loop119; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:7190:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalDatamartDSL.g:7191:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalDatamartDSL.g:7191:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalDatamartDSL.g:7192:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,122,FOLLOW_114); 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:7206:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalDatamartDSL.g:7207:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalDatamartDSL.g:7207:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalDatamartDSL.g:7208:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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,91,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" |
| // InternalDatamartDSL.g:7233:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7233:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalDatamartDSL.g:7234: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" |
| // InternalDatamartDSL.g:7240: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 { |
| // InternalDatamartDSL.g:7246:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalDatamartDSL.g:7247:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalDatamartDSL.g:7247:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalDatamartDSL.g:7248:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalDatamartDSL.g:7248:3: () |
| // InternalDatamartDSL.g:7249:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:7255:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( ((LA123_0>=RULE_ID && LA123_0<=RULE_DECIMAL)||LA123_0==14||LA123_0==51||(LA123_0>=60 && LA123_0<=61)||(LA123_0>=81 && LA123_0<=83)||(LA123_0>=89 && LA123_0<=90)||LA123_0==97||LA123_0==115||LA123_0==123||LA123_0==125||(LA123_0>=128 && LA123_0<=142)||LA123_0==144) ) { |
| alt123=1; |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalDatamartDSL.g:7256:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalDatamartDSL.g:7256:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDatamartDSL.g:7257:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDatamartDSL.g:7257:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDatamartDSL.g:7258:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7275:4: (otherlv_2= ';' )? |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==85) ) { |
| alt122=1; |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalDatamartDSL.g:7276:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,85,FOLLOW_117); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop123; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalDatamartDSL.g:7286:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7286:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalDatamartDSL.g:7287: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" |
| // InternalDatamartDSL.g:7293: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 { |
| // InternalDatamartDSL.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 ) ) ) ) |
| // InternalDatamartDSL.g:7300:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:7300:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:7301:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:7301:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalDatamartDSL.g:7302:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:7327:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalDatamartDSL.g:7328:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalDatamartDSL.g:7328:5: () |
| // InternalDatamartDSL.g:7329:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:7335:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==RULE_ID||LA125_0==51||LA125_0==110) ) { |
| alt125=1; |
| } |
| switch (alt125) { |
| case 1 : |
| // InternalDatamartDSL.g:7336:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:7336:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7337:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7337:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7338:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7355:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop124: |
| do { |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( (LA124_0==87) ) { |
| alt124=1; |
| } |
| |
| |
| switch (alt124) { |
| case 1 : |
| // InternalDatamartDSL.g:7356:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,87,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:7360:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7361:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7361:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7362:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| 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 loop124; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:7381:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalDatamartDSL.g:7382:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalDatamartDSL.g:7382:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalDatamartDSL.g:7383:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,122,FOLLOW_81); 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, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7397:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7398:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7398:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7399: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" |
| // InternalDatamartDSL.g:7420:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7420:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalDatamartDSL.g:7421: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" |
| // InternalDatamartDSL.g:7427: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 { |
| // InternalDatamartDSL.g:7433:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalDatamartDSL.g:7434:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalDatamartDSL.g:7434:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalDatamartDSL.g:7435:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,51,FOLLOW_81); 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_47); |
| 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,52,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" |
| // InternalDatamartDSL.g:7455:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7455:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalDatamartDSL.g:7456: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" |
| // InternalDatamartDSL.g:7462: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 { |
| // InternalDatamartDSL.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 ) ) )? ) ) |
| // InternalDatamartDSL.g:7469: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 ) ) )? ) |
| { |
| // InternalDatamartDSL.g:7469: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 ) ) )? ) |
| // InternalDatamartDSL.g:7470: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 ) ) )? |
| { |
| // InternalDatamartDSL.g:7470:3: () |
| // InternalDatamartDSL.g:7471:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,123,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:7485:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7486:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7486:4: (lv_if_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7487:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDatamartDSL.g:7508:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7509:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7509:4: (lv_then_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7510:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_118); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7527:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==124) ) { |
| int LA126_1 = input.LA(2); |
| |
| if ( (synpred31_InternalDatamartDSL()) ) { |
| alt126=1; |
| } |
| } |
| switch (alt126) { |
| case 1 : |
| // InternalDatamartDSL.g:7528:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:7528:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalDatamartDSL.g:7529:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,124,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:7535:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7536:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7536:5: (lv_else_7_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7537: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" |
| // InternalDatamartDSL.g:7559:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7559:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalDatamartDSL.g:7560: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" |
| // InternalDatamartDSL.g:7566: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 { |
| // InternalDatamartDSL.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= '}' ) ) |
| // InternalDatamartDSL.g:7573: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= '}' ) |
| { |
| // InternalDatamartDSL.g:7573: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= '}' ) |
| // InternalDatamartDSL.g:7574: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= '}' |
| { |
| // InternalDatamartDSL.g:7574:3: () |
| // InternalDatamartDSL.g:7575:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,125,FOLLOW_119); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:7585: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 alt128=2; |
| alt128 = dfa128.predict(input); |
| switch (alt128) { |
| case 1 : |
| // InternalDatamartDSL.g:7586:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDatamartDSL.g:7586:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDatamartDSL.g:7587:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDatamartDSL.g:7587:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDatamartDSL.g:7588:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDatamartDSL.g:7598:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDatamartDSL.g:7599:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,51,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalDatamartDSL.g:7603:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7604:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7604:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7605:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_120); |
| 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,126,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7628:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7629:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7629:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7630:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:7653:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:7653:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:7654:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:7654:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt127=2; |
| alt127 = dfa127.predict(input); |
| switch (alt127) { |
| case 1 : |
| // InternalDatamartDSL.g:7655:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalDatamartDSL.g:7664:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalDatamartDSL.g:7665:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalDatamartDSL.g:7665:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7666:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7666:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7667:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_120); |
| 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,126,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:7690:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7691:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7691:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7692:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_14); |
| 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_121); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalDatamartDSL.g:7715:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop129: |
| do { |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==RULE_ID||LA129_0==51||LA129_0==87||LA129_0==110||(LA129_0>=126 && LA129_0<=127)) ) { |
| alt129=1; |
| } |
| |
| |
| switch (alt129) { |
| case 1 : |
| // InternalDatamartDSL.g:7716:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalDatamartDSL.g:7716:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalDatamartDSL.g:7717:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_121); |
| 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 loop129; |
| } |
| } while (true); |
| |
| // InternalDatamartDSL.g:7734:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==70) ) { |
| alt130=1; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalDatamartDSL.g:7735:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,70,FOLLOW_120); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,126,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalDatamartDSL.g:7743:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7744:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7744:5: (lv_default_14_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7745:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| 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" |
| // InternalDatamartDSL.g:7771:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7771:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalDatamartDSL.g:7772: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" |
| // InternalDatamartDSL.g:7778: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 { |
| // InternalDatamartDSL.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= ',' ) ) ) ) ) |
| // InternalDatamartDSL.g:7785: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= ',' ) ) ) ) |
| { |
| // InternalDatamartDSL.g:7785: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= ',' ) ) ) ) |
| // InternalDatamartDSL.g:7786: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= ',' ) ) ) |
| { |
| // InternalDatamartDSL.g:7786:3: () |
| // InternalDatamartDSL.g:7787:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:7793:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==RULE_ID||LA131_0==51||LA131_0==110) ) { |
| alt131=1; |
| } |
| switch (alt131) { |
| case 1 : |
| // InternalDatamartDSL.g:7794:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:7794:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:7795:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:7812:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==127) ) { |
| alt132=1; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalDatamartDSL.g:7813:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,127,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:7817:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7818:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7818:5: (lv_case_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7819:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:7837:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==126) ) { |
| alt133=1; |
| } |
| else if ( (LA133_0==87) ) { |
| alt133=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 133, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalDatamartDSL.g:7838:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:7838:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:7839:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,126,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalDatamartDSL.g:7843:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7844:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7844:6: (lv_then_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7845: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 : |
| // InternalDatamartDSL.g:7864:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalDatamartDSL.g:7864:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalDatamartDSL.g:7865:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalDatamartDSL.g:7865:5: (lv_fallThrough_6_0= ',' ) |
| // InternalDatamartDSL.g:7866:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,87,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" |
| // InternalDatamartDSL.g:7883:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7883:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalDatamartDSL.g:7884: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" |
| // InternalDatamartDSL.g:7890: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 { |
| // InternalDatamartDSL.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 ) ) ) ) |
| // InternalDatamartDSL.g:7897: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 ) ) ) |
| { |
| // InternalDatamartDSL.g:7897: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 ) ) ) |
| // InternalDatamartDSL.g:7898: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 ) ) |
| { |
| // InternalDatamartDSL.g:7898:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalDatamartDSL.g:7899:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalDatamartDSL.g:7912:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalDatamartDSL.g:7913:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalDatamartDSL.g:7913:5: () |
| // InternalDatamartDSL.g:7914:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,128,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalDatamartDSL.g:7928:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7929:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7929:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7930:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_120); |
| 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,126,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7953:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7954:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7954:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7955:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:7976:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:7977:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:7977:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalDatamartDSL.g:7978: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" |
| // InternalDatamartDSL.g:7999:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:7999:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalDatamartDSL.g:8000: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" |
| // InternalDatamartDSL.g:8006: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 { |
| // InternalDatamartDSL.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 ) ) ) ) |
| // InternalDatamartDSL.g:8013: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 ) ) ) |
| { |
| // InternalDatamartDSL.g:8013: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 ) ) ) |
| // InternalDatamartDSL.g:8014: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 ) ) |
| { |
| // InternalDatamartDSL.g:8014:3: () |
| // InternalDatamartDSL.g:8015:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,128,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_124); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:8029:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( ((LA135_0>=RULE_ID && LA135_0<=RULE_DECIMAL)||LA135_0==14||LA135_0==51||(LA135_0>=60 && LA135_0<=61)||(LA135_0>=81 && LA135_0<=83)||(LA135_0>=89 && LA135_0<=90)||LA135_0==97||LA135_0==115||LA135_0==123||LA135_0==125||(LA135_0>=128 && LA135_0<=142)||LA135_0==144) ) { |
| alt135=1; |
| } |
| switch (alt135) { |
| case 1 : |
| // InternalDatamartDSL.g:8030:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalDatamartDSL.g:8030:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDatamartDSL.g:8031:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDatamartDSL.g:8031:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDatamartDSL.g:8032:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8049:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop134: |
| do { |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==87) ) { |
| alt134=1; |
| } |
| |
| |
| switch (alt134) { |
| case 1 : |
| // InternalDatamartDSL.g:8050:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,87,FOLLOW_126); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:8054:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDatamartDSL.g:8055:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDatamartDSL.g:8055:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDatamartDSL.g:8056:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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 loop134; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,85,FOLLOW_127); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalDatamartDSL.g:8079:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( ((LA136_0>=RULE_ID && LA136_0<=RULE_DECIMAL)||LA136_0==14||LA136_0==51||(LA136_0>=60 && LA136_0<=61)||(LA136_0>=81 && LA136_0<=83)||(LA136_0>=89 && LA136_0<=90)||LA136_0==97||LA136_0==115||LA136_0==123||LA136_0==125||(LA136_0>=128 && LA136_0<=130)||(LA136_0>=133 && LA136_0<=142)||LA136_0==144) ) { |
| alt136=1; |
| } |
| switch (alt136) { |
| case 1 : |
| // InternalDatamartDSL.g:8080:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8080:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8081:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_128); |
| 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,85,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalDatamartDSL.g:8102:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( ((LA138_0>=RULE_ID && LA138_0<=RULE_DECIMAL)||LA138_0==14||LA138_0==51||(LA138_0>=60 && LA138_0<=61)||(LA138_0>=81 && LA138_0<=83)||(LA138_0>=89 && LA138_0<=90)||LA138_0==97||LA138_0==115||LA138_0==123||LA138_0==125||(LA138_0>=128 && LA138_0<=130)||(LA138_0>=133 && LA138_0<=142)||LA138_0==144) ) { |
| alt138=1; |
| } |
| switch (alt138) { |
| case 1 : |
| // InternalDatamartDSL.g:8103:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:8103:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8104:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8104:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8105:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8122:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop137: |
| do { |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==87) ) { |
| alt137=1; |
| } |
| |
| |
| switch (alt137) { |
| case 1 : |
| // InternalDatamartDSL.g:8123:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:8127:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8128:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8128:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8129:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop137; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalDatamartDSL.g:8152:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8153:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8153:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8154: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" |
| // InternalDatamartDSL.g:8175:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8175:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalDatamartDSL.g:8176: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" |
| // InternalDatamartDSL.g:8182: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 { |
| // InternalDatamartDSL.g:8188:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalDatamartDSL.g:8189:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:8189:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:8190:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:8190:3: () |
| // InternalDatamartDSL.g:8191:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,129,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:8205:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8206:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8206:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8207:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalDatamartDSL.g:8228:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8229:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8229:4: (lv_body_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8230: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" |
| // InternalDatamartDSL.g:8251:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8251:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalDatamartDSL.g:8252: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" |
| // InternalDatamartDSL.g:8258: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 { |
| // InternalDatamartDSL.g:8264:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalDatamartDSL.g:8265:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalDatamartDSL.g:8265:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalDatamartDSL.g:8266:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalDatamartDSL.g:8266:3: () |
| // InternalDatamartDSL.g:8267:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,130,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:8277:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8278:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8278:4: (lv_body_2_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8279:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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,129,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,51,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalDatamartDSL.g:8304:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8305:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8305:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8306:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,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" |
| // InternalDatamartDSL.g:8331:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8331:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalDatamartDSL.g:8332: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" |
| // InternalDatamartDSL.g:8338: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 { |
| // InternalDatamartDSL.g:8344:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalDatamartDSL.g:8345:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalDatamartDSL.g:8345:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalDatamartDSL.g:8346:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalDatamartDSL.g:8346:3: () |
| // InternalDatamartDSL.g:8347:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_130); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:8357:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop140: |
| do { |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( ((LA140_0>=RULE_ID && LA140_0<=RULE_DECIMAL)||LA140_0==14||LA140_0==51||(LA140_0>=60 && LA140_0<=61)||(LA140_0>=81 && LA140_0<=83)||(LA140_0>=89 && LA140_0<=90)||LA140_0==97||LA140_0==115||LA140_0==123||LA140_0==125||(LA140_0>=128 && LA140_0<=142)||LA140_0==144) ) { |
| alt140=1; |
| } |
| |
| |
| switch (alt140) { |
| case 1 : |
| // InternalDatamartDSL.g:8358:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalDatamartDSL.g:8358:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalDatamartDSL.g:8359:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalDatamartDSL.g:8359:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalDatamartDSL.g:8360:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_131); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8377:4: (otherlv_3= ';' )? |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==85) ) { |
| alt139=1; |
| } |
| switch (alt139) { |
| case 1 : |
| // InternalDatamartDSL.g:8378:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,85,FOLLOW_130); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop140; |
| } |
| } 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" |
| // InternalDatamartDSL.g:8392:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8392:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalDatamartDSL.g:8393: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" |
| // InternalDatamartDSL.g:8399: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 { |
| // InternalDatamartDSL.g:8405:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8406:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8406:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( ((LA141_0>=131 && LA141_0<=132)) ) { |
| alt141=1; |
| } |
| else if ( ((LA141_0>=RULE_ID && LA141_0<=RULE_DECIMAL)||LA141_0==14||LA141_0==51||(LA141_0>=60 && LA141_0<=61)||(LA141_0>=81 && LA141_0<=83)||(LA141_0>=89 && LA141_0<=90)||LA141_0==97||LA141_0==115||LA141_0==123||LA141_0==125||(LA141_0>=128 && LA141_0<=130)||(LA141_0>=133 && LA141_0<=142)||LA141_0==144) ) { |
| alt141=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 141, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt141) { |
| case 1 : |
| // InternalDatamartDSL.g:8407: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 : |
| // InternalDatamartDSL.g:8416: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" |
| // InternalDatamartDSL.g:8428:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8428:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalDatamartDSL.g:8429: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" |
| // InternalDatamartDSL.g:8435: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 { |
| // InternalDatamartDSL.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 ) ) )? ) ) |
| // InternalDatamartDSL.g:8442: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 ) ) )? ) |
| { |
| // InternalDatamartDSL.g:8442: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 ) ) )? ) |
| // InternalDatamartDSL.g:8443: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 ) ) )? |
| { |
| // InternalDatamartDSL.g:8443:3: () |
| // InternalDatamartDSL.g:8444:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:8450:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==131) ) { |
| alt142=1; |
| } |
| else if ( (LA142_0==132) ) { |
| alt142=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 142, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt142) { |
| case 1 : |
| // InternalDatamartDSL.g:8451:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalDatamartDSL.g:8451:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalDatamartDSL.g:8452:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalDatamartDSL.g:8452:5: (lv_writeable_1_0= 'var' ) |
| // InternalDatamartDSL.g:8453:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,131,FOLLOW_94); 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 : |
| // InternalDatamartDSL.g:8466:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,132,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:8471:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==RULE_ID) ) { |
| int LA143_1 = input.LA(2); |
| |
| if ( (synpred35_InternalDatamartDSL()) ) { |
| alt143=1; |
| } |
| else if ( (true) ) { |
| alt143=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 143, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA143_0==51) && (synpred35_InternalDatamartDSL())) { |
| alt143=1; |
| } |
| else if ( (LA143_0==110) && (synpred35_InternalDatamartDSL())) { |
| alt143=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 143, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt143) { |
| case 1 : |
| // InternalDatamartDSL.g:8472:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalDatamartDSL.g:8472:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalDatamartDSL.g:8473:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalDatamartDSL.g:8486:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalDatamartDSL.g:8487:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:8487:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:8488:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:8488:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:8489: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8506:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalDatamartDSL.g:8507:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalDatamartDSL.g:8507:7: (lv_name_4_0= ruleValidID ) |
| // InternalDatamartDSL.g:8508:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| 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 : |
| // InternalDatamartDSL.g:8528:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:8528:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalDatamartDSL.g:8529:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalDatamartDSL.g:8529:5: (lv_name_5_0= ruleValidID ) |
| // InternalDatamartDSL.g:8530:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:8548:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==88) ) { |
| alt144=1; |
| } |
| switch (alt144) { |
| case 1 : |
| // InternalDatamartDSL.g:8549:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,88,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalDatamartDSL.g:8553:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8554:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8554:5: (lv_right_7_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8555: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" |
| // InternalDatamartDSL.g:8577:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8577:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalDatamartDSL.g:8578: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" |
| // InternalDatamartDSL.g:8584: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 { |
| // InternalDatamartDSL.g:8590:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDatamartDSL.g:8591:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDatamartDSL.g:8591:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDatamartDSL.g:8592:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:8592:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==RULE_ID) ) { |
| int LA145_1 = input.LA(2); |
| |
| if ( (LA145_1==RULE_ID||LA145_1==90||LA145_1==97||LA145_1==119) ) { |
| alt145=1; |
| } |
| } |
| else if ( (LA145_0==51||LA145_0==110) ) { |
| alt145=1; |
| } |
| switch (alt145) { |
| case 1 : |
| // InternalDatamartDSL.g:8593:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:8593:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:8594: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; |
| |
| } |
| |
| // InternalDatamartDSL.g:8611:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDatamartDSL.g:8612:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDatamartDSL.g:8612:4: (lv_name_1_0= ruleValidID ) |
| // InternalDatamartDSL.g:8613: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" |
| // InternalDatamartDSL.g:8634:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8634:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalDatamartDSL.g:8635: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" |
| // InternalDatamartDSL.g:8641: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 { |
| // InternalDatamartDSL.g:8647:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalDatamartDSL.g:8648:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalDatamartDSL.g:8648:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalDatamartDSL.g:8649:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:8649:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:8650:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:8650:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:8651: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8668:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalDatamartDSL.g:8669:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalDatamartDSL.g:8669:4: (lv_name_1_0= ruleValidID ) |
| // InternalDatamartDSL.g:8670: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" |
| // InternalDatamartDSL.g:8691:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8691:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalDatamartDSL.g:8692: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" |
| // InternalDatamartDSL.g:8698: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 { |
| // InternalDatamartDSL.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 ) )? ) ) |
| // InternalDatamartDSL.g:8705: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 ) )? ) |
| { |
| // InternalDatamartDSL.g:8705: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 ) )? ) |
| // InternalDatamartDSL.g:8706: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 ) )? |
| { |
| // InternalDatamartDSL.g:8706:3: () |
| // InternalDatamartDSL.g:8707:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:8713:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==97) ) { |
| alt147=1; |
| } |
| switch (alt147) { |
| case 1 : |
| // InternalDatamartDSL.g:8714:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,97,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:8718:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:8719:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:8719:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:8720:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8737:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop146: |
| do { |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==87) ) { |
| alt146=1; |
| } |
| |
| |
| switch (alt146) { |
| case 1 : |
| // InternalDatamartDSL.g:8738:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,87,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:8742:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:8743:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:8743:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:8744:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop146; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,98,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:8767:3: ( ( ruleIdOrSuper ) ) |
| // InternalDatamartDSL.g:8768:4: ( ruleIdOrSuper ) |
| { |
| // InternalDatamartDSL.g:8768:4: ( ruleIdOrSuper ) |
| // InternalDatamartDSL.g:8769: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_133); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8783: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 alt150=2; |
| alt150 = dfa150.predict(input); |
| switch (alt150) { |
| case 1 : |
| // InternalDatamartDSL.g:8784: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= ')' |
| { |
| // InternalDatamartDSL.g:8784:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalDatamartDSL.g:8785:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalDatamartDSL.g:8789:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalDatamartDSL.g:8790:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,51,FOLLOW_108); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8802:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt149=3; |
| alt149 = dfa149.predict(input); |
| switch (alt149) { |
| case 1 : |
| // InternalDatamartDSL.g:8803:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalDatamartDSL.g:8803:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalDatamartDSL.g:8804:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalDatamartDSL.g:8829:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalDatamartDSL.g:8830:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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 : |
| // InternalDatamartDSL.g:8848:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:8848:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalDatamartDSL.g:8849:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:8849:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8850:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8850:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8851:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8868:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop148: |
| do { |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==87) ) { |
| alt148=1; |
| } |
| |
| |
| switch (alt148) { |
| case 1 : |
| // InternalDatamartDSL.g:8869:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:8873:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:8874:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:8874:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalDatamartDSL.g:8875:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop148; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,52,FOLLOW_134); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:8900:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt151=2; |
| alt151 = dfa151.predict(input); |
| switch (alt151) { |
| case 1 : |
| // InternalDatamartDSL.g:8901:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalDatamartDSL.g:8907:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalDatamartDSL.g:8908: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" |
| // InternalDatamartDSL.g:8929:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8929:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalDatamartDSL.g:8930: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" |
| // InternalDatamartDSL.g:8936: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 { |
| // InternalDatamartDSL.g:8942:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalDatamartDSL.g:8943:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalDatamartDSL.g:8943:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt152=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt152=1; |
| } |
| break; |
| case 133: |
| { |
| alt152=2; |
| } |
| break; |
| case 82: |
| { |
| alt152=3; |
| } |
| break; |
| case 81: |
| { |
| alt152=4; |
| } |
| break; |
| case 83: |
| { |
| alt152=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 152, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt152) { |
| case 1 : |
| // InternalDatamartDSL.g:8944: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 : |
| // InternalDatamartDSL.g:8955:3: kw= 'extends' |
| { |
| kw=(Token)match(input,133,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:8961:3: kw= 'static' |
| { |
| kw=(Token)match(input,82,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:8967:3: kw= 'import' |
| { |
| kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:8973:3: kw= 'extension' |
| { |
| kw=(Token)match(input,83,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" |
| // InternalDatamartDSL.g:8982:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:8982:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalDatamartDSL.g:8983: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" |
| // InternalDatamartDSL.g:8989: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 { |
| // InternalDatamartDSL.g:8995:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalDatamartDSL.g:8996:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalDatamartDSL.g:8996:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( (LA153_0==RULE_ID||(LA153_0>=81 && LA153_0<=83)||LA153_0==133) ) { |
| alt153=1; |
| } |
| else if ( (LA153_0==134) ) { |
| alt153=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 153, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalDatamartDSL.g:8997: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 : |
| // InternalDatamartDSL.g:9008:3: kw= 'super' |
| { |
| kw=(Token)match(input,134,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" |
| // InternalDatamartDSL.g:9017:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9017:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalDatamartDSL.g:9018: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" |
| // InternalDatamartDSL.g:9024: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 { |
| // InternalDatamartDSL.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 ) )? ) ) |
| // InternalDatamartDSL.g:9031: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 ) )? ) |
| { |
| // InternalDatamartDSL.g:9031: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 ) )? ) |
| // InternalDatamartDSL.g:9032: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 ) )? |
| { |
| // InternalDatamartDSL.g:9032:3: () |
| // InternalDatamartDSL.g:9033:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,135,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:9043:3: ( ( ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:9044:4: ( ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:9044:4: ( ruleQualifiedName ) |
| // InternalDatamartDSL.g:9045: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_135); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9059:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt155=2; |
| alt155 = dfa155.predict(input); |
| switch (alt155) { |
| case 1 : |
| // InternalDatamartDSL.g:9060:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalDatamartDSL.g:9060:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalDatamartDSL.g:9061:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,97,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:9067:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:9068:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:9068:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:9069:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9086:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop154: |
| do { |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==87) ) { |
| alt154=1; |
| } |
| |
| |
| switch (alt154) { |
| case 1 : |
| // InternalDatamartDSL.g:9087:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,87,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:9091:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:9092:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:9092:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:9093:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop154; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,98,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:9116: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 alt158=2; |
| alt158 = dfa158.predict(input); |
| switch (alt158) { |
| case 1 : |
| // InternalDatamartDSL.g:9117: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= ')' |
| { |
| // InternalDatamartDSL.g:9117:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalDatamartDSL.g:9118:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalDatamartDSL.g:9122:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalDatamartDSL.g:9123:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,51,FOLLOW_108); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9135:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt157=3; |
| alt157 = dfa157.predict(input); |
| switch (alt157) { |
| case 1 : |
| // InternalDatamartDSL.g:9136:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalDatamartDSL.g:9136:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalDatamartDSL.g:9137:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalDatamartDSL.g:9162:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalDatamartDSL.g:9163:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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 : |
| // InternalDatamartDSL.g:9181:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalDatamartDSL.g:9181:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalDatamartDSL.g:9182:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalDatamartDSL.g:9182:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9183:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9183:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9184:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9201:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop156: |
| do { |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( (LA156_0==87) ) { |
| alt156=1; |
| } |
| |
| |
| switch (alt156) { |
| case 1 : |
| // InternalDatamartDSL.g:9202:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,87,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:9206:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9207:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9207:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9208:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop156; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,52,FOLLOW_134); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:9233:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt159=2; |
| alt159 = dfa159.predict(input); |
| switch (alt159) { |
| case 1 : |
| // InternalDatamartDSL.g:9234:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalDatamartDSL.g:9240:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalDatamartDSL.g:9241: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" |
| // InternalDatamartDSL.g:9262:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9262:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalDatamartDSL.g:9263: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" |
| // InternalDatamartDSL.g:9269: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 { |
| // InternalDatamartDSL.g:9275:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalDatamartDSL.g:9276:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalDatamartDSL.g:9276:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalDatamartDSL.g:9277:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalDatamartDSL.g:9277:3: () |
| // InternalDatamartDSL.g:9278:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:9284:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==136) ) { |
| alt160=1; |
| } |
| else if ( (LA160_0==137) ) { |
| 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 : |
| // InternalDatamartDSL.g:9285:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,136,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:9290:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalDatamartDSL.g:9290:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalDatamartDSL.g:9291:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalDatamartDSL.g:9291:5: (lv_isTrue_2_0= 'true' ) |
| // InternalDatamartDSL.g:9292:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,137,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" |
| // InternalDatamartDSL.g:9309:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9309:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalDatamartDSL.g:9310: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" |
| // InternalDatamartDSL.g:9316:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:9322:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalDatamartDSL.g:9323:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalDatamartDSL.g:9323:2: ( () otherlv_1= 'null' ) |
| // InternalDatamartDSL.g:9324:3: () otherlv_1= 'null' |
| { |
| // InternalDatamartDSL.g:9324:3: () |
| // InternalDatamartDSL.g:9325:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,138,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" |
| // InternalDatamartDSL.g:9339:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9339:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalDatamartDSL.g:9340: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" |
| // InternalDatamartDSL.g:9346: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 { |
| // InternalDatamartDSL.g:9352:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalDatamartDSL.g:9353:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalDatamartDSL.g:9353:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalDatamartDSL.g:9354:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalDatamartDSL.g:9354:3: () |
| // InternalDatamartDSL.g:9355:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:9361:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalDatamartDSL.g:9362:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalDatamartDSL.g:9362:4: (lv_value_1_0= ruleNumber ) |
| // InternalDatamartDSL.g:9363: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" |
| // InternalDatamartDSL.g:9384:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9384:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalDatamartDSL.g:9385: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" |
| // InternalDatamartDSL.g:9391: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 { |
| // InternalDatamartDSL.g:9397:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalDatamartDSL.g:9398:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalDatamartDSL.g:9398:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalDatamartDSL.g:9399:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalDatamartDSL.g:9399:3: () |
| // InternalDatamartDSL.g:9400:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:9406:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalDatamartDSL.g:9407:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalDatamartDSL.g:9407:4: (lv_value_1_0= RULE_STRING ) |
| // InternalDatamartDSL.g:9408: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" |
| // InternalDatamartDSL.g:9428:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9428:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalDatamartDSL.g:9429: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" |
| // InternalDatamartDSL.g:9435: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 { |
| // InternalDatamartDSL.g:9441:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalDatamartDSL.g:9442:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalDatamartDSL.g:9442:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalDatamartDSL.g:9443:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalDatamartDSL.g:9443:3: () |
| // InternalDatamartDSL.g:9444:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,139,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:9458:3: ( ( ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:9459:4: ( ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:9459:4: ( ruleQualifiedName ) |
| // InternalDatamartDSL.g:9460: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_136); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9474:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop161: |
| do { |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==90) ) { |
| alt161=1; |
| } |
| |
| |
| switch (alt161) { |
| case 1 : |
| // InternalDatamartDSL.g:9475:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalDatamartDSL.g:9475:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalDatamartDSL.g:9476:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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 loop161; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,52,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" |
| // InternalDatamartDSL.g:9501:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9501:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalDatamartDSL.g:9502: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" |
| // InternalDatamartDSL.g:9508: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 { |
| // InternalDatamartDSL.g:9514:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalDatamartDSL.g:9515:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:9515:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:9516:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:9516:3: () |
| // InternalDatamartDSL.g:9517:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,140,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:9527:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9528:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9528:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9529: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" |
| // InternalDatamartDSL.g:9550:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9550:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalDatamartDSL.g:9551: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" |
| // InternalDatamartDSL.g:9557: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 { |
| // InternalDatamartDSL.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 ) )? ) ) |
| // InternalDatamartDSL.g:9564: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 ) )? ) |
| { |
| // InternalDatamartDSL.g:9564: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 ) )? ) |
| // InternalDatamartDSL.g:9565: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 ) )? |
| { |
| // InternalDatamartDSL.g:9565:3: () |
| // InternalDatamartDSL.g:9566:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,141,FOLLOW_137); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:9576: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 alt162=2; |
| alt162 = dfa162.predict(input); |
| switch (alt162) { |
| case 1 : |
| // InternalDatamartDSL.g:9577: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 ) |
| { |
| // InternalDatamartDSL.g:9578:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9579: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" |
| // InternalDatamartDSL.g:9600:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9600:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalDatamartDSL.g:9601: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" |
| // InternalDatamartDSL.g:9607: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 { |
| // InternalDatamartDSL.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 ) ) ) ) ) ) |
| // InternalDatamartDSL.g:9614: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 ) ) ) ) ) |
| { |
| // InternalDatamartDSL.g:9614: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 ) ) ) ) ) |
| // InternalDatamartDSL.g:9615: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 ) ) ) ) |
| { |
| // InternalDatamartDSL.g:9615:3: () |
| // InternalDatamartDSL.g:9616:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,142,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:9626:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9627:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9627:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9628:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_138); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9645: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 alt165=2; |
| int LA165_0 = input.LA(1); |
| |
| if ( (LA165_0==145) ) { |
| alt165=1; |
| } |
| else if ( (LA165_0==143) ) { |
| alt165=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 165, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt165) { |
| case 1 : |
| // InternalDatamartDSL.g:9646:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalDatamartDSL.g:9646:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalDatamartDSL.g:9647:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalDatamartDSL.g:9647:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt163=0; |
| loop163: |
| do { |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==145) ) { |
| int LA163_2 = input.LA(2); |
| |
| if ( (synpred44_InternalDatamartDSL()) ) { |
| alt163=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt163) { |
| case 1 : |
| // InternalDatamartDSL.g:9648:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalDatamartDSL.g:9649:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalDatamartDSL.g:9650:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_139); |
| 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 ( cnt163 >= 1 ) break loop163; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(163, input); |
| throw eee; |
| } |
| cnt163++; |
| } while (true); |
| |
| // InternalDatamartDSL.g:9667:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt164=2; |
| int LA164_0 = input.LA(1); |
| |
| if ( (LA164_0==143) ) { |
| int LA164_1 = input.LA(2); |
| |
| if ( (synpred45_InternalDatamartDSL()) ) { |
| alt164=1; |
| } |
| } |
| switch (alt164) { |
| case 1 : |
| // InternalDatamartDSL.g:9668:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:9668:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalDatamartDSL.g:9669:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,143,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:9675:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9676:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9676:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9677: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 : |
| // InternalDatamartDSL.g:9697:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:9697:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:9698:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,143,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:9702:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9703:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9703:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9704: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" |
| // InternalDatamartDSL.g:9727:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9727:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalDatamartDSL.g:9728: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" |
| // InternalDatamartDSL.g:9734: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 { |
| // InternalDatamartDSL.g:9740:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalDatamartDSL.g:9741:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:9741:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:9742:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:9742:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalDatamartDSL.g:9743:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalDatamartDSL.g:9750:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalDatamartDSL.g:9751:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalDatamartDSL.g:9751:5: () |
| // InternalDatamartDSL.g:9752:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,144,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,51,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9768:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9769:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9769:4: (lv_param_3_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9770:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalDatamartDSL.g:9791:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9792:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9792:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9793: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" |
| // InternalDatamartDSL.g:9814:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9814:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalDatamartDSL.g:9815: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" |
| // InternalDatamartDSL.g:9821: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 { |
| // InternalDatamartDSL.g:9827:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalDatamartDSL.g:9828:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalDatamartDSL.g:9828:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalDatamartDSL.g:9829:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalDatamartDSL.g:9829:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalDatamartDSL.g:9830:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,145,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,51,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:9840:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:9841:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:9841:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalDatamartDSL.g:9842:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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,52,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalDatamartDSL.g:9863:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalDatamartDSL.g:9864:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalDatamartDSL.g:9864:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalDatamartDSL.g:9865: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" |
| // InternalDatamartDSL.g:9886:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:9886:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalDatamartDSL.g:9887: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" |
| // InternalDatamartDSL.g:9893: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 { |
| // InternalDatamartDSL.g:9899:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalDatamartDSL.g:9900:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalDatamartDSL.g:9900:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalDatamartDSL.g:9901:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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(); |
| |
| } |
| // InternalDatamartDSL.g:9911:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop166: |
| do { |
| int alt166=2; |
| int LA166_0 = input.LA(1); |
| |
| if ( (LA166_0==119) ) { |
| int LA166_2 = input.LA(2); |
| |
| if ( (LA166_2==RULE_ID) ) { |
| int LA166_3 = input.LA(3); |
| |
| if ( (synpred48_InternalDatamartDSL()) ) { |
| alt166=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt166) { |
| case 1 : |
| // InternalDatamartDSL.g:9912:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalDatamartDSL.g:9912:4: ( ( '.' )=>kw= '.' ) |
| // InternalDatamartDSL.g:9913:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,119,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_140); |
| 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 loop166; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalDatamartDSL.g:9935: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 { |
| // InternalDatamartDSL.g:9937:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalDatamartDSL.g:9938: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" |
| // InternalDatamartDSL.g:9947: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 { |
| // InternalDatamartDSL.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 ) )? ) ) ) |
| // InternalDatamartDSL.g:9955: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 ) )? ) ) |
| { |
| // InternalDatamartDSL.g:9955: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 alt170=2; |
| int LA170_0 = input.LA(1); |
| |
| if ( (LA170_0==RULE_HEX) ) { |
| alt170=1; |
| } |
| else if ( (LA170_0==RULE_INT||LA170_0==RULE_DECIMAL) ) { |
| alt170=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 170, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt170) { |
| case 1 : |
| // InternalDatamartDSL.g:9956: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 : |
| // InternalDatamartDSL.g:9964:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalDatamartDSL.g:9964:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalDatamartDSL.g:9965:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalDatamartDSL.g:9965:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt167=2; |
| int LA167_0 = input.LA(1); |
| |
| if ( (LA167_0==RULE_INT) ) { |
| alt167=1; |
| } |
| else if ( (LA167_0==RULE_DECIMAL) ) { |
| alt167=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 167, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt167) { |
| case 1 : |
| // InternalDatamartDSL.g:9966:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_140); 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 : |
| // InternalDatamartDSL.g:9974:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_140); 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; |
| |
| } |
| |
| // InternalDatamartDSL.g:9982:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt169=2; |
| int LA169_0 = input.LA(1); |
| |
| if ( (LA169_0==119) ) { |
| int LA169_1 = input.LA(2); |
| |
| if ( (LA169_1==RULE_INT||LA169_1==RULE_DECIMAL) ) { |
| alt169=1; |
| } |
| } |
| switch (alt169) { |
| case 1 : |
| // InternalDatamartDSL.g:9983:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,119,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:9988:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt168=2; |
| int LA168_0 = input.LA(1); |
| |
| if ( (LA168_0==RULE_INT) ) { |
| alt168=1; |
| } |
| else if ( (LA168_0==RULE_DECIMAL) ) { |
| alt168=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 168, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt168) { |
| case 1 : |
| // InternalDatamartDSL.g:9989: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 : |
| // InternalDatamartDSL.g:9997: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" |
| // InternalDatamartDSL.g:10014:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10014:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalDatamartDSL.g:10015: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" |
| // InternalDatamartDSL.g:10021: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 { |
| // InternalDatamartDSL.g:10027:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalDatamartDSL.g:10028:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalDatamartDSL.g:10028:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==RULE_ID) ) { |
| alt172=1; |
| } |
| else if ( (LA172_0==51||LA172_0==110) ) { |
| alt172=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 172, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt172) { |
| case 1 : |
| // InternalDatamartDSL.g:10029:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalDatamartDSL.g:10029:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalDatamartDSL.g:10030:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_134); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalDatamartDSL.g:10038:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop171: |
| do { |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==90) ) { |
| int LA171_2 = input.LA(2); |
| |
| if ( (LA171_2==91) ) { |
| int LA171_3 = input.LA(3); |
| |
| if ( (synpred49_InternalDatamartDSL()) ) { |
| alt171=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt171) { |
| case 1 : |
| // InternalDatamartDSL.g:10039:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalDatamartDSL.g:10045:5: ( () ruleArrayBrackets ) |
| // InternalDatamartDSL.g:10046:6: () ruleArrayBrackets |
| { |
| // InternalDatamartDSL.g:10046:6: () |
| // InternalDatamartDSL.g:10047: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_134); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop171; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10064: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" |
| // InternalDatamartDSL.g:10076:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10076:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalDatamartDSL.g:10077: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" |
| // InternalDatamartDSL.g:10083:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:10089:2: ( (kw= '[' kw= ']' ) ) |
| // InternalDatamartDSL.g:10090:2: (kw= '[' kw= ']' ) |
| { |
| // InternalDatamartDSL.g:10090:2: (kw= '[' kw= ']' ) |
| // InternalDatamartDSL.g:10091:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,90,FOLLOW_115); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,91,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" |
| // InternalDatamartDSL.g:10105:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10105:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalDatamartDSL.g:10106: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" |
| // InternalDatamartDSL.g:10112: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 { |
| // InternalDatamartDSL.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 ) ) ) ) |
| // InternalDatamartDSL.g:10119:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:10119:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:10120:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalDatamartDSL.g:10120:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt175=2; |
| int LA175_0 = input.LA(1); |
| |
| if ( (LA175_0==51) ) { |
| alt175=1; |
| } |
| switch (alt175) { |
| case 1 : |
| // InternalDatamartDSL.g:10121:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,51,FOLLOW_142); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalDatamartDSL.g:10125:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt174=2; |
| int LA174_0 = input.LA(1); |
| |
| if ( (LA174_0==RULE_ID||LA174_0==51||LA174_0==110) ) { |
| alt174=1; |
| } |
| switch (alt174) { |
| case 1 : |
| // InternalDatamartDSL.g:10126:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalDatamartDSL.g:10126:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10127:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10127:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10128:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10145:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop173: |
| do { |
| int alt173=2; |
| int LA173_0 = input.LA(1); |
| |
| if ( (LA173_0==87) ) { |
| alt173=1; |
| } |
| |
| |
| switch (alt173) { |
| case 1 : |
| // InternalDatamartDSL.g:10146:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,87,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalDatamartDSL.g:10150:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10151:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10151:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10152:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| 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 loop173; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,52,FOLLOW_143); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,110,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:10180:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10181:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10181:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10182: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" |
| // InternalDatamartDSL.g:10203:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10203:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalDatamartDSL.g:10204: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" |
| // InternalDatamartDSL.g:10210: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 { |
| // InternalDatamartDSL.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= '>' )? )* )? ) ) |
| // InternalDatamartDSL.g:10217: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= '>' )? )* )? ) |
| { |
| // InternalDatamartDSL.g:10217: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= '>' )? )* )? ) |
| // InternalDatamartDSL.g:10218: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= '>' )? )* )? |
| { |
| // InternalDatamartDSL.g:10218:3: ( ( ruleQualifiedName ) ) |
| // InternalDatamartDSL.g:10219:4: ( ruleQualifiedName ) |
| { |
| // InternalDatamartDSL.g:10219:4: ( ruleQualifiedName ) |
| // InternalDatamartDSL.g:10220: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_144); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10234: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 alt180=2; |
| alt180 = dfa180.predict(input); |
| switch (alt180) { |
| case 1 : |
| // InternalDatamartDSL.g:10235: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= '>' )? )* |
| { |
| // InternalDatamartDSL.g:10235:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalDatamartDSL.g:10236:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,97,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:10242:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:10243:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:10243:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:10244:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10261:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop176: |
| do { |
| int alt176=2; |
| int LA176_0 = input.LA(1); |
| |
| if ( (LA176_0==87) ) { |
| alt176=1; |
| } |
| |
| |
| switch (alt176) { |
| case 1 : |
| // InternalDatamartDSL.g:10262:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,87,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:10266:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:10267:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:10267:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:10268:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop176; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,98,FOLLOW_140); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalDatamartDSL.g:10290:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop179: |
| do { |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==119) ) { |
| int LA179_2 = input.LA(2); |
| |
| if ( (LA179_2==RULE_ID) ) { |
| int LA179_3 = input.LA(3); |
| |
| if ( (synpred51_InternalDatamartDSL()) ) { |
| alt179=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt179) { |
| case 1 : |
| // InternalDatamartDSL.g:10291:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalDatamartDSL.g:10291:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalDatamartDSL.g:10292:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalDatamartDSL.g:10298:6: ( () otherlv_7= '.' ) |
| // InternalDatamartDSL.g:10299:7: () otherlv_7= '.' |
| { |
| // InternalDatamartDSL.g:10299:7: () |
| // InternalDatamartDSL.g:10300:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,119,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10312:5: ( ( ruleValidID ) ) |
| // InternalDatamartDSL.g:10313:6: ( ruleValidID ) |
| { |
| // InternalDatamartDSL.g:10313:6: ( ruleValidID ) |
| // InternalDatamartDSL.g:10314: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_145); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10328:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt178=2; |
| alt178 = dfa178.predict(input); |
| switch (alt178) { |
| case 1 : |
| // InternalDatamartDSL.g:10329:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalDatamartDSL.g:10329:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalDatamartDSL.g:10330:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,97,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalDatamartDSL.g:10336:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:10337:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:10337:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:10338:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10355:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop177: |
| do { |
| int alt177=2; |
| int LA177_0 = input.LA(1); |
| |
| if ( (LA177_0==87) ) { |
| alt177=1; |
| } |
| |
| |
| switch (alt177) { |
| case 1 : |
| // InternalDatamartDSL.g:10356:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,87,FOLLOW_105); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalDatamartDSL.g:10360:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalDatamartDSL.g:10361:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalDatamartDSL.g:10361:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalDatamartDSL.g:10362:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop177; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,98,FOLLOW_140); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop179; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalDatamartDSL.g:10391:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10391:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalDatamartDSL.g:10392: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" |
| // InternalDatamartDSL.g:10398: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 { |
| // InternalDatamartDSL.g:10404:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalDatamartDSL.g:10405:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalDatamartDSL.g:10405:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt181=2; |
| int LA181_0 = input.LA(1); |
| |
| if ( (LA181_0==RULE_ID||LA181_0==51||LA181_0==110) ) { |
| alt181=1; |
| } |
| else if ( (LA181_0==146) ) { |
| alt181=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 181, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt181) { |
| case 1 : |
| // InternalDatamartDSL.g:10406: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 : |
| // InternalDatamartDSL.g:10415: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" |
| // InternalDatamartDSL.g:10427:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10427:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalDatamartDSL.g:10428: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" |
| // InternalDatamartDSL.g:10434: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 { |
| // InternalDatamartDSL.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 ) )* ) )? ) ) |
| // InternalDatamartDSL.g:10441:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalDatamartDSL.g:10441:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalDatamartDSL.g:10442:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalDatamartDSL.g:10442:3: () |
| // InternalDatamartDSL.g:10443:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,146,FOLLOW_146); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalDatamartDSL.g:10453:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt184=3; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==133) ) { |
| alt184=1; |
| } |
| else if ( (LA184_0==134) ) { |
| alt184=2; |
| } |
| switch (alt184) { |
| case 1 : |
| // InternalDatamartDSL.g:10454:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalDatamartDSL.g:10454:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalDatamartDSL.g:10455:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalDatamartDSL.g:10455:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalDatamartDSL.g:10456:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalDatamartDSL.g:10456:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalDatamartDSL.g:10457:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_147); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10474:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop182: |
| do { |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==147) ) { |
| alt182=1; |
| } |
| |
| |
| switch (alt182) { |
| case 1 : |
| // InternalDatamartDSL.g:10475:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalDatamartDSL.g:10475:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalDatamartDSL.g:10476:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_147); |
| 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 loop182; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10495:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalDatamartDSL.g:10495:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalDatamartDSL.g:10496:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalDatamartDSL.g:10496:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalDatamartDSL.g:10497:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalDatamartDSL.g:10497:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalDatamartDSL.g:10498:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_147); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:10515:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop183: |
| do { |
| int alt183=2; |
| int LA183_0 = input.LA(1); |
| |
| if ( (LA183_0==147) ) { |
| alt183=1; |
| } |
| |
| |
| switch (alt183) { |
| case 1 : |
| // InternalDatamartDSL.g:10516:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalDatamartDSL.g:10516:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalDatamartDSL.g:10517:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_147); |
| 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 loop183; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalDatamartDSL.g:10540:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10540:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalDatamartDSL.g:10541: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" |
| // InternalDatamartDSL.g:10547: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 { |
| // InternalDatamartDSL.g:10553:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDatamartDSL.g:10554:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:10554:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:10555:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,133,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:10559:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10560:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10560:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10561: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" |
| // InternalDatamartDSL.g:10582:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10582:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalDatamartDSL.g:10583: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" |
| // InternalDatamartDSL.g:10589: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 { |
| // InternalDatamartDSL.g:10595:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDatamartDSL.g:10596:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:10596:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:10597:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,147,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:10601:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10602:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10602:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10603: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" |
| // InternalDatamartDSL.g:10624:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10624:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalDatamartDSL.g:10625: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" |
| // InternalDatamartDSL.g:10631: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 { |
| // InternalDatamartDSL.g:10637:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDatamartDSL.g:10638:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:10638:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:10639:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,134,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:10643:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10644:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10644:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10645: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" |
| // InternalDatamartDSL.g:10666:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10666:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalDatamartDSL.g:10667: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" |
| // InternalDatamartDSL.g:10673: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 { |
| // InternalDatamartDSL.g:10679:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalDatamartDSL.g:10680:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalDatamartDSL.g:10680:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalDatamartDSL.g:10681:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,147,FOLLOW_94); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalDatamartDSL.g:10685:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:10686:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:10686:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:10687: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" |
| // InternalDatamartDSL.g:10708:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10708:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalDatamartDSL.g:10709: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" |
| // InternalDatamartDSL.g:10715: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 { |
| // InternalDatamartDSL.g:10721:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalDatamartDSL.g:10722:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalDatamartDSL.g:10722:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalDatamartDSL.g:10723:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| 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,119,FOLLOW_149); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,62,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" |
| // InternalDatamartDSL.g:10747:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10747:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalDatamartDSL.g:10748: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" |
| // InternalDatamartDSL.g:10754: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 { |
| // InternalDatamartDSL.g:10760:2: (this_ID_0= RULE_ID ) |
| // InternalDatamartDSL.g:10761: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" |
| // InternalDatamartDSL.g:10771:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10771:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalDatamartDSL.g:10772: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" |
| // InternalDatamartDSL.g:10778: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 { |
| // InternalDatamartDSL.g:10784:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalDatamartDSL.g:10785:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalDatamartDSL.g:10785:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt185=0; |
| loop185: |
| do { |
| int alt185=2; |
| int LA185_0 = input.LA(1); |
| |
| if ( (LA185_0==81) ) { |
| alt185=1; |
| } |
| |
| |
| switch (alt185) { |
| case 1 : |
| // InternalDatamartDSL.g:10786:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalDatamartDSL.g:10786:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalDatamartDSL.g:10787:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_150); |
| 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 ( cnt185 >= 1 ) break loop185; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(185, input); |
| throw eee; |
| } |
| cnt185++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalDatamartDSL.g:10807:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalDatamartDSL.g:10807:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalDatamartDSL.g:10808: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" |
| // InternalDatamartDSL.g:10814: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 { |
| // InternalDatamartDSL.g:10820:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalDatamartDSL.g:10821:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalDatamartDSL.g:10821:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt186=0; |
| loop186: |
| do { |
| int alt186=2; |
| int LA186_0 = input.LA(1); |
| |
| if ( (LA186_0==RULE_ID) ) { |
| int LA186_2 = input.LA(2); |
| |
| if ( (LA186_2==119) ) { |
| alt186=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt186) { |
| case 1 : |
| // InternalDatamartDSL.g:10822:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| 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,119,FOLLOW_151); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt186 >= 1 ) break loop186; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(186, input); |
| throw eee; |
| } |
| cnt186++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleAxisEnum" |
| // InternalDatamartDSL.g:10841:1: ruleAxisEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'chapters' ) | (enumLiteral_5= 'sections' ) ) ; |
| public final Enumerator ruleAxisEnum() 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 { |
| // InternalDatamartDSL.g:10847:2: ( ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'chapters' ) | (enumLiteral_5= 'sections' ) ) ) |
| // InternalDatamartDSL.g:10848:2: ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'chapters' ) | (enumLiteral_5= 'sections' ) ) |
| { |
| // InternalDatamartDSL.g:10848:2: ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'chapters' ) | (enumLiteral_5= 'sections' ) ) |
| int alt187=6; |
| switch ( input.LA(1) ) { |
| case 70: |
| { |
| alt187=1; |
| } |
| break; |
| case 23: |
| { |
| alt187=2; |
| } |
| break; |
| case 148: |
| { |
| alt187=3; |
| } |
| break; |
| case 149: |
| { |
| alt187=4; |
| } |
| break; |
| case 150: |
| { |
| alt187=5; |
| } |
| break; |
| case 151: |
| { |
| alt187=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 187, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt187) { |
| case 1 : |
| // InternalDatamartDSL.g:10849:3: (enumLiteral_0= 'default' ) |
| { |
| // InternalDatamartDSL.g:10849:3: (enumLiteral_0= 'default' ) |
| // InternalDatamartDSL.g:10850:4: enumLiteral_0= 'default' |
| { |
| enumLiteral_0=(Token)match(input,70,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getDEFAULTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getAxisEnumAccess().getDEFAULTEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10857:3: (enumLiteral_1= 'columns' ) |
| { |
| // InternalDatamartDSL.g:10857:3: (enumLiteral_1= 'columns' ) |
| // InternalDatamartDSL.g:10858:4: enumLiteral_1= 'columns' |
| { |
| enumLiteral_1=(Token)match(input,23,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getCOLUMNSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getAxisEnumAccess().getCOLUMNSEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:10865:3: (enumLiteral_2= 'rows' ) |
| { |
| // InternalDatamartDSL.g:10865:3: (enumLiteral_2= 'rows' ) |
| // InternalDatamartDSL.g:10866:4: enumLiteral_2= 'rows' |
| { |
| enumLiteral_2=(Token)match(input,148,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getROWSEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getAxisEnumAccess().getROWSEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:10873:3: (enumLiteral_3= 'pages' ) |
| { |
| // InternalDatamartDSL.g:10873:3: (enumLiteral_3= 'pages' ) |
| // InternalDatamartDSL.g:10874:4: enumLiteral_3= 'pages' |
| { |
| enumLiteral_3=(Token)match(input,149,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getPAGESEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getAxisEnumAccess().getPAGESEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:10881:3: (enumLiteral_4= 'chapters' ) |
| { |
| // InternalDatamartDSL.g:10881:3: (enumLiteral_4= 'chapters' ) |
| // InternalDatamartDSL.g:10882:4: enumLiteral_4= 'chapters' |
| { |
| enumLiteral_4=(Token)match(input,150,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getCHAPTERSEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getAxisEnumAccess().getCHAPTERSEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:10889:3: (enumLiteral_5= 'sections' ) |
| { |
| // InternalDatamartDSL.g:10889:3: (enumLiteral_5= 'sections' ) |
| // InternalDatamartDSL.g:10890:4: enumLiteral_5= 'sections' |
| { |
| enumLiteral_5=(Token)match(input,151,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getSECTIONSEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getAxisEnumAccess().getSECTIONSEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAxisEnum" |
| |
| |
| // $ANTLR start "ruleFunctionEnum" |
| // InternalDatamartDSL.g:10900:1: ruleFunctionEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'previous' ) | (enumLiteral_1= 'next' ) | (enumLiteral_2= 'first' ) | (enumLiteral_3= 'last' ) ) ; |
| public final Enumerator ruleFunctionEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:10906:2: ( ( (enumLiteral_0= 'previous' ) | (enumLiteral_1= 'next' ) | (enumLiteral_2= 'first' ) | (enumLiteral_3= 'last' ) ) ) |
| // InternalDatamartDSL.g:10907:2: ( (enumLiteral_0= 'previous' ) | (enumLiteral_1= 'next' ) | (enumLiteral_2= 'first' ) | (enumLiteral_3= 'last' ) ) |
| { |
| // InternalDatamartDSL.g:10907:2: ( (enumLiteral_0= 'previous' ) | (enumLiteral_1= 'next' ) | (enumLiteral_2= 'first' ) | (enumLiteral_3= 'last' ) ) |
| int alt188=4; |
| switch ( input.LA(1) ) { |
| case 152: |
| { |
| alt188=1; |
| } |
| break; |
| case 153: |
| { |
| alt188=2; |
| } |
| break; |
| case 154: |
| { |
| alt188=3; |
| } |
| break; |
| case 155: |
| { |
| alt188=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 188, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt188) { |
| case 1 : |
| // InternalDatamartDSL.g:10908:3: (enumLiteral_0= 'previous' ) |
| { |
| // InternalDatamartDSL.g:10908:3: (enumLiteral_0= 'previous' ) |
| // InternalDatamartDSL.g:10909:4: enumLiteral_0= 'previous' |
| { |
| enumLiteral_0=(Token)match(input,152,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getFunctionEnumAccess().getPREVMEMBEREnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getFunctionEnumAccess().getPREVMEMBEREnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10916:3: (enumLiteral_1= 'next' ) |
| { |
| // InternalDatamartDSL.g:10916:3: (enumLiteral_1= 'next' ) |
| // InternalDatamartDSL.g:10917:4: enumLiteral_1= 'next' |
| { |
| enumLiteral_1=(Token)match(input,153,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getFunctionEnumAccess().getNEXTMEMBEREnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getFunctionEnumAccess().getNEXTMEMBEREnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:10924:3: (enumLiteral_2= 'first' ) |
| { |
| // InternalDatamartDSL.g:10924:3: (enumLiteral_2= 'first' ) |
| // InternalDatamartDSL.g:10925:4: enumLiteral_2= 'first' |
| { |
| enumLiteral_2=(Token)match(input,154,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getFunctionEnumAccess().getFIRSTCHILDEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getFunctionEnumAccess().getFIRSTCHILDEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:10932:3: (enumLiteral_3= 'last' ) |
| { |
| // InternalDatamartDSL.g:10932:3: (enumLiteral_3= 'last' ) |
| // InternalDatamartDSL.g:10933:4: enumLiteral_3= 'last' |
| { |
| enumLiteral_3=(Token)match(input,155,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getFunctionEnumAccess().getLASTCHILDEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getFunctionEnumAccess().getLASTCHILDEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFunctionEnum" |
| |
| |
| // $ANTLR start "ruleParameterFunctionEnum" |
| // InternalDatamartDSL.g:10943:1: ruleParameterFunctionEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'lag' ) | (enumLiteral_1= 'lead' ) ) ; |
| public final Enumerator ruleParameterFunctionEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:10949:2: ( ( (enumLiteral_0= 'lag' ) | (enumLiteral_1= 'lead' ) ) ) |
| // InternalDatamartDSL.g:10950:2: ( (enumLiteral_0= 'lag' ) | (enumLiteral_1= 'lead' ) ) |
| { |
| // InternalDatamartDSL.g:10950:2: ( (enumLiteral_0= 'lag' ) | (enumLiteral_1= 'lead' ) ) |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==156) ) { |
| alt189=1; |
| } |
| else if ( (LA189_0==157) ) { |
| alt189=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 189, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt189) { |
| case 1 : |
| // InternalDatamartDSL.g:10951:3: (enumLiteral_0= 'lag' ) |
| { |
| // InternalDatamartDSL.g:10951:3: (enumLiteral_0= 'lag' ) |
| // InternalDatamartDSL.g:10952:4: enumLiteral_0= 'lag' |
| { |
| enumLiteral_0=(Token)match(input,156,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getParameterFunctionEnumAccess().getLAGEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getParameterFunctionEnumAccess().getLAGEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10959:3: (enumLiteral_1= 'lead' ) |
| { |
| // InternalDatamartDSL.g:10959:3: (enumLiteral_1= 'lead' ) |
| // InternalDatamartDSL.g:10960:4: enumLiteral_1= 'lead' |
| { |
| enumLiteral_1=(Token)match(input,157,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getParameterFunctionEnumAccess().getLEADEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getParameterFunctionEnumAccess().getLEADEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleParameterFunctionEnum" |
| |
| |
| // $ANTLR start "ruleSetFunctionEnum" |
| // InternalDatamartDSL.g:10970:1: ruleSetFunctionEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'year-to-date' ) | (enumLiteral_1= 'periods' ) ) ; |
| public final Enumerator ruleSetFunctionEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:10976:2: ( ( (enumLiteral_0= 'year-to-date' ) | (enumLiteral_1= 'periods' ) ) ) |
| // InternalDatamartDSL.g:10977:2: ( (enumLiteral_0= 'year-to-date' ) | (enumLiteral_1= 'periods' ) ) |
| { |
| // InternalDatamartDSL.g:10977:2: ( (enumLiteral_0= 'year-to-date' ) | (enumLiteral_1= 'periods' ) ) |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==158) ) { |
| alt190=1; |
| } |
| else if ( (LA190_0==159) ) { |
| 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 : |
| // InternalDatamartDSL.g:10978:3: (enumLiteral_0= 'year-to-date' ) |
| { |
| // InternalDatamartDSL.g:10978:3: (enumLiteral_0= 'year-to-date' ) |
| // InternalDatamartDSL.g:10979:4: enumLiteral_0= 'year-to-date' |
| { |
| enumLiteral_0=(Token)match(input,158,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetFunctionEnumAccess().getYTDEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSetFunctionEnumAccess().getYTDEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:10986:3: (enumLiteral_1= 'periods' ) |
| { |
| // InternalDatamartDSL.g:10986:3: (enumLiteral_1= 'periods' ) |
| // InternalDatamartDSL.g:10987:4: enumLiteral_1= 'periods' |
| { |
| enumLiteral_1=(Token)match(input,159,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetFunctionEnumAccess().getPERIODSTODATEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSetFunctionEnumAccess().getPERIODSTODATEEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSetFunctionEnum" |
| |
| |
| // $ANTLR start "ruleSetParameterFunctionEnum" |
| // InternalDatamartDSL.g:10997:1: ruleSetParameterFunctionEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'tail' ) | (enumLiteral_1= 'head' ) ) ; |
| public final Enumerator ruleSetParameterFunctionEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11003:2: ( ( (enumLiteral_0= 'tail' ) | (enumLiteral_1= 'head' ) ) ) |
| // InternalDatamartDSL.g:11004:2: ( (enumLiteral_0= 'tail' ) | (enumLiteral_1= 'head' ) ) |
| { |
| // InternalDatamartDSL.g:11004:2: ( (enumLiteral_0= 'tail' ) | (enumLiteral_1= 'head' ) ) |
| int alt191=2; |
| int LA191_0 = input.LA(1); |
| |
| if ( (LA191_0==160) ) { |
| alt191=1; |
| } |
| else if ( (LA191_0==161) ) { |
| alt191=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 191, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt191) { |
| case 1 : |
| // InternalDatamartDSL.g:11005:3: (enumLiteral_0= 'tail' ) |
| { |
| // InternalDatamartDSL.g:11005:3: (enumLiteral_0= 'tail' ) |
| // InternalDatamartDSL.g:11006:4: enumLiteral_0= 'tail' |
| { |
| enumLiteral_0=(Token)match(input,160,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetParameterFunctionEnumAccess().getTAILEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSetParameterFunctionEnumAccess().getTAILEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11013:3: (enumLiteral_1= 'head' ) |
| { |
| // InternalDatamartDSL.g:11013:3: (enumLiteral_1= 'head' ) |
| // InternalDatamartDSL.g:11014:4: enumLiteral_1= 'head' |
| { |
| enumLiteral_1=(Token)match(input,161,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetParameterFunctionEnumAccess().getHEADEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSetParameterFunctionEnumAccess().getHEADEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSetParameterFunctionEnum" |
| |
| |
| // $ANTLR start "ruleSetAggregationEnum" |
| // InternalDatamartDSL.g:11024:1: ruleSetAggregationEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'topcount' ) | (enumLiteral_1= 'topsummation' ) | (enumLiteral_2= 'toppercentage' ) | (enumLiteral_3= 'bottomcount' ) | (enumLiteral_4= 'bottomsummation' ) | (enumLiteral_5= 'bottompercentage' ) ) ; |
| public final Enumerator ruleSetAggregationEnum() 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 { |
| // InternalDatamartDSL.g:11030:2: ( ( (enumLiteral_0= 'topcount' ) | (enumLiteral_1= 'topsummation' ) | (enumLiteral_2= 'toppercentage' ) | (enumLiteral_3= 'bottomcount' ) | (enumLiteral_4= 'bottomsummation' ) | (enumLiteral_5= 'bottompercentage' ) ) ) |
| // InternalDatamartDSL.g:11031:2: ( (enumLiteral_0= 'topcount' ) | (enumLiteral_1= 'topsummation' ) | (enumLiteral_2= 'toppercentage' ) | (enumLiteral_3= 'bottomcount' ) | (enumLiteral_4= 'bottomsummation' ) | (enumLiteral_5= 'bottompercentage' ) ) |
| { |
| // InternalDatamartDSL.g:11031:2: ( (enumLiteral_0= 'topcount' ) | (enumLiteral_1= 'topsummation' ) | (enumLiteral_2= 'toppercentage' ) | (enumLiteral_3= 'bottomcount' ) | (enumLiteral_4= 'bottomsummation' ) | (enumLiteral_5= 'bottompercentage' ) ) |
| int alt192=6; |
| switch ( input.LA(1) ) { |
| case 162: |
| { |
| alt192=1; |
| } |
| break; |
| case 163: |
| { |
| alt192=2; |
| } |
| break; |
| case 164: |
| { |
| alt192=3; |
| } |
| break; |
| case 165: |
| { |
| alt192=4; |
| } |
| break; |
| case 166: |
| { |
| alt192=5; |
| } |
| break; |
| case 167: |
| { |
| alt192=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 192, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt192) { |
| case 1 : |
| // InternalDatamartDSL.g:11032:3: (enumLiteral_0= 'topcount' ) |
| { |
| // InternalDatamartDSL.g:11032:3: (enumLiteral_0= 'topcount' ) |
| // InternalDatamartDSL.g:11033:4: enumLiteral_0= 'topcount' |
| { |
| enumLiteral_0=(Token)match(input,162,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getTOPCOUNTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSetAggregationEnumAccess().getTOPCOUNTEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11040:3: (enumLiteral_1= 'topsummation' ) |
| { |
| // InternalDatamartDSL.g:11040:3: (enumLiteral_1= 'topsummation' ) |
| // InternalDatamartDSL.g:11041:4: enumLiteral_1= 'topsummation' |
| { |
| enumLiteral_1=(Token)match(input,163,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getTOPSUMEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSetAggregationEnumAccess().getTOPSUMEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11048:3: (enumLiteral_2= 'toppercentage' ) |
| { |
| // InternalDatamartDSL.g:11048:3: (enumLiteral_2= 'toppercentage' ) |
| // InternalDatamartDSL.g:11049:4: enumLiteral_2= 'toppercentage' |
| { |
| enumLiteral_2=(Token)match(input,164,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getTOPPERCENTEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getSetAggregationEnumAccess().getTOPPERCENTEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11056:3: (enumLiteral_3= 'bottomcount' ) |
| { |
| // InternalDatamartDSL.g:11056:3: (enumLiteral_3= 'bottomcount' ) |
| // InternalDatamartDSL.g:11057:4: enumLiteral_3= 'bottomcount' |
| { |
| enumLiteral_3=(Token)match(input,165,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getBOTTOMCOUNTEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getSetAggregationEnumAccess().getBOTTOMCOUNTEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:11064:3: (enumLiteral_4= 'bottomsummation' ) |
| { |
| // InternalDatamartDSL.g:11064:3: (enumLiteral_4= 'bottomsummation' ) |
| // InternalDatamartDSL.g:11065:4: enumLiteral_4= 'bottomsummation' |
| { |
| enumLiteral_4=(Token)match(input,166,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getBOTTOMSUMEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getSetAggregationEnumAccess().getBOTTOMSUMEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:11072:3: (enumLiteral_5= 'bottompercentage' ) |
| { |
| // InternalDatamartDSL.g:11072:3: (enumLiteral_5= 'bottompercentage' ) |
| // InternalDatamartDSL.g:11073:4: enumLiteral_5= 'bottompercentage' |
| { |
| enumLiteral_5=(Token)match(input,167,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSetAggregationEnumAccess().getBOTTOMPERCENTEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getSetAggregationEnumAccess().getBOTTOMPERCENTEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSetAggregationEnum" |
| |
| |
| // $ANTLR start "ruleAggregationEnum" |
| // InternalDatamartDSL.g:11083:1: ruleAggregationEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'aggregate' ) | (enumLiteral_3= 'deviation' ) ) ; |
| public final Enumerator ruleAggregationEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11089:2: ( ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'aggregate' ) | (enumLiteral_3= 'deviation' ) ) ) |
| // InternalDatamartDSL.g:11090:2: ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'aggregate' ) | (enumLiteral_3= 'deviation' ) ) |
| { |
| // InternalDatamartDSL.g:11090:2: ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'aggregate' ) | (enumLiteral_3= 'deviation' ) ) |
| int alt193=4; |
| switch ( input.LA(1) ) { |
| case 168: |
| { |
| alt193=1; |
| } |
| break; |
| case 169: |
| { |
| alt193=2; |
| } |
| break; |
| case 44: |
| { |
| alt193=3; |
| } |
| break; |
| case 170: |
| { |
| alt193=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 193, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt193) { |
| case 1 : |
| // InternalDatamartDSL.g:11091:3: (enumLiteral_0= 'average' ) |
| { |
| // InternalDatamartDSL.g:11091:3: (enumLiteral_0= 'average' ) |
| // InternalDatamartDSL.g:11092:4: enumLiteral_0= 'average' |
| { |
| enumLiteral_0=(Token)match(input,168,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAggregationEnumAccess().getAVGEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getAggregationEnumAccess().getAVGEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11099:3: (enumLiteral_1= 'summation' ) |
| { |
| // InternalDatamartDSL.g:11099:3: (enumLiteral_1= 'summation' ) |
| // InternalDatamartDSL.g:11100:4: enumLiteral_1= 'summation' |
| { |
| enumLiteral_1=(Token)match(input,169,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAggregationEnumAccess().getSUMEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getAggregationEnumAccess().getSUMEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11107:3: (enumLiteral_2= 'aggregate' ) |
| { |
| // InternalDatamartDSL.g:11107:3: (enumLiteral_2= 'aggregate' ) |
| // InternalDatamartDSL.g:11108:4: enumLiteral_2= 'aggregate' |
| { |
| enumLiteral_2=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAggregationEnumAccess().getAGGREGATEEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getAggregationEnumAccess().getAGGREGATEEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11115:3: (enumLiteral_3= 'deviation' ) |
| { |
| // InternalDatamartDSL.g:11115:3: (enumLiteral_3= 'deviation' ) |
| // InternalDatamartDSL.g:11116:4: enumLiteral_3= 'deviation' |
| { |
| enumLiteral_3=(Token)match(input,170,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAggregationEnumAccess().getSTDDEVEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getAggregationEnumAccess().getSTDDEVEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAggregationEnum" |
| |
| |
| // $ANTLR start "ruleOperatorEnum" |
| // InternalDatamartDSL.g:11126:1: ruleOperatorEnum returns [Enumerator current=null] : ( (enumLiteral_0= '=' ) | (enumLiteral_1= '<' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '<=' ) | (enumLiteral_4= '>=' ) | (enumLiteral_5= 'like' ) ) ; |
| public final Enumerator ruleOperatorEnum() 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 { |
| // InternalDatamartDSL.g:11132:2: ( ( (enumLiteral_0= '=' ) | (enumLiteral_1= '<' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '<=' ) | (enumLiteral_4= '>=' ) | (enumLiteral_5= 'like' ) ) ) |
| // InternalDatamartDSL.g:11133:2: ( (enumLiteral_0= '=' ) | (enumLiteral_1= '<' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '<=' ) | (enumLiteral_4= '>=' ) | (enumLiteral_5= 'like' ) ) |
| { |
| // InternalDatamartDSL.g:11133:2: ( (enumLiteral_0= '=' ) | (enumLiteral_1= '<' ) | (enumLiteral_2= '>' ) | (enumLiteral_3= '<=' ) | (enumLiteral_4= '>=' ) | (enumLiteral_5= 'like' ) ) |
| int alt194=6; |
| switch ( input.LA(1) ) { |
| case 88: |
| { |
| alt194=1; |
| } |
| break; |
| case 97: |
| { |
| alt194=2; |
| } |
| break; |
| case 98: |
| { |
| alt194=3; |
| } |
| break; |
| case 171: |
| { |
| alt194=4; |
| } |
| break; |
| case 99: |
| { |
| alt194=5; |
| } |
| break; |
| case 172: |
| { |
| alt194=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 194, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt194) { |
| case 1 : |
| // InternalDatamartDSL.g:11134:3: (enumLiteral_0= '=' ) |
| { |
| // InternalDatamartDSL.g:11134:3: (enumLiteral_0= '=' ) |
| // InternalDatamartDSL.g:11135:4: enumLiteral_0= '=' |
| { |
| enumLiteral_0=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getEQUALSEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getOperatorEnumAccess().getEQUALSEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11142:3: (enumLiteral_1= '<' ) |
| { |
| // InternalDatamartDSL.g:11142:3: (enumLiteral_1= '<' ) |
| // InternalDatamartDSL.g:11143:4: enumLiteral_1= '<' |
| { |
| enumLiteral_1=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getLESSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getOperatorEnumAccess().getLESSEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11150:3: (enumLiteral_2= '>' ) |
| { |
| // InternalDatamartDSL.g:11150:3: (enumLiteral_2= '>' ) |
| // InternalDatamartDSL.g:11151:4: enumLiteral_2= '>' |
| { |
| enumLiteral_2=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getGREATEREnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getOperatorEnumAccess().getGREATEREnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11158:3: (enumLiteral_3= '<=' ) |
| { |
| // InternalDatamartDSL.g:11158:3: (enumLiteral_3= '<=' ) |
| // InternalDatamartDSL.g:11159:4: enumLiteral_3= '<=' |
| { |
| enumLiteral_3=(Token)match(input,171,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getLESSEQUALEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getOperatorEnumAccess().getLESSEQUALEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:11166:3: (enumLiteral_4= '>=' ) |
| { |
| // InternalDatamartDSL.g:11166:3: (enumLiteral_4= '>=' ) |
| // InternalDatamartDSL.g:11167:4: enumLiteral_4= '>=' |
| { |
| enumLiteral_4=(Token)match(input,99,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getGREATEREQUALEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getOperatorEnumAccess().getGREATEREQUALEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:11174:3: (enumLiteral_5= 'like' ) |
| { |
| // InternalDatamartDSL.g:11174:3: (enumLiteral_5= 'like' ) |
| // InternalDatamartDSL.g:11175:4: enumLiteral_5= 'like' |
| { |
| enumLiteral_5=(Token)match(input,172,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOperatorEnumAccess().getLIKEEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getOperatorEnumAccess().getLIKEEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOperatorEnum" |
| |
| |
| // $ANTLR start "ruleSqlAggregationEnum" |
| // InternalDatamartDSL.g:11185:1: ruleSqlAggregationEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'count' ) ) ; |
| public final Enumerator ruleSqlAggregationEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11191:2: ( ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'count' ) ) ) |
| // InternalDatamartDSL.g:11192:2: ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'count' ) ) |
| { |
| // InternalDatamartDSL.g:11192:2: ( (enumLiteral_0= 'average' ) | (enumLiteral_1= 'summation' ) | (enumLiteral_2= 'count' ) ) |
| int alt195=3; |
| switch ( input.LA(1) ) { |
| case 168: |
| { |
| alt195=1; |
| } |
| break; |
| case 169: |
| { |
| alt195=2; |
| } |
| break; |
| case 173: |
| { |
| alt195=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 195, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt195) { |
| case 1 : |
| // InternalDatamartDSL.g:11193:3: (enumLiteral_0= 'average' ) |
| { |
| // InternalDatamartDSL.g:11193:3: (enumLiteral_0= 'average' ) |
| // InternalDatamartDSL.g:11194:4: enumLiteral_0= 'average' |
| { |
| enumLiteral_0=(Token)match(input,168,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSqlAggregationEnumAccess().getAVGEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSqlAggregationEnumAccess().getAVGEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11201:3: (enumLiteral_1= 'summation' ) |
| { |
| // InternalDatamartDSL.g:11201:3: (enumLiteral_1= 'summation' ) |
| // InternalDatamartDSL.g:11202:4: enumLiteral_1= 'summation' |
| { |
| enumLiteral_1=(Token)match(input,169,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSqlAggregationEnumAccess().getSUMEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSqlAggregationEnumAccess().getSUMEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11209:3: (enumLiteral_2= 'count' ) |
| { |
| // InternalDatamartDSL.g:11209:3: (enumLiteral_2= 'count' ) |
| // InternalDatamartDSL.g:11210:4: enumLiteral_2= 'count' |
| { |
| enumLiteral_2=(Token)match(input,173,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSqlAggregationEnumAccess().getCOUNTEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getSqlAggregationEnumAccess().getCOUNTEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSqlAggregationEnum" |
| |
| |
| // $ANTLR start "ruleValueScaleEnum" |
| // InternalDatamartDSL.g:11220:1: ruleValueScaleEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'group1' ) | (enumLiteral_1= 'group2' ) | (enumLiteral_2= 'group3' ) | (enumLiteral_3= 'group4' ) | (enumLiteral_4= 'group5' ) | (enumLiteral_5= 'group6' ) | (enumLiteral_6= 'group7' ) | (enumLiteral_7= 'group8' ) | (enumLiteral_8= 'group9' ) ) ; |
| public final Enumerator ruleValueScaleEnum() 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; |
| Token enumLiteral_8=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11226:2: ( ( (enumLiteral_0= 'group1' ) | (enumLiteral_1= 'group2' ) | (enumLiteral_2= 'group3' ) | (enumLiteral_3= 'group4' ) | (enumLiteral_4= 'group5' ) | (enumLiteral_5= 'group6' ) | (enumLiteral_6= 'group7' ) | (enumLiteral_7= 'group8' ) | (enumLiteral_8= 'group9' ) ) ) |
| // InternalDatamartDSL.g:11227:2: ( (enumLiteral_0= 'group1' ) | (enumLiteral_1= 'group2' ) | (enumLiteral_2= 'group3' ) | (enumLiteral_3= 'group4' ) | (enumLiteral_4= 'group5' ) | (enumLiteral_5= 'group6' ) | (enumLiteral_6= 'group7' ) | (enumLiteral_7= 'group8' ) | (enumLiteral_8= 'group9' ) ) |
| { |
| // InternalDatamartDSL.g:11227:2: ( (enumLiteral_0= 'group1' ) | (enumLiteral_1= 'group2' ) | (enumLiteral_2= 'group3' ) | (enumLiteral_3= 'group4' ) | (enumLiteral_4= 'group5' ) | (enumLiteral_5= 'group6' ) | (enumLiteral_6= 'group7' ) | (enumLiteral_7= 'group8' ) | (enumLiteral_8= 'group9' ) ) |
| int alt196=9; |
| switch ( input.LA(1) ) { |
| case 174: |
| { |
| alt196=1; |
| } |
| break; |
| case 175: |
| { |
| alt196=2; |
| } |
| break; |
| case 176: |
| { |
| alt196=3; |
| } |
| break; |
| case 177: |
| { |
| alt196=4; |
| } |
| break; |
| case 178: |
| { |
| alt196=5; |
| } |
| break; |
| case 179: |
| { |
| alt196=6; |
| } |
| break; |
| case 180: |
| { |
| alt196=7; |
| } |
| break; |
| case 181: |
| { |
| alt196=8; |
| } |
| break; |
| case 182: |
| { |
| alt196=9; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 196, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt196) { |
| case 1 : |
| // InternalDatamartDSL.g:11228:3: (enumLiteral_0= 'group1' ) |
| { |
| // InternalDatamartDSL.g:11228:3: (enumLiteral_0= 'group1' ) |
| // InternalDatamartDSL.g:11229:4: enumLiteral_0= 'group1' |
| { |
| enumLiteral_0=(Token)match(input,174,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXISEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getValueScaleEnumAccess().getAXISEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11236:3: (enumLiteral_1= 'group2' ) |
| { |
| // InternalDatamartDSL.g:11236:3: (enumLiteral_1= 'group2' ) |
| // InternalDatamartDSL.g:11237:4: enumLiteral_1= 'group2' |
| { |
| enumLiteral_1=(Token)match(input,175,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS2EnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getValueScaleEnumAccess().getAXIS2EnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11244:3: (enumLiteral_2= 'group3' ) |
| { |
| // InternalDatamartDSL.g:11244:3: (enumLiteral_2= 'group3' ) |
| // InternalDatamartDSL.g:11245:4: enumLiteral_2= 'group3' |
| { |
| enumLiteral_2=(Token)match(input,176,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS3EnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getValueScaleEnumAccess().getAXIS3EnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11252:3: (enumLiteral_3= 'group4' ) |
| { |
| // InternalDatamartDSL.g:11252:3: (enumLiteral_3= 'group4' ) |
| // InternalDatamartDSL.g:11253:4: enumLiteral_3= 'group4' |
| { |
| enumLiteral_3=(Token)match(input,177,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS4EnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getValueScaleEnumAccess().getAXIS4EnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:11260:3: (enumLiteral_4= 'group5' ) |
| { |
| // InternalDatamartDSL.g:11260:3: (enumLiteral_4= 'group5' ) |
| // InternalDatamartDSL.g:11261:4: enumLiteral_4= 'group5' |
| { |
| enumLiteral_4=(Token)match(input,178,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS5EnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getValueScaleEnumAccess().getAXIS5EnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:11268:3: (enumLiteral_5= 'group6' ) |
| { |
| // InternalDatamartDSL.g:11268:3: (enumLiteral_5= 'group6' ) |
| // InternalDatamartDSL.g:11269:4: enumLiteral_5= 'group6' |
| { |
| enumLiteral_5=(Token)match(input,179,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS6EnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getValueScaleEnumAccess().getAXIS6EnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDatamartDSL.g:11276:3: (enumLiteral_6= 'group7' ) |
| { |
| // InternalDatamartDSL.g:11276:3: (enumLiteral_6= 'group7' ) |
| // InternalDatamartDSL.g:11277:4: enumLiteral_6= 'group7' |
| { |
| enumLiteral_6=(Token)match(input,180,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS7EnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getValueScaleEnumAccess().getAXIS7EnumLiteralDeclaration_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalDatamartDSL.g:11284:3: (enumLiteral_7= 'group8' ) |
| { |
| // InternalDatamartDSL.g:11284:3: (enumLiteral_7= 'group8' ) |
| // InternalDatamartDSL.g:11285:4: enumLiteral_7= 'group8' |
| { |
| enumLiteral_7=(Token)match(input,181,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS8EnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getValueScaleEnumAccess().getAXIS8EnumLiteralDeclaration_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalDatamartDSL.g:11292:3: (enumLiteral_8= 'group9' ) |
| { |
| // InternalDatamartDSL.g:11292:3: (enumLiteral_8= 'group9' ) |
| // InternalDatamartDSL.g:11293:4: enumLiteral_8= 'group9' |
| { |
| enumLiteral_8=(Token)match(input,182,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getValueScaleEnumAccess().getAXIS9EnumLiteralDeclaration_8().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_8, grammarAccess.getValueScaleEnumAccess().getAXIS9EnumLiteralDeclaration_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleValueScaleEnum" |
| |
| |
| // $ANTLR start "ruleTaskQueryTopicEnum" |
| // InternalDatamartDSL.g:11303:1: ruleTaskQueryTopicEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'BusinessAdministrator' ) | (enumLiteral_1= 'PotentialOwner' ) | (enumLiteral_2= 'Recipient' ) | (enumLiteral_3= 'TaskInitiator' ) | (enumLiteral_4= 'TaskStakeholder' ) | (enumLiteral_5= 'ExcludedOwner' ) ) ; |
| public final Enumerator ruleTaskQueryTopicEnum() 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 { |
| // InternalDatamartDSL.g:11309:2: ( ( (enumLiteral_0= 'BusinessAdministrator' ) | (enumLiteral_1= 'PotentialOwner' ) | (enumLiteral_2= 'Recipient' ) | (enumLiteral_3= 'TaskInitiator' ) | (enumLiteral_4= 'TaskStakeholder' ) | (enumLiteral_5= 'ExcludedOwner' ) ) ) |
| // InternalDatamartDSL.g:11310:2: ( (enumLiteral_0= 'BusinessAdministrator' ) | (enumLiteral_1= 'PotentialOwner' ) | (enumLiteral_2= 'Recipient' ) | (enumLiteral_3= 'TaskInitiator' ) | (enumLiteral_4= 'TaskStakeholder' ) | (enumLiteral_5= 'ExcludedOwner' ) ) |
| { |
| // InternalDatamartDSL.g:11310:2: ( (enumLiteral_0= 'BusinessAdministrator' ) | (enumLiteral_1= 'PotentialOwner' ) | (enumLiteral_2= 'Recipient' ) | (enumLiteral_3= 'TaskInitiator' ) | (enumLiteral_4= 'TaskStakeholder' ) | (enumLiteral_5= 'ExcludedOwner' ) ) |
| int alt197=6; |
| switch ( input.LA(1) ) { |
| case 183: |
| { |
| alt197=1; |
| } |
| break; |
| case 184: |
| { |
| alt197=2; |
| } |
| break; |
| case 185: |
| { |
| alt197=3; |
| } |
| break; |
| case 186: |
| { |
| alt197=4; |
| } |
| break; |
| case 187: |
| { |
| alt197=5; |
| } |
| break; |
| case 188: |
| { |
| alt197=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 197, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt197) { |
| case 1 : |
| // InternalDatamartDSL.g:11311:3: (enumLiteral_0= 'BusinessAdministrator' ) |
| { |
| // InternalDatamartDSL.g:11311:3: (enumLiteral_0= 'BusinessAdministrator' ) |
| // InternalDatamartDSL.g:11312:4: enumLiteral_0= 'BusinessAdministrator' |
| { |
| enumLiteral_0=(Token)match(input,183,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ1EnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTaskQueryTopicEnumAccess().getQ1EnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11319:3: (enumLiteral_1= 'PotentialOwner' ) |
| { |
| // InternalDatamartDSL.g:11319:3: (enumLiteral_1= 'PotentialOwner' ) |
| // InternalDatamartDSL.g:11320:4: enumLiteral_1= 'PotentialOwner' |
| { |
| enumLiteral_1=(Token)match(input,184,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ2EnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTaskQueryTopicEnumAccess().getQ2EnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11327:3: (enumLiteral_2= 'Recipient' ) |
| { |
| // InternalDatamartDSL.g:11327:3: (enumLiteral_2= 'Recipient' ) |
| // InternalDatamartDSL.g:11328:4: enumLiteral_2= 'Recipient' |
| { |
| enumLiteral_2=(Token)match(input,185,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ3EnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTaskQueryTopicEnumAccess().getQ3EnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11335:3: (enumLiteral_3= 'TaskInitiator' ) |
| { |
| // InternalDatamartDSL.g:11335:3: (enumLiteral_3= 'TaskInitiator' ) |
| // InternalDatamartDSL.g:11336:4: enumLiteral_3= 'TaskInitiator' |
| { |
| enumLiteral_3=(Token)match(input,186,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ4EnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getTaskQueryTopicEnumAccess().getQ4EnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:11343:3: (enumLiteral_4= 'TaskStakeholder' ) |
| { |
| // InternalDatamartDSL.g:11343:3: (enumLiteral_4= 'TaskStakeholder' ) |
| // InternalDatamartDSL.g:11344:4: enumLiteral_4= 'TaskStakeholder' |
| { |
| enumLiteral_4=(Token)match(input,187,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ5EnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getTaskQueryTopicEnumAccess().getQ5EnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:11351:3: (enumLiteral_5= 'ExcludedOwner' ) |
| { |
| // InternalDatamartDSL.g:11351:3: (enumLiteral_5= 'ExcludedOwner' ) |
| // InternalDatamartDSL.g:11352:4: enumLiteral_5= 'ExcludedOwner' |
| { |
| enumLiteral_5=(Token)match(input,188,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryTopicEnumAccess().getQ6EnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getTaskQueryTopicEnumAccess().getQ6EnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTaskQueryTopicEnum" |
| |
| |
| // $ANTLR start "ruleTaskQueryColumnEnum" |
| // InternalDatamartDSL.g:11362:1: ruleTaskQueryColumnEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'Name' ) | (enumLiteral_1= 'Priority' ) | (enumLiteral_2= 'Status' ) | (enumLiteral_3= 'Subject' ) | (enumLiteral_4= 'Description' ) | (enumLiteral_5= 'ExpirationTime' ) | (enumLiteral_6= 'CreatedOn' ) | (enumLiteral_7= 'CreatedBy' ) | (enumLiteral_8= 'ActivationTime' ) | (enumLiteral_9= 'ActualOwner' ) | (enumLiteral_10= 'TaskId' ) | (enumLiteral_11= 'ProcessId' ) | (enumLiteral_12= 'ProcessInstanceId' ) | (enumLiteral_13= 'ProcessSessionId' ) ) ; |
| public final Enumerator ruleTaskQueryColumnEnum() 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; |
| Token enumLiteral_8=null; |
| Token enumLiteral_9=null; |
| Token enumLiteral_10=null; |
| Token enumLiteral_11=null; |
| Token enumLiteral_12=null; |
| Token enumLiteral_13=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11368:2: ( ( (enumLiteral_0= 'Name' ) | (enumLiteral_1= 'Priority' ) | (enumLiteral_2= 'Status' ) | (enumLiteral_3= 'Subject' ) | (enumLiteral_4= 'Description' ) | (enumLiteral_5= 'ExpirationTime' ) | (enumLiteral_6= 'CreatedOn' ) | (enumLiteral_7= 'CreatedBy' ) | (enumLiteral_8= 'ActivationTime' ) | (enumLiteral_9= 'ActualOwner' ) | (enumLiteral_10= 'TaskId' ) | (enumLiteral_11= 'ProcessId' ) | (enumLiteral_12= 'ProcessInstanceId' ) | (enumLiteral_13= 'ProcessSessionId' ) ) ) |
| // InternalDatamartDSL.g:11369:2: ( (enumLiteral_0= 'Name' ) | (enumLiteral_1= 'Priority' ) | (enumLiteral_2= 'Status' ) | (enumLiteral_3= 'Subject' ) | (enumLiteral_4= 'Description' ) | (enumLiteral_5= 'ExpirationTime' ) | (enumLiteral_6= 'CreatedOn' ) | (enumLiteral_7= 'CreatedBy' ) | (enumLiteral_8= 'ActivationTime' ) | (enumLiteral_9= 'ActualOwner' ) | (enumLiteral_10= 'TaskId' ) | (enumLiteral_11= 'ProcessId' ) | (enumLiteral_12= 'ProcessInstanceId' ) | (enumLiteral_13= 'ProcessSessionId' ) ) |
| { |
| // InternalDatamartDSL.g:11369:2: ( (enumLiteral_0= 'Name' ) | (enumLiteral_1= 'Priority' ) | (enumLiteral_2= 'Status' ) | (enumLiteral_3= 'Subject' ) | (enumLiteral_4= 'Description' ) | (enumLiteral_5= 'ExpirationTime' ) | (enumLiteral_6= 'CreatedOn' ) | (enumLiteral_7= 'CreatedBy' ) | (enumLiteral_8= 'ActivationTime' ) | (enumLiteral_9= 'ActualOwner' ) | (enumLiteral_10= 'TaskId' ) | (enumLiteral_11= 'ProcessId' ) | (enumLiteral_12= 'ProcessInstanceId' ) | (enumLiteral_13= 'ProcessSessionId' ) ) |
| int alt198=14; |
| switch ( input.LA(1) ) { |
| case 189: |
| { |
| alt198=1; |
| } |
| break; |
| case 190: |
| { |
| alt198=2; |
| } |
| break; |
| case 191: |
| { |
| alt198=3; |
| } |
| break; |
| case 192: |
| { |
| alt198=4; |
| } |
| break; |
| case 193: |
| { |
| alt198=5; |
| } |
| break; |
| case 194: |
| { |
| alt198=6; |
| } |
| break; |
| case 195: |
| { |
| alt198=7; |
| } |
| break; |
| case 196: |
| { |
| alt198=8; |
| } |
| break; |
| case 197: |
| { |
| alt198=9; |
| } |
| break; |
| case 198: |
| { |
| alt198=10; |
| } |
| break; |
| case 199: |
| { |
| alt198=11; |
| } |
| break; |
| case 200: |
| { |
| alt198=12; |
| } |
| break; |
| case 201: |
| { |
| alt198=13; |
| } |
| break; |
| case 202: |
| { |
| alt198=14; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 198, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt198) { |
| case 1 : |
| // InternalDatamartDSL.g:11370:3: (enumLiteral_0= 'Name' ) |
| { |
| // InternalDatamartDSL.g:11370:3: (enumLiteral_0= 'Name' ) |
| // InternalDatamartDSL.g:11371:4: enumLiteral_0= 'Name' |
| { |
| enumLiteral_0=(Token)match(input,189,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP1EnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTaskQueryColumnEnumAccess().getP1EnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11378:3: (enumLiteral_1= 'Priority' ) |
| { |
| // InternalDatamartDSL.g:11378:3: (enumLiteral_1= 'Priority' ) |
| // InternalDatamartDSL.g:11379:4: enumLiteral_1= 'Priority' |
| { |
| enumLiteral_1=(Token)match(input,190,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP2EnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTaskQueryColumnEnumAccess().getP2EnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:11386:3: (enumLiteral_2= 'Status' ) |
| { |
| // InternalDatamartDSL.g:11386:3: (enumLiteral_2= 'Status' ) |
| // InternalDatamartDSL.g:11387:4: enumLiteral_2= 'Status' |
| { |
| enumLiteral_2=(Token)match(input,191,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP3EnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTaskQueryColumnEnumAccess().getP3EnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalDatamartDSL.g:11394:3: (enumLiteral_3= 'Subject' ) |
| { |
| // InternalDatamartDSL.g:11394:3: (enumLiteral_3= 'Subject' ) |
| // InternalDatamartDSL.g:11395:4: enumLiteral_3= 'Subject' |
| { |
| enumLiteral_3=(Token)match(input,192,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP4EnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getTaskQueryColumnEnumAccess().getP4EnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalDatamartDSL.g:11402:3: (enumLiteral_4= 'Description' ) |
| { |
| // InternalDatamartDSL.g:11402:3: (enumLiteral_4= 'Description' ) |
| // InternalDatamartDSL.g:11403:4: enumLiteral_4= 'Description' |
| { |
| enumLiteral_4=(Token)match(input,193,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP5EnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getTaskQueryColumnEnumAccess().getP5EnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalDatamartDSL.g:11410:3: (enumLiteral_5= 'ExpirationTime' ) |
| { |
| // InternalDatamartDSL.g:11410:3: (enumLiteral_5= 'ExpirationTime' ) |
| // InternalDatamartDSL.g:11411:4: enumLiteral_5= 'ExpirationTime' |
| { |
| enumLiteral_5=(Token)match(input,194,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP6EnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getTaskQueryColumnEnumAccess().getP6EnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalDatamartDSL.g:11418:3: (enumLiteral_6= 'CreatedOn' ) |
| { |
| // InternalDatamartDSL.g:11418:3: (enumLiteral_6= 'CreatedOn' ) |
| // InternalDatamartDSL.g:11419:4: enumLiteral_6= 'CreatedOn' |
| { |
| enumLiteral_6=(Token)match(input,195,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP7EnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getTaskQueryColumnEnumAccess().getP7EnumLiteralDeclaration_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalDatamartDSL.g:11426:3: (enumLiteral_7= 'CreatedBy' ) |
| { |
| // InternalDatamartDSL.g:11426:3: (enumLiteral_7= 'CreatedBy' ) |
| // InternalDatamartDSL.g:11427:4: enumLiteral_7= 'CreatedBy' |
| { |
| enumLiteral_7=(Token)match(input,196,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP8EnumLiteralDeclaration_7().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_7, grammarAccess.getTaskQueryColumnEnumAccess().getP8EnumLiteralDeclaration_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalDatamartDSL.g:11434:3: (enumLiteral_8= 'ActivationTime' ) |
| { |
| // InternalDatamartDSL.g:11434:3: (enumLiteral_8= 'ActivationTime' ) |
| // InternalDatamartDSL.g:11435:4: enumLiteral_8= 'ActivationTime' |
| { |
| enumLiteral_8=(Token)match(input,197,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP9EnumLiteralDeclaration_8().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_8, grammarAccess.getTaskQueryColumnEnumAccess().getP9EnumLiteralDeclaration_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 10 : |
| // InternalDatamartDSL.g:11442:3: (enumLiteral_9= 'ActualOwner' ) |
| { |
| // InternalDatamartDSL.g:11442:3: (enumLiteral_9= 'ActualOwner' ) |
| // InternalDatamartDSL.g:11443:4: enumLiteral_9= 'ActualOwner' |
| { |
| enumLiteral_9=(Token)match(input,198,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP10EnumLiteralDeclaration_9().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_9, grammarAccess.getTaskQueryColumnEnumAccess().getP10EnumLiteralDeclaration_9()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 11 : |
| // InternalDatamartDSL.g:11450:3: (enumLiteral_10= 'TaskId' ) |
| { |
| // InternalDatamartDSL.g:11450:3: (enumLiteral_10= 'TaskId' ) |
| // InternalDatamartDSL.g:11451:4: enumLiteral_10= 'TaskId' |
| { |
| enumLiteral_10=(Token)match(input,199,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP11EnumLiteralDeclaration_10().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_10, grammarAccess.getTaskQueryColumnEnumAccess().getP11EnumLiteralDeclaration_10()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 12 : |
| // InternalDatamartDSL.g:11458:3: (enumLiteral_11= 'ProcessId' ) |
| { |
| // InternalDatamartDSL.g:11458:3: (enumLiteral_11= 'ProcessId' ) |
| // InternalDatamartDSL.g:11459:4: enumLiteral_11= 'ProcessId' |
| { |
| enumLiteral_11=(Token)match(input,200,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP12EnumLiteralDeclaration_11().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_11, grammarAccess.getTaskQueryColumnEnumAccess().getP12EnumLiteralDeclaration_11()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 13 : |
| // InternalDatamartDSL.g:11466:3: (enumLiteral_12= 'ProcessInstanceId' ) |
| { |
| // InternalDatamartDSL.g:11466:3: (enumLiteral_12= 'ProcessInstanceId' ) |
| // InternalDatamartDSL.g:11467:4: enumLiteral_12= 'ProcessInstanceId' |
| { |
| enumLiteral_12=(Token)match(input,201,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP13EnumLiteralDeclaration_12().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_12, grammarAccess.getTaskQueryColumnEnumAccess().getP13EnumLiteralDeclaration_12()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 14 : |
| // InternalDatamartDSL.g:11474:3: (enumLiteral_13= 'ProcessSessionId' ) |
| { |
| // InternalDatamartDSL.g:11474:3: (enumLiteral_13= 'ProcessSessionId' ) |
| // InternalDatamartDSL.g:11475:4: enumLiteral_13= 'ProcessSessionId' |
| { |
| enumLiteral_13=(Token)match(input,202,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskQueryColumnEnumAccess().getP14EnumLiteralDeclaration_13().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_13, grammarAccess.getTaskQueryColumnEnumAccess().getP14EnumLiteralDeclaration_13()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTaskQueryColumnEnum" |
| |
| |
| // $ANTLR start "ruleTaskFilterEnum" |
| // InternalDatamartDSL.g:11485:1: ruleTaskFilterEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'Groups' ) | (enumLiteral_1= 'Users' ) ) ; |
| public final Enumerator ruleTaskFilterEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11491:2: ( ( (enumLiteral_0= 'Groups' ) | (enumLiteral_1= 'Users' ) ) ) |
| // InternalDatamartDSL.g:11492:2: ( (enumLiteral_0= 'Groups' ) | (enumLiteral_1= 'Users' ) ) |
| { |
| // InternalDatamartDSL.g:11492:2: ( (enumLiteral_0= 'Groups' ) | (enumLiteral_1= 'Users' ) ) |
| int alt199=2; |
| int LA199_0 = input.LA(1); |
| |
| if ( (LA199_0==203) ) { |
| alt199=1; |
| } |
| else if ( (LA199_0==204) ) { |
| 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 : |
| // InternalDatamartDSL.g:11493:3: (enumLiteral_0= 'Groups' ) |
| { |
| // InternalDatamartDSL.g:11493:3: (enumLiteral_0= 'Groups' ) |
| // InternalDatamartDSL.g:11494:4: enumLiteral_0= 'Groups' |
| { |
| enumLiteral_0=(Token)match(input,203,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskFilterEnumAccess().getF1EnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTaskFilterEnumAccess().getF1EnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11501:3: (enumLiteral_1= 'Users' ) |
| { |
| // InternalDatamartDSL.g:11501:3: (enumLiteral_1= 'Users' ) |
| // InternalDatamartDSL.g:11502:4: enumLiteral_1= 'Users' |
| { |
| enumLiteral_1=(Token)match(input,204,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTaskFilterEnumAccess().getF2EnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTaskFilterEnumAccess().getF2EnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTaskFilterEnum" |
| |
| |
| // $ANTLR start "ruleOrderEnum" |
| // InternalDatamartDSL.g:11512:1: ruleOrderEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'ascending' ) | (enumLiteral_1= 'descending' ) ) ; |
| public final Enumerator ruleOrderEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalDatamartDSL.g:11518:2: ( ( (enumLiteral_0= 'ascending' ) | (enumLiteral_1= 'descending' ) ) ) |
| // InternalDatamartDSL.g:11519:2: ( (enumLiteral_0= 'ascending' ) | (enumLiteral_1= 'descending' ) ) |
| { |
| // InternalDatamartDSL.g:11519:2: ( (enumLiteral_0= 'ascending' ) | (enumLiteral_1= 'descending' ) ) |
| int alt200=2; |
| int LA200_0 = input.LA(1); |
| |
| if ( (LA200_0==205) ) { |
| alt200=1; |
| } |
| else if ( (LA200_0==76) ) { |
| alt200=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 200, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt200) { |
| case 1 : |
| // InternalDatamartDSL.g:11520:3: (enumLiteral_0= 'ascending' ) |
| { |
| // InternalDatamartDSL.g:11520:3: (enumLiteral_0= 'ascending' ) |
| // InternalDatamartDSL.g:11521:4: enumLiteral_0= 'ascending' |
| { |
| enumLiteral_0=(Token)match(input,205,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOrderEnumAccess().getASCEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getOrderEnumAccess().getASCEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:11528:3: (enumLiteral_1= 'descending' ) |
| { |
| // InternalDatamartDSL.g:11528:3: (enumLiteral_1= 'descending' ) |
| // InternalDatamartDSL.g:11529:4: enumLiteral_1= 'descending' |
| { |
| enumLiteral_1=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getOrderEnumAccess().getDESCEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getOrderEnumAccess().getDESCEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOrderEnum" |
| |
| // $ANTLR start synpred1_InternalDatamartDSL |
| public final void synpred1_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4217:5: ( '(' ) |
| // InternalDatamartDSL.g:4217:6: '(' |
| { |
| match(input,51,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalDatamartDSL |
| |
| // $ANTLR start synpred2_InternalDatamartDSL |
| public final void synpred2_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4226:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalDatamartDSL.g:4226:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalDatamartDSL.g:4226:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalDatamartDSL.g:4227:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalDatamartDSL.g:4227:8: ( ( ruleValidID ) ) |
| // InternalDatamartDSL.g:4228:9: ( ruleValidID ) |
| { |
| // InternalDatamartDSL.g:4228:9: ( ruleValidID ) |
| // InternalDatamartDSL.g:4229:10: ruleValidID |
| { |
| pushFollow(FOLLOW_80); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,88,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalDatamartDSL |
| |
| // $ANTLR start synpred5_InternalDatamartDSL |
| public final void synpred5_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4406:5: ( ( () '#' '[' ) ) |
| // InternalDatamartDSL.g:4406:6: ( () '#' '[' ) |
| { |
| // InternalDatamartDSL.g:4406:6: ( () '#' '[' ) |
| // InternalDatamartDSL.g:4407:6: () '#' '[' |
| { |
| // InternalDatamartDSL.g:4407:6: () |
| // InternalDatamartDSL.g:4408:6: |
| { |
| } |
| |
| match(input,89,FOLLOW_82); if (state.failed) return ; |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalDatamartDSL |
| |
| // $ANTLR start synpred6_InternalDatamartDSL |
| public final void synpred6_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4548:5: ( ( () '#' '[' ) ) |
| // InternalDatamartDSL.g:4548:6: ( () '#' '[' ) |
| { |
| // InternalDatamartDSL.g:4548:6: ( () '#' '[' ) |
| // InternalDatamartDSL.g:4549:6: () '#' '[' |
| { |
| // InternalDatamartDSL.g:4549:6: () |
| // InternalDatamartDSL.g:4550:6: |
| { |
| } |
| |
| match(input,89,FOLLOW_82); if (state.failed) return ; |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalDatamartDSL |
| |
| // $ANTLR start synpred7_InternalDatamartDSL |
| public final void synpred7_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4776:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalDatamartDSL.g:4776:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalDatamartDSL.g:4776:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalDatamartDSL.g:4777:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalDatamartDSL.g:4777:7: () |
| // InternalDatamartDSL.g:4778:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:4779:7: ( ( ruleOpMultiAssign ) ) |
| // InternalDatamartDSL.g:4780:8: ( ruleOpMultiAssign ) |
| { |
| // InternalDatamartDSL.g:4780:8: ( ruleOpMultiAssign ) |
| // InternalDatamartDSL.g:4781:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalDatamartDSL |
| |
| // $ANTLR start synpred8_InternalDatamartDSL |
| public final void synpred8_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:4970:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalDatamartDSL.g:4970:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalDatamartDSL.g:4970:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalDatamartDSL.g:4971:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalDatamartDSL.g:4971:6: () |
| // InternalDatamartDSL.g:4972:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:4973:6: ( ( ruleOpOr ) ) |
| // InternalDatamartDSL.g:4974:7: ( ruleOpOr ) |
| { |
| // InternalDatamartDSL.g:4974:7: ( ruleOpOr ) |
| // InternalDatamartDSL.g:4975:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalDatamartDSL |
| |
| // $ANTLR start synpred9_InternalDatamartDSL |
| public final void synpred9_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5077:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalDatamartDSL.g:5077:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalDatamartDSL.g:5077:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalDatamartDSL.g:5078:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalDatamartDSL.g:5078:6: () |
| // InternalDatamartDSL.g:5079:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5080:6: ( ( ruleOpAnd ) ) |
| // InternalDatamartDSL.g:5081:7: ( ruleOpAnd ) |
| { |
| // InternalDatamartDSL.g:5081:7: ( ruleOpAnd ) |
| // InternalDatamartDSL.g:5082:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalDatamartDSL |
| |
| // $ANTLR start synpred10_InternalDatamartDSL |
| public final void synpred10_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5184:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalDatamartDSL.g:5184:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalDatamartDSL.g:5184:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalDatamartDSL.g:5185:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalDatamartDSL.g:5185:6: () |
| // InternalDatamartDSL.g:5186:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5187:6: ( ( ruleOpEquality ) ) |
| // InternalDatamartDSL.g:5188:7: ( ruleOpEquality ) |
| { |
| // InternalDatamartDSL.g:5188:7: ( ruleOpEquality ) |
| // InternalDatamartDSL.g:5189:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalDatamartDSL |
| |
| // $ANTLR start synpred11_InternalDatamartDSL |
| public final void synpred11_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5312:6: ( ( () 'instanceof' ) ) |
| // InternalDatamartDSL.g:5312:7: ( () 'instanceof' ) |
| { |
| // InternalDatamartDSL.g:5312:7: ( () 'instanceof' ) |
| // InternalDatamartDSL.g:5313:7: () 'instanceof' |
| { |
| // InternalDatamartDSL.g:5313:7: () |
| // InternalDatamartDSL.g:5314:7: |
| { |
| } |
| |
| match(input,106,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalDatamartDSL |
| |
| // $ANTLR start synpred12_InternalDatamartDSL |
| public final void synpred12_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5355:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalDatamartDSL.g:5355:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalDatamartDSL.g:5355:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalDatamartDSL.g:5356:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalDatamartDSL.g:5356:7: () |
| // InternalDatamartDSL.g:5357:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5358:7: ( ( ruleOpCompare ) ) |
| // InternalDatamartDSL.g:5359:8: ( ruleOpCompare ) |
| { |
| // InternalDatamartDSL.g:5359:8: ( ruleOpCompare ) |
| // InternalDatamartDSL.g:5360:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalDatamartDSL |
| |
| // $ANTLR start synpred13_InternalDatamartDSL |
| public final void synpred13_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5490:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalDatamartDSL.g:5490:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalDatamartDSL.g:5490:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalDatamartDSL.g:5491:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalDatamartDSL.g:5491:6: () |
| // InternalDatamartDSL.g:5492:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5493:6: ( ( ruleOpOther ) ) |
| // InternalDatamartDSL.g:5494:7: ( ruleOpOther ) |
| { |
| // InternalDatamartDSL.g:5494:7: ( ruleOpOther ) |
| // InternalDatamartDSL.g:5495:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalDatamartDSL |
| |
| // $ANTLR start synpred14_InternalDatamartDSL |
| public final void synpred14_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5610:6: ( ( '>' '>' ) ) |
| // InternalDatamartDSL.g:5610:7: ( '>' '>' ) |
| { |
| // InternalDatamartDSL.g:5610:7: ( '>' '>' ) |
| // InternalDatamartDSL.g:5611:7: '>' '>' |
| { |
| match(input,98,FOLLOW_97); if (state.failed) return ; |
| match(input,98,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalDatamartDSL |
| |
| // $ANTLR start synpred15_InternalDatamartDSL |
| public final void synpred15_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5645:6: ( ( '<' '<' ) ) |
| // InternalDatamartDSL.g:5645:7: ( '<' '<' ) |
| { |
| // InternalDatamartDSL.g:5645:7: ( '<' '<' ) |
| // InternalDatamartDSL.g:5646:7: '<' '<' |
| { |
| match(input,97,FOLLOW_87); if (state.failed) return ; |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalDatamartDSL |
| |
| // $ANTLR start synpred16_InternalDatamartDSL |
| public final void synpred16_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5718:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalDatamartDSL.g:5718:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalDatamartDSL.g:5718:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalDatamartDSL.g:5719:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalDatamartDSL.g:5719:6: () |
| // InternalDatamartDSL.g:5720:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5721:6: ( ( ruleOpAdd ) ) |
| // InternalDatamartDSL.g:5722:7: ( ruleOpAdd ) |
| { |
| // InternalDatamartDSL.g:5722:7: ( ruleOpAdd ) |
| // InternalDatamartDSL.g:5723:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalDatamartDSL |
| |
| // $ANTLR start synpred17_InternalDatamartDSL |
| public final void synpred17_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:5833:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalDatamartDSL.g:5833:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalDatamartDSL.g:5833:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalDatamartDSL.g:5834:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalDatamartDSL.g:5834:6: () |
| // InternalDatamartDSL.g:5835:6: |
| { |
| } |
| |
| // InternalDatamartDSL.g:5836:6: ( ( ruleOpMulti ) ) |
| // InternalDatamartDSL.g:5837:7: ( ruleOpMulti ) |
| { |
| // InternalDatamartDSL.g:5837:7: ( ruleOpMulti ) |
| // InternalDatamartDSL.g:5838:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalDatamartDSL |
| |
| // $ANTLR start synpred18_InternalDatamartDSL |
| public final void synpred18_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6068:5: ( ( () 'as' ) ) |
| // InternalDatamartDSL.g:6068:6: ( () 'as' ) |
| { |
| // InternalDatamartDSL.g:6068:6: ( () 'as' ) |
| // InternalDatamartDSL.g:6069:6: () 'as' |
| { |
| // InternalDatamartDSL.g:6069:6: () |
| // InternalDatamartDSL.g:6070:6: |
| { |
| } |
| |
| match(input,116,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalDatamartDSL |
| |
| // $ANTLR start synpred19_InternalDatamartDSL |
| public final void synpred19_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6136:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalDatamartDSL.g:6136:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalDatamartDSL.g:6136:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalDatamartDSL.g:6137:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalDatamartDSL.g:6137:5: () |
| // InternalDatamartDSL.g:6138:5: |
| { |
| } |
| |
| // InternalDatamartDSL.g:6139:5: ( ( ruleOpPostfix ) ) |
| // InternalDatamartDSL.g:6140:6: ( ruleOpPostfix ) |
| { |
| // InternalDatamartDSL.g:6140:6: ( ruleOpPostfix ) |
| // InternalDatamartDSL.g:6141:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalDatamartDSL |
| |
| // $ANTLR start synpred20_InternalDatamartDSL |
| public final void synpred20_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6232:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalDatamartDSL.g:6232:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalDatamartDSL.g:6232:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalDatamartDSL.g:6233:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalDatamartDSL.g:6233:7: () |
| // InternalDatamartDSL.g:6234:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:6235:7: ( '.' | ( ( '::' ) ) ) |
| int alt201=2; |
| int LA201_0 = input.LA(1); |
| |
| if ( (LA201_0==119) ) { |
| alt201=1; |
| } |
| else if ( (LA201_0==120) ) { |
| alt201=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 201, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt201) { |
| case 1 : |
| // InternalDatamartDSL.g:6236:8: '.' |
| { |
| match(input,119,FOLLOW_103); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6238:8: ( ( '::' ) ) |
| { |
| // InternalDatamartDSL.g:6238:8: ( ( '::' ) ) |
| // InternalDatamartDSL.g:6239:9: ( '::' ) |
| { |
| // InternalDatamartDSL.g:6239:9: ( '::' ) |
| // InternalDatamartDSL.g:6240:10: '::' |
| { |
| match(input,120,FOLLOW_103); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:6244:7: ( ( ruleFeatureCallID ) ) |
| // InternalDatamartDSL.g:6245:8: ( ruleFeatureCallID ) |
| { |
| // InternalDatamartDSL.g:6245:8: ( ruleFeatureCallID ) |
| // InternalDatamartDSL.g:6246:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_80); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalDatamartDSL |
| |
| // $ANTLR start synpred21_InternalDatamartDSL |
| public final void synpred21_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6329:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalDatamartDSL.g:6329:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalDatamartDSL.g:6329:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalDatamartDSL.g:6330:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalDatamartDSL.g:6330:7: () |
| // InternalDatamartDSL.g:6331:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:6332:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt202=3; |
| switch ( input.LA(1) ) { |
| case 119: |
| { |
| alt202=1; |
| } |
| break; |
| case 121: |
| { |
| alt202=2; |
| } |
| break; |
| case 120: |
| { |
| alt202=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 202, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt202) { |
| case 1 : |
| // InternalDatamartDSL.g:6333:8: '.' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalDatamartDSL.g:6335:8: ( ( '?.' ) ) |
| { |
| // InternalDatamartDSL.g:6335:8: ( ( '?.' ) ) |
| // InternalDatamartDSL.g:6336:9: ( '?.' ) |
| { |
| // InternalDatamartDSL.g:6336:9: ( '?.' ) |
| // InternalDatamartDSL.g:6337:10: '?.' |
| { |
| match(input,121,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalDatamartDSL.g:6341:8: ( ( '::' ) ) |
| { |
| // InternalDatamartDSL.g:6341:8: ( ( '::' ) ) |
| // InternalDatamartDSL.g:6342:9: ( '::' ) |
| { |
| // InternalDatamartDSL.g:6342:9: ( '::' ) |
| // InternalDatamartDSL.g:6343:10: '::' |
| { |
| match(input,120,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalDatamartDSL |
| |
| // $ANTLR start synpred22_InternalDatamartDSL |
| public final void synpred22_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6467:7: ( ( '(' ) ) |
| // InternalDatamartDSL.g:6467:8: ( '(' ) |
| { |
| // InternalDatamartDSL.g:6467:8: ( '(' ) |
| // InternalDatamartDSL.g:6468:8: '(' |
| { |
| match(input,51,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalDatamartDSL |
| |
| // $ANTLR start synpred23_InternalDatamartDSL |
| public final void synpred23_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6486:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDatamartDSL.g:6486:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:6486:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDatamartDSL.g:6487:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDatamartDSL.g:6487:9: () |
| // InternalDatamartDSL.g:6488:9: |
| { |
| } |
| |
| // InternalDatamartDSL.g:6489:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt204=2; |
| int LA204_0 = input.LA(1); |
| |
| if ( (LA204_0==RULE_ID||LA204_0==51||LA204_0==110) ) { |
| alt204=1; |
| } |
| switch (alt204) { |
| case 1 : |
| // InternalDatamartDSL.g:6490:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:6490:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:6491:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:6491:11: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:6492:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:6495:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop203: |
| do { |
| int alt203=2; |
| int LA203_0 = input.LA(1); |
| |
| if ( (LA203_0==87) ) { |
| alt203=1; |
| } |
| |
| |
| switch (alt203) { |
| case 1 : |
| // InternalDatamartDSL.g:6496:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,87,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:6497:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:6498:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:6498:12: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:6499:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop203; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:6504:9: ( ( '|' ) ) |
| // InternalDatamartDSL.g:6505:10: ( '|' ) |
| { |
| // InternalDatamartDSL.g:6505:10: ( '|' ) |
| // InternalDatamartDSL.g:6506:11: '|' |
| { |
| match(input,122,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalDatamartDSL |
| |
| // $ANTLR start synpred24_InternalDatamartDSL |
| public final void synpred24_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6583:6: ( ( () '[' ) ) |
| // InternalDatamartDSL.g:6583:7: ( () '[' ) |
| { |
| // InternalDatamartDSL.g:6583:7: ( () '[' ) |
| // InternalDatamartDSL.g:6584:7: () '[' |
| { |
| // InternalDatamartDSL.g:6584:7: () |
| // InternalDatamartDSL.g:6585:7: |
| { |
| } |
| |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalDatamartDSL |
| |
| // $ANTLR start synpred25_InternalDatamartDSL |
| public final void synpred25_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6656:4: ( ( () 'synchronized' '(' ) ) |
| // InternalDatamartDSL.g:6656:5: ( () 'synchronized' '(' ) |
| { |
| // InternalDatamartDSL.g:6656:5: ( () 'synchronized' '(' ) |
| // InternalDatamartDSL.g:6657:5: () 'synchronized' '(' |
| { |
| // InternalDatamartDSL.g:6657:5: () |
| // InternalDatamartDSL.g:6658:5: |
| { |
| } |
| |
| match(input,144,FOLLOW_58); if (state.failed) return ; |
| match(input,51,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalDatamartDSL |
| |
| // $ANTLR start synpred26_InternalDatamartDSL |
| public final void synpred26_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6701:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDatamartDSL.g:6701:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDatamartDSL.g:6701:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDatamartDSL.g:6702:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDatamartDSL.g:6702:5: () |
| // InternalDatamartDSL.g:6703:5: |
| { |
| } |
| |
| match(input,128,FOLLOW_58); if (state.failed) return ; |
| match(input,51,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:6706:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:6707:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:6707:6: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:6708:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_120); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,126,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalDatamartDSL |
| |
| // $ANTLR start synpred27_InternalDatamartDSL |
| public final void synpred27_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:6815:4: ( ( () '[' ) ) |
| // InternalDatamartDSL.g:6815:5: ( () '[' ) |
| { |
| // InternalDatamartDSL.g:6815:5: ( () '[' ) |
| // InternalDatamartDSL.g:6816:5: () '[' |
| { |
| // InternalDatamartDSL.g:6816:5: () |
| // InternalDatamartDSL.g:6817:5: |
| { |
| } |
| |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalDatamartDSL |
| |
| // $ANTLR start synpred29_InternalDatamartDSL |
| public final void synpred29_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:7120:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDatamartDSL.g:7120:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:7120:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDatamartDSL.g:7121:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDatamartDSL.g:7121:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt206=2; |
| int LA206_0 = input.LA(1); |
| |
| if ( (LA206_0==RULE_ID||LA206_0==51||LA206_0==110) ) { |
| alt206=1; |
| } |
| switch (alt206) { |
| case 1 : |
| // InternalDatamartDSL.g:7122:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:7122:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7123:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7123:7: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7124:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:7127:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop205: |
| do { |
| int alt205=2; |
| int LA205_0 = input.LA(1); |
| |
| if ( (LA205_0==87) ) { |
| alt205=1; |
| } |
| |
| |
| switch (alt205) { |
| case 1 : |
| // InternalDatamartDSL.g:7128:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,87,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:7129:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7130:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7130:8: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7131:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop205; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:7136:5: ( ( '|' ) ) |
| // InternalDatamartDSL.g:7137:6: ( '|' ) |
| { |
| // InternalDatamartDSL.g:7137:6: ( '|' ) |
| // InternalDatamartDSL.g:7138:7: '|' |
| { |
| match(input,122,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalDatamartDSL |
| |
| // $ANTLR start synpred31_InternalDatamartDSL |
| public final void synpred31_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:7529:5: ( 'else' ) |
| // InternalDatamartDSL.g:7529:6: 'else' |
| { |
| match(input,124,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalDatamartDSL |
| |
| // $ANTLR start synpred32_InternalDatamartDSL |
| public final void synpred32_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:7588:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDatamartDSL.g:7588:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDatamartDSL.g:7588:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDatamartDSL.g:7589:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,51,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:7590:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7591:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7591:8: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7592:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_120); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,126,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalDatamartDSL |
| |
| // $ANTLR start synpred33_InternalDatamartDSL |
| public final void synpred33_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:7655:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalDatamartDSL.g:7655:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalDatamartDSL.g:7655:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalDatamartDSL.g:7656:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalDatamartDSL.g:7656:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:7657:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:7657:8: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:7658:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_120); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,126,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalDatamartDSL |
| |
| // $ANTLR start synpred35_InternalDatamartDSL |
| public final void synpred35_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:8473:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalDatamartDSL.g:8473:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalDatamartDSL.g:8473:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalDatamartDSL.g:8474:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalDatamartDSL.g:8474:6: ( ( ruleJvmTypeReference ) ) |
| // InternalDatamartDSL.g:8475:7: ( ruleJvmTypeReference ) |
| { |
| // InternalDatamartDSL.g:8475:7: ( ruleJvmTypeReference ) |
| // InternalDatamartDSL.g:8476:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8479:6: ( ( ruleValidID ) ) |
| // InternalDatamartDSL.g:8480:7: ( ruleValidID ) |
| { |
| // InternalDatamartDSL.g:8480:7: ( ruleValidID ) |
| // InternalDatamartDSL.g:8481:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalDatamartDSL |
| |
| // $ANTLR start synpred36_InternalDatamartDSL |
| public final void synpred36_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:8785:5: ( ( '(' ) ) |
| // InternalDatamartDSL.g:8785:6: ( '(' ) |
| { |
| // InternalDatamartDSL.g:8785:6: ( '(' ) |
| // InternalDatamartDSL.g:8786:6: '(' |
| { |
| match(input,51,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalDatamartDSL |
| |
| // $ANTLR start synpred37_InternalDatamartDSL |
| public final void synpred37_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:8804:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDatamartDSL.g:8804:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:8804:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDatamartDSL.g:8805:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDatamartDSL.g:8805:7: () |
| // InternalDatamartDSL.g:8806:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:8807:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt210=2; |
| int LA210_0 = input.LA(1); |
| |
| if ( (LA210_0==RULE_ID||LA210_0==51||LA210_0==110) ) { |
| alt210=1; |
| } |
| switch (alt210) { |
| case 1 : |
| // InternalDatamartDSL.g:8808:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:8808:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:8809:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:8809:9: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:8810:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:8813:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop209: |
| do { |
| int alt209=2; |
| int LA209_0 = input.LA(1); |
| |
| if ( (LA209_0==87) ) { |
| alt209=1; |
| } |
| |
| |
| switch (alt209) { |
| case 1 : |
| // InternalDatamartDSL.g:8814:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,87,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:8815:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:8816:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:8816:10: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:8817:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop209; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:8822:7: ( ( '|' ) ) |
| // InternalDatamartDSL.g:8823:8: ( '|' ) |
| { |
| // InternalDatamartDSL.g:8823:8: ( '|' ) |
| // InternalDatamartDSL.g:8824:9: '|' |
| { |
| match(input,122,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalDatamartDSL |
| |
| // $ANTLR start synpred38_InternalDatamartDSL |
| public final void synpred38_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:8901:4: ( ( () '[' ) ) |
| // InternalDatamartDSL.g:8901:5: ( () '[' ) |
| { |
| // InternalDatamartDSL.g:8901:5: ( () '[' ) |
| // InternalDatamartDSL.g:8902:5: () '[' |
| { |
| // InternalDatamartDSL.g:8902:5: () |
| // InternalDatamartDSL.g:8903:5: |
| { |
| } |
| |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalDatamartDSL |
| |
| // $ANTLR start synpred39_InternalDatamartDSL |
| public final void synpred39_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9061:5: ( '<' ) |
| // InternalDatamartDSL.g:9061:6: '<' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalDatamartDSL |
| |
| // $ANTLR start synpred40_InternalDatamartDSL |
| public final void synpred40_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9118:5: ( ( '(' ) ) |
| // InternalDatamartDSL.g:9118:6: ( '(' ) |
| { |
| // InternalDatamartDSL.g:9118:6: ( '(' ) |
| // InternalDatamartDSL.g:9119:6: '(' |
| { |
| match(input,51,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalDatamartDSL |
| |
| // $ANTLR start synpred41_InternalDatamartDSL |
| public final void synpred41_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9137:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalDatamartDSL.g:9137:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalDatamartDSL.g:9137:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalDatamartDSL.g:9138:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalDatamartDSL.g:9138:7: () |
| // InternalDatamartDSL.g:9139:7: |
| { |
| } |
| |
| // InternalDatamartDSL.g:9140:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt212=2; |
| int LA212_0 = input.LA(1); |
| |
| if ( (LA212_0==RULE_ID||LA212_0==51||LA212_0==110) ) { |
| alt212=1; |
| } |
| switch (alt212) { |
| case 1 : |
| // InternalDatamartDSL.g:9141:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalDatamartDSL.g:9141:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:9142:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:9142:9: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:9143:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalDatamartDSL.g:9146:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop211: |
| do { |
| int alt211=2; |
| int LA211_0 = input.LA(1); |
| |
| if ( (LA211_0==87) ) { |
| alt211=1; |
| } |
| |
| |
| switch (alt211) { |
| case 1 : |
| // InternalDatamartDSL.g:9147:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,87,FOLLOW_94); if (state.failed) return ; |
| // InternalDatamartDSL.g:9148:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalDatamartDSL.g:9149:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalDatamartDSL.g:9149:10: ( ruleJvmFormalParameter ) |
| // InternalDatamartDSL.g:9150:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop211; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalDatamartDSL.g:9155:7: ( ( '|' ) ) |
| // InternalDatamartDSL.g:9156:8: ( '|' ) |
| { |
| // InternalDatamartDSL.g:9156:8: ( '|' ) |
| // InternalDatamartDSL.g:9157:9: '|' |
| { |
| match(input,122,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalDatamartDSL |
| |
| // $ANTLR start synpred42_InternalDatamartDSL |
| public final void synpred42_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9234:4: ( ( () '[' ) ) |
| // InternalDatamartDSL.g:9234:5: ( () '[' ) |
| { |
| // InternalDatamartDSL.g:9234:5: ( () '[' ) |
| // InternalDatamartDSL.g:9235:5: () '[' |
| { |
| // InternalDatamartDSL.g:9235:5: () |
| // InternalDatamartDSL.g:9236:5: |
| { |
| } |
| |
| match(input,90,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalDatamartDSL |
| |
| // $ANTLR start synpred43_InternalDatamartDSL |
| public final void synpred43_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9577: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 ) |
| // InternalDatamartDSL.g: |
| { |
| if ( (input.LA(1)>=RULE_ID && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||input.LA(1)==51||(input.LA(1)>=60 && input.LA(1)<=61)||(input.LA(1)>=81 && input.LA(1)<=83)||(input.LA(1)>=89 && input.LA(1)<=90)||input.LA(1)==97||input.LA(1)==115||input.LA(1)==123||input.LA(1)==125||(input.LA(1)>=128 && input.LA(1)<=130)||(input.LA(1)>=133 && input.LA(1)<=142)||input.LA(1)==144 ) { |
| 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_InternalDatamartDSL |
| |
| // $ANTLR start synpred44_InternalDatamartDSL |
| public final void synpred44_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9648:6: ( 'catch' ) |
| // InternalDatamartDSL.g:9648:7: 'catch' |
| { |
| match(input,145,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalDatamartDSL |
| |
| // $ANTLR start synpred45_InternalDatamartDSL |
| public final void synpred45_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9669:7: ( 'finally' ) |
| // InternalDatamartDSL.g:9669:8: 'finally' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalDatamartDSL |
| |
| // $ANTLR start synpred48_InternalDatamartDSL |
| public final void synpred48_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:9913:5: ( '.' ) |
| // InternalDatamartDSL.g:9913:6: '.' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalDatamartDSL |
| |
| // $ANTLR start synpred49_InternalDatamartDSL |
| public final void synpred49_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:10039:5: ( ( () ruleArrayBrackets ) ) |
| // InternalDatamartDSL.g:10039:6: ( () ruleArrayBrackets ) |
| { |
| // InternalDatamartDSL.g:10039:6: ( () ruleArrayBrackets ) |
| // InternalDatamartDSL.g:10040:6: () ruleArrayBrackets |
| { |
| // InternalDatamartDSL.g:10040:6: () |
| // InternalDatamartDSL.g:10041:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalDatamartDSL |
| |
| // $ANTLR start synpred50_InternalDatamartDSL |
| public final void synpred50_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:10236:5: ( '<' ) |
| // InternalDatamartDSL.g:10236:6: '<' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalDatamartDSL |
| |
| // $ANTLR start synpred51_InternalDatamartDSL |
| public final void synpred51_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:10292:6: ( ( () '.' ) ) |
| // InternalDatamartDSL.g:10292:7: ( () '.' ) |
| { |
| // InternalDatamartDSL.g:10292:7: ( () '.' ) |
| // InternalDatamartDSL.g:10293:7: () '.' |
| { |
| // InternalDatamartDSL.g:10293:7: () |
| // InternalDatamartDSL.g:10294:7: |
| { |
| } |
| |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalDatamartDSL |
| |
| // $ANTLR start synpred52_InternalDatamartDSL |
| public final void synpred52_InternalDatamartDSL_fragment() throws RecognitionException { |
| // InternalDatamartDSL.g:10330:7: ( '<' ) |
| // InternalDatamartDSL.g:10330:8: '<' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalDatamartDSL |
| |
| // Delegated rules |
| |
| public final boolean synpred24_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalDatamartDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred31_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalDatamartDSL_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_InternalDatamartDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalDatamartDSL_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 DFA66 dfa66 = new DFA66(this); |
| protected DFA69 dfa69 = new DFA69(this); |
| protected DFA75 dfa75 = new DFA75(this); |
| protected DFA78 dfa78 = new DFA78(this); |
| protected DFA80 dfa80 = new DFA80(this); |
| protected DFA90 dfa90 = new DFA90(this); |
| protected DFA93 dfa93 = new DFA93(this); |
| protected DFA109 dfa109 = new DFA109(this); |
| protected DFA108 dfa108 = new DFA108(this); |
| protected DFA110 dfa110 = new DFA110(this); |
| protected DFA112 dfa112 = new DFA112(this); |
| protected DFA121 dfa121 = new DFA121(this); |
| protected DFA128 dfa128 = new DFA128(this); |
| protected DFA127 dfa127 = new DFA127(this); |
| protected DFA150 dfa150 = new DFA150(this); |
| protected DFA149 dfa149 = new DFA149(this); |
| protected DFA151 dfa151 = new DFA151(this); |
| protected DFA155 dfa155 = new DFA155(this); |
| protected DFA158 dfa158 = new DFA158(this); |
| protected DFA157 dfa157 = new DFA157(this); |
| protected DFA159 dfa159 = new DFA159(this); |
| protected DFA162 dfa162 = new DFA162(this); |
| protected DFA180 dfa180 = new DFA180(this); |
| protected DFA178 dfa178 = new DFA178(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\4\uffff\1\5"; |
| static final String dfa_3s = "\1\4\1\uffff\1\15\1\uffff\1\4\2\uffff\1\15"; |
| static final String dfa_4s = "\1\124\1\uffff\1\167\1\uffff\1\76\2\uffff\1\167"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\3\1\uffff"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\115\uffff\1\1\1\uffff\1\3", |
| "", |
| "\1\5\103\uffff\1\5\3\uffff\1\5\41\uffff\1\4", |
| "", |
| "\1\7\71\uffff\1\6", |
| "", |
| "", |
| "\1\5\103\uffff\1\5\3\uffff\1\5\41\uffff\1\4" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); |
| static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); |
| |
| class DFA66 extends DFA { |
| |
| public DFA66(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 66; |
| 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 "4006: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\u0090\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\1\1\4\2\5\uffff\1\2\44\uffff\1\2\1\42\7\uffff\2\2\23\uffff\3\2\2\uffff\1\2\2\uffff\2\2\6\uffff\1\2\21\uffff\1\2\7\uffff\1\2\1\uffff\1\2\2\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); |
| static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); |
| static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); |
| static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); |
| static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); |
| static final short[][] dfa_13 = unpackEncodedStringArray(dfa_13s); |
| |
| class DFA69 extends DFA { |
| |
| public DFA69(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 69; |
| 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 "4223: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 LA69_1 = input.LA(1); |
| |
| |
| int index69_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalDatamartDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index69_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 69, _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\u0090\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\44\uffff\1\2\10\uffff\2\2\23\uffff\3\2\2\uffff\1\2\2\uffff\1\1\1\2\6\uffff\1\2\21\uffff\1\2\7\uffff\1\2\1\uffff\1\2\2\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_14 = DFA.unpackEncodedString(dfa_14s); |
| static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); |
| static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); |
| static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); |
| static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); |
| static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); |
| |
| class DFA75 extends DFA { |
| |
| public DFA75(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 75; |
| 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 "4403: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 LA75_1 = input.LA(1); |
| |
| |
| int index75_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalDatamartDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index75_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 75, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA78 extends DFA { |
| |
| public DFA78(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 78; |
| 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 "4545: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 LA78_1 = input.LA(1); |
| |
| |
| int index78_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalDatamartDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index78_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 78, _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\u0091\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\1\0\1\6\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\43\uffff\2\10\7\uffff\4\10\6\uffff\1\10\12\uffff\3\10\1\uffff\1\10\1\uffff\1\10\1\uffff\3\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\27\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 DFA80 extends DFA { |
| |
| public DFA80(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 80; |
| 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 "4774: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 LA80_6 = input.LA(1); |
| |
| |
| int index80_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_6); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA80_1 = input.LA(1); |
| |
| |
| int index80_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA80_2 = input.LA(1); |
| |
| |
| int index80_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_2); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA80_3 = input.LA(1); |
| |
| |
| int index80_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_3); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA80_4 = input.LA(1); |
| |
| |
| int index80_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_4); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA80_5 = input.LA(1); |
| |
| |
| int index80_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_5); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA80_7 = input.LA(1); |
| |
| |
| int index80_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalDatamartDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index80_7); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 80, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| 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\u0091\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\2\1\0\1\3\1\4\1\1\1\5\1\6\1\7\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\43\uffff\2\1\7\uffff\4\1\6\uffff\1\1\12\uffff\3\1\1\uffff\1\1\1\uffff\1\1\1\uffff\10\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\11\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 DFA90 extends DFA { |
| |
| public DFA90(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 90; |
| 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 5488: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 LA90_3 = input.LA(1); |
| |
| |
| int index90_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_3); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA90_6 = input.LA(1); |
| |
| |
| int index90_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_6); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA90_2 = input.LA(1); |
| |
| |
| int index90_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_2); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA90_4 = input.LA(1); |
| |
| |
| int index90_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA90_5 = input.LA(1); |
| |
| |
| int index90_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA90_7 = input.LA(1); |
| |
| |
| int index90_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_7); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA90_8 = input.LA(1); |
| |
| |
| int index90_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_8); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA90_9 = input.LA(1); |
| |
| |
| int index90_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalDatamartDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index90_9); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 90, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\141\2\uffff\1\142\7\uffff"; |
| static final String dfa_35s = "\1\160\2\uffff\1\155\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 DFA93 extends DFA { |
| |
| public DFA93(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 93; |
| 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 "5564: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\u0091\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\43\uffff\1\1\1\2\7\uffff\4\2\6\uffff\1\2\12\uffff\3\2\1\uffff\1\2\1\uffff\1\2\1\uffff\41\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 DFA109 extends DFA { |
| |
| public DFA109(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 109; |
| 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 "6465: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 LA109_1 = input.LA(1); |
| |
| |
| int index109_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index109_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 109, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u0090\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\1\1\4\5\5\uffff\1\5\44\uffff\1\2\1\43\7\uffff\2\5\23\uffff\3\5\5\uffff\2\5\6\uffff\1\5\14\uffff\1\3\4\uffff\1\5\6\uffff\1\4\1\5\1\uffff\1\5\2\uffff\3\5\2\uffff\12\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s); |
| static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); |
| static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s); |
| static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); |
| static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s); |
| |
| class DFA108 extends DFA { |
| |
| public DFA108(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 108; |
| 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 "6484: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 LA108_0 = input.LA(1); |
| |
| |
| int index108_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA108_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA108_0==51) ) {s = 2;} |
| |
| else if ( (LA108_0==110) && (synpred23_InternalDatamartDSL())) {s = 3;} |
| |
| else if ( (LA108_0==122) && (synpred23_InternalDatamartDSL())) {s = 4;} |
| |
| else if ( ((LA108_0>=RULE_INT && LA108_0<=RULE_DECIMAL)||LA108_0==14||(LA108_0>=60 && LA108_0<=61)||(LA108_0>=81 && LA108_0<=83)||(LA108_0>=89 && LA108_0<=90)||LA108_0==97||LA108_0==115||LA108_0==123||LA108_0==125||(LA108_0>=128 && LA108_0<=130)||(LA108_0>=133 && LA108_0<=142)||LA108_0==144) ) {s = 5;} |
| |
| else if ( (LA108_0==52) ) {s = 35;} |
| |
| |
| input.seek(index108_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA108_1 = input.LA(1); |
| |
| |
| int index108_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index108_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA108_2 = input.LA(1); |
| |
| |
| int index108_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index108_2); |
| 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_51s = { |
| "\5\2\5\uffff\2\2\43\uffff\2\2\7\uffff\4\2\6\uffff\1\2\12\uffff\3\2\1\uffff\1\2\1\uffff\1\2\1\uffff\1\2\1\1\37\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA110 extends DFA { |
| |
| public DFA110(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 110; |
| 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 "6582: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 LA110_1 = input.LA(1); |
| |
| |
| int index110_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index110_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 110, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| 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\u0090\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\1\5\4\14\5\uffff\1\2\44\uffff\1\35\35\uffff\3\5\5\uffff\2\14\6\uffff\1\5\31\uffff\1\26\1\uffff\1\3\2\uffff\1\27\1\30\1\31\2\uffff\2\5\1\1\4\14\1\32\1\33\1\34\1\uffff\1\4", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); |
| static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); |
| static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); |
| static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); |
| static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); |
| static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); |
| |
| class DFA112 extends DFA { |
| |
| public DFA112(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 112; |
| 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 "6627: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 LA112_0 = input.LA(1); |
| |
| |
| int index112_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA112_0==135) ) {s = 1;} |
| |
| else if ( (LA112_0==14) ) {s = 2;} |
| |
| else if ( (LA112_0==125) ) {s = 3;} |
| |
| else if ( (LA112_0==144) && (synpred25_InternalDatamartDSL())) {s = 4;} |
| |
| else if ( (LA112_0==RULE_ID||(LA112_0>=81 && LA112_0<=83)||LA112_0==97||(LA112_0>=133 && LA112_0<=134)) ) {s = 5;} |
| |
| else if ( ((LA112_0>=RULE_INT && LA112_0<=RULE_DECIMAL)||(LA112_0>=89 && LA112_0<=90)||(LA112_0>=136 && LA112_0<=139)) ) {s = 12;} |
| |
| else if ( (LA112_0==123) ) {s = 22;} |
| |
| else if ( (LA112_0==128) ) {s = 23;} |
| |
| else if ( (LA112_0==129) ) {s = 24;} |
| |
| else if ( (LA112_0==130) ) {s = 25;} |
| |
| else if ( (LA112_0==140) ) {s = 26;} |
| |
| else if ( (LA112_0==141) ) {s = 27;} |
| |
| else if ( (LA112_0==142) ) {s = 28;} |
| |
| else if ( (LA112_0==51) ) {s = 29;} |
| |
| |
| input.seek(index112_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA112_23 = input.LA(1); |
| |
| |
| int index112_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalDatamartDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index112_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 112, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_58s = "\46\uffff"; |
| static final String dfa_59s = "\1\4\2\0\43\uffff"; |
| static final String dfa_60s = "\1\u0090\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\1\1\4\5\5\uffff\1\5\44\uffff\1\2\10\uffff\2\5\23\uffff\3\5\5\uffff\3\5\5\uffff\1\5\14\uffff\1\3\4\uffff\1\5\6\uffff\1\4\1\5\1\uffff\1\5\2\uffff\17\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_58 = DFA.unpackEncodedString(dfa_58s); |
| static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); |
| static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); |
| static final short[] dfa_61 = DFA.unpackEncodedString(dfa_61s); |
| static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); |
| static final short[][] dfa_63 = unpackEncodedStringArray(dfa_63s); |
| |
| class DFA121 extends DFA { |
| |
| public DFA121(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 121; |
| 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 "7119: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 LA121_0 = input.LA(1); |
| |
| |
| int index121_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA121_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA121_0==51) ) {s = 2;} |
| |
| else if ( (LA121_0==110) && (synpred29_InternalDatamartDSL())) {s = 3;} |
| |
| else if ( (LA121_0==122) && (synpred29_InternalDatamartDSL())) {s = 4;} |
| |
| else if ( ((LA121_0>=RULE_INT && LA121_0<=RULE_DECIMAL)||LA121_0==14||(LA121_0>=60 && LA121_0<=61)||(LA121_0>=81 && LA121_0<=83)||(LA121_0>=89 && LA121_0<=91)||LA121_0==97||LA121_0==115||LA121_0==123||LA121_0==125||(LA121_0>=128 && LA121_0<=142)||LA121_0==144) ) {s = 5;} |
| |
| |
| input.seek(index121_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA121_1 = input.LA(1); |
| |
| |
| int index121_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index121_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA121_2 = input.LA(1); |
| |
| |
| int index121_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index121_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 121, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\44\uffff\1\1\10\uffff\2\2\23\uffff\3\2\5\uffff\2\2\6\uffff\1\2\14\uffff\1\2\4\uffff\1\2\7\uffff\1\2\1\uffff\1\2\2\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); |
| |
| class DFA128 extends DFA { |
| |
| public DFA128(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 128; |
| 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 "7585: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 LA128_1 = input.LA(1); |
| |
| |
| int index128_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalDatamartDSL()) ) {s = 34;} |
| |
| 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_65s = "\42\uffff"; |
| static final String dfa_66s = "\1\4\2\0\37\uffff"; |
| static final String dfa_67s = "\1\u0090\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\1\1\4\4\5\uffff\1\4\44\uffff\1\2\10\uffff\2\4\23\uffff\3\4\5\uffff\2\4\6\uffff\1\4\14\uffff\1\3\4\uffff\1\4\7\uffff\1\4\1\uffff\1\4\2\uffff\3\4\2\uffff\12\4\1\uffff\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); |
| static final char[] dfa_66 = DFA.unpackEncodedStringToUnsignedChars(dfa_66s); |
| static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); |
| static final short[] dfa_68 = DFA.unpackEncodedString(dfa_68s); |
| static final short[] dfa_69 = DFA.unpackEncodedString(dfa_69s); |
| static final short[][] dfa_70 = unpackEncodedStringArray(dfa_70s); |
| |
| class DFA127 extends DFA { |
| |
| public DFA127(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 127; |
| 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 "7654: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 LA127_0 = input.LA(1); |
| |
| |
| int index127_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA127_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA127_0==51) ) {s = 2;} |
| |
| else if ( (LA127_0==110) && (synpred33_InternalDatamartDSL())) {s = 3;} |
| |
| else if ( ((LA127_0>=RULE_INT && LA127_0<=RULE_DECIMAL)||LA127_0==14||(LA127_0>=60 && LA127_0<=61)||(LA127_0>=81 && LA127_0<=83)||(LA127_0>=89 && LA127_0<=90)||LA127_0==97||LA127_0==115||LA127_0==123||LA127_0==125||(LA127_0>=128 && LA127_0<=130)||(LA127_0>=133 && LA127_0<=142)||LA127_0==144) ) {s = 4;} |
| |
| |
| input.seek(index127_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA127_1 = input.LA(1); |
| |
| |
| int index127_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDatamartDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index127_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA127_2 = input.LA(1); |
| |
| |
| int index127_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalDatamartDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index127_2); |
| 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; |
| } |
| } |
| |
| class DFA150 extends DFA { |
| |
| public DFA150(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 150; |
| 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 "8783: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 LA150_1 = input.LA(1); |
| |
| |
| int index150_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index150_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 150, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA149 extends DFA { |
| |
| public DFA149(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 149; |
| 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 "8802: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 LA149_0 = input.LA(1); |
| |
| |
| int index149_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA149_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA149_0==51) ) {s = 2;} |
| |
| else if ( (LA149_0==110) && (synpred37_InternalDatamartDSL())) {s = 3;} |
| |
| else if ( (LA149_0==122) && (synpred37_InternalDatamartDSL())) {s = 4;} |
| |
| else if ( ((LA149_0>=RULE_INT && LA149_0<=RULE_DECIMAL)||LA149_0==14||(LA149_0>=60 && LA149_0<=61)||(LA149_0>=81 && LA149_0<=83)||(LA149_0>=89 && LA149_0<=90)||LA149_0==97||LA149_0==115||LA149_0==123||LA149_0==125||(LA149_0>=128 && LA149_0<=130)||(LA149_0>=133 && LA149_0<=142)||LA149_0==144) ) {s = 5;} |
| |
| else if ( (LA149_0==52) ) {s = 35;} |
| |
| |
| input.seek(index149_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA149_1 = input.LA(1); |
| |
| |
| int index149_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index149_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA149_2 = input.LA(1); |
| |
| |
| int index149_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index149_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 149, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA151 extends DFA { |
| |
| public DFA151(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 151; |
| 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 "8900: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 LA151_1 = input.LA(1); |
| |
| |
| int index151_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index151_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 151, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\43\uffff\2\2\7\uffff\4\2\6\uffff\1\2\12\uffff\3\2\1\uffff\1\2\1\uffff\1\2\1\uffff\10\2\1\1\30\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA155 extends DFA { |
| |
| public DFA155(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 155; |
| 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 "9059: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 LA155_1 = input.LA(1); |
| |
| |
| int index155_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index155_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 155, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA158 extends DFA { |
| |
| public DFA158(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 158; |
| 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 "9116: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 LA158_1 = input.LA(1); |
| |
| |
| int index158_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index158_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 158, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA157 extends DFA { |
| |
| public DFA157(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 157; |
| 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 "9135: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 LA157_0 = input.LA(1); |
| |
| |
| int index157_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA157_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA157_0==51) ) {s = 2;} |
| |
| else if ( (LA157_0==110) && (synpred41_InternalDatamartDSL())) {s = 3;} |
| |
| else if ( (LA157_0==122) && (synpred41_InternalDatamartDSL())) {s = 4;} |
| |
| else if ( ((LA157_0>=RULE_INT && LA157_0<=RULE_DECIMAL)||LA157_0==14||(LA157_0>=60 && LA157_0<=61)||(LA157_0>=81 && LA157_0<=83)||(LA157_0>=89 && LA157_0<=90)||LA157_0==97||LA157_0==115||LA157_0==123||LA157_0==125||(LA157_0>=128 && LA157_0<=130)||(LA157_0>=133 && LA157_0<=142)||LA157_0==144) ) {s = 5;} |
| |
| else if ( (LA157_0==52) ) {s = 35;} |
| |
| |
| input.seek(index157_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA157_1 = input.LA(1); |
| |
| |
| int index157_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index157_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA157_2 = input.LA(1); |
| |
| |
| int index157_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalDatamartDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index157_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 157, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA159 extends DFA { |
| |
| public DFA159(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 159; |
| 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 "9233: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 LA159_1 = input.LA(1); |
| |
| |
| int index159_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index159_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 159, _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\u0091\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\1\1\24\1\27\1\23\1\25\5\uffff\1\12\1\41\43\uffff\1\40\1\41\7\uffff\1\10\1\7\2\41\6\uffff\1\41\12\uffff\1\4\1\3\1\5\1\uffff\1\41\1\uffff\1\41\1\uffff\1\17\1\20\6\41\1\15\21\41\1\6\6\41\1\uffff\1\31\1\41\1\13\2\41\1\32\1\33\1\34\2\41\1\2\1\16\1\11\1\21\1\22\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_72 = DFA.unpackEncodedString(dfa_72s); |
| static final char[] dfa_73 = DFA.unpackEncodedStringToUnsignedChars(dfa_73s); |
| static final char[] dfa_74 = DFA.unpackEncodedStringToUnsignedChars(dfa_74s); |
| static final short[] dfa_75 = DFA.unpackEncodedString(dfa_75s); |
| static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); |
| static final short[][] dfa_77 = unpackEncodedStringArray(dfa_77s); |
| |
| class DFA162 extends DFA { |
| |
| public DFA162(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 162; |
| 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 "9576: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 LA162_1 = input.LA(1); |
| |
| |
| int index162_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA162_2 = input.LA(1); |
| |
| |
| int index162_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA162_3 = input.LA(1); |
| |
| |
| int index162_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA162_4 = input.LA(1); |
| |
| |
| int index162_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA162_5 = input.LA(1); |
| |
| |
| int index162_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA162_6 = input.LA(1); |
| |
| |
| int index162_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA162_7 = input.LA(1); |
| |
| |
| int index162_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA162_8 = input.LA(1); |
| |
| |
| int index162_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA162_9 = input.LA(1); |
| |
| |
| int index162_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA162_10 = input.LA(1); |
| |
| |
| int index162_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA162_11 = input.LA(1); |
| |
| |
| int index162_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA162_12 = input.LA(1); |
| |
| |
| int index162_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA162_13 = input.LA(1); |
| |
| |
| int index162_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA162_14 = input.LA(1); |
| |
| |
| int index162_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA162_15 = input.LA(1); |
| |
| |
| int index162_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA162_16 = input.LA(1); |
| |
| |
| int index162_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA162_17 = input.LA(1); |
| |
| |
| int index162_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA162_18 = input.LA(1); |
| |
| |
| int index162_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA162_19 = input.LA(1); |
| |
| |
| int index162_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA162_20 = input.LA(1); |
| |
| |
| int index162_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA162_21 = input.LA(1); |
| |
| |
| int index162_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA162_22 = input.LA(1); |
| |
| |
| int index162_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA162_23 = input.LA(1); |
| |
| |
| int index162_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA162_24 = input.LA(1); |
| |
| |
| int index162_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA162_25 = input.LA(1); |
| |
| |
| int index162_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA162_26 = input.LA(1); |
| |
| |
| int index162_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA162_27 = input.LA(1); |
| |
| |
| int index162_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA162_28 = input.LA(1); |
| |
| |
| int index162_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA162_29 = input.LA(1); |
| |
| |
| int index162_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA162_30 = input.LA(1); |
| |
| |
| int index162_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA162_31 = input.LA(1); |
| |
| |
| int index162_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA162_32 = input.LA(1); |
| |
| |
| int index162_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalDatamartDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index162_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 162, _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\u0093\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\43\uffff\2\2\7\uffff\4\2\6\uffff\1\2\12\uffff\3\2\1\uffff\1\2\1\uffff\1\2\1\uffff\10\2\1\1\30\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 DFA180 extends DFA { |
| |
| public DFA180(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 180; |
| 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 "10234: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 LA180_1 = input.LA(1); |
| |
| |
| int index180_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalDatamartDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index180_1); |
| 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; |
| } |
| } |
| |
| class DFA178 extends DFA { |
| |
| public DFA178(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 178; |
| 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 "10328: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 LA178_1 = input.LA(1); |
| |
| |
| int index178_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalDatamartDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index178_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 178, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
| public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
| public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000002002L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000018000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x00000000003E0000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000003C0000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000048400000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1F80000000000000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001800002L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000002008000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000001000002L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000800000008000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0xE000000000000000L,0x00000000000007FFL}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000001800L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000010004000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0400008000008000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000080004002L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000F01008000L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000005000008000L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000E01008000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000010000008000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000801008000L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000800008000L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0001000000008000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000020000000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000040000000L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000800000L,0x0000000000000040L,0x0000000000F00000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000048000000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000008000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000780000000002L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000700000000002L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000230000000000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x007FC00000000000L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x03A80300060001E0L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L,0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000080000000002L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0002000000000002L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0004000000000002L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000000000002L,0x0000000E01000000L,0x0000180000000000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0010000000000000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0040000000000002L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0800000000000000L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x00081000000001A2L,0x0000000000000038L,0x000007003F000000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x3000000000000002L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x00081000000001A0L,0x0000000000000038L,0x000007003F000000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0xC000000000000002L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L,0x000000003F000000L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0008000000000000L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L,0x00000003FF000000L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000038L,0x000000FC3F000000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000000008000L,0x0000000000000038L,0x000000FC3F000000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000200000000002L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000002L,0x000000000000AFC0L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000FC0L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000C00L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000800L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000018L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000002L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x00A0000000000002L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000000002L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000004000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000000008000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000010L,0x0000000000140000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000000010L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x4000000000000010L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000002L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0008000000000002L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x30180000000041F0L,0x28080002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0010000000000000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x0000000001000000L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x30080000000041F0L,0x28080002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x30080000000041F0L,0x280800020E4E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000000000L,0x0000000008800000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000002L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000002L,0x00000007F0000000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000000L,0x0000000C00000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000000L,0x0000000800000000L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x0000001000000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000002L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000002L,0x000003C000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000002L,0x0000040E00000000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0008000000000010L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0001F80600000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000000L,0x0000200000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000000L,0x0000000400000000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0000400200000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0xC000000000000002L,0x0006000000000000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000002L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0060000000000000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000002L,0x0380000000000000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000010L,0x00000000000E0000L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000010L,0x00000002000E0000L,0x0000000000000060L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0008000000000010L,0x0000400000000000L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000000000000L,0x0000000400800000L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0008000000000002L,0x0380000004000000L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x30180000000041F0L,0x2C084002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000000002L,0x0380000004000000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x300800000000C1F0L,0x28080002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000008000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x30080000000041F0L,0x2C0840020E4E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x0000000000000000L,0x0400000000800000L}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x30080000000041F0L,0x280800020E4E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x0000000000000000L,0x0000000008000000L}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x30080000000041F2L,0x28080002066E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x30080000000041F2L,0x28080002064E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x0000000000000002L,0x1000000000000000L}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x30080000000041F0L,0x28084002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x0000000000000000L,0x4000000000000000L}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x0008000000008010L,0xC000400000800040L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x0000000000000000L,0xC000000000800000L}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x0000000000000000L,0x4000000000800000L}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x30080000000041F0L,0x28080002066E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x0000000000000000L,0x0000000000A00000L}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x30080000000041F0L,0x28080002064E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x30080000000041F0L,0x28080002066E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x0000000000000000L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x300800000000C1F0L,0x28080002064E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x300800000000C1F0L,0x28080002066E0000L,0x0000000000017FFFL}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000002L,0x0000000001000000L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x0008000000000002L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x0000000000000002L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x0008000000000002L,0x0000000204000000L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x0010000000000000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x30080000000041F2L,0x28080002064E0000L,0x0000000000017FE7L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000028000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000028000L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x0000000000000002L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x0000000000000120L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0018000000000010L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000002L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_145 = new BitSet(new long[]{0x0000000000000002L,0x0080000200000000L}); |
| public static final BitSet FOLLOW_146 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000060L}); |
| public static final BitSet FOLLOW_147 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_148 = new BitSet(new long[]{0x0000000000000000L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_149 = new BitSet(new long[]{0x4000000000000000L}); |
| public static final BitSet FOLLOW_150 = new BitSet(new long[]{0x0000000000000002L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_151 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |