| package org.eclipse.osbp.xtext.signal.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.signal.services.SignalDSLGrammarAccess; |
| |
| |
| |
| 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, 2018 - 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 InternalSignalDSLParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_INT", "RULE_ID", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'watcher'", "'directory'", "'handler'", "'forFileMask'", "'scheduleFor'", "'cron'", "'hourlyAt'", "'dailyAt'", "':'", "'weeklyOn'", "'at'", "'monthlyOn'", "'fileName'", "'import'", "'static'", "'extension'", "'*'", "'ns'", "';'", "'@'", "'('", "','", "')'", "'='", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'-'", "'**'", "'/'", "'%'", "'!'", "'as'", "'++'", "'--'", "'.'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "'default'", "'case'", "'for'", "'while'", "'do'", "'var'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'Import'", "'Export'", "'sequential'", "'parallel'", "'sunday'", "'monday'", "'tuesday'", "'wednesday'", "'thursday'", "'friday'", "'saturday'" |
| }; |
| public static final int RULE_HEX=7; |
| public static final int T__50=50; |
| public static final int T__59=59; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__52=52; |
| public static final int T__53=53; |
| public static final int T__54=54; |
| public static final int T__60=60; |
| public static final int T__61=61; |
| public static final int RULE_ID=6; |
| public static final int RULE_INT=5; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__67=67; |
| public static final int T__68=68; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__63=63; |
| public static final int T__64=64; |
| public static final int T__65=65; |
| public static final int T__37=37; |
| public static final int T__38=38; |
| public static final int T__39=39; |
| public static final int T__33=33; |
| public static final int T__34=34; |
| public static final int T__35=35; |
| public static final int T__36=36; |
| public static final int T__30=30; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__41=41; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| public static final int T__91=91; |
| public static final int T__100=100; |
| public static final int T__92=92; |
| public static final int T__93=93; |
| public static final int T__102=102; |
| public static final int T__94=94; |
| public static final int T__101=101; |
| public static final int T__90=90; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__99=99; |
| public static final int T__13=13; |
| public static final int T__14=14; |
| public static final int T__95=95; |
| public static final int T__96=96; |
| public static final int T__97=97; |
| public static final int T__98=98; |
| public static final int RULE_DECIMAL=8; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=4; |
| public static final int RULE_SL_COMMENT=10; |
| 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 EOF=-1; |
| 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__111=111; |
| public static final int T__81=81; |
| public static final int T__110=110; |
| public static final int T__82=82; |
| public static final int T__83=83; |
| public static final int T__112=112; |
| public static final int RULE_WS=11; |
| public static final int RULE_ANY_OTHER=12; |
| public static final int T__88=88; |
| public static final int T__108=108; |
| public static final int T__89=89; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__84=84; |
| public static final int T__104=104; |
| public static final int T__85=85; |
| public static final int T__103=103; |
| public static final int T__86=86; |
| public static final int T__106=106; |
| public static final int T__87=87; |
| public static final int T__105=105; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalSignalDSLParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalSignalDSLParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalSignalDSLParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalSignalDSL.g"; } |
| |
| |
| |
| private SignalDSLGrammarAccess grammarAccess; |
| |
| public InternalSignalDSLParser(TokenStream input, SignalDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "SignalModel"; |
| } |
| |
| @Override |
| protected SignalDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleSignalModel" |
| // InternalSignalDSL.g:78:1: entryRuleSignalModel returns [EObject current=null] : iv_ruleSignalModel= ruleSignalModel EOF ; |
| public final EObject entryRuleSignalModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalModel = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:78:52: (iv_ruleSignalModel= ruleSignalModel EOF ) |
| // InternalSignalDSL.g:79:2: iv_ruleSignalModel= ruleSignalModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalModel=ruleSignalModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalModel" |
| |
| |
| // $ANTLR start "ruleSignalModel" |
| // InternalSignalDSL.g:85:1: ruleSignalModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleSignalPackage ) ) ) ; |
| public final EObject ruleSignalModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:91:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleSignalPackage ) ) ) ) |
| // InternalSignalDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleSignalPackage ) ) ) |
| { |
| // InternalSignalDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleSignalPackage ) ) ) |
| // InternalSignalDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleSignalPackage ) ) |
| { |
| // InternalSignalDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==29) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalSignalDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalSignalDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalSignalDSL.g:95:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalModelAccess().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.getSignalModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:112:3: ( (lv_packages_1_0= ruleSignalPackage ) ) |
| // InternalSignalDSL.g:113:4: (lv_packages_1_0= ruleSignalPackage ) |
| { |
| // InternalSignalDSL.g:113:4: (lv_packages_1_0= ruleSignalPackage ) |
| // InternalSignalDSL.g:114:5: lv_packages_1_0= ruleSignalPackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalModelAccess().getPackagesSignalPackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_packages_1_0=ruleSignalPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalModelRule()); |
| } |
| set( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalPackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalModel" |
| |
| |
| // $ANTLR start "entryRuleSignalPackage" |
| // InternalSignalDSL.g:135:1: entryRuleSignalPackage returns [EObject current=null] : iv_ruleSignalPackage= ruleSignalPackage EOF ; |
| public final EObject entryRuleSignalPackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalPackage = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:135:54: (iv_ruleSignalPackage= ruleSignalPackage EOF ) |
| // InternalSignalDSL.g:136:2: iv_ruleSignalPackage= ruleSignalPackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalPackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalPackage=ruleSignalPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalPackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalPackage" |
| |
| |
| // $ANTLR start "ruleSignalPackage" |
| // InternalSignalDSL.g:142:1: ruleSignalPackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleSignalPackage() 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_watchers_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:148:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? ) ) |
| // InternalSignalDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? ) |
| { |
| // InternalSignalDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? ) |
| // InternalSignalDSL.g:150:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? |
| { |
| // InternalSignalDSL.g:150:3: () |
| // InternalSignalDSL.g:151:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getSignalPackageAccess().getSignalPackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getSignalPackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:161:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalSignalDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalSignalDSL.g:163:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalPackageAccess().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.getSignalPackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:180:3: (otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' )? |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==14) ) { |
| alt3=1; |
| } |
| switch (alt3) { |
| case 1 : |
| // InternalSignalDSL.g:181:4: otherlv_3= '{' ( (lv_watchers_4_0= ruleSignalWatcher ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getSignalPackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalSignalDSL.g:185:4: ( (lv_watchers_4_0= ruleSignalWatcher ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==16) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalSignalDSL.g:186:5: (lv_watchers_4_0= ruleSignalWatcher ) |
| { |
| // InternalSignalDSL.g:186:5: (lv_watchers_4_0= ruleSignalWatcher ) |
| // InternalSignalDSL.g:187:6: lv_watchers_4_0= ruleSignalWatcher |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalPackageAccess().getWatchersSignalWatcherParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_watchers_4_0=ruleSignalWatcher(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalPackageRule()); |
| } |
| add( |
| current, |
| "watchers", |
| lv_watchers_4_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalWatcher"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getSignalPackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalPackage" |
| |
| |
| // $ANTLR start "entryRuleSignalWatcher" |
| // InternalSignalDSL.g:213:1: entryRuleSignalWatcher returns [EObject current=null] : iv_ruleSignalWatcher= ruleSignalWatcher EOF ; |
| public final EObject entryRuleSignalWatcher() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalWatcher = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:213:54: (iv_ruleSignalWatcher= ruleSignalWatcher EOF ) |
| // InternalSignalDSL.g:214:2: iv_ruleSignalWatcher= ruleSignalWatcher EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalWatcherRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalWatcher=ruleSignalWatcher(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalWatcher; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalWatcher" |
| |
| |
| // $ANTLR start "ruleSignalWatcher" |
| // InternalSignalDSL.g:220:1: ruleSignalWatcher returns [EObject current=null] : ( () otherlv_1= 'watcher' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) otherlv_3= 'directory' ( (lv_directory_4_0= RULE_STRING ) ) otherlv_5= '{' ( (lv_handlers_6_0= ruleSignalHandler ) )* otherlv_7= '}' ) ; |
| public final EObject ruleSignalWatcher() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_directory_4_0=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_handlers_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:226:2: ( ( () otherlv_1= 'watcher' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) otherlv_3= 'directory' ( (lv_directory_4_0= RULE_STRING ) ) otherlv_5= '{' ( (lv_handlers_6_0= ruleSignalHandler ) )* otherlv_7= '}' ) ) |
| // InternalSignalDSL.g:227:2: ( () otherlv_1= 'watcher' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) otherlv_3= 'directory' ( (lv_directory_4_0= RULE_STRING ) ) otherlv_5= '{' ( (lv_handlers_6_0= ruleSignalHandler ) )* otherlv_7= '}' ) |
| { |
| // InternalSignalDSL.g:227:2: ( () otherlv_1= 'watcher' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) otherlv_3= 'directory' ( (lv_directory_4_0= RULE_STRING ) ) otherlv_5= '{' ( (lv_handlers_6_0= ruleSignalHandler ) )* otherlv_7= '}' ) |
| // InternalSignalDSL.g:228:3: () otherlv_1= 'watcher' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) otherlv_3= 'directory' ( (lv_directory_4_0= RULE_STRING ) ) otherlv_5= '{' ( (lv_handlers_6_0= ruleSignalHandler ) )* otherlv_7= '}' |
| { |
| // InternalSignalDSL.g:228:3: () |
| // InternalSignalDSL.g:229:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getSignalWatcherAccess().getSignalWatcherAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getSignalWatcherAccess().getWatcherKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:239:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalSignalDSL.g:240:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalSignalDSL.g:240:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalSignalDSL.g:241:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalWatcherAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_7); |
| lv_name_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalWatcherRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,17,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getSignalWatcherAccess().getDirectoryKeyword_3()); |
| |
| } |
| // InternalSignalDSL.g:262:3: ( (lv_directory_4_0= RULE_STRING ) ) |
| // InternalSignalDSL.g:263:4: (lv_directory_4_0= RULE_STRING ) |
| { |
| // InternalSignalDSL.g:263:4: (lv_directory_4_0= RULE_STRING ) |
| // InternalSignalDSL.g:264:5: lv_directory_4_0= RULE_STRING |
| { |
| lv_directory_4_0=(Token)match(input,RULE_STRING,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_directory_4_0, grammarAccess.getSignalWatcherAccess().getDirectorySTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSignalWatcherRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "directory", |
| lv_directory_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,14,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getSignalWatcherAccess().getLeftCurlyBracketKeyword_5()); |
| |
| } |
| // InternalSignalDSL.g:284:3: ( (lv_handlers_6_0= ruleSignalHandler ) )* |
| loop4: |
| do { |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==18) ) { |
| alt4=1; |
| } |
| |
| |
| switch (alt4) { |
| case 1 : |
| // InternalSignalDSL.g:285:4: (lv_handlers_6_0= ruleSignalHandler ) |
| { |
| // InternalSignalDSL.g:285:4: (lv_handlers_6_0= ruleSignalHandler ) |
| // InternalSignalDSL.g:286:5: lv_handlers_6_0= ruleSignalHandler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalWatcherAccess().getHandlersSignalHandlerParserRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_10); |
| lv_handlers_6_0=ruleSignalHandler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalWatcherRule()); |
| } |
| add( |
| current, |
| "handlers", |
| lv_handlers_6_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalHandler"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop4; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getSignalWatcherAccess().getRightCurlyBracketKeyword_7()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalWatcher" |
| |
| |
| // $ANTLR start "entryRuleSignalHandler" |
| // InternalSignalDSL.g:311:1: entryRuleSignalHandler returns [EObject current=null] : iv_ruleSignalHandler= ruleSignalHandler EOF ; |
| public final EObject entryRuleSignalHandler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalHandler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:311:54: (iv_ruleSignalHandler= ruleSignalHandler EOF ) |
| // InternalSignalDSL.g:312:2: iv_ruleSignalHandler= ruleSignalHandler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalHandlerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalHandler=ruleSignalHandler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalHandler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalHandler" |
| |
| |
| // $ANTLR start "ruleSignalHandler" |
| // InternalSignalDSL.g:318:1: ruleSignalHandler returns [EObject current=null] : ( () otherlv_1= 'handler' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) ) ; |
| public final EObject ruleSignalHandler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_interchanges_3_0 = null; |
| |
| Enumerator lv_executiontype_4_0 = null; |
| |
| EObject lv_triggerpolicy_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:324:2: ( ( () otherlv_1= 'handler' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) ) ) |
| // InternalSignalDSL.g:325:2: ( () otherlv_1= 'handler' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) ) |
| { |
| // InternalSignalDSL.g:325:2: ( () otherlv_1= 'handler' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) ) |
| // InternalSignalDSL.g:326:3: () otherlv_1= 'handler' ( (lv_name_2_0= ruleTRANSLATABLEID ) ) ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) |
| { |
| // InternalSignalDSL.g:326:3: () |
| // InternalSignalDSL.g:327:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getSignalHandlerAccess().getSignalHandlerAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getSignalHandlerAccess().getHandlerKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:337:3: ( (lv_name_2_0= ruleTRANSLATABLEID ) ) |
| // InternalSignalDSL.g:338:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| { |
| // InternalSignalDSL.g:338:4: (lv_name_2_0= ruleTRANSLATABLEID ) |
| // InternalSignalDSL.g:339:5: lv_name_2_0= ruleTRANSLATABLEID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalHandlerAccess().getNameTRANSLATABLEIDParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_name_2_0=ruleTRANSLATABLEID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalHandlerRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.TRANSLATABLEID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:356:3: ( (lv_interchanges_3_0= ruleSignalDatainterchange ) )* |
| loop5: |
| do { |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( ((LA5_0>=102 && LA5_0<=103)) ) { |
| alt5=1; |
| } |
| |
| |
| switch (alt5) { |
| case 1 : |
| // InternalSignalDSL.g:357:4: (lv_interchanges_3_0= ruleSignalDatainterchange ) |
| { |
| // InternalSignalDSL.g:357:4: (lv_interchanges_3_0= ruleSignalDatainterchange ) |
| // InternalSignalDSL.g:358:5: lv_interchanges_3_0= ruleSignalDatainterchange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalHandlerAccess().getInterchangesSignalDatainterchangeParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_interchanges_3_0=ruleSignalDatainterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalHandlerRule()); |
| } |
| add( |
| current, |
| "interchanges", |
| lv_interchanges_3_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalDatainterchange"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop5; |
| } |
| } while (true); |
| |
| // InternalSignalDSL.g:375:3: ( (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) ) |
| // InternalSignalDSL.g:376:4: (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) |
| { |
| // InternalSignalDSL.g:376:4: (lv_executiontype_4_0= ruleSignalExecutionTypeEnum ) |
| // InternalSignalDSL.g:377:5: lv_executiontype_4_0= ruleSignalExecutionTypeEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalHandlerAccess().getExecutiontypeSignalExecutionTypeEnumEnumRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_executiontype_4_0=ruleSignalExecutionTypeEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalHandlerRule()); |
| } |
| set( |
| current, |
| "executiontype", |
| lv_executiontype_4_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalExecutionTypeEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:394:3: ( (lv_triggerpolicy_5_0= ruleTriggerPolicy ) ) |
| // InternalSignalDSL.g:395:4: (lv_triggerpolicy_5_0= ruleTriggerPolicy ) |
| { |
| // InternalSignalDSL.g:395:4: (lv_triggerpolicy_5_0= ruleTriggerPolicy ) |
| // InternalSignalDSL.g:396:5: lv_triggerpolicy_5_0= ruleTriggerPolicy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalHandlerAccess().getTriggerpolicyTriggerPolicyParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_triggerpolicy_5_0=ruleTriggerPolicy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalHandlerRule()); |
| } |
| set( |
| current, |
| "triggerpolicy", |
| lv_triggerpolicy_5_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.TriggerPolicy"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalHandler" |
| |
| |
| // $ANTLR start "entryRuleTriggerPolicy" |
| // InternalSignalDSL.g:417:1: entryRuleTriggerPolicy returns [EObject current=null] : iv_ruleTriggerPolicy= ruleTriggerPolicy EOF ; |
| public final EObject entryRuleTriggerPolicy() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTriggerPolicy = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:417:54: (iv_ruleTriggerPolicy= ruleTriggerPolicy EOF ) |
| // InternalSignalDSL.g:418:2: iv_ruleTriggerPolicy= ruleTriggerPolicy EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTriggerPolicyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTriggerPolicy=ruleTriggerPolicy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTriggerPolicy; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTriggerPolicy" |
| |
| |
| // $ANTLR start "ruleTriggerPolicy" |
| // InternalSignalDSL.g:424:1: ruleTriggerPolicy returns [EObject current=null] : (this_TriggerFile_0= ruleTriggerFile | this_SignalScheduler_1= ruleSignalScheduler ) ; |
| public final EObject ruleTriggerPolicy() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TriggerFile_0 = null; |
| |
| EObject this_SignalScheduler_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:430:2: ( (this_TriggerFile_0= ruleTriggerFile | this_SignalScheduler_1= ruleSignalScheduler ) ) |
| // InternalSignalDSL.g:431:2: (this_TriggerFile_0= ruleTriggerFile | this_SignalScheduler_1= ruleSignalScheduler ) |
| { |
| // InternalSignalDSL.g:431:2: (this_TriggerFile_0= ruleTriggerFile | this_SignalScheduler_1= ruleSignalScheduler ) |
| int alt6=2; |
| int LA6_0 = input.LA(1); |
| |
| if ( (LA6_0==19) ) { |
| alt6=1; |
| } |
| else if ( (LA6_0==20) ) { |
| alt6=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 6, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt6) { |
| case 1 : |
| // InternalSignalDSL.g:432:3: this_TriggerFile_0= ruleTriggerFile |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTriggerPolicyAccess().getTriggerFileParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TriggerFile_0=ruleTriggerFile(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TriggerFile_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:441:3: this_SignalScheduler_1= ruleSignalScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTriggerPolicyAccess().getSignalSchedulerParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_SignalScheduler_1=ruleSignalScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_SignalScheduler_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTriggerPolicy" |
| |
| |
| // $ANTLR start "entryRuleTriggerFile" |
| // InternalSignalDSL.g:453:1: entryRuleTriggerFile returns [EObject current=null] : iv_ruleTriggerFile= ruleTriggerFile EOF ; |
| public final EObject entryRuleTriggerFile() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTriggerFile = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:453:52: (iv_ruleTriggerFile= ruleTriggerFile EOF ) |
| // InternalSignalDSL.g:454:2: iv_ruleTriggerFile= ruleTriggerFile EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTriggerFileRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTriggerFile=ruleTriggerFile(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTriggerFile; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTriggerFile" |
| |
| |
| // $ANTLR start "ruleTriggerFile" |
| // InternalSignalDSL.g:460:1: ruleTriggerFile returns [EObject current=null] : (otherlv_0= 'forFileMask' ( (lv_filemask_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleTriggerFile() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_filemask_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:466:2: ( (otherlv_0= 'forFileMask' ( (lv_filemask_1_0= RULE_STRING ) ) ) ) |
| // InternalSignalDSL.g:467:2: (otherlv_0= 'forFileMask' ( (lv_filemask_1_0= RULE_STRING ) ) ) |
| { |
| // InternalSignalDSL.g:467:2: (otherlv_0= 'forFileMask' ( (lv_filemask_1_0= RULE_STRING ) ) ) |
| // InternalSignalDSL.g:468:3: otherlv_0= 'forFileMask' ( (lv_filemask_1_0= RULE_STRING ) ) |
| { |
| otherlv_0=(Token)match(input,19,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTriggerFileAccess().getForFileMaskKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:472:3: ( (lv_filemask_1_0= RULE_STRING ) ) |
| // InternalSignalDSL.g:473:4: (lv_filemask_1_0= RULE_STRING ) |
| { |
| // InternalSignalDSL.g:473:4: (lv_filemask_1_0= RULE_STRING ) |
| // InternalSignalDSL.g:474:5: lv_filemask_1_0= RULE_STRING |
| { |
| lv_filemask_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filemask_1_0, grammarAccess.getTriggerFileAccess().getFilemaskSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTriggerFileRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "filemask", |
| lv_filemask_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 "ruleTriggerFile" |
| |
| |
| // $ANTLR start "entryRuleSignalScheduler" |
| // InternalSignalDSL.g:494:1: entryRuleSignalScheduler returns [EObject current=null] : iv_ruleSignalScheduler= ruleSignalScheduler EOF ; |
| public final EObject entryRuleSignalScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:494:56: (iv_ruleSignalScheduler= ruleSignalScheduler EOF ) |
| // InternalSignalDSL.g:495:2: iv_ruleSignalScheduler= ruleSignalScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalSchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalScheduler=ruleSignalScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalScheduler" |
| |
| |
| // $ANTLR start "ruleSignalScheduler" |
| // InternalSignalDSL.g:501:1: ruleSignalScheduler returns [EObject current=null] : (otherlv_0= 'scheduleFor' ( (lv_scheduler_1_0= ruleScheduler ) ) ) ; |
| public final EObject ruleSignalScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_scheduler_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:507:2: ( (otherlv_0= 'scheduleFor' ( (lv_scheduler_1_0= ruleScheduler ) ) ) ) |
| // InternalSignalDSL.g:508:2: (otherlv_0= 'scheduleFor' ( (lv_scheduler_1_0= ruleScheduler ) ) ) |
| { |
| // InternalSignalDSL.g:508:2: (otherlv_0= 'scheduleFor' ( (lv_scheduler_1_0= ruleScheduler ) ) ) |
| // InternalSignalDSL.g:509:3: otherlv_0= 'scheduleFor' ( (lv_scheduler_1_0= ruleScheduler ) ) |
| { |
| otherlv_0=(Token)match(input,20,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getSignalSchedulerAccess().getScheduleForKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:513:3: ( (lv_scheduler_1_0= ruleScheduler ) ) |
| // InternalSignalDSL.g:514:4: (lv_scheduler_1_0= ruleScheduler ) |
| { |
| // InternalSignalDSL.g:514:4: (lv_scheduler_1_0= ruleScheduler ) |
| // InternalSignalDSL.g:515:5: lv_scheduler_1_0= ruleScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalSchedulerAccess().getSchedulerSchedulerParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_scheduler_1_0=ruleScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalSchedulerRule()); |
| } |
| set( |
| current, |
| "scheduler", |
| lv_scheduler_1_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.Scheduler"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalScheduler" |
| |
| |
| // $ANTLR start "entryRuleScheduler" |
| // InternalSignalDSL.g:536:1: entryRuleScheduler returns [EObject current=null] : iv_ruleScheduler= ruleScheduler EOF ; |
| public final EObject entryRuleScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:536:50: (iv_ruleScheduler= ruleScheduler EOF ) |
| // InternalSignalDSL.g:537:2: iv_ruleScheduler= ruleScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleScheduler=ruleScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleScheduler" |
| |
| |
| // $ANTLR start "ruleScheduler" |
| // InternalSignalDSL.g:543:1: ruleScheduler returns [EObject current=null] : (this_CronScheduler_0= ruleCronScheduler | this_HourlyScheduler_1= ruleHourlyScheduler | this_DailyScheduler_2= ruleDailyScheduler | this_WeeklyScheduler_3= ruleWeeklyScheduler | this_MonthlyScheduler_4= ruleMonthlyScheduler ) ; |
| public final EObject ruleScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_CronScheduler_0 = null; |
| |
| EObject this_HourlyScheduler_1 = null; |
| |
| EObject this_DailyScheduler_2 = null; |
| |
| EObject this_WeeklyScheduler_3 = null; |
| |
| EObject this_MonthlyScheduler_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:549:2: ( (this_CronScheduler_0= ruleCronScheduler | this_HourlyScheduler_1= ruleHourlyScheduler | this_DailyScheduler_2= ruleDailyScheduler | this_WeeklyScheduler_3= ruleWeeklyScheduler | this_MonthlyScheduler_4= ruleMonthlyScheduler ) ) |
| // InternalSignalDSL.g:550:2: (this_CronScheduler_0= ruleCronScheduler | this_HourlyScheduler_1= ruleHourlyScheduler | this_DailyScheduler_2= ruleDailyScheduler | this_WeeklyScheduler_3= ruleWeeklyScheduler | this_MonthlyScheduler_4= ruleMonthlyScheduler ) |
| { |
| // InternalSignalDSL.g:550:2: (this_CronScheduler_0= ruleCronScheduler | this_HourlyScheduler_1= ruleHourlyScheduler | this_DailyScheduler_2= ruleDailyScheduler | this_WeeklyScheduler_3= ruleWeeklyScheduler | this_MonthlyScheduler_4= ruleMonthlyScheduler ) |
| int alt7=5; |
| switch ( input.LA(1) ) { |
| case 21: |
| { |
| alt7=1; |
| } |
| break; |
| case 22: |
| { |
| alt7=2; |
| } |
| break; |
| case 23: |
| { |
| alt7=3; |
| } |
| break; |
| case 25: |
| { |
| alt7=4; |
| } |
| break; |
| case 27: |
| { |
| alt7=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 7, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt7) { |
| case 1 : |
| // InternalSignalDSL.g:551:3: this_CronScheduler_0= ruleCronScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSchedulerAccess().getCronSchedulerParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_CronScheduler_0=ruleCronScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_CronScheduler_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:560:3: this_HourlyScheduler_1= ruleHourlyScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSchedulerAccess().getHourlySchedulerParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_HourlyScheduler_1=ruleHourlyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_HourlyScheduler_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:569:3: this_DailyScheduler_2= ruleDailyScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSchedulerAccess().getDailySchedulerParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DailyScheduler_2=ruleDailyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DailyScheduler_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:578:3: this_WeeklyScheduler_3= ruleWeeklyScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSchedulerAccess().getWeeklySchedulerParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_WeeklyScheduler_3=ruleWeeklyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_WeeklyScheduler_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSignalDSL.g:587:3: this_MonthlyScheduler_4= ruleMonthlyScheduler |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSchedulerAccess().getMonthlySchedulerParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_MonthlyScheduler_4=ruleMonthlyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_MonthlyScheduler_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleScheduler" |
| |
| |
| // $ANTLR start "entryRuleCronScheduler" |
| // InternalSignalDSL.g:599:1: entryRuleCronScheduler returns [EObject current=null] : iv_ruleCronScheduler= ruleCronScheduler EOF ; |
| public final EObject entryRuleCronScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCronScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:599:54: (iv_ruleCronScheduler= ruleCronScheduler EOF ) |
| // InternalSignalDSL.g:600:2: iv_ruleCronScheduler= ruleCronScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCronSchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleCronScheduler=ruleCronScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCronScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCronScheduler" |
| |
| |
| // $ANTLR start "ruleCronScheduler" |
| // InternalSignalDSL.g:606:1: ruleCronScheduler returns [EObject current=null] : (otherlv_0= 'cron' ( (lv_expression_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleCronScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_expression_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:612:2: ( (otherlv_0= 'cron' ( (lv_expression_1_0= RULE_STRING ) ) ) ) |
| // InternalSignalDSL.g:613:2: (otherlv_0= 'cron' ( (lv_expression_1_0= RULE_STRING ) ) ) |
| { |
| // InternalSignalDSL.g:613:2: (otherlv_0= 'cron' ( (lv_expression_1_0= RULE_STRING ) ) ) |
| // InternalSignalDSL.g:614:3: otherlv_0= 'cron' ( (lv_expression_1_0= RULE_STRING ) ) |
| { |
| otherlv_0=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getCronSchedulerAccess().getCronKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:618:3: ( (lv_expression_1_0= RULE_STRING ) ) |
| // InternalSignalDSL.g:619:4: (lv_expression_1_0= RULE_STRING ) |
| { |
| // InternalSignalDSL.g:619:4: (lv_expression_1_0= RULE_STRING ) |
| // InternalSignalDSL.g:620:5: lv_expression_1_0= RULE_STRING |
| { |
| lv_expression_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_expression_1_0, grammarAccess.getCronSchedulerAccess().getExpressionSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getCronSchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "expression", |
| lv_expression_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 "ruleCronScheduler" |
| |
| |
| // $ANTLR start "entryRuleHourlyScheduler" |
| // InternalSignalDSL.g:640:1: entryRuleHourlyScheduler returns [EObject current=null] : iv_ruleHourlyScheduler= ruleHourlyScheduler EOF ; |
| public final EObject entryRuleHourlyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleHourlyScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:640:56: (iv_ruleHourlyScheduler= ruleHourlyScheduler EOF ) |
| // InternalSignalDSL.g:641:2: iv_ruleHourlyScheduler= ruleHourlyScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getHourlySchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleHourlyScheduler=ruleHourlyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleHourlyScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleHourlyScheduler" |
| |
| |
| // $ANTLR start "ruleHourlyScheduler" |
| // InternalSignalDSL.g:647:1: ruleHourlyScheduler returns [EObject current=null] : (otherlv_0= 'hourlyAt' ( (lv_minute_1_0= RULE_INT ) ) ) ; |
| public final EObject ruleHourlyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_minute_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:653:2: ( (otherlv_0= 'hourlyAt' ( (lv_minute_1_0= RULE_INT ) ) ) ) |
| // InternalSignalDSL.g:654:2: (otherlv_0= 'hourlyAt' ( (lv_minute_1_0= RULE_INT ) ) ) |
| { |
| // InternalSignalDSL.g:654:2: (otherlv_0= 'hourlyAt' ( (lv_minute_1_0= RULE_INT ) ) ) |
| // InternalSignalDSL.g:655:3: otherlv_0= 'hourlyAt' ( (lv_minute_1_0= RULE_INT ) ) |
| { |
| otherlv_0=(Token)match(input,22,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getHourlySchedulerAccess().getHourlyAtKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:659:3: ( (lv_minute_1_0= RULE_INT ) ) |
| // InternalSignalDSL.g:660:4: (lv_minute_1_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:660:4: (lv_minute_1_0= RULE_INT ) |
| // InternalSignalDSL.g:661:5: lv_minute_1_0= RULE_INT |
| { |
| lv_minute_1_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_minute_1_0, grammarAccess.getHourlySchedulerAccess().getMinuteINTTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getHourlySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "minute", |
| lv_minute_1_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleHourlyScheduler" |
| |
| |
| // $ANTLR start "entryRuleDailyScheduler" |
| // InternalSignalDSL.g:681:1: entryRuleDailyScheduler returns [EObject current=null] : iv_ruleDailyScheduler= ruleDailyScheduler EOF ; |
| public final EObject entryRuleDailyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDailyScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:681:55: (iv_ruleDailyScheduler= ruleDailyScheduler EOF ) |
| // InternalSignalDSL.g:682:2: iv_ruleDailyScheduler= ruleDailyScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDailySchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDailyScheduler=ruleDailyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDailyScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDailyScheduler" |
| |
| |
| // $ANTLR start "ruleDailyScheduler" |
| // InternalSignalDSL.g:688:1: ruleDailyScheduler returns [EObject current=null] : (otherlv_0= 'dailyAt' ( (lv_hour_1_0= RULE_INT ) ) otherlv_2= ':' ( (lv_minute_3_0= RULE_INT ) ) ) ; |
| public final EObject ruleDailyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_hour_1_0=null; |
| Token otherlv_2=null; |
| Token lv_minute_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:694:2: ( (otherlv_0= 'dailyAt' ( (lv_hour_1_0= RULE_INT ) ) otherlv_2= ':' ( (lv_minute_3_0= RULE_INT ) ) ) ) |
| // InternalSignalDSL.g:695:2: (otherlv_0= 'dailyAt' ( (lv_hour_1_0= RULE_INT ) ) otherlv_2= ':' ( (lv_minute_3_0= RULE_INT ) ) ) |
| { |
| // InternalSignalDSL.g:695:2: (otherlv_0= 'dailyAt' ( (lv_hour_1_0= RULE_INT ) ) otherlv_2= ':' ( (lv_minute_3_0= RULE_INT ) ) ) |
| // InternalSignalDSL.g:696:3: otherlv_0= 'dailyAt' ( (lv_hour_1_0= RULE_INT ) ) otherlv_2= ':' ( (lv_minute_3_0= RULE_INT ) ) |
| { |
| otherlv_0=(Token)match(input,23,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDailySchedulerAccess().getDailyAtKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:700:3: ( (lv_hour_1_0= RULE_INT ) ) |
| // InternalSignalDSL.g:701:4: (lv_hour_1_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:701:4: (lv_hour_1_0= RULE_INT ) |
| // InternalSignalDSL.g:702:5: lv_hour_1_0= RULE_INT |
| { |
| lv_hour_1_0=(Token)match(input,RULE_INT,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hour_1_0, grammarAccess.getDailySchedulerAccess().getHourINTTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDailySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "hour", |
| lv_hour_1_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDailySchedulerAccess().getColonKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:722:3: ( (lv_minute_3_0= RULE_INT ) ) |
| // InternalSignalDSL.g:723:4: (lv_minute_3_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:723:4: (lv_minute_3_0= RULE_INT ) |
| // InternalSignalDSL.g:724:5: lv_minute_3_0= RULE_INT |
| { |
| lv_minute_3_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_minute_3_0, grammarAccess.getDailySchedulerAccess().getMinuteINTTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDailySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "minute", |
| lv_minute_3_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDailyScheduler" |
| |
| |
| // $ANTLR start "entryRuleWeeklyScheduler" |
| // InternalSignalDSL.g:744:1: entryRuleWeeklyScheduler returns [EObject current=null] : iv_ruleWeeklyScheduler= ruleWeeklyScheduler EOF ; |
| public final EObject entryRuleWeeklyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleWeeklyScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:744:56: (iv_ruleWeeklyScheduler= ruleWeeklyScheduler EOF ) |
| // InternalSignalDSL.g:745:2: iv_ruleWeeklyScheduler= ruleWeeklyScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getWeeklySchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleWeeklyScheduler=ruleWeeklyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleWeeklyScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleWeeklyScheduler" |
| |
| |
| // $ANTLR start "ruleWeeklyScheduler" |
| // InternalSignalDSL.g:751:1: ruleWeeklyScheduler returns [EObject current=null] : (otherlv_0= 'weeklyOn' ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) ; |
| public final EObject ruleWeeklyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token lv_hour_3_0=null; |
| Token otherlv_4=null; |
| Token lv_minute_5_0=null; |
| Enumerator lv_dayofweek_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:757:2: ( (otherlv_0= 'weeklyOn' ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) ) |
| // InternalSignalDSL.g:758:2: (otherlv_0= 'weeklyOn' ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) |
| { |
| // InternalSignalDSL.g:758:2: (otherlv_0= 'weeklyOn' ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) |
| // InternalSignalDSL.g:759:3: otherlv_0= 'weeklyOn' ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getWeeklySchedulerAccess().getWeeklyOnKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:763:3: ( (lv_dayofweek_1_0= ruleDayOfWeekEnum ) ) |
| // InternalSignalDSL.g:764:4: (lv_dayofweek_1_0= ruleDayOfWeekEnum ) |
| { |
| // InternalSignalDSL.g:764:4: (lv_dayofweek_1_0= ruleDayOfWeekEnum ) |
| // InternalSignalDSL.g:765:5: lv_dayofweek_1_0= ruleDayOfWeekEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getWeeklySchedulerAccess().getDayofweekDayOfWeekEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| lv_dayofweek_1_0=ruleDayOfWeekEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getWeeklySchedulerRule()); |
| } |
| set( |
| current, |
| "dayofweek", |
| lv_dayofweek_1_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.DayOfWeekEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getWeeklySchedulerAccess().getAtKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:786:3: ( (lv_hour_3_0= RULE_INT ) ) |
| // InternalSignalDSL.g:787:4: (lv_hour_3_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:787:4: (lv_hour_3_0= RULE_INT ) |
| // InternalSignalDSL.g:788:5: lv_hour_3_0= RULE_INT |
| { |
| lv_hour_3_0=(Token)match(input,RULE_INT,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hour_3_0, grammarAccess.getWeeklySchedulerAccess().getHourINTTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getWeeklySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "hour", |
| lv_hour_3_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getWeeklySchedulerAccess().getColonKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:808:3: ( (lv_minute_5_0= RULE_INT ) ) |
| // InternalSignalDSL.g:809:4: (lv_minute_5_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:809:4: (lv_minute_5_0= RULE_INT ) |
| // InternalSignalDSL.g:810:5: lv_minute_5_0= RULE_INT |
| { |
| lv_minute_5_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_minute_5_0, grammarAccess.getWeeklySchedulerAccess().getMinuteINTTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getWeeklySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "minute", |
| lv_minute_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleWeeklyScheduler" |
| |
| |
| // $ANTLR start "entryRuleMonthlyScheduler" |
| // InternalSignalDSL.g:830:1: entryRuleMonthlyScheduler returns [EObject current=null] : iv_ruleMonthlyScheduler= ruleMonthlyScheduler EOF ; |
| public final EObject entryRuleMonthlyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleMonthlyScheduler = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:830:57: (iv_ruleMonthlyScheduler= ruleMonthlyScheduler EOF ) |
| // InternalSignalDSL.g:831:2: iv_ruleMonthlyScheduler= ruleMonthlyScheduler EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getMonthlySchedulerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleMonthlyScheduler=ruleMonthlyScheduler(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleMonthlyScheduler; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleMonthlyScheduler" |
| |
| |
| // $ANTLR start "ruleMonthlyScheduler" |
| // InternalSignalDSL.g:837:1: ruleMonthlyScheduler returns [EObject current=null] : (otherlv_0= 'monthlyOn' ( (lv_dayofmonth_1_0= RULE_INT ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) ; |
| public final EObject ruleMonthlyScheduler() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_dayofmonth_1_0=null; |
| Token otherlv_2=null; |
| Token lv_hour_3_0=null; |
| Token otherlv_4=null; |
| Token lv_minute_5_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:843:2: ( (otherlv_0= 'monthlyOn' ( (lv_dayofmonth_1_0= RULE_INT ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) ) |
| // InternalSignalDSL.g:844:2: (otherlv_0= 'monthlyOn' ( (lv_dayofmonth_1_0= RULE_INT ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) |
| { |
| // InternalSignalDSL.g:844:2: (otherlv_0= 'monthlyOn' ( (lv_dayofmonth_1_0= RULE_INT ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) ) |
| // InternalSignalDSL.g:845:3: otherlv_0= 'monthlyOn' ( (lv_dayofmonth_1_0= RULE_INT ) ) otherlv_2= 'at' ( (lv_hour_3_0= RULE_INT ) ) otherlv_4= ':' ( (lv_minute_5_0= RULE_INT ) ) |
| { |
| otherlv_0=(Token)match(input,27,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getMonthlySchedulerAccess().getMonthlyOnKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:849:3: ( (lv_dayofmonth_1_0= RULE_INT ) ) |
| // InternalSignalDSL.g:850:4: (lv_dayofmonth_1_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:850:4: (lv_dayofmonth_1_0= RULE_INT ) |
| // InternalSignalDSL.g:851:5: lv_dayofmonth_1_0= RULE_INT |
| { |
| lv_dayofmonth_1_0=(Token)match(input,RULE_INT,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dayofmonth_1_0, grammarAccess.getMonthlySchedulerAccess().getDayofmonthINTTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMonthlySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dayofmonth", |
| lv_dayofmonth_1_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getMonthlySchedulerAccess().getAtKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:871:3: ( (lv_hour_3_0= RULE_INT ) ) |
| // InternalSignalDSL.g:872:4: (lv_hour_3_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:872:4: (lv_hour_3_0= RULE_INT ) |
| // InternalSignalDSL.g:873:5: lv_hour_3_0= RULE_INT |
| { |
| lv_hour_3_0=(Token)match(input,RULE_INT,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hour_3_0, grammarAccess.getMonthlySchedulerAccess().getHourINTTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMonthlySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "hour", |
| lv_hour_3_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,24,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getMonthlySchedulerAccess().getColonKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:893:3: ( (lv_minute_5_0= RULE_INT ) ) |
| // InternalSignalDSL.g:894:4: (lv_minute_5_0= RULE_INT ) |
| { |
| // InternalSignalDSL.g:894:4: (lv_minute_5_0= RULE_INT ) |
| // InternalSignalDSL.g:895:5: lv_minute_5_0= RULE_INT |
| { |
| lv_minute_5_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_minute_5_0, grammarAccess.getMonthlySchedulerAccess().getMinuteINTTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getMonthlySchedulerRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "minute", |
| lv_minute_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleMonthlyScheduler" |
| |
| |
| // $ANTLR start "entryRuleSignalDatainterchange" |
| // InternalSignalDSL.g:915:1: entryRuleSignalDatainterchange returns [EObject current=null] : iv_ruleSignalDatainterchange= ruleSignalDatainterchange EOF ; |
| public final EObject entryRuleSignalDatainterchange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSignalDatainterchange = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:915:62: (iv_ruleSignalDatainterchange= ruleSignalDatainterchange EOF ) |
| // InternalSignalDSL.g:916:2: iv_ruleSignalDatainterchange= ruleSignalDatainterchange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignalDatainterchangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignalDatainterchange=ruleSignalDatainterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignalDatainterchange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignalDatainterchange" |
| |
| |
| // $ANTLR start "ruleSignalDatainterchange" |
| // InternalSignalDSL.g:922:1: ruleSignalDatainterchange returns [EObject current=null] : ( ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) ( (otherlv_1= RULE_ID ) ) otherlv_2= 'fileName' ( (lv_fileName_3_0= RULE_STRING ) ) ) ; |
| public final EObject ruleSignalDatainterchange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_fileName_3_0=null; |
| Enumerator lv_dataAction_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:928:2: ( ( ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) ( (otherlv_1= RULE_ID ) ) otherlv_2= 'fileName' ( (lv_fileName_3_0= RULE_STRING ) ) ) ) |
| // InternalSignalDSL.g:929:2: ( ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) ( (otherlv_1= RULE_ID ) ) otherlv_2= 'fileName' ( (lv_fileName_3_0= RULE_STRING ) ) ) |
| { |
| // InternalSignalDSL.g:929:2: ( ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) ( (otherlv_1= RULE_ID ) ) otherlv_2= 'fileName' ( (lv_fileName_3_0= RULE_STRING ) ) ) |
| // InternalSignalDSL.g:930:3: ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) ( (otherlv_1= RULE_ID ) ) otherlv_2= 'fileName' ( (lv_fileName_3_0= RULE_STRING ) ) |
| { |
| // InternalSignalDSL.g:930:3: ( (lv_dataAction_0_0= ruleSignalActionEnum ) ) |
| // InternalSignalDSL.g:931:4: (lv_dataAction_0_0= ruleSignalActionEnum ) |
| { |
| // InternalSignalDSL.g:931:4: (lv_dataAction_0_0= ruleSignalActionEnum ) |
| // InternalSignalDSL.g:932:5: lv_dataAction_0_0= ruleSignalActionEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignalDatainterchangeAccess().getDataActionSignalActionEnumEnumRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_dataAction_0_0=ruleSignalActionEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSignalDatainterchangeRule()); |
| } |
| set( |
| current, |
| "dataAction", |
| lv_dataAction_0_0, |
| "org.eclipse.osbp.xtext.signal.SignalDSL.SignalActionEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:949:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalSignalDSL.g:950:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalSignalDSL.g:950:4: (otherlv_1= RULE_ID ) |
| // InternalSignalDSL.g:951:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSignalDatainterchangeRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getSignalDatainterchangeAccess().getDataRefDataInterchangeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,28,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getSignalDatainterchangeAccess().getFileNameKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:966:3: ( (lv_fileName_3_0= RULE_STRING ) ) |
| // InternalSignalDSL.g:967:4: (lv_fileName_3_0= RULE_STRING ) |
| { |
| // InternalSignalDSL.g:967:4: (lv_fileName_3_0= RULE_STRING ) |
| // InternalSignalDSL.g:968:5: lv_fileName_3_0= RULE_STRING |
| { |
| lv_fileName_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileName_3_0, grammarAccess.getSignalDatainterchangeAccess().getFileNameSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getSignalDatainterchangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileName", |
| lv_fileName_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalDatainterchange" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLEID" |
| // InternalSignalDSL.g:988:1: entryRuleTRANSLATABLEID returns [String current=null] : iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ; |
| public final String entryRuleTRANSLATABLEID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLEID = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:988:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ) |
| // InternalSignalDSL.g:989: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" |
| // InternalSignalDSL.g:995: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 { |
| // InternalSignalDSL.g:1001:2: (this_ID_0= RULE_ID ) |
| // InternalSignalDSL.g:1002: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" |
| // InternalSignalDSL.g:1012:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1012:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalSignalDSL.g:1013: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" |
| // InternalSignalDSL.g:1019: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 { |
| // InternalSignalDSL.g:1025: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= ';' )? ) ) |
| // InternalSignalDSL.g:1026: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= ';' )? ) |
| { |
| // InternalSignalDSL.g:1026: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= ';' )? ) |
| // InternalSignalDSL.g:1027: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= ';' )? |
| { |
| // InternalSignalDSL.g:1027:3: () |
| // InternalSignalDSL.g:1028:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:1038: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 alt10=4; |
| alt10 = dfa10.predict(input); |
| switch (alt10) { |
| case 1 : |
| // InternalSignalDSL.g:1039:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalSignalDSL.g:1039:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalSignalDSL.g:1040:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalSignalDSL.g:1040:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalSignalDSL.g:1041:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalSignalDSL.g:1041:6: (lv_static_2_0= 'static' ) |
| // InternalSignalDSL.g:1042:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,30,FOLLOW_20); 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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1054:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==31) ) { |
| alt8=1; |
| } |
| switch (alt8) { |
| case 1 : |
| // InternalSignalDSL.g:1055:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalSignalDSL.g:1055:6: (lv_extension_3_0= 'extension' ) |
| // InternalSignalDSL.g:1056:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,31,FOLLOW_20); 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; |
| |
| } |
| |
| // InternalSignalDSL.g:1068:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalSignalDSL.g:1069:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalSignalDSL.g:1069:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalSignalDSL.g:1070: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_21); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1084:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==32) ) { |
| alt9=1; |
| } |
| else if ( (LA9_0==RULE_ID) ) { |
| alt9=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 9, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalSignalDSL.g:1085:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalSignalDSL.g:1085:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalSignalDSL.g:1086:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalSignalDSL.g:1086:7: (lv_wildcard_5_0= '*' ) |
| // InternalSignalDSL.g:1087:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,32,FOLLOW_22); 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 : |
| // InternalSignalDSL.g:1100:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:1100:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalSignalDSL.g:1101:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalSignalDSL.g:1101:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalSignalDSL.g:1102:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| 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 : |
| // InternalSignalDSL.g:1122:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalSignalDSL.g:1122:4: ( ( ruleQualifiedName ) ) |
| // InternalSignalDSL.g:1123:5: ( ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:1123:5: ( ruleQualifiedName ) |
| // InternalSignalDSL.g:1124: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_22); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:1139:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalSignalDSL.g:1139:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalSignalDSL.g:1140:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalSignalDSL.g:1140:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalSignalDSL.g:1141:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| 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 : |
| // InternalSignalDSL.g:1159:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalSignalDSL.g:1159:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalSignalDSL.g:1160:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalSignalDSL.g:1160:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalSignalDSL.g:1161:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalSignalDSL.g:1161:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalSignalDSL.g:1162:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,33,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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1174:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalSignalDSL.g:1175:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:1175:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalSignalDSL.g:1176:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| 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; |
| |
| } |
| |
| // InternalSignalDSL.g:1195:3: (otherlv_11= ';' )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==34) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalSignalDSL.g:1196:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,34,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" |
| // InternalSignalDSL.g:1205:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1205:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalSignalDSL.g:1206: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" |
| // InternalSignalDSL.g:1212: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 { |
| // InternalSignalDSL.g:1218: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= ')' )? ) ) |
| // InternalSignalDSL.g:1219: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= ')' )? ) |
| { |
| // InternalSignalDSL.g:1219: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= ')' )? ) |
| // InternalSignalDSL.g:1220: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= ')' )? |
| { |
| // InternalSignalDSL.g:1220:3: () |
| // InternalSignalDSL.g:1221:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,35,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:1231:3: ( ( ruleQualifiedName ) ) |
| // InternalSignalDSL.g:1232:4: ( ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:1232:4: ( ruleQualifiedName ) |
| // InternalSignalDSL.g:1233: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_23); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1247: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 alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==36) && (synpred1_InternalSignalDSL())) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalSignalDSL.g:1248:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalSignalDSL.g:1248:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalSignalDSL.g:1249:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,36,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:1255:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt13=3; |
| alt13 = dfa13.predict(input); |
| switch (alt13) { |
| case 1 : |
| // InternalSignalDSL.g:1256:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalSignalDSL.g:1256:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalSignalDSL.g:1257:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalSignalDSL.g:1257:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalSignalDSL.g:1258:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalSignalDSL.g:1267:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalSignalDSL.g:1268:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1285:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop12: |
| do { |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==37) ) { |
| alt12=1; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalSignalDSL.g:1286:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,37,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalSignalDSL.g:1290:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalSignalDSL.g:1291:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalSignalDSL.g:1300:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalSignalDSL.g:1301:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop12; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:1321:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalSignalDSL.g:1321:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalSignalDSL.g:1322:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalSignalDSL.g:1322:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalSignalDSL.g:1323:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,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" |
| // InternalSignalDSL.g:1350:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1350:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalSignalDSL.g:1351: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" |
| // InternalSignalDSL.g:1357: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 { |
| // InternalSignalDSL.g:1363:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalSignalDSL.g:1364:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalSignalDSL.g:1364:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalSignalDSL.g:1365:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalSignalDSL.g:1365:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalSignalDSL.g:1366:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalSignalDSL.g:1375:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalSignalDSL.g:1376:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalSignalDSL.g:1376:5: ( ( ruleValidID ) ) |
| // InternalSignalDSL.g:1377:6: ( ruleValidID ) |
| { |
| // InternalSignalDSL.g:1377:6: ( ruleValidID ) |
| // InternalSignalDSL.g:1378: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_27); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,39,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1398:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalSignalDSL.g:1399:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalSignalDSL.g:1399:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalSignalDSL.g:1400: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" |
| // InternalSignalDSL.g:1421:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1421:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalSignalDSL.g:1422: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" |
| // InternalSignalDSL.g:1428: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 { |
| // InternalSignalDSL.g:1434: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 ) ) )+ )? ) ) ) |
| // InternalSignalDSL.g:1435: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 ) ) )+ )? ) ) |
| { |
| // InternalSignalDSL.g:1435: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 alt19=2; |
| alt19 = dfa19.predict(input); |
| switch (alt19) { |
| case 1 : |
| // InternalSignalDSL.g:1436:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalSignalDSL.g:1436:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalSignalDSL.g:1437:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalSignalDSL.g:1437:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalSignalDSL.g:1438:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalSignalDSL.g:1445:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalSignalDSL.g:1446:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalSignalDSL.g:1446:6: () |
| // InternalSignalDSL.g:1447:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,41,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1463:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( ((LA16_0>=RULE_STRING && LA16_0<=RULE_DECIMAL)||LA16_0==14||(LA16_0>=29 && LA16_0<=31)||(LA16_0>=35 && LA16_0<=36)||(LA16_0>=40 && LA16_0<=41)||LA16_0==48||(LA16_0>=64 && LA16_0<=65)||LA16_0==69||LA16_0==77||LA16_0==79||(LA16_0>=82 && LA16_0<=84)||(LA16_0>=87 && LA16_0<=96)||LA16_0==98) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalSignalDSL.g:1464:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalSignalDSL.g:1464:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1465:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1465:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalSignalDSL.g:1466:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1483:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop15: |
| do { |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==37) ) { |
| alt15=1; |
| } |
| |
| |
| switch (alt15) { |
| case 1 : |
| // InternalSignalDSL.g:1484:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:1488:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1489:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1489:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalSignalDSL.g:1490:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 loop15; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:1515:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalSignalDSL.g:1515:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalSignalDSL.g:1516:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:1524:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==37) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalSignalDSL.g:1525:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalSignalDSL.g:1525:5: () |
| // InternalSignalDSL.g:1526:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:1532:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt17=0; |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==37) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalSignalDSL.g:1533:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:1537:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1538:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1538:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalSignalDSL.g:1539:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| 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 ( cnt17 >= 1 ) break loop17; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(17, input); |
| throw eee; |
| } |
| cnt17++; |
| } 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" |
| // InternalSignalDSL.g:1563:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1563:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalSignalDSL.g:1564: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" |
| // InternalSignalDSL.g:1570: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 { |
| // InternalSignalDSL.g:1576:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1577:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1577:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt22=2; |
| alt22 = dfa22.predict(input); |
| switch (alt22) { |
| case 1 : |
| // InternalSignalDSL.g:1578:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalSignalDSL.g:1578:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalSignalDSL.g:1579:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalSignalDSL.g:1579:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalSignalDSL.g:1580:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalSignalDSL.g:1587:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalSignalDSL.g:1588:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalSignalDSL.g:1588:6: () |
| // InternalSignalDSL.g:1589:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,41,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1605:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( ((LA21_0>=RULE_STRING && LA21_0<=RULE_DECIMAL)||LA21_0==14||(LA21_0>=29 && LA21_0<=31)||(LA21_0>=35 && LA21_0<=36)||(LA21_0>=40 && LA21_0<=41)||LA21_0==48||(LA21_0>=64 && LA21_0<=65)||LA21_0==69||LA21_0==77||LA21_0==79||(LA21_0>=82 && LA21_0<=84)||(LA21_0>=87 && LA21_0<=96)||LA21_0==98) ) { |
| alt21=1; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalSignalDSL.g:1606:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalSignalDSL.g:1606:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1607:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1607:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalSignalDSL.g:1608:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1625:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop20: |
| do { |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==37) ) { |
| alt20=1; |
| } |
| |
| |
| switch (alt20) { |
| case 1 : |
| // InternalSignalDSL.g:1626:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:1630:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalSignalDSL.g:1631:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalSignalDSL.g:1631:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalSignalDSL.g:1632:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 loop20; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:1657: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" |
| // InternalSignalDSL.g:1669:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1669:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalSignalDSL.g:1670: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" |
| // InternalSignalDSL.g:1676: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 { |
| // InternalSignalDSL.g:1682:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalSignalDSL.g:1683:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:1683:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==35) ) { |
| alt23=1; |
| } |
| else if ( ((LA23_0>=RULE_STRING && LA23_0<=RULE_DECIMAL)||LA23_0==14||(LA23_0>=29 && LA23_0<=31)||LA23_0==36||(LA23_0>=40 && LA23_0<=41)||LA23_0==48||(LA23_0>=64 && LA23_0<=65)||LA23_0==69||LA23_0==77||LA23_0==79||(LA23_0>=82 && LA23_0<=84)||(LA23_0>=87 && LA23_0<=96)||LA23_0==98) ) { |
| alt23=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 23, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt23) { |
| case 1 : |
| // InternalSignalDSL.g:1684: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 : |
| // InternalSignalDSL.g:1693: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" |
| // InternalSignalDSL.g:1705:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1705:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalSignalDSL.g:1706: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" |
| // InternalSignalDSL.g:1712: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 { |
| // InternalSignalDSL.g:1718:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalSignalDSL.g:1719: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" |
| // InternalSignalDSL.g:1730:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1730:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalSignalDSL.g:1731: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" |
| // InternalSignalDSL.g:1737: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 { |
| // InternalSignalDSL.g:1743:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalSignalDSL.g:1744:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalSignalDSL.g:1744:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt25=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA25_1 = input.LA(2); |
| |
| if ( (LA25_1==39) ) { |
| alt25=1; |
| } |
| else if ( (LA25_1==EOF||(LA25_1>=RULE_STRING && LA25_1<=RULE_DECIMAL)||(LA25_1>=14 && LA25_1<=15)||LA25_1==24||(LA25_1>=29 && LA25_1<=32)||LA25_1==34||(LA25_1>=36 && LA25_1<=38)||(LA25_1>=40 && LA25_1<=75)||(LA25_1>=77 && LA25_1<=99)) ) { |
| alt25=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 87: |
| { |
| int LA25_2 = input.LA(2); |
| |
| if ( (LA25_2==39) ) { |
| alt25=1; |
| } |
| else if ( (LA25_2==EOF||(LA25_2>=RULE_STRING && LA25_2<=RULE_DECIMAL)||(LA25_2>=14 && LA25_2<=15)||LA25_2==24||(LA25_2>=29 && LA25_2<=32)||LA25_2==34||(LA25_2>=36 && LA25_2<=38)||(LA25_2>=40 && LA25_2<=75)||(LA25_2>=77 && LA25_2<=99)) ) { |
| alt25=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 30: |
| { |
| int LA25_3 = input.LA(2); |
| |
| if ( (LA25_3==39) ) { |
| alt25=1; |
| } |
| else if ( (LA25_3==EOF||(LA25_3>=RULE_STRING && LA25_3<=RULE_DECIMAL)||(LA25_3>=14 && LA25_3<=15)||LA25_3==24||(LA25_3>=29 && LA25_3<=32)||LA25_3==34||(LA25_3>=36 && LA25_3<=38)||(LA25_3>=40 && LA25_3<=75)||(LA25_3>=77 && LA25_3<=99)) ) { |
| alt25=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 29: |
| { |
| int LA25_4 = input.LA(2); |
| |
| if ( (LA25_4==39) ) { |
| alt25=1; |
| } |
| else if ( (LA25_4==EOF||(LA25_4>=RULE_STRING && LA25_4<=RULE_DECIMAL)||(LA25_4>=14 && LA25_4<=15)||LA25_4==24||(LA25_4>=29 && LA25_4<=32)||LA25_4==34||(LA25_4>=36 && LA25_4<=38)||(LA25_4>=40 && LA25_4<=75)||(LA25_4>=77 && LA25_4<=99)) ) { |
| alt25=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 31: |
| { |
| int LA25_5 = input.LA(2); |
| |
| if ( (LA25_5==39) ) { |
| alt25=1; |
| } |
| else if ( (LA25_5==EOF||(LA25_5>=RULE_STRING && LA25_5<=RULE_DECIMAL)||(LA25_5>=14 && LA25_5<=15)||LA25_5==24||(LA25_5>=29 && LA25_5<=32)||LA25_5==34||(LA25_5>=36 && LA25_5<=38)||(LA25_5>=40 && LA25_5<=75)||(LA25_5>=77 && LA25_5<=99)) ) { |
| alt25=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 36: |
| case 40: |
| case 41: |
| case 48: |
| case 64: |
| case 65: |
| case 69: |
| case 77: |
| case 79: |
| case 82: |
| case 83: |
| case 84: |
| case 88: |
| case 89: |
| case 90: |
| case 91: |
| case 92: |
| case 93: |
| case 94: |
| case 95: |
| case 96: |
| case 98: |
| { |
| alt25=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 25, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt25) { |
| case 1 : |
| // InternalSignalDSL.g:1745:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalSignalDSL.g:1745:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalSignalDSL.g:1746:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalSignalDSL.g:1746:4: () |
| // InternalSignalDSL.g:1747:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:1753:4: ( ( ruleFeatureCallID ) ) |
| // InternalSignalDSL.g:1754:5: ( ruleFeatureCallID ) |
| { |
| // InternalSignalDSL.g:1754:5: ( ruleFeatureCallID ) |
| // InternalSignalDSL.g:1755: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_27); |
| 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_28); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:1776:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalSignalDSL.g:1777:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalSignalDSL.g:1777:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalSignalDSL.g:1778: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 : |
| // InternalSignalDSL.g:1797:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalSignalDSL.g:1797:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalSignalDSL.g:1798:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_33); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:1806:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt24=2; |
| alt24 = dfa24.predict(input); |
| switch (alt24) { |
| case 1 : |
| // InternalSignalDSL.g:1807:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalSignalDSL.g:1807:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalSignalDSL.g:1808:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalSignalDSL.g:1818:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalSignalDSL.g:1819:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalSignalDSL.g:1819:7: () |
| // InternalSignalDSL.g:1820:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:1826:7: ( ( ruleOpMultiAssign ) ) |
| // InternalSignalDSL.g:1827:8: ( ruleOpMultiAssign ) |
| { |
| // InternalSignalDSL.g:1827:8: ( ruleOpMultiAssign ) |
| // InternalSignalDSL.g:1828: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_28); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:1844:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalSignalDSL.g:1845:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalSignalDSL.g:1845:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalSignalDSL.g:1846: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" |
| // InternalSignalDSL.g:1869:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1869:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalSignalDSL.g:1870: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" |
| // InternalSignalDSL.g:1876:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:1882:2: (kw= '=' ) |
| // InternalSignalDSL.g:1883:2: kw= '=' |
| { |
| kw=(Token)match(input,39,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" |
| // InternalSignalDSL.g:1891:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1891:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalSignalDSL.g:1892: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" |
| // InternalSignalDSL.g:1898: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 { |
| // InternalSignalDSL.g:1904:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalSignalDSL.g:1905:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalSignalDSL.g:1905:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt27=7; |
| switch ( input.LA(1) ) { |
| case 43: |
| { |
| alt27=1; |
| } |
| break; |
| case 44: |
| { |
| alt27=2; |
| } |
| break; |
| case 45: |
| { |
| alt27=3; |
| } |
| break; |
| case 46: |
| { |
| alt27=4; |
| } |
| break; |
| case 47: |
| { |
| alt27=5; |
| } |
| break; |
| case 48: |
| { |
| alt27=6; |
| } |
| break; |
| case 49: |
| { |
| alt27=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 27, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt27) { |
| case 1 : |
| // InternalSignalDSL.g:1906:3: kw= '+=' |
| { |
| kw=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:1912:3: kw= '-=' |
| { |
| kw=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:1918:3: kw= '*=' |
| { |
| kw=(Token)match(input,45,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:1924:3: kw= '/=' |
| { |
| kw=(Token)match(input,46,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSignalDSL.g:1930:3: kw= '%=' |
| { |
| kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalSignalDSL.g:1936:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalSignalDSL.g:1936:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalSignalDSL.g:1937:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,48,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,48,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,39,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalSignalDSL.g:1954:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalSignalDSL.g:1954:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalSignalDSL.g:1955:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,49,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalSignalDSL.g:1960:4: (kw= '>' )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==49) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalSignalDSL.g:1961:5: kw= '>' |
| { |
| kw=(Token)match(input,49,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,50,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" |
| // InternalSignalDSL.g:1977:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:1977:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalSignalDSL.g:1978: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" |
| // InternalSignalDSL.g:1984: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 { |
| // InternalSignalDSL.g:1990:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalSignalDSL.g:1991:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:1991:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalSignalDSL.g:1992:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2000:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==51) ) { |
| int LA28_2 = input.LA(2); |
| |
| if ( (synpred8_InternalSignalDSL()) ) { |
| alt28=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalSignalDSL.g:2001:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalSignalDSL.g:2001:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalSignalDSL.g:2002:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalSignalDSL.g:2012:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalSignalDSL.g:2013:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalSignalDSL.g:2013:6: () |
| // InternalSignalDSL.g:2014:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2020:6: ( ( ruleOpOr ) ) |
| // InternalSignalDSL.g:2021:7: ( ruleOpOr ) |
| { |
| // InternalSignalDSL.g:2021:7: ( ruleOpOr ) |
| // InternalSignalDSL.g:2022: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_28); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2038:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalSignalDSL.g:2039:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalSignalDSL.g:2039:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalSignalDSL.g:2040:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| 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 loop28; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalSignalDSL.g:2062:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2062:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalSignalDSL.g:2063: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" |
| // InternalSignalDSL.g:2069:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:2075:2: (kw= '||' ) |
| // InternalSignalDSL.g:2076:2: kw= '||' |
| { |
| kw=(Token)match(input,51,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" |
| // InternalSignalDSL.g:2084:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2084:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalSignalDSL.g:2085: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" |
| // InternalSignalDSL.g:2091: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 { |
| // InternalSignalDSL.g:2097:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalSignalDSL.g:2098:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:2098:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalSignalDSL.g:2099:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2107:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop29: |
| do { |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==52) ) { |
| int LA29_2 = input.LA(2); |
| |
| if ( (synpred9_InternalSignalDSL()) ) { |
| alt29=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt29) { |
| case 1 : |
| // InternalSignalDSL.g:2108:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalSignalDSL.g:2108:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalSignalDSL.g:2109:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalSignalDSL.g:2119:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalSignalDSL.g:2120:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalSignalDSL.g:2120:6: () |
| // InternalSignalDSL.g:2121:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2127:6: ( ( ruleOpAnd ) ) |
| // InternalSignalDSL.g:2128:7: ( ruleOpAnd ) |
| { |
| // InternalSignalDSL.g:2128:7: ( ruleOpAnd ) |
| // InternalSignalDSL.g:2129: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_28); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2145:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalSignalDSL.g:2146:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalSignalDSL.g:2146:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalSignalDSL.g:2147:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| 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 loop29; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalSignalDSL.g:2169:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2169:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalSignalDSL.g:2170: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" |
| // InternalSignalDSL.g:2176:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:2182:2: (kw= '&&' ) |
| // InternalSignalDSL.g:2183:2: kw= '&&' |
| { |
| kw=(Token)match(input,52,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" |
| // InternalSignalDSL.g:2191:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2191:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalSignalDSL.g:2192: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" |
| // InternalSignalDSL.g:2198: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 { |
| // InternalSignalDSL.g:2204:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalSignalDSL.g:2205:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:2205:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalSignalDSL.g:2206:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_39); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2214:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop30: |
| do { |
| int alt30=2; |
| switch ( input.LA(1) ) { |
| case 53: |
| { |
| int LA30_2 = input.LA(2); |
| |
| if ( (synpred10_InternalSignalDSL()) ) { |
| alt30=1; |
| } |
| |
| |
| } |
| break; |
| case 54: |
| { |
| int LA30_3 = input.LA(2); |
| |
| if ( (synpred10_InternalSignalDSL()) ) { |
| alt30=1; |
| } |
| |
| |
| } |
| break; |
| case 55: |
| { |
| int LA30_4 = input.LA(2); |
| |
| if ( (synpred10_InternalSignalDSL()) ) { |
| alt30=1; |
| } |
| |
| |
| } |
| break; |
| case 56: |
| { |
| int LA30_5 = input.LA(2); |
| |
| if ( (synpred10_InternalSignalDSL()) ) { |
| alt30=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt30) { |
| case 1 : |
| // InternalSignalDSL.g:2215:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalSignalDSL.g:2215:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalSignalDSL.g:2216:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalSignalDSL.g:2226:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalSignalDSL.g:2227:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalSignalDSL.g:2227:6: () |
| // InternalSignalDSL.g:2228:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2234:6: ( ( ruleOpEquality ) ) |
| // InternalSignalDSL.g:2235:7: ( ruleOpEquality ) |
| { |
| // InternalSignalDSL.g:2235:7: ( ruleOpEquality ) |
| // InternalSignalDSL.g:2236: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_28); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2252:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalSignalDSL.g:2253:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalSignalDSL.g:2253:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalSignalDSL.g:2254:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_39); |
| 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 loop30; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalSignalDSL.g:2276:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2276:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalSignalDSL.g:2277: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" |
| // InternalSignalDSL.g:2283: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 { |
| // InternalSignalDSL.g:2289:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalSignalDSL.g:2290:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalSignalDSL.g:2290:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt31=4; |
| switch ( input.LA(1) ) { |
| case 53: |
| { |
| alt31=1; |
| } |
| break; |
| case 54: |
| { |
| alt31=2; |
| } |
| break; |
| case 55: |
| { |
| alt31=3; |
| } |
| break; |
| case 56: |
| { |
| alt31=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 31, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt31) { |
| case 1 : |
| // InternalSignalDSL.g:2291:3: kw= '==' |
| { |
| kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:2297:3: kw= '!=' |
| { |
| kw=(Token)match(input,54,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:2303:3: kw= '===' |
| { |
| kw=(Token)match(input,55,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:2309:3: kw= '!==' |
| { |
| kw=(Token)match(input,56,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" |
| // InternalSignalDSL.g:2318:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2318:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalSignalDSL.g:2319: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" |
| // InternalSignalDSL.g:2325: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 { |
| // InternalSignalDSL.g:2331:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalSignalDSL.g:2332:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalSignalDSL.g:2332:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalSignalDSL.g:2333: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_40); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2341:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop32: |
| do { |
| int alt32=3; |
| switch ( input.LA(1) ) { |
| case 48: |
| { |
| int LA32_2 = input.LA(2); |
| |
| if ( (synpred12_InternalSignalDSL()) ) { |
| alt32=2; |
| } |
| |
| |
| } |
| break; |
| case 49: |
| { |
| int LA32_3 = input.LA(2); |
| |
| if ( (synpred12_InternalSignalDSL()) ) { |
| alt32=2; |
| } |
| |
| |
| } |
| break; |
| case 57: |
| { |
| int LA32_4 = input.LA(2); |
| |
| if ( (synpred11_InternalSignalDSL()) ) { |
| alt32=1; |
| } |
| |
| |
| } |
| break; |
| case 50: |
| { |
| int LA32_5 = input.LA(2); |
| |
| if ( (synpred12_InternalSignalDSL()) ) { |
| alt32=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt32) { |
| case 1 : |
| // InternalSignalDSL.g:2342:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:2342:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:2343:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalSignalDSL.g:2343:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalSignalDSL.g:2344:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalSignalDSL.g:2350:6: ( () otherlv_2= 'instanceof' ) |
| // InternalSignalDSL.g:2351:7: () otherlv_2= 'instanceof' |
| { |
| // InternalSignalDSL.g:2351:7: () |
| // InternalSignalDSL.g:2352:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,57,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2364:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:2365:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:2365:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:2366:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_40); |
| 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 : |
| // InternalSignalDSL.g:2385:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalSignalDSL.g:2385:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalSignalDSL.g:2386:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalSignalDSL.g:2386:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalSignalDSL.g:2387:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalSignalDSL.g:2397:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalSignalDSL.g:2398:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalSignalDSL.g:2398:7: () |
| // InternalSignalDSL.g:2399:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2405:7: ( ( ruleOpCompare ) ) |
| // InternalSignalDSL.g:2406:8: ( ruleOpCompare ) |
| { |
| // InternalSignalDSL.g:2406:8: ( ruleOpCompare ) |
| // InternalSignalDSL.g:2407: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_28); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2423:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalSignalDSL.g:2424:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalSignalDSL.g:2424:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalSignalDSL.g:2425:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_40); |
| 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 loop32; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalSignalDSL.g:2448:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2448:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalSignalDSL.g:2449: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" |
| // InternalSignalDSL.g:2455: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 { |
| // InternalSignalDSL.g:2461:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalSignalDSL.g:2462:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalSignalDSL.g:2462:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt33=4; |
| switch ( input.LA(1) ) { |
| case 50: |
| { |
| alt33=1; |
| } |
| break; |
| case 48: |
| { |
| int LA33_2 = input.LA(2); |
| |
| if ( (LA33_2==EOF||(LA33_2>=RULE_STRING && LA33_2<=RULE_DECIMAL)||LA33_2==14||(LA33_2>=29 && LA33_2<=31)||LA33_2==36||(LA33_2>=40 && LA33_2<=41)||LA33_2==48||(LA33_2>=64 && LA33_2<=65)||LA33_2==69||LA33_2==77||LA33_2==79||(LA33_2>=82 && LA33_2<=84)||(LA33_2>=87 && LA33_2<=96)||LA33_2==98) ) { |
| alt33=4; |
| } |
| else if ( (LA33_2==39) ) { |
| alt33=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 33, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 49: |
| { |
| alt33=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 33, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt33) { |
| case 1 : |
| // InternalSignalDSL.g:2463:3: kw= '>=' |
| { |
| kw=(Token)match(input,50,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:2469:3: (kw= '<' kw= '=' ) |
| { |
| // InternalSignalDSL.g:2469:3: (kw= '<' kw= '=' ) |
| // InternalSignalDSL.g:2470:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,48,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,39,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:2482:3: kw= '>' |
| { |
| kw=(Token)match(input,49,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:2488:3: kw= '<' |
| { |
| kw=(Token)match(input,48,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" |
| // InternalSignalDSL.g:2497:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2497:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalSignalDSL.g:2498: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" |
| // InternalSignalDSL.g:2504: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 { |
| // InternalSignalDSL.g:2510:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalSignalDSL.g:2511:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:2511:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalSignalDSL.g:2512:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2520:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop34: |
| do { |
| int alt34=2; |
| alt34 = dfa34.predict(input); |
| switch (alt34) { |
| case 1 : |
| // InternalSignalDSL.g:2521:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalSignalDSL.g:2521:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalSignalDSL.g:2522:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalSignalDSL.g:2532:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalSignalDSL.g:2533:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalSignalDSL.g:2533:6: () |
| // InternalSignalDSL.g:2534:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2540:6: ( ( ruleOpOther ) ) |
| // InternalSignalDSL.g:2541:7: ( ruleOpOther ) |
| { |
| // InternalSignalDSL.g:2541:7: ( ruleOpOther ) |
| // InternalSignalDSL.g:2542: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_28); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2558:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalSignalDSL.g:2559:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalSignalDSL.g:2559:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalSignalDSL.g:2560:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| 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 loop34; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalSignalDSL.g:2582:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2582:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalSignalDSL.g:2583: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" |
| // InternalSignalDSL.g:2589: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 { |
| // InternalSignalDSL.g:2595:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalSignalDSL.g:2596:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalSignalDSL.g:2596:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt37=9; |
| alt37 = dfa37.predict(input); |
| switch (alt37) { |
| case 1 : |
| // InternalSignalDSL.g:2597:3: kw= '->' |
| { |
| kw=(Token)match(input,58,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:2603:3: kw= '..<' |
| { |
| kw=(Token)match(input,59,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:2609:3: (kw= '>' kw= '..' ) |
| { |
| // InternalSignalDSL.g:2609:3: (kw= '>' kw= '..' ) |
| // InternalSignalDSL.g:2610:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,49,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:2622:3: kw= '..' |
| { |
| kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSignalDSL.g:2628:3: kw= '=>' |
| { |
| kw=(Token)match(input,61,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalSignalDSL.g:2634:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalSignalDSL.g:2634:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalSignalDSL.g:2635:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,49,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalSignalDSL.g:2640:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==49) ) { |
| int LA35_1 = input.LA(2); |
| |
| if ( (LA35_1==EOF||(LA35_1>=RULE_STRING && LA35_1<=RULE_DECIMAL)||LA35_1==14||(LA35_1>=29 && LA35_1<=31)||LA35_1==36||(LA35_1>=40 && LA35_1<=41)||LA35_1==48||(LA35_1>=64 && LA35_1<=65)||LA35_1==69||LA35_1==77||LA35_1==79||(LA35_1>=82 && LA35_1<=84)||(LA35_1>=87 && LA35_1<=96)||LA35_1==98) ) { |
| alt35=2; |
| } |
| else if ( (LA35_1==49) && (synpred14_InternalSignalDSL())) { |
| alt35=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 35, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 35, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalSignalDSL.g:2641:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalSignalDSL.g:2641:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalSignalDSL.g:2642:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalSignalDSL.g:2647:6: (kw= '>' kw= '>' ) |
| // InternalSignalDSL.g:2648:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,49,FOLLOW_44); 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,49,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 : |
| // InternalSignalDSL.g:2661:5: kw= '>' |
| { |
| kw=(Token)match(input,49,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 : |
| // InternalSignalDSL.g:2669:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalSignalDSL.g:2669:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalSignalDSL.g:2670:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,48,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalSignalDSL.g:2675:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt36=3; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==48) ) { |
| int LA36_1 = input.LA(2); |
| |
| if ( (synpred15_InternalSignalDSL()) ) { |
| alt36=1; |
| } |
| else if ( (true) ) { |
| alt36=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA36_0==61) ) { |
| alt36=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalSignalDSL.g:2676:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalSignalDSL.g:2676:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalSignalDSL.g:2677:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalSignalDSL.g:2682:6: (kw= '<' kw= '<' ) |
| // InternalSignalDSL.g:2683:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,48,FOLLOW_34); 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,48,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 : |
| // InternalSignalDSL.g:2696:5: kw= '<' |
| { |
| kw=(Token)match(input,48,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 : |
| // InternalSignalDSL.g:2702:5: kw= '=>' |
| { |
| kw=(Token)match(input,61,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 : |
| // InternalSignalDSL.g:2710:3: kw= '<>' |
| { |
| kw=(Token)match(input,62,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalSignalDSL.g:2716:3: kw= '?:' |
| { |
| kw=(Token)match(input,63,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" |
| // InternalSignalDSL.g:2725:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2725:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalSignalDSL.g:2726: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" |
| // InternalSignalDSL.g:2732: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 { |
| // InternalSignalDSL.g:2738:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalSignalDSL.g:2739:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:2739:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalSignalDSL.g:2740:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_46); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2748:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop38: |
| do { |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==64) ) { |
| int LA38_2 = input.LA(2); |
| |
| if ( (synpred16_InternalSignalDSL()) ) { |
| alt38=1; |
| } |
| |
| |
| } |
| else if ( (LA38_0==65) ) { |
| int LA38_3 = input.LA(2); |
| |
| if ( (synpred16_InternalSignalDSL()) ) { |
| alt38=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt38) { |
| case 1 : |
| // InternalSignalDSL.g:2749:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalSignalDSL.g:2749:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalSignalDSL.g:2750:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalSignalDSL.g:2760:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalSignalDSL.g:2761:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalSignalDSL.g:2761:6: () |
| // InternalSignalDSL.g:2762:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2768:6: ( ( ruleOpAdd ) ) |
| // InternalSignalDSL.g:2769:7: ( ruleOpAdd ) |
| { |
| // InternalSignalDSL.g:2769:7: ( ruleOpAdd ) |
| // InternalSignalDSL.g:2770: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_28); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2786:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalSignalDSL.g:2787:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalSignalDSL.g:2787:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalSignalDSL.g:2788:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_46); |
| 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 loop38; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalSignalDSL.g:2810:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2810:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalSignalDSL.g:2811: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" |
| // InternalSignalDSL.g:2817:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:2823:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalSignalDSL.g:2824:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalSignalDSL.g:2824:2: (kw= '+' | kw= '-' ) |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==64) ) { |
| alt39=1; |
| } |
| else if ( (LA39_0==65) ) { |
| alt39=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 39, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalSignalDSL.g:2825:3: kw= '+' |
| { |
| kw=(Token)match(input,64,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:2831:3: kw= '-' |
| { |
| kw=(Token)match(input,65,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" |
| // InternalSignalDSL.g:2840:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2840:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalSignalDSL.g:2841: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" |
| // InternalSignalDSL.g:2847: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 { |
| // InternalSignalDSL.g:2853:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalSignalDSL.g:2854:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalSignalDSL.g:2854:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalSignalDSL.g:2855:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:2863:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop40: |
| do { |
| int alt40=2; |
| switch ( input.LA(1) ) { |
| case 32: |
| { |
| int LA40_2 = input.LA(2); |
| |
| if ( (synpred17_InternalSignalDSL()) ) { |
| alt40=1; |
| } |
| |
| |
| } |
| break; |
| case 66: |
| { |
| int LA40_3 = input.LA(2); |
| |
| if ( (synpred17_InternalSignalDSL()) ) { |
| alt40=1; |
| } |
| |
| |
| } |
| break; |
| case 67: |
| { |
| int LA40_4 = input.LA(2); |
| |
| if ( (synpred17_InternalSignalDSL()) ) { |
| alt40=1; |
| } |
| |
| |
| } |
| break; |
| case 68: |
| { |
| int LA40_5 = input.LA(2); |
| |
| if ( (synpred17_InternalSignalDSL()) ) { |
| alt40=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt40) { |
| case 1 : |
| // InternalSignalDSL.g:2864:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalSignalDSL.g:2864:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalSignalDSL.g:2865:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalSignalDSL.g:2875:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalSignalDSL.g:2876:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalSignalDSL.g:2876:6: () |
| // InternalSignalDSL.g:2877:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2883:6: ( ( ruleOpMulti ) ) |
| // InternalSignalDSL.g:2884:7: ( ruleOpMulti ) |
| { |
| // InternalSignalDSL.g:2884:7: ( ruleOpMulti ) |
| // InternalSignalDSL.g:2885: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_28); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:2901:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalSignalDSL.g:2902:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalSignalDSL.g:2902:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalSignalDSL.g:2903:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_47); |
| 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 loop40; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalSignalDSL.g:2925:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2925:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalSignalDSL.g:2926: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" |
| // InternalSignalDSL.g:2932: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 { |
| // InternalSignalDSL.g:2938:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalSignalDSL.g:2939:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalSignalDSL.g:2939:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt41=4; |
| switch ( input.LA(1) ) { |
| case 32: |
| { |
| alt41=1; |
| } |
| break; |
| case 66: |
| { |
| alt41=2; |
| } |
| break; |
| case 67: |
| { |
| alt41=3; |
| } |
| break; |
| case 68: |
| { |
| alt41=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 41, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt41) { |
| case 1 : |
| // InternalSignalDSL.g:2940:3: kw= '*' |
| { |
| kw=(Token)match(input,32,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:2946:3: kw= '**' |
| { |
| kw=(Token)match(input,66,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:2952:3: kw= '/' |
| { |
| kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:2958:3: kw= '%' |
| { |
| kw=(Token)match(input,68,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" |
| // InternalSignalDSL.g:2967:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:2967:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalSignalDSL.g:2968: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" |
| // InternalSignalDSL.g:2974: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 { |
| // InternalSignalDSL.g:2980:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalSignalDSL.g:2981:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalSignalDSL.g:2981:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( ((LA42_0>=64 && LA42_0<=65)||LA42_0==69) ) { |
| alt42=1; |
| } |
| else if ( ((LA42_0>=RULE_STRING && LA42_0<=RULE_DECIMAL)||LA42_0==14||(LA42_0>=29 && LA42_0<=31)||LA42_0==36||(LA42_0>=40 && LA42_0<=41)||LA42_0==48||LA42_0==77||LA42_0==79||(LA42_0>=82 && LA42_0<=84)||(LA42_0>=87 && LA42_0<=96)||LA42_0==98) ) { |
| 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 : |
| // InternalSignalDSL.g:2982:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalSignalDSL.g:2982:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalSignalDSL.g:2983:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalSignalDSL.g:2983:4: () |
| // InternalSignalDSL.g:2984:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:2990:4: ( ( ruleOpUnary ) ) |
| // InternalSignalDSL.g:2991:5: ( ruleOpUnary ) |
| { |
| // InternalSignalDSL.g:2991:5: ( ruleOpUnary ) |
| // InternalSignalDSL.g:2992: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_28); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3006:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalSignalDSL.g:3007:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalSignalDSL.g:3007:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalSignalDSL.g:3008: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 : |
| // InternalSignalDSL.g:3027: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" |
| // InternalSignalDSL.g:3039:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3039:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalSignalDSL.g:3040: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" |
| // InternalSignalDSL.g:3046: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 { |
| // InternalSignalDSL.g:3052:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalSignalDSL.g:3053:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalSignalDSL.g:3053:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt43=3; |
| switch ( input.LA(1) ) { |
| case 69: |
| { |
| alt43=1; |
| } |
| break; |
| case 65: |
| { |
| alt43=2; |
| } |
| break; |
| case 64: |
| { |
| alt43=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 43, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt43) { |
| case 1 : |
| // InternalSignalDSL.g:3054:3: kw= '!' |
| { |
| kw=(Token)match(input,69,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3060:3: kw= '-' |
| { |
| kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:3066:3: kw= '+' |
| { |
| kw=(Token)match(input,64,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" |
| // InternalSignalDSL.g:3075:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3075:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalSignalDSL.g:3076: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" |
| // InternalSignalDSL.g:3082: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 { |
| // InternalSignalDSL.g:3088:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalSignalDSL.g:3089:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalSignalDSL.g:3089:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalSignalDSL.g:3090: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_48); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:3098:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop44: |
| do { |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==70) ) { |
| int LA44_2 = input.LA(2); |
| |
| if ( (synpred18_InternalSignalDSL()) ) { |
| alt44=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt44) { |
| case 1 : |
| // InternalSignalDSL.g:3099:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalSignalDSL.g:3099:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalSignalDSL.g:3100:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalSignalDSL.g:3106:5: ( () otherlv_2= 'as' ) |
| // InternalSignalDSL.g:3107:6: () otherlv_2= 'as' |
| { |
| // InternalSignalDSL.g:3107:6: () |
| // InternalSignalDSL.g:3108:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,70,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3120:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:3121:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:3121:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:3122:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| 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 loop44; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalSignalDSL.g:3144:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3144:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalSignalDSL.g:3145: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" |
| // InternalSignalDSL.g:3151: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 { |
| // InternalSignalDSL.g:3157:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalSignalDSL.g:3158:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalSignalDSL.g:3158:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalSignalDSL.g:3159:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:3167:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==71) ) { |
| int LA45_1 = input.LA(2); |
| |
| if ( (synpred19_InternalSignalDSL()) ) { |
| alt45=1; |
| } |
| } |
| else if ( (LA45_0==72) ) { |
| int LA45_2 = input.LA(2); |
| |
| if ( (synpred19_InternalSignalDSL()) ) { |
| alt45=1; |
| } |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalSignalDSL.g:3168:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalSignalDSL.g:3178:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalSignalDSL.g:3179:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalSignalDSL.g:3179:5: () |
| // InternalSignalDSL.g:3180:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:3186:5: ( ( ruleOpPostfix ) ) |
| // InternalSignalDSL.g:3187:6: ( ruleOpPostfix ) |
| { |
| // InternalSignalDSL.g:3187:6: ( ruleOpPostfix ) |
| // InternalSignalDSL.g:3188: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" |
| // InternalSignalDSL.g:3208:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3208:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalSignalDSL.g:3209: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" |
| // InternalSignalDSL.g:3215:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:3221:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalSignalDSL.g:3222:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalSignalDSL.g:3222:2: (kw= '++' | kw= '--' ) |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==71) ) { |
| alt46=1; |
| } |
| else if ( (LA46_0==72) ) { |
| 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 : |
| // InternalSignalDSL.g:3223:3: kw= '++' |
| { |
| kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3229:3: kw= '--' |
| { |
| kw=(Token)match(input,72,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" |
| // InternalSignalDSL.g:3238:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3238:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalSignalDSL.g:3239: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" |
| // InternalSignalDSL.g:3245: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 { |
| // InternalSignalDSL.g:3251: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 ) )? ) )* ) ) |
| // InternalSignalDSL.g:3252: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 ) )? ) )* ) |
| { |
| // InternalSignalDSL.g:3252: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 ) )? ) )* ) |
| // InternalSignalDSL.g:3253: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_50); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:3261: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 ) )? ) )* |
| loop55: |
| do { |
| int alt55=3; |
| switch ( input.LA(1) ) { |
| case 73: |
| { |
| int LA55_2 = input.LA(2); |
| |
| if ( (synpred20_InternalSignalDSL()) ) { |
| alt55=1; |
| } |
| else if ( (synpred21_InternalSignalDSL()) ) { |
| alt55=2; |
| } |
| |
| |
| } |
| break; |
| case 74: |
| { |
| int LA55_3 = input.LA(2); |
| |
| if ( (synpred20_InternalSignalDSL()) ) { |
| alt55=1; |
| } |
| else if ( (synpred21_InternalSignalDSL()) ) { |
| alt55=2; |
| } |
| |
| |
| } |
| break; |
| case 75: |
| { |
| int LA55_4 = input.LA(2); |
| |
| if ( (synpred21_InternalSignalDSL()) ) { |
| alt55=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt55) { |
| case 1 : |
| // InternalSignalDSL.g:3262:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalSignalDSL.g:3262:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalSignalDSL.g:3263:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalSignalDSL.g:3263:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalSignalDSL.g:3264:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalSignalDSL.g:3284:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalSignalDSL.g:3285:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalSignalDSL.g:3285:7: () |
| // InternalSignalDSL.g:3286:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:3292:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==73) ) { |
| alt47=1; |
| } |
| else if ( (LA47_0==74) ) { |
| 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 : |
| // InternalSignalDSL.g:3293:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,73,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3298:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalSignalDSL.g:3298:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalSignalDSL.g:3299:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalSignalDSL.g:3299:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalSignalDSL.g:3300:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,74,FOLLOW_51); 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; |
| |
| } |
| |
| // InternalSignalDSL.g:3313:7: ( ( ruleFeatureCallID ) ) |
| // InternalSignalDSL.g:3314:8: ( ruleFeatureCallID ) |
| { |
| // InternalSignalDSL.g:3314:8: ( ruleFeatureCallID ) |
| // InternalSignalDSL.g:3315: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_27); |
| 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_28); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3338:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalSignalDSL.g:3339:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalSignalDSL.g:3339:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalSignalDSL.g:3340:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| 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 : |
| // InternalSignalDSL.g:3359: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 ) )? ) |
| { |
| // InternalSignalDSL.g:3359: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 ) )? ) |
| // InternalSignalDSL.g:3360: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 ) )? |
| { |
| // InternalSignalDSL.g:3360:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalSignalDSL.g:3361:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalSignalDSL.g:3381:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalSignalDSL.g:3382:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalSignalDSL.g:3382:7: () |
| // InternalSignalDSL.g:3383:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:3389:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt48=3; |
| switch ( input.LA(1) ) { |
| case 73: |
| { |
| alt48=1; |
| } |
| break; |
| case 75: |
| { |
| alt48=2; |
| } |
| break; |
| case 74: |
| { |
| alt48=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt48) { |
| case 1 : |
| // InternalSignalDSL.g:3390:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,73,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3395:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalSignalDSL.g:3395:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalSignalDSL.g:3396:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalSignalDSL.g:3396:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalSignalDSL.g:3397:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,75,FOLLOW_52); 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 : |
| // InternalSignalDSL.g:3410:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalSignalDSL.g:3410:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalSignalDSL.g:3411:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalSignalDSL.g:3411:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalSignalDSL.g:3412:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,74,FOLLOW_52); 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; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3427:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==48) ) { |
| alt50=1; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalSignalDSL.g:3428:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,48,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:3432:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:3433:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:3433:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:3434:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3451:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop49: |
| do { |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==37) ) { |
| alt49=1; |
| } |
| |
| |
| switch (alt49) { |
| case 1 : |
| // InternalSignalDSL.g:3452:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,37,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalSignalDSL.g:3456:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:3457:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:3457:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:3458:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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 loop49; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,49,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:3481:5: ( ( ruleIdOrSuper ) ) |
| // InternalSignalDSL.g:3482:6: ( ruleIdOrSuper ) |
| { |
| // InternalSignalDSL.g:3482:6: ( ruleIdOrSuper ) |
| // InternalSignalDSL.g:3483: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_55); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3497: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 alt53=2; |
| alt53 = dfa53.predict(input); |
| switch (alt53) { |
| case 1 : |
| // InternalSignalDSL.g:3498: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= ')' |
| { |
| // InternalSignalDSL.g:3498:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalSignalDSL.g:3499:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalSignalDSL.g:3503:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalSignalDSL.g:3504:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,36,FOLLOW_56); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3516:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt52=3; |
| alt52 = dfa52.predict(input); |
| switch (alt52) { |
| case 1 : |
| // InternalSignalDSL.g:3517:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalSignalDSL.g:3517:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalSignalDSL.g:3518:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalSignalDSL.g:3543:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalSignalDSL.g:3544:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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 : |
| // InternalSignalDSL.g:3562:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:3562:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalSignalDSL.g:3563:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:3563:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:3564:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:3564:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalSignalDSL.g:3565:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3582:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop51: |
| do { |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==37) ) { |
| alt51=1; |
| } |
| |
| |
| switch (alt51) { |
| case 1 : |
| // InternalSignalDSL.g:3583:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:3587:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:3588:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:3588:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalSignalDSL.g:3589:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop51; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,38,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:3614:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt54=2; |
| alt54 = dfa54.predict(input); |
| switch (alt54) { |
| case 1 : |
| // InternalSignalDSL.g:3615:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalSignalDSL.g:3621:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalSignalDSL.g:3622:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| 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 loop55; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalSignalDSL.g:3645:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3645:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalSignalDSL.g:3646: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" |
| // InternalSignalDSL.g:3652: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 { |
| // InternalSignalDSL.g:3658: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 ) ) |
| // InternalSignalDSL.g:3659: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 ) |
| { |
| // InternalSignalDSL.g:3659: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 alt56=15; |
| alt56 = dfa56.predict(input); |
| switch (alt56) { |
| case 1 : |
| // InternalSignalDSL.g:3660: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 : |
| // InternalSignalDSL.g:3669: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 : |
| // InternalSignalDSL.g:3678: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 : |
| // InternalSignalDSL.g:3687:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalSignalDSL.g:3687:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalSignalDSL.g:3688: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 : |
| // InternalSignalDSL.g:3705: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 : |
| // InternalSignalDSL.g:3714: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 : |
| // InternalSignalDSL.g:3723: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 : |
| // InternalSignalDSL.g:3732:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalSignalDSL.g:3732:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalSignalDSL.g:3733: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 : |
| // InternalSignalDSL.g:3756: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 : |
| // InternalSignalDSL.g:3765: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 : |
| // InternalSignalDSL.g:3774: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 : |
| // InternalSignalDSL.g:3783: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 : |
| // InternalSignalDSL.g:3792: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 : |
| // InternalSignalDSL.g:3801: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 : |
| // InternalSignalDSL.g:3810: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" |
| // InternalSignalDSL.g:3822:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3822:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalSignalDSL.g:3823: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" |
| // InternalSignalDSL.g:3829: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 { |
| // InternalSignalDSL.g:3835: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 ) ) |
| // InternalSignalDSL.g:3836: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 ) |
| { |
| // InternalSignalDSL.g:3836: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 alt57=7; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==40) ) { |
| alt57=1; |
| } |
| else if ( (LA57_0==41) && (synpred27_InternalSignalDSL())) { |
| alt57=2; |
| } |
| else if ( ((LA57_0>=90 && LA57_0<=91)) ) { |
| alt57=3; |
| } |
| else if ( (LA57_0==RULE_INT||(LA57_0>=RULE_HEX && LA57_0<=RULE_DECIMAL)) ) { |
| alt57=4; |
| } |
| else if ( (LA57_0==92) ) { |
| alt57=5; |
| } |
| else if ( (LA57_0==RULE_STRING) ) { |
| alt57=6; |
| } |
| else if ( (LA57_0==93) ) { |
| alt57=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 57, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt57) { |
| case 1 : |
| // InternalSignalDSL.g:3837: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 : |
| // InternalSignalDSL.g:3846:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalSignalDSL.g:3846:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalSignalDSL.g:3847: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 : |
| // InternalSignalDSL.g:3863: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 : |
| // InternalSignalDSL.g:3872: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 : |
| // InternalSignalDSL.g:3881: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 : |
| // InternalSignalDSL.g:3890: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 : |
| // InternalSignalDSL.g:3899: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" |
| // InternalSignalDSL.g:3911:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3911:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalSignalDSL.g:3912: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" |
| // InternalSignalDSL.g:3918: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 { |
| // InternalSignalDSL.g:3924:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalSignalDSL.g:3925:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalSignalDSL.g:3925:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==40) ) { |
| int LA58_1 = input.LA(2); |
| |
| if ( (LA58_1==41) ) { |
| alt58=2; |
| } |
| else if ( (LA58_1==14) ) { |
| alt58=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 58, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 58, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt58) { |
| case 1 : |
| // InternalSignalDSL.g:3926: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 : |
| // InternalSignalDSL.g:3935: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" |
| // InternalSignalDSL.g:3947:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:3947:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalSignalDSL.g:3948: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" |
| // InternalSignalDSL.g:3954: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 { |
| // InternalSignalDSL.g:3960:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalSignalDSL.g:3961:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalSignalDSL.g:3961:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalSignalDSL.g:3962:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalSignalDSL.g:3962:3: () |
| // InternalSignalDSL.g:3963:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:3977:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( ((LA60_0>=RULE_STRING && LA60_0<=RULE_DECIMAL)||LA60_0==14||(LA60_0>=29 && LA60_0<=31)||LA60_0==36||(LA60_0>=40 && LA60_0<=41)||LA60_0==48||(LA60_0>=64 && LA60_0<=65)||LA60_0==69||LA60_0==77||LA60_0==79||(LA60_0>=82 && LA60_0<=84)||(LA60_0>=87 && LA60_0<=96)||LA60_0==98) ) { |
| alt60=1; |
| } |
| switch (alt60) { |
| case 1 : |
| // InternalSignalDSL.g:3978:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:3978:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:3979:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:3979:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:3980:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3997:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop59: |
| do { |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==37) ) { |
| alt59=1; |
| } |
| |
| |
| switch (alt59) { |
| case 1 : |
| // InternalSignalDSL.g:3998:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalSignalDSL.g:4002:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4003:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4003:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4004:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_59); |
| 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 loop59; |
| } |
| } 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" |
| // InternalSignalDSL.g:4031:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4031:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalSignalDSL.g:4032: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" |
| // InternalSignalDSL.g:4038: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 { |
| // InternalSignalDSL.g:4044:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalSignalDSL.g:4045:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalSignalDSL.g:4045:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalSignalDSL.g:4046:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalSignalDSL.g:4046:3: () |
| // InternalSignalDSL.g:4047:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,40,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,41,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:4061:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( ((LA62_0>=RULE_STRING && LA62_0<=RULE_DECIMAL)||LA62_0==14||(LA62_0>=29 && LA62_0<=31)||LA62_0==36||(LA62_0>=40 && LA62_0<=41)||LA62_0==48||(LA62_0>=64 && LA62_0<=65)||LA62_0==69||LA62_0==77||LA62_0==79||(LA62_0>=82 && LA62_0<=84)||(LA62_0>=87 && LA62_0<=96)||LA62_0==98) ) { |
| alt62=1; |
| } |
| switch (alt62) { |
| case 1 : |
| // InternalSignalDSL.g:4062:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:4062:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4063:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4063:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:4064:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4081:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop61: |
| do { |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( (LA61_0==37) ) { |
| alt61=1; |
| } |
| |
| |
| switch (alt61) { |
| case 1 : |
| // InternalSignalDSL.g:4082:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalSignalDSL.g:4086:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4087:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4087:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4088:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| 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 loop61; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,42,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" |
| // InternalSignalDSL.g:4115:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4115:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalSignalDSL.g:4116: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" |
| // InternalSignalDSL.g:4122: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 { |
| // InternalSignalDSL.g:4128: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= ']' ) ) |
| // InternalSignalDSL.g:4129: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= ']' ) |
| { |
| // InternalSignalDSL.g:4129: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= ']' ) |
| // InternalSignalDSL.g:4130: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= ']' |
| { |
| // InternalSignalDSL.g:4130:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalSignalDSL.g:4131:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalSignalDSL.g:4137:4: ( () otherlv_1= '[' ) |
| // InternalSignalDSL.g:4138:5: () otherlv_1= '[' |
| { |
| // InternalSignalDSL.g:4138:5: () |
| // InternalSignalDSL.g:4139:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,41,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4151:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt65=2; |
| alt65 = dfa65.predict(input); |
| switch (alt65) { |
| case 1 : |
| // InternalSignalDSL.g:4152:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalSignalDSL.g:4175:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalSignalDSL.g:4176:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalSignalDSL.g:4176:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt64=2; |
| int LA64_0 = input.LA(1); |
| |
| if ( (LA64_0==RULE_ID||LA64_0==36||LA64_0==61) ) { |
| alt64=1; |
| } |
| switch (alt64) { |
| case 1 : |
| // InternalSignalDSL.g:4177:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:4177:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4178:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4178:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4179:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4196:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop63: |
| do { |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==37) ) { |
| alt63=1; |
| } |
| |
| |
| switch (alt63) { |
| case 1 : |
| // InternalSignalDSL.g:4197:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,37,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalSignalDSL.g:4201:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4202:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4202:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4203:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| 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 loop63; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:4222:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalSignalDSL.g:4223:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalSignalDSL.g:4223:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalSignalDSL.g:4224:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,76,FOLLOW_62); 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; |
| |
| } |
| |
| // InternalSignalDSL.g:4238:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalSignalDSL.g:4239:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalSignalDSL.g:4239:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalSignalDSL.g:4240:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_63); |
| 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,42,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" |
| // InternalSignalDSL.g:4265:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4265:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalSignalDSL.g:4266: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" |
| // InternalSignalDSL.g:4272: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 { |
| // InternalSignalDSL.g:4278:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalSignalDSL.g:4279:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalSignalDSL.g:4279:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalSignalDSL.g:4280:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalSignalDSL.g:4280:3: () |
| // InternalSignalDSL.g:4281:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:4287:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop67: |
| do { |
| int alt67=2; |
| int LA67_0 = input.LA(1); |
| |
| if ( ((LA67_0>=RULE_STRING && LA67_0<=RULE_DECIMAL)||LA67_0==14||(LA67_0>=29 && LA67_0<=31)||LA67_0==36||(LA67_0>=40 && LA67_0<=41)||LA67_0==48||(LA67_0>=64 && LA67_0<=65)||LA67_0==69||LA67_0==77||LA67_0==79||(LA67_0>=82 && LA67_0<=96)||LA67_0==98) ) { |
| alt67=1; |
| } |
| |
| |
| switch (alt67) { |
| case 1 : |
| // InternalSignalDSL.g:4288:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalSignalDSL.g:4288:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalSignalDSL.g:4289:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalSignalDSL.g:4289:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalSignalDSL.g:4290:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_64); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4307:4: (otherlv_2= ';' )? |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( (LA66_0==34) ) { |
| alt66=1; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalSignalDSL.g:4308:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,34,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop67; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalSignalDSL.g:4318:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4318:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalSignalDSL.g:4319: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" |
| // InternalSignalDSL.g:4325: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 { |
| // InternalSignalDSL.g:4331:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalSignalDSL.g:4332:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:4332:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:4333:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:4333:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalSignalDSL.g:4334:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalSignalDSL.g:4359:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalSignalDSL.g:4360:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalSignalDSL.g:4360:5: () |
| // InternalSignalDSL.g:4361:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:4367:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( (LA69_0==RULE_ID||LA69_0==36||LA69_0==61) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalSignalDSL.g:4368:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:4368:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4369:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4369:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4370:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4387:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop68: |
| do { |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==37) ) { |
| alt68=1; |
| } |
| |
| |
| switch (alt68) { |
| case 1 : |
| // InternalSignalDSL.g:4388:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,37,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:4392:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4393:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4393:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4394:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| 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 loop68; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:4413:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalSignalDSL.g:4414:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalSignalDSL.g:4414:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalSignalDSL.g:4415:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,76,FOLLOW_28); 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, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4429:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4430:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4430:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4431: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" |
| // InternalSignalDSL.g:4452:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4452:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalSignalDSL.g:4453: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" |
| // InternalSignalDSL.g:4459: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 { |
| // InternalSignalDSL.g:4465:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalSignalDSL.g:4466:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalSignalDSL.g:4466:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalSignalDSL.g:4467:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,36,FOLLOW_28); 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_26); |
| 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,38,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" |
| // InternalSignalDSL.g:4487:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4487:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalSignalDSL.g:4488: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" |
| // InternalSignalDSL.g:4494: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 { |
| // InternalSignalDSL.g:4500: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 ) ) )? ) ) |
| // InternalSignalDSL.g:4501: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 ) ) )? ) |
| { |
| // InternalSignalDSL.g:4501: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 ) ) )? ) |
| // InternalSignalDSL.g:4502: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 ) ) )? |
| { |
| // InternalSignalDSL.g:4502:3: () |
| // InternalSignalDSL.g:4503:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,77,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:4517:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4518:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4518:4: (lv_if_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:4519:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:4540:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4541:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4541:4: (lv_then_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4542:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4559:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==78) ) { |
| int LA70_1 = input.LA(2); |
| |
| if ( (synpred31_InternalSignalDSL()) ) { |
| alt70=1; |
| } |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalSignalDSL.g:4560:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:4560:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalSignalDSL.g:4561:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,78,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:4567:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4568:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4568:5: (lv_else_7_0= ruleXExpression ) |
| // InternalSignalDSL.g:4569: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" |
| // InternalSignalDSL.g:4591:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4591:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalSignalDSL.g:4592: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" |
| // InternalSignalDSL.g:4598: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 { |
| // InternalSignalDSL.g:4604: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= '}' ) ) |
| // InternalSignalDSL.g:4605: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= '}' ) |
| { |
| // InternalSignalDSL.g:4605: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= '}' ) |
| // InternalSignalDSL.g:4606: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= '}' |
| { |
| // InternalSignalDSL.g:4606:3: () |
| // InternalSignalDSL.g:4607:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,79,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:4617: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 alt72=2; |
| alt72 = dfa72.predict(input); |
| switch (alt72) { |
| case 1 : |
| // InternalSignalDSL.g:4618:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalSignalDSL.g:4618:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalSignalDSL.g:4619:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalSignalDSL.g:4619:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalSignalDSL.g:4620:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalSignalDSL.g:4630:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalSignalDSL.g:4631:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,36,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalSignalDSL.g:4635:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4636:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4636:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4637:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| 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,24,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4660:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4661:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4661:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4662:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:4685:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:4685:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:4686:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:4686:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt71=2; |
| alt71 = dfa71.predict(input); |
| switch (alt71) { |
| case 1 : |
| // InternalSignalDSL.g:4687:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalSignalDSL.g:4696:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalSignalDSL.g:4697:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalSignalDSL.g:4697:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4698:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4698:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4699:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| 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,24,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:4722:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4723:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4723:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalSignalDSL.g:4724:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| 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_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalSignalDSL.g:4747:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop73: |
| do { |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==RULE_ID||LA73_0==24||(LA73_0>=36 && LA73_0<=37)||LA73_0==61||LA73_0==81) ) { |
| alt73=1; |
| } |
| |
| |
| switch (alt73) { |
| case 1 : |
| // InternalSignalDSL.g:4748:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalSignalDSL.g:4748:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalSignalDSL.g:4749:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_69); |
| 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 loop73; |
| } |
| } while (true); |
| |
| // InternalSignalDSL.g:4766:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==80) ) { |
| alt74=1; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalSignalDSL.g:4767:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,80,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,24,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalSignalDSL.g:4775:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4776:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4776:5: (lv_default_14_0= ruleXExpression ) |
| // InternalSignalDSL.g:4777:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_70); |
| 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" |
| // InternalSignalDSL.g:4803:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4803:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalSignalDSL.g:4804: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" |
| // InternalSignalDSL.g:4810: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 { |
| // InternalSignalDSL.g:4816: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= ',' ) ) ) ) ) |
| // InternalSignalDSL.g:4817: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= ',' ) ) ) ) |
| { |
| // InternalSignalDSL.g:4817: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= ',' ) ) ) ) |
| // InternalSignalDSL.g:4818: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= ',' ) ) ) |
| { |
| // InternalSignalDSL.g:4818:3: () |
| // InternalSignalDSL.g:4819:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:4825:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==RULE_ID||LA75_0==36||LA75_0==61) ) { |
| alt75=1; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalSignalDSL.g:4826:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:4826:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:4827:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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; |
| |
| } |
| |
| // InternalSignalDSL.g:4844:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==81) ) { |
| alt76=1; |
| } |
| switch (alt76) { |
| case 1 : |
| // InternalSignalDSL.g:4845:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,81,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalSignalDSL.g:4849:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4850:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4850:5: (lv_case_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:4851:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| 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; |
| |
| } |
| |
| // InternalSignalDSL.g:4869:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==24) ) { |
| alt77=1; |
| } |
| else if ( (LA77_0==37) ) { |
| alt77=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 77, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalSignalDSL.g:4870:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:4870:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:4871:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,24,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalSignalDSL.g:4875:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4876:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4876:6: (lv_then_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4877: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 : |
| // InternalSignalDSL.g:4896:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalSignalDSL.g:4896:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalSignalDSL.g:4897:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalSignalDSL.g:4897:5: (lv_fallThrough_6_0= ',' ) |
| // InternalSignalDSL.g:4898:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,37,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" |
| // InternalSignalDSL.g:4915:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:4915:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalSignalDSL.g:4916: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" |
| // InternalSignalDSL.g:4922: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 { |
| // InternalSignalDSL.g:4928: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 ) ) ) ) |
| // InternalSignalDSL.g:4929: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 ) ) ) |
| { |
| // InternalSignalDSL.g:4929: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 ) ) ) |
| // InternalSignalDSL.g:4930: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 ) ) |
| { |
| // InternalSignalDSL.g:4930:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalSignalDSL.g:4931:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalSignalDSL.g:4944:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalSignalDSL.g:4945:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalSignalDSL.g:4945:5: () |
| // InternalSignalDSL.g:4946:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,82,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalSignalDSL.g:4960:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4961:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4961:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4962:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| 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,24,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4985:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:4986:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:4986:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:4987:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:5008:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5009:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5009:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalSignalDSL.g:5010: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" |
| // InternalSignalDSL.g:5031:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5031:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalSignalDSL.g:5032: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" |
| // InternalSignalDSL.g:5038: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 { |
| // InternalSignalDSL.g:5044: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 ) ) ) ) |
| // InternalSignalDSL.g:5045: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 ) ) ) |
| { |
| // InternalSignalDSL.g:5045: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 ) ) ) |
| // InternalSignalDSL.g:5046: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 ) ) |
| { |
| // InternalSignalDSL.g:5046:3: () |
| // InternalSignalDSL.g:5047:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,82,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:5061:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( ((LA79_0>=RULE_STRING && LA79_0<=RULE_DECIMAL)||LA79_0==14||(LA79_0>=29 && LA79_0<=31)||LA79_0==36||(LA79_0>=40 && LA79_0<=41)||LA79_0==48||(LA79_0>=64 && LA79_0<=65)||LA79_0==69||LA79_0==77||LA79_0==79||(LA79_0>=82 && LA79_0<=96)||LA79_0==98) ) { |
| alt79=1; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalSignalDSL.g:5062:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalSignalDSL.g:5062:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalSignalDSL.g:5063:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalSignalDSL.g:5063:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalSignalDSL.g:5064:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_74); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5081:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop78: |
| do { |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==37) ) { |
| alt78=1; |
| } |
| |
| |
| switch (alt78) { |
| case 1 : |
| // InternalSignalDSL.g:5082:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,37,FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalSignalDSL.g:5086:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalSignalDSL.g:5087:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalSignalDSL.g:5087:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalSignalDSL.g:5088:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_74); |
| 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 loop78; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,34,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:5111:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( ((LA80_0>=RULE_STRING && LA80_0<=RULE_DECIMAL)||LA80_0==14||(LA80_0>=29 && LA80_0<=31)||LA80_0==36||(LA80_0>=40 && LA80_0<=41)||LA80_0==48||(LA80_0>=64 && LA80_0<=65)||LA80_0==69||LA80_0==77||LA80_0==79||(LA80_0>=82 && LA80_0<=84)||(LA80_0>=87 && LA80_0<=96)||LA80_0==98) ) { |
| alt80=1; |
| } |
| switch (alt80) { |
| case 1 : |
| // InternalSignalDSL.g:5112:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5112:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalSignalDSL.g:5113:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| 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,34,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalSignalDSL.g:5134:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( ((LA82_0>=RULE_STRING && LA82_0<=RULE_DECIMAL)||LA82_0==14||(LA82_0>=29 && LA82_0<=31)||LA82_0==36||(LA82_0>=40 && LA82_0<=41)||LA82_0==48||(LA82_0>=64 && LA82_0<=65)||LA82_0==69||LA82_0==77||LA82_0==79||(LA82_0>=82 && LA82_0<=84)||(LA82_0>=87 && LA82_0<=96)||LA82_0==98) ) { |
| alt82=1; |
| } |
| switch (alt82) { |
| case 1 : |
| // InternalSignalDSL.g:5135:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:5135:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5136:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5136:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalSignalDSL.g:5137:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5154:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop81: |
| do { |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==37) ) { |
| alt81=1; |
| } |
| |
| |
| switch (alt81) { |
| case 1 : |
| // InternalSignalDSL.g:5155:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalSignalDSL.g:5159:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5160:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5160:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalSignalDSL.g:5161:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop81; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalSignalDSL.g:5184:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5185:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5185:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalSignalDSL.g:5186: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" |
| // InternalSignalDSL.g:5207:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5207:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalSignalDSL.g:5208: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" |
| // InternalSignalDSL.g:5214: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 { |
| // InternalSignalDSL.g:5220:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalSignalDSL.g:5221:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:5221:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:5222:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:5222:3: () |
| // InternalSignalDSL.g:5223:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,83,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:5237:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5238:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5238:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:5239:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:5260:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5261:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5261:4: (lv_body_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:5262: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" |
| // InternalSignalDSL.g:5283:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5283:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalSignalDSL.g:5284: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" |
| // InternalSignalDSL.g:5290: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 { |
| // InternalSignalDSL.g:5296:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalSignalDSL.g:5297:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalSignalDSL.g:5297:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalSignalDSL.g:5298:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalSignalDSL.g:5298:3: () |
| // InternalSignalDSL.g:5299:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,84,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:5309:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5310:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5310:4: (lv_body_2_0= ruleXExpression ) |
| // InternalSignalDSL.g:5311:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_78); |
| 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,83,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,36,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalSignalDSL.g:5336:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5337:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5337:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:5338:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,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" |
| // InternalSignalDSL.g:5363:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5363:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalSignalDSL.g:5364: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" |
| // InternalSignalDSL.g:5370: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 { |
| // InternalSignalDSL.g:5376:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalSignalDSL.g:5377:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalSignalDSL.g:5377:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalSignalDSL.g:5378:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalSignalDSL.g:5378:3: () |
| // InternalSignalDSL.g:5379:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:5389:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop84: |
| do { |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( ((LA84_0>=RULE_STRING && LA84_0<=RULE_DECIMAL)||LA84_0==14||(LA84_0>=29 && LA84_0<=31)||LA84_0==36||(LA84_0>=40 && LA84_0<=41)||LA84_0==48||(LA84_0>=64 && LA84_0<=65)||LA84_0==69||LA84_0==77||LA84_0==79||(LA84_0>=82 && LA84_0<=96)||LA84_0==98) ) { |
| alt84=1; |
| } |
| |
| |
| switch (alt84) { |
| case 1 : |
| // InternalSignalDSL.g:5390:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalSignalDSL.g:5390:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalSignalDSL.g:5391:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalSignalDSL.g:5391:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalSignalDSL.g:5392:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5409:4: (otherlv_3= ';' )? |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==34) ) { |
| alt83=1; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalSignalDSL.g:5410:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,34,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop84; |
| } |
| } 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" |
| // InternalSignalDSL.g:5424:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5424:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalSignalDSL.g:5425: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" |
| // InternalSignalDSL.g:5431: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 { |
| // InternalSignalDSL.g:5437:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalSignalDSL.g:5438:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5438:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( ((LA85_0>=85 && LA85_0<=86)) ) { |
| alt85=1; |
| } |
| else if ( ((LA85_0>=RULE_STRING && LA85_0<=RULE_DECIMAL)||LA85_0==14||(LA85_0>=29 && LA85_0<=31)||LA85_0==36||(LA85_0>=40 && LA85_0<=41)||LA85_0==48||(LA85_0>=64 && LA85_0<=65)||LA85_0==69||LA85_0==77||LA85_0==79||(LA85_0>=82 && LA85_0<=84)||(LA85_0>=87 && LA85_0<=96)||LA85_0==98) ) { |
| alt85=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 85, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalSignalDSL.g:5439: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 : |
| // InternalSignalDSL.g:5448: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" |
| // InternalSignalDSL.g:5460:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5460:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalSignalDSL.g:5461: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" |
| // InternalSignalDSL.g:5467: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 { |
| // InternalSignalDSL.g:5473: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 ) ) )? ) ) |
| // InternalSignalDSL.g:5474: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 ) ) )? ) |
| { |
| // InternalSignalDSL.g:5474: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 ) ) )? ) |
| // InternalSignalDSL.g:5475: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 ) ) )? |
| { |
| // InternalSignalDSL.g:5475:3: () |
| // InternalSignalDSL.g:5476:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:5482:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==85) ) { |
| alt86=1; |
| } |
| else if ( (LA86_0==86) ) { |
| alt86=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 86, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt86) { |
| case 1 : |
| // InternalSignalDSL.g:5483:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalSignalDSL.g:5483:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalSignalDSL.g:5484:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalSignalDSL.g:5484:5: (lv_writeable_1_0= 'var' ) |
| // InternalSignalDSL.g:5485:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,85,FOLLOW_41); 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 : |
| // InternalSignalDSL.g:5498:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,86,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:5503:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==RULE_ID) ) { |
| int LA87_1 = input.LA(2); |
| |
| if ( (synpred35_InternalSignalDSL()) ) { |
| alt87=1; |
| } |
| else if ( (true) ) { |
| alt87=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 87, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA87_0==36) && (synpred35_InternalSignalDSL())) { |
| alt87=1; |
| } |
| else if ( (LA87_0==61) && (synpred35_InternalSignalDSL())) { |
| alt87=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 87, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalSignalDSL.g:5504:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalSignalDSL.g:5504:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalSignalDSL.g:5505:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalSignalDSL.g:5518:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalSignalDSL.g:5519:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:5519:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:5520:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:5520:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:5521: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5538:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalSignalDSL.g:5539:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalSignalDSL.g:5539:7: (lv_name_4_0= ruleValidID ) |
| // InternalSignalDSL.g:5540:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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 : |
| // InternalSignalDSL.g:5560:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:5560:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalSignalDSL.g:5561:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalSignalDSL.g:5561:5: (lv_name_5_0= ruleValidID ) |
| // InternalSignalDSL.g:5562:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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; |
| |
| } |
| |
| // InternalSignalDSL.g:5580:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( (LA88_0==39) ) { |
| alt88=1; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalSignalDSL.g:5581:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,39,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalSignalDSL.g:5585:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5586:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5586:5: (lv_right_7_0= ruleXExpression ) |
| // InternalSignalDSL.g:5587: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" |
| // InternalSignalDSL.g:5609:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5609:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalSignalDSL.g:5610: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" |
| // InternalSignalDSL.g:5616: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 { |
| // InternalSignalDSL.g:5622:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalSignalDSL.g:5623:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalSignalDSL.g:5623:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalSignalDSL.g:5624:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:5624:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==RULE_ID) ) { |
| int LA89_1 = input.LA(2); |
| |
| if ( (LA89_1==RULE_ID||LA89_1==41||LA89_1==48||LA89_1==73) ) { |
| alt89=1; |
| } |
| } |
| else if ( (LA89_0==36||LA89_0==61) ) { |
| alt89=1; |
| } |
| switch (alt89) { |
| case 1 : |
| // InternalSignalDSL.g:5625:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:5625:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:5626: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; |
| |
| } |
| |
| // InternalSignalDSL.g:5643:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalSignalDSL.g:5644:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalSignalDSL.g:5644:4: (lv_name_1_0= ruleValidID ) |
| // InternalSignalDSL.g:5645: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" |
| // InternalSignalDSL.g:5666:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5666:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalSignalDSL.g:5667: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" |
| // InternalSignalDSL.g:5673: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 { |
| // InternalSignalDSL.g:5679:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalSignalDSL.g:5680:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalSignalDSL.g:5680:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalSignalDSL.g:5681:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:5681:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:5682:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:5682:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:5683: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5700:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalSignalDSL.g:5701:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalSignalDSL.g:5701:4: (lv_name_1_0= ruleValidID ) |
| // InternalSignalDSL.g:5702: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" |
| // InternalSignalDSL.g:5723:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5723:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalSignalDSL.g:5724: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" |
| // InternalSignalDSL.g:5730: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 { |
| // InternalSignalDSL.g:5736: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 ) )? ) ) |
| // InternalSignalDSL.g:5737: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 ) )? ) |
| { |
| // InternalSignalDSL.g:5737: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 ) )? ) |
| // InternalSignalDSL.g:5738: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 ) )? |
| { |
| // InternalSignalDSL.g:5738:3: () |
| // InternalSignalDSL.g:5739:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:5745:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==48) ) { |
| alt91=1; |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalSignalDSL.g:5746:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,48,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalSignalDSL.g:5750:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:5751:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:5751:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:5752:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5769:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop90: |
| do { |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==37) ) { |
| alt90=1; |
| } |
| |
| |
| switch (alt90) { |
| case 1 : |
| // InternalSignalDSL.g:5770:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,37,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalSignalDSL.g:5774:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:5775:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:5775:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:5776:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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 loop90; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,49,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:5799:3: ( ( ruleIdOrSuper ) ) |
| // InternalSignalDSL.g:5800:4: ( ruleIdOrSuper ) |
| { |
| // InternalSignalDSL.g:5800:4: ( ruleIdOrSuper ) |
| // InternalSignalDSL.g:5801: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_82); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5815: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 alt94=2; |
| alt94 = dfa94.predict(input); |
| switch (alt94) { |
| case 1 : |
| // InternalSignalDSL.g:5816: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= ')' |
| { |
| // InternalSignalDSL.g:5816:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalSignalDSL.g:5817:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalSignalDSL.g:5821:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalSignalDSL.g:5822:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,36,FOLLOW_56); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5834:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt93=3; |
| alt93 = dfa93.predict(input); |
| switch (alt93) { |
| case 1 : |
| // InternalSignalDSL.g:5835:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalSignalDSL.g:5835:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalSignalDSL.g:5836:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalSignalDSL.g:5861:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalSignalDSL.g:5862:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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 : |
| // InternalSignalDSL.g:5880:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:5880:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalSignalDSL.g:5881:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:5881:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5882:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5882:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalSignalDSL.g:5883:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5900:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop92: |
| do { |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==37) ) { |
| alt92=1; |
| } |
| |
| |
| switch (alt92) { |
| case 1 : |
| // InternalSignalDSL.g:5901:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:5905:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:5906:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:5906:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalSignalDSL.g:5907:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop92; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,38,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:5932:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt95=2; |
| alt95 = dfa95.predict(input); |
| switch (alt95) { |
| case 1 : |
| // InternalSignalDSL.g:5933:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalSignalDSL.g:5939:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalSignalDSL.g:5940: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" |
| // InternalSignalDSL.g:5961:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:5961:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalSignalDSL.g:5962: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" |
| // InternalSignalDSL.g:5968: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 { |
| // InternalSignalDSL.g:5974:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalSignalDSL.g:5975:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalSignalDSL.g:5975:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt96=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt96=1; |
| } |
| break; |
| case 87: |
| { |
| alt96=2; |
| } |
| break; |
| case 30: |
| { |
| alt96=3; |
| } |
| break; |
| case 29: |
| { |
| alt96=4; |
| } |
| break; |
| case 31: |
| { |
| alt96=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt96) { |
| case 1 : |
| // InternalSignalDSL.g:5976: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 : |
| // InternalSignalDSL.g:5987:3: kw= 'extends' |
| { |
| kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:5993:3: kw= 'static' |
| { |
| kw=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:5999:3: kw= 'import' |
| { |
| kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalSignalDSL.g:6005:3: kw= 'extension' |
| { |
| kw=(Token)match(input,31,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" |
| // InternalSignalDSL.g:6014:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6014:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalSignalDSL.g:6015: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" |
| // InternalSignalDSL.g:6021: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 { |
| // InternalSignalDSL.g:6027:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalSignalDSL.g:6028:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalSignalDSL.g:6028:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==RULE_ID||(LA97_0>=29 && LA97_0<=31)||LA97_0==87) ) { |
| alt97=1; |
| } |
| else if ( (LA97_0==88) ) { |
| alt97=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalSignalDSL.g:6029: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 : |
| // InternalSignalDSL.g:6040:3: kw= 'super' |
| { |
| kw=(Token)match(input,88,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" |
| // InternalSignalDSL.g:6049:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6049:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalSignalDSL.g:6050: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" |
| // InternalSignalDSL.g:6056: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 { |
| // InternalSignalDSL.g:6062: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 ) )? ) ) |
| // InternalSignalDSL.g:6063: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 ) )? ) |
| { |
| // InternalSignalDSL.g:6063: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 ) )? ) |
| // InternalSignalDSL.g:6064: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 ) )? |
| { |
| // InternalSignalDSL.g:6064:3: () |
| // InternalSignalDSL.g:6065:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,89,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:6075:3: ( ( ruleQualifiedName ) ) |
| // InternalSignalDSL.g:6076:4: ( ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:6076:4: ( ruleQualifiedName ) |
| // InternalSignalDSL.g:6077: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_84); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6091:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt99=2; |
| alt99 = dfa99.predict(input); |
| switch (alt99) { |
| case 1 : |
| // InternalSignalDSL.g:6092:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalSignalDSL.g:6092:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalSignalDSL.g:6093:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,48,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:6099:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:6100:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:6100:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:6101:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6118:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop98: |
| do { |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( (LA98_0==37) ) { |
| alt98=1; |
| } |
| |
| |
| switch (alt98) { |
| case 1 : |
| // InternalSignalDSL.g:6119:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,37,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalSignalDSL.g:6123:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:6124:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:6124:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:6125:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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 loop98; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,49,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:6148: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 alt102=2; |
| alt102 = dfa102.predict(input); |
| switch (alt102) { |
| case 1 : |
| // InternalSignalDSL.g:6149: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= ')' |
| { |
| // InternalSignalDSL.g:6149:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalSignalDSL.g:6150:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalSignalDSL.g:6154:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalSignalDSL.g:6155:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,36,FOLLOW_56); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6167:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt101=3; |
| alt101 = dfa101.predict(input); |
| switch (alt101) { |
| case 1 : |
| // InternalSignalDSL.g:6168:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalSignalDSL.g:6168:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalSignalDSL.g:6169:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalSignalDSL.g:6194:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalSignalDSL.g:6195:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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 : |
| // InternalSignalDSL.g:6213:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalSignalDSL.g:6213:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalSignalDSL.g:6214:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalSignalDSL.g:6214:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6215:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6215:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalSignalDSL.g:6216:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6233:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop100: |
| do { |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==37) ) { |
| alt100=1; |
| } |
| |
| |
| switch (alt100) { |
| case 1 : |
| // InternalSignalDSL.g:6234:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,37,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:6238:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6239:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6239:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalSignalDSL.g:6240:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop100; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,38,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:6265:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt103=2; |
| alt103 = dfa103.predict(input); |
| switch (alt103) { |
| case 1 : |
| // InternalSignalDSL.g:6266:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalSignalDSL.g:6272:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalSignalDSL.g:6273: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" |
| // InternalSignalDSL.g:6294:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6294:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalSignalDSL.g:6295: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" |
| // InternalSignalDSL.g:6301: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 { |
| // InternalSignalDSL.g:6307:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalSignalDSL.g:6308:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalSignalDSL.g:6308:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalSignalDSL.g:6309:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalSignalDSL.g:6309:3: () |
| // InternalSignalDSL.g:6310:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:6316:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( (LA104_0==90) ) { |
| alt104=1; |
| } |
| else if ( (LA104_0==91) ) { |
| alt104=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 104, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt104) { |
| case 1 : |
| // InternalSignalDSL.g:6317:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,90,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:6322:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalSignalDSL.g:6322:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalSignalDSL.g:6323:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalSignalDSL.g:6323:5: (lv_isTrue_2_0= 'true' ) |
| // InternalSignalDSL.g:6324:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,91,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" |
| // InternalSignalDSL.g:6341:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6341:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalSignalDSL.g:6342: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" |
| // InternalSignalDSL.g:6348:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:6354:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalSignalDSL.g:6355:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalSignalDSL.g:6355:2: ( () otherlv_1= 'null' ) |
| // InternalSignalDSL.g:6356:3: () otherlv_1= 'null' |
| { |
| // InternalSignalDSL.g:6356:3: () |
| // InternalSignalDSL.g:6357:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,92,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" |
| // InternalSignalDSL.g:6371:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6371:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalSignalDSL.g:6372: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" |
| // InternalSignalDSL.g:6378: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 { |
| // InternalSignalDSL.g:6384:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalSignalDSL.g:6385:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalSignalDSL.g:6385:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalSignalDSL.g:6386:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalSignalDSL.g:6386:3: () |
| // InternalSignalDSL.g:6387:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:6393:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalSignalDSL.g:6394:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalSignalDSL.g:6394:4: (lv_value_1_0= ruleNumber ) |
| // InternalSignalDSL.g:6395: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" |
| // InternalSignalDSL.g:6416:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6416:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalSignalDSL.g:6417: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" |
| // InternalSignalDSL.g:6423: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 { |
| // InternalSignalDSL.g:6429:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalSignalDSL.g:6430:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalSignalDSL.g:6430:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalSignalDSL.g:6431:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalSignalDSL.g:6431:3: () |
| // InternalSignalDSL.g:6432:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:6438:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalSignalDSL.g:6439:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalSignalDSL.g:6439:4: (lv_value_1_0= RULE_STRING ) |
| // InternalSignalDSL.g:6440: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" |
| // InternalSignalDSL.g:6460:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6460:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalSignalDSL.g:6461: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" |
| // InternalSignalDSL.g:6467: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 { |
| // InternalSignalDSL.g:6473:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalSignalDSL.g:6474:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalSignalDSL.g:6474:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalSignalDSL.g:6475:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalSignalDSL.g:6475:3: () |
| // InternalSignalDSL.g:6476:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,93,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:6490:3: ( ( ruleQualifiedName ) ) |
| // InternalSignalDSL.g:6491:4: ( ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:6491:4: ( ruleQualifiedName ) |
| // InternalSignalDSL.g:6492: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_85); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6506:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop105: |
| do { |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( (LA105_0==41) ) { |
| alt105=1; |
| } |
| |
| |
| switch (alt105) { |
| case 1 : |
| // InternalSignalDSL.g:6507:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalSignalDSL.g:6507:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalSignalDSL.g:6508:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_85); |
| 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 loop105; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,38,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" |
| // InternalSignalDSL.g:6533:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6533:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalSignalDSL.g:6534: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" |
| // InternalSignalDSL.g:6540: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 { |
| // InternalSignalDSL.g:6546:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalSignalDSL.g:6547:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:6547:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:6548:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:6548:3: () |
| // InternalSignalDSL.g:6549:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,94,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:6559:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6560:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6560:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalSignalDSL.g:6561: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" |
| // InternalSignalDSL.g:6582:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6582:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalSignalDSL.g:6583: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" |
| // InternalSignalDSL.g:6589: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 { |
| // InternalSignalDSL.g:6595: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 ) )? ) ) |
| // InternalSignalDSL.g:6596: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 ) )? ) |
| { |
| // InternalSignalDSL.g:6596: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 ) )? ) |
| // InternalSignalDSL.g:6597: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 ) )? |
| { |
| // InternalSignalDSL.g:6597:3: () |
| // InternalSignalDSL.g:6598:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:6608: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 alt106=2; |
| alt106 = dfa106.predict(input); |
| switch (alt106) { |
| case 1 : |
| // InternalSignalDSL.g:6609: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 ) |
| { |
| // InternalSignalDSL.g:6610:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalSignalDSL.g:6611: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" |
| // InternalSignalDSL.g:6632:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6632:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalSignalDSL.g:6633: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" |
| // InternalSignalDSL.g:6639: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 { |
| // InternalSignalDSL.g:6645: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 ) ) ) ) ) ) |
| // InternalSignalDSL.g:6646: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 ) ) ) ) ) |
| { |
| // InternalSignalDSL.g:6646: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 ) ) ) ) ) |
| // InternalSignalDSL.g:6647: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 ) ) ) ) |
| { |
| // InternalSignalDSL.g:6647:3: () |
| // InternalSignalDSL.g:6648:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:6658:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6659:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6659:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalSignalDSL.g:6660:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6677: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 alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==99) ) { |
| alt109=1; |
| } |
| else if ( (LA109_0==97) ) { |
| alt109=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 109, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt109) { |
| case 1 : |
| // InternalSignalDSL.g:6678:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalSignalDSL.g:6678:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalSignalDSL.g:6679:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalSignalDSL.g:6679:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt107=0; |
| loop107: |
| do { |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==99) ) { |
| int LA107_2 = input.LA(2); |
| |
| if ( (synpred44_InternalSignalDSL()) ) { |
| alt107=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt107) { |
| case 1 : |
| // InternalSignalDSL.g:6680:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalSignalDSL.g:6681:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalSignalDSL.g:6682:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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 ( cnt107 >= 1 ) break loop107; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(107, input); |
| throw eee; |
| } |
| cnt107++; |
| } while (true); |
| |
| // InternalSignalDSL.g:6699:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt108=2; |
| int LA108_0 = input.LA(1); |
| |
| if ( (LA108_0==97) ) { |
| int LA108_1 = input.LA(2); |
| |
| if ( (synpred45_InternalSignalDSL()) ) { |
| alt108=1; |
| } |
| } |
| switch (alt108) { |
| case 1 : |
| // InternalSignalDSL.g:6700:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:6700:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalSignalDSL.g:6701:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,97,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:6707:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6708:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6708:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:6709: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 : |
| // InternalSignalDSL.g:6729:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:6729:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:6730:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,97,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalSignalDSL.g:6734:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6735:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6735:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalSignalDSL.g:6736: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" |
| // InternalSignalDSL.g:6759:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6759:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalSignalDSL.g:6760: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" |
| // InternalSignalDSL.g:6766: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 { |
| // InternalSignalDSL.g:6772:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalSignalDSL.g:6773:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:6773:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:6774:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:6774:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalSignalDSL.g:6775:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalSignalDSL.g:6782:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalSignalDSL.g:6783:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalSignalDSL.g:6783:5: () |
| // InternalSignalDSL.g:6784:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,98,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,36,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6800:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6801:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6801:4: (lv_param_3_0= ruleXExpression ) |
| // InternalSignalDSL.g:6802:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalSignalDSL.g:6823:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6824:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6824:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalSignalDSL.g:6825: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" |
| // InternalSignalDSL.g:6846:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6846:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalSignalDSL.g:6847: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" |
| // InternalSignalDSL.g:6853: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 { |
| // InternalSignalDSL.g:6859:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalSignalDSL.g:6860:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalSignalDSL.g:6860:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalSignalDSL.g:6861:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalSignalDSL.g:6861:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalSignalDSL.g:6862:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,99,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,36,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:6872:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalSignalDSL.g:6873:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:6873:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalSignalDSL.g:6874:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| 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,38,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalSignalDSL.g:6895:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalSignalDSL.g:6896:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalSignalDSL.g:6896:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalSignalDSL.g:6897: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" |
| // InternalSignalDSL.g:6918:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:6918:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalSignalDSL.g:6919: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" |
| // InternalSignalDSL.g:6925: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 { |
| // InternalSignalDSL.g:6931:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalSignalDSL.g:6932:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalSignalDSL.g:6932:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalSignalDSL.g:6933:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| 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(); |
| |
| } |
| // InternalSignalDSL.g:6943:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop110: |
| do { |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==73) ) { |
| int LA110_2 = input.LA(2); |
| |
| if ( (LA110_2==RULE_ID) ) { |
| int LA110_3 = input.LA(3); |
| |
| if ( (synpred48_InternalSignalDSL()) ) { |
| alt110=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt110) { |
| case 1 : |
| // InternalSignalDSL.g:6944:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalSignalDSL.g:6944:4: ( ( '.' )=>kw= '.' ) |
| // InternalSignalDSL.g:6945:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,73,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_89); |
| 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 loop110; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalSignalDSL.g:6967: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 { |
| // InternalSignalDSL.g:6969:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalSignalDSL.g:6970: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" |
| // InternalSignalDSL.g:6979: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 { |
| // InternalSignalDSL.g:6986: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 ) )? ) ) ) |
| // InternalSignalDSL.g:6987: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 ) )? ) ) |
| { |
| // InternalSignalDSL.g:6987: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 alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==RULE_HEX) ) { |
| alt114=1; |
| } |
| else if ( (LA114_0==RULE_INT||LA114_0==RULE_DECIMAL) ) { |
| alt114=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 114, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt114) { |
| case 1 : |
| // InternalSignalDSL.g:6988: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 : |
| // InternalSignalDSL.g:6996:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalSignalDSL.g:6996:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalSignalDSL.g:6997:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalSignalDSL.g:6997:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt111=2; |
| int LA111_0 = input.LA(1); |
| |
| if ( (LA111_0==RULE_INT) ) { |
| alt111=1; |
| } |
| else if ( (LA111_0==RULE_DECIMAL) ) { |
| alt111=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 111, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt111) { |
| case 1 : |
| // InternalSignalDSL.g:6998:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_89); 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 : |
| // InternalSignalDSL.g:7006:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_89); 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; |
| |
| } |
| |
| // InternalSignalDSL.g:7014:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==73) ) { |
| int LA113_1 = input.LA(2); |
| |
| if ( (LA113_1==RULE_INT||LA113_1==RULE_DECIMAL) ) { |
| alt113=1; |
| } |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalSignalDSL.g:7015:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,73,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:7020:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( (LA112_0==RULE_INT) ) { |
| alt112=1; |
| } |
| else if ( (LA112_0==RULE_DECIMAL) ) { |
| alt112=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 112, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt112) { |
| case 1 : |
| // InternalSignalDSL.g:7021: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 : |
| // InternalSignalDSL.g:7029: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" |
| // InternalSignalDSL.g:7046:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7046:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalSignalDSL.g:7047: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" |
| // InternalSignalDSL.g:7053: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 { |
| // InternalSignalDSL.g:7059:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalSignalDSL.g:7060:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalSignalDSL.g:7060:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( (LA116_0==RULE_ID) ) { |
| alt116=1; |
| } |
| else if ( (LA116_0==36||LA116_0==61) ) { |
| alt116=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 116, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt116) { |
| case 1 : |
| // InternalSignalDSL.g:7061:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalSignalDSL.g:7061:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalSignalDSL.g:7062:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalSignalDSL.g:7070:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop115: |
| do { |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==41) ) { |
| int LA115_2 = input.LA(2); |
| |
| if ( (LA115_2==42) ) { |
| int LA115_3 = input.LA(3); |
| |
| if ( (synpred49_InternalSignalDSL()) ) { |
| alt115=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt115) { |
| case 1 : |
| // InternalSignalDSL.g:7071:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalSignalDSL.g:7077:5: ( () ruleArrayBrackets ) |
| // InternalSignalDSL.g:7078:6: () ruleArrayBrackets |
| { |
| // InternalSignalDSL.g:7078:6: () |
| // InternalSignalDSL.g:7079: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_83); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop115; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:7096: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" |
| // InternalSignalDSL.g:7108:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7108:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalSignalDSL.g:7109: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" |
| // InternalSignalDSL.g:7115:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:7121:2: ( (kw= '[' kw= ']' ) ) |
| // InternalSignalDSL.g:7122:2: (kw= '[' kw= ']' ) |
| { |
| // InternalSignalDSL.g:7122:2: (kw= '[' kw= ']' ) |
| // InternalSignalDSL.g:7123:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,41,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,42,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" |
| // InternalSignalDSL.g:7137:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7137:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalSignalDSL.g:7138: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" |
| // InternalSignalDSL.g:7144: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 { |
| // InternalSignalDSL.g:7150:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalSignalDSL.g:7151:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:7151:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:7152:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalSignalDSL.g:7152:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==36) ) { |
| alt119=1; |
| } |
| switch (alt119) { |
| case 1 : |
| // InternalSignalDSL.g:7153:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,36,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalSignalDSL.g:7157:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==RULE_ID||LA118_0==36||LA118_0==61) ) { |
| alt118=1; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalSignalDSL.g:7158:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalSignalDSL.g:7158:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7159:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7159:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7160:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7177:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop117: |
| do { |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==37) ) { |
| alt117=1; |
| } |
| |
| |
| switch (alt117) { |
| case 1 : |
| // InternalSignalDSL.g:7178:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,37,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalSignalDSL.g:7182:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7183:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7183:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7184:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| 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 loop117; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,38,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,61,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:7212:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7213:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7213:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7214: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" |
| // InternalSignalDSL.g:7235:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7235:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalSignalDSL.g:7236: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" |
| // InternalSignalDSL.g:7242: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 { |
| // InternalSignalDSL.g:7248: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= '>' )? )* )? ) ) |
| // InternalSignalDSL.g:7249: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= '>' )? )* )? ) |
| { |
| // InternalSignalDSL.g:7249: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= '>' )? )* )? ) |
| // InternalSignalDSL.g:7250: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= '>' )? )* )? |
| { |
| // InternalSignalDSL.g:7250:3: ( ( ruleQualifiedName ) ) |
| // InternalSignalDSL.g:7251:4: ( ruleQualifiedName ) |
| { |
| // InternalSignalDSL.g:7251:4: ( ruleQualifiedName ) |
| // InternalSignalDSL.g:7252: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_93); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7266: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 alt124=2; |
| alt124 = dfa124.predict(input); |
| switch (alt124) { |
| case 1 : |
| // InternalSignalDSL.g:7267: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= '>' )? )* |
| { |
| // InternalSignalDSL.g:7267:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalSignalDSL.g:7268:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,48,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:7274:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:7275:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:7275:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:7276:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7293:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop120: |
| do { |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==37) ) { |
| alt120=1; |
| } |
| |
| |
| switch (alt120) { |
| case 1 : |
| // InternalSignalDSL.g:7294:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,37,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalSignalDSL.g:7298:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:7299:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:7299:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:7300:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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 loop120; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,49,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalSignalDSL.g:7322:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==73) ) { |
| int LA123_2 = input.LA(2); |
| |
| if ( (LA123_2==RULE_ID) ) { |
| int LA123_3 = input.LA(3); |
| |
| if ( (synpred51_InternalSignalDSL()) ) { |
| alt123=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalSignalDSL.g:7323:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalSignalDSL.g:7323:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalSignalDSL.g:7324:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalSignalDSL.g:7330:6: ( () otherlv_7= '.' ) |
| // InternalSignalDSL.g:7331:7: () otherlv_7= '.' |
| { |
| // InternalSignalDSL.g:7331:7: () |
| // InternalSignalDSL.g:7332:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,73,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7344:5: ( ( ruleValidID ) ) |
| // InternalSignalDSL.g:7345:6: ( ruleValidID ) |
| { |
| // InternalSignalDSL.g:7345:6: ( ruleValidID ) |
| // InternalSignalDSL.g:7346: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_94); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7360:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt122=2; |
| alt122 = dfa122.predict(input); |
| switch (alt122) { |
| case 1 : |
| // InternalSignalDSL.g:7361:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalSignalDSL.g:7361:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalSignalDSL.g:7362:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,48,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalSignalDSL.g:7368:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:7369:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:7369:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:7370:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7387:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop121: |
| do { |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==37) ) { |
| alt121=1; |
| } |
| |
| |
| switch (alt121) { |
| case 1 : |
| // InternalSignalDSL.g:7388:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,37,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalSignalDSL.g:7392:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalSignalDSL.g:7393:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalSignalDSL.g:7393:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalSignalDSL.g:7394:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| 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 loop121; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,49,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop123; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalSignalDSL.g:7423:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7423:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalSignalDSL.g:7424: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" |
| // InternalSignalDSL.g:7430: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 { |
| // InternalSignalDSL.g:7436:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalSignalDSL.g:7437:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalSignalDSL.g:7437:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( (LA125_0==RULE_ID||LA125_0==36||LA125_0==61) ) { |
| alt125=1; |
| } |
| else if ( (LA125_0==100) ) { |
| alt125=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 125, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt125) { |
| case 1 : |
| // InternalSignalDSL.g:7438: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 : |
| // InternalSignalDSL.g:7447: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" |
| // InternalSignalDSL.g:7459:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7459:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalSignalDSL.g:7460: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" |
| // InternalSignalDSL.g:7466: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 { |
| // InternalSignalDSL.g:7472:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalSignalDSL.g:7473:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalSignalDSL.g:7473:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalSignalDSL.g:7474:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalSignalDSL.g:7474:3: () |
| // InternalSignalDSL.g:7475:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,100,FOLLOW_95); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalSignalDSL.g:7485:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt128=3; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==87) ) { |
| alt128=1; |
| } |
| else if ( (LA128_0==88) ) { |
| alt128=2; |
| } |
| switch (alt128) { |
| case 1 : |
| // InternalSignalDSL.g:7486:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalSignalDSL.g:7486:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalSignalDSL.g:7487:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalSignalDSL.g:7487:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalSignalDSL.g:7488:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalSignalDSL.g:7488:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalSignalDSL.g:7489:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7506:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop126: |
| do { |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==101) ) { |
| alt126=1; |
| } |
| |
| |
| switch (alt126) { |
| case 1 : |
| // InternalSignalDSL.g:7507:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalSignalDSL.g:7507:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalSignalDSL.g:7508:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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 loop126; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:7527:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalSignalDSL.g:7527:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalSignalDSL.g:7528:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalSignalDSL.g:7528:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalSignalDSL.g:7529:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalSignalDSL.g:7529:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalSignalDSL.g:7530:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:7547:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop127: |
| do { |
| int alt127=2; |
| int LA127_0 = input.LA(1); |
| |
| if ( (LA127_0==101) ) { |
| alt127=1; |
| } |
| |
| |
| switch (alt127) { |
| case 1 : |
| // InternalSignalDSL.g:7548:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalSignalDSL.g:7548:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalSignalDSL.g:7549:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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 loop127; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalSignalDSL.g:7572:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7572:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalSignalDSL.g:7573: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" |
| // InternalSignalDSL.g:7579: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 { |
| // InternalSignalDSL.g:7585:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalSignalDSL.g:7586:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:7586:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:7587:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,87,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:7591:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7592:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7592:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7593: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" |
| // InternalSignalDSL.g:7614:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7614:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalSignalDSL.g:7615: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" |
| // InternalSignalDSL.g:7621: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 { |
| // InternalSignalDSL.g:7627:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalSignalDSL.g:7628:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:7628:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:7629:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,101,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:7633:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7634:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7634:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7635: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" |
| // InternalSignalDSL.g:7656:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7656:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalSignalDSL.g:7657: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" |
| // InternalSignalDSL.g:7663: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 { |
| // InternalSignalDSL.g:7669:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalSignalDSL.g:7670:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:7670:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:7671:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,88,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:7675:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7676:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7676:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7677: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" |
| // InternalSignalDSL.g:7698:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7698:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalSignalDSL.g:7699: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" |
| // InternalSignalDSL.g:7705: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 { |
| // InternalSignalDSL.g:7711:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalSignalDSL.g:7712:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalSignalDSL.g:7712:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalSignalDSL.g:7713:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,101,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalSignalDSL.g:7717:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:7718:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:7718:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalSignalDSL.g:7719: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" |
| // InternalSignalDSL.g:7740:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7740:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalSignalDSL.g:7741: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" |
| // InternalSignalDSL.g:7747: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 { |
| // InternalSignalDSL.g:7753:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalSignalDSL.g:7754:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalSignalDSL.g:7754:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalSignalDSL.g:7755:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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,73,FOLLOW_98); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,32,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" |
| // InternalSignalDSL.g:7779:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7779:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalSignalDSL.g:7780: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" |
| // InternalSignalDSL.g:7786: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 { |
| // InternalSignalDSL.g:7792:2: (this_ID_0= RULE_ID ) |
| // InternalSignalDSL.g:7793: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" |
| // InternalSignalDSL.g:7803:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7803:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalSignalDSL.g:7804: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" |
| // InternalSignalDSL.g:7810: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 { |
| // InternalSignalDSL.g:7816:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalSignalDSL.g:7817:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalSignalDSL.g:7817:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt129=0; |
| loop129: |
| do { |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==29) ) { |
| alt129=1; |
| } |
| |
| |
| switch (alt129) { |
| case 1 : |
| // InternalSignalDSL.g:7818:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalSignalDSL.g:7818:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalSignalDSL.g:7819:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_99); |
| 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 ( cnt129 >= 1 ) break loop129; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(129, input); |
| throw eee; |
| } |
| cnt129++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalSignalDSL.g:7839:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalSignalDSL.g:7839:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalSignalDSL.g:7840: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" |
| // InternalSignalDSL.g:7846: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 { |
| // InternalSignalDSL.g:7852:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalSignalDSL.g:7853:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalSignalDSL.g:7853:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt130=0; |
| loop130: |
| do { |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==RULE_ID) ) { |
| int LA130_2 = input.LA(2); |
| |
| if ( (LA130_2==73) ) { |
| alt130=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt130) { |
| case 1 : |
| // InternalSignalDSL.g:7854:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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,73,FOLLOW_100); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt130 >= 1 ) break loop130; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(130, input); |
| throw eee; |
| } |
| cnt130++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleSignalActionEnum" |
| // InternalSignalDSL.g:7873:1: ruleSignalActionEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'Import' ) | (enumLiteral_1= 'Export' ) ) ; |
| public final Enumerator ruleSignalActionEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:7879:2: ( ( (enumLiteral_0= 'Import' ) | (enumLiteral_1= 'Export' ) ) ) |
| // InternalSignalDSL.g:7880:2: ( (enumLiteral_0= 'Import' ) | (enumLiteral_1= 'Export' ) ) |
| { |
| // InternalSignalDSL.g:7880:2: ( (enumLiteral_0= 'Import' ) | (enumLiteral_1= 'Export' ) ) |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==102) ) { |
| alt131=1; |
| } |
| else if ( (LA131_0==103) ) { |
| alt131=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 131, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt131) { |
| case 1 : |
| // InternalSignalDSL.g:7881:3: (enumLiteral_0= 'Import' ) |
| { |
| // InternalSignalDSL.g:7881:3: (enumLiteral_0= 'Import' ) |
| // InternalSignalDSL.g:7882:4: enumLiteral_0= 'Import' |
| { |
| enumLiteral_0=(Token)match(input,102,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSignalActionEnumAccess().getDATAIMPORTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSignalActionEnumAccess().getDATAIMPORTEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:7889:3: (enumLiteral_1= 'Export' ) |
| { |
| // InternalSignalDSL.g:7889:3: (enumLiteral_1= 'Export' ) |
| // InternalSignalDSL.g:7890:4: enumLiteral_1= 'Export' |
| { |
| enumLiteral_1=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSignalActionEnumAccess().getDATAEXPORTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSignalActionEnumAccess().getDATAEXPORTEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalActionEnum" |
| |
| |
| // $ANTLR start "ruleSignalExecutionTypeEnum" |
| // InternalSignalDSL.g:7900:1: ruleSignalExecutionTypeEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'sequential' ) | (enumLiteral_1= 'parallel' ) ) ; |
| public final Enumerator ruleSignalExecutionTypeEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:7906:2: ( ( (enumLiteral_0= 'sequential' ) | (enumLiteral_1= 'parallel' ) ) ) |
| // InternalSignalDSL.g:7907:2: ( (enumLiteral_0= 'sequential' ) | (enumLiteral_1= 'parallel' ) ) |
| { |
| // InternalSignalDSL.g:7907:2: ( (enumLiteral_0= 'sequential' ) | (enumLiteral_1= 'parallel' ) ) |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==104) ) { |
| alt132=1; |
| } |
| else if ( (LA132_0==105) ) { |
| alt132=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalSignalDSL.g:7908:3: (enumLiteral_0= 'sequential' ) |
| { |
| // InternalSignalDSL.g:7908:3: (enumLiteral_0= 'sequential' ) |
| // InternalSignalDSL.g:7909:4: enumLiteral_0= 'sequential' |
| { |
| enumLiteral_0=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSignalExecutionTypeEnumAccess().getSEQEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getSignalExecutionTypeEnumAccess().getSEQEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:7916:3: (enumLiteral_1= 'parallel' ) |
| { |
| // InternalSignalDSL.g:7916:3: (enumLiteral_1= 'parallel' ) |
| // InternalSignalDSL.g:7917:4: enumLiteral_1= 'parallel' |
| { |
| enumLiteral_1=(Token)match(input,105,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getSignalExecutionTypeEnumAccess().getNOSEQEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getSignalExecutionTypeEnumAccess().getNOSEQEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignalExecutionTypeEnum" |
| |
| |
| // $ANTLR start "ruleDayOfWeekEnum" |
| // InternalSignalDSL.g:7927:1: ruleDayOfWeekEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'sunday' ) | (enumLiteral_1= 'monday' ) | (enumLiteral_2= 'tuesday' ) | (enumLiteral_3= 'wednesday' ) | (enumLiteral_4= 'thursday' ) | (enumLiteral_5= 'friday' ) | (enumLiteral_6= 'saturday' ) ) ; |
| public final Enumerator ruleDayOfWeekEnum() 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; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalSignalDSL.g:7933:2: ( ( (enumLiteral_0= 'sunday' ) | (enumLiteral_1= 'monday' ) | (enumLiteral_2= 'tuesday' ) | (enumLiteral_3= 'wednesday' ) | (enumLiteral_4= 'thursday' ) | (enumLiteral_5= 'friday' ) | (enumLiteral_6= 'saturday' ) ) ) |
| // InternalSignalDSL.g:7934:2: ( (enumLiteral_0= 'sunday' ) | (enumLiteral_1= 'monday' ) | (enumLiteral_2= 'tuesday' ) | (enumLiteral_3= 'wednesday' ) | (enumLiteral_4= 'thursday' ) | (enumLiteral_5= 'friday' ) | (enumLiteral_6= 'saturday' ) ) |
| { |
| // InternalSignalDSL.g:7934:2: ( (enumLiteral_0= 'sunday' ) | (enumLiteral_1= 'monday' ) | (enumLiteral_2= 'tuesday' ) | (enumLiteral_3= 'wednesday' ) | (enumLiteral_4= 'thursday' ) | (enumLiteral_5= 'friday' ) | (enumLiteral_6= 'saturday' ) ) |
| int alt133=7; |
| switch ( input.LA(1) ) { |
| case 106: |
| { |
| alt133=1; |
| } |
| break; |
| case 107: |
| { |
| alt133=2; |
| } |
| break; |
| case 108: |
| { |
| alt133=3; |
| } |
| break; |
| case 109: |
| { |
| alt133=4; |
| } |
| break; |
| case 110: |
| { |
| alt133=5; |
| } |
| break; |
| case 111: |
| { |
| alt133=6; |
| } |
| break; |
| case 112: |
| { |
| alt133=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 133, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt133) { |
| case 1 : |
| // InternalSignalDSL.g:7935:3: (enumLiteral_0= 'sunday' ) |
| { |
| // InternalSignalDSL.g:7935:3: (enumLiteral_0= 'sunday' ) |
| // InternalSignalDSL.g:7936:4: enumLiteral_0= 'sunday' |
| { |
| enumLiteral_0=(Token)match(input,106,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getSUNDAYEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getDayOfWeekEnumAccess().getSUNDAYEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:7943:3: (enumLiteral_1= 'monday' ) |
| { |
| // InternalSignalDSL.g:7943:3: (enumLiteral_1= 'monday' ) |
| // InternalSignalDSL.g:7944:4: enumLiteral_1= 'monday' |
| { |
| enumLiteral_1=(Token)match(input,107,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getMONDAYEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getDayOfWeekEnumAccess().getMONDAYEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:7951:3: (enumLiteral_2= 'tuesday' ) |
| { |
| // InternalSignalDSL.g:7951:3: (enumLiteral_2= 'tuesday' ) |
| // InternalSignalDSL.g:7952:4: enumLiteral_2= 'tuesday' |
| { |
| enumLiteral_2=(Token)match(input,108,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getTUESDAYEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getDayOfWeekEnumAccess().getTUESDAYEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalSignalDSL.g:7959:3: (enumLiteral_3= 'wednesday' ) |
| { |
| // InternalSignalDSL.g:7959:3: (enumLiteral_3= 'wednesday' ) |
| // InternalSignalDSL.g:7960:4: enumLiteral_3= 'wednesday' |
| { |
| enumLiteral_3=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getWEDNESDAYEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getDayOfWeekEnumAccess().getWEDNESDAYEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalSignalDSL.g:7967:3: (enumLiteral_4= 'thursday' ) |
| { |
| // InternalSignalDSL.g:7967:3: (enumLiteral_4= 'thursday' ) |
| // InternalSignalDSL.g:7968:4: enumLiteral_4= 'thursday' |
| { |
| enumLiteral_4=(Token)match(input,110,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getTHURSDAYEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getDayOfWeekEnumAccess().getTHURSDAYEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalSignalDSL.g:7975:3: (enumLiteral_5= 'friday' ) |
| { |
| // InternalSignalDSL.g:7975:3: (enumLiteral_5= 'friday' ) |
| // InternalSignalDSL.g:7976:4: enumLiteral_5= 'friday' |
| { |
| enumLiteral_5=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getFRIDAYEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getDayOfWeekEnumAccess().getFRIDAYEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalSignalDSL.g:7983:3: (enumLiteral_6= 'saturday' ) |
| { |
| // InternalSignalDSL.g:7983:3: (enumLiteral_6= 'saturday' ) |
| // InternalSignalDSL.g:7984:4: enumLiteral_6= 'saturday' |
| { |
| enumLiteral_6=(Token)match(input,112,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getDayOfWeekEnumAccess().getSATURDAYEnumLiteralDeclaration_6().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_6, grammarAccess.getDayOfWeekEnumAccess().getSATURDAYEnumLiteralDeclaration_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDayOfWeekEnum" |
| |
| // $ANTLR start synpred1_InternalSignalDSL |
| public final void synpred1_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:1249:5: ( '(' ) |
| // InternalSignalDSL.g:1249:6: '(' |
| { |
| match(input,36,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalSignalDSL |
| |
| // $ANTLR start synpred2_InternalSignalDSL |
| public final void synpred2_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:1258:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalSignalDSL.g:1258:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalSignalDSL.g:1258:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalSignalDSL.g:1259:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalSignalDSL.g:1259:8: ( ( ruleValidID ) ) |
| // InternalSignalDSL.g:1260:9: ( ruleValidID ) |
| { |
| // InternalSignalDSL.g:1260:9: ( ruleValidID ) |
| // InternalSignalDSL.g:1261:10: ruleValidID |
| { |
| pushFollow(FOLLOW_27); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,39,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalSignalDSL |
| |
| // $ANTLR start synpred5_InternalSignalDSL |
| public final void synpred5_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:1438:5: ( ( () '#' '[' ) ) |
| // InternalSignalDSL.g:1438:6: ( () '#' '[' ) |
| { |
| // InternalSignalDSL.g:1438:6: ( () '#' '[' ) |
| // InternalSignalDSL.g:1439:6: () '#' '[' |
| { |
| // InternalSignalDSL.g:1439:6: () |
| // InternalSignalDSL.g:1440:6: |
| { |
| } |
| |
| match(input,40,FOLLOW_29); if (state.failed) return ; |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalSignalDSL |
| |
| // $ANTLR start synpred6_InternalSignalDSL |
| public final void synpred6_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:1580:5: ( ( () '#' '[' ) ) |
| // InternalSignalDSL.g:1580:6: ( () '#' '[' ) |
| { |
| // InternalSignalDSL.g:1580:6: ( () '#' '[' ) |
| // InternalSignalDSL.g:1581:6: () '#' '[' |
| { |
| // InternalSignalDSL.g:1581:6: () |
| // InternalSignalDSL.g:1582:6: |
| { |
| } |
| |
| match(input,40,FOLLOW_29); if (state.failed) return ; |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalSignalDSL |
| |
| // $ANTLR start synpred7_InternalSignalDSL |
| public final void synpred7_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:1808:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalSignalDSL.g:1808:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalSignalDSL.g:1808:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalSignalDSL.g:1809:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalSignalDSL.g:1809:7: () |
| // InternalSignalDSL.g:1810:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:1811:7: ( ( ruleOpMultiAssign ) ) |
| // InternalSignalDSL.g:1812:8: ( ruleOpMultiAssign ) |
| { |
| // InternalSignalDSL.g:1812:8: ( ruleOpMultiAssign ) |
| // InternalSignalDSL.g:1813:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalSignalDSL |
| |
| // $ANTLR start synpred8_InternalSignalDSL |
| public final void synpred8_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2002:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalSignalDSL.g:2002:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalSignalDSL.g:2002:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalSignalDSL.g:2003:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalSignalDSL.g:2003:6: () |
| // InternalSignalDSL.g:2004:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2005:6: ( ( ruleOpOr ) ) |
| // InternalSignalDSL.g:2006:7: ( ruleOpOr ) |
| { |
| // InternalSignalDSL.g:2006:7: ( ruleOpOr ) |
| // InternalSignalDSL.g:2007:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalSignalDSL |
| |
| // $ANTLR start synpred9_InternalSignalDSL |
| public final void synpred9_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2109:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalSignalDSL.g:2109:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalSignalDSL.g:2109:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalSignalDSL.g:2110:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalSignalDSL.g:2110:6: () |
| // InternalSignalDSL.g:2111:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2112:6: ( ( ruleOpAnd ) ) |
| // InternalSignalDSL.g:2113:7: ( ruleOpAnd ) |
| { |
| // InternalSignalDSL.g:2113:7: ( ruleOpAnd ) |
| // InternalSignalDSL.g:2114:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalSignalDSL |
| |
| // $ANTLR start synpred10_InternalSignalDSL |
| public final void synpred10_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2216:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalSignalDSL.g:2216:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalSignalDSL.g:2216:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalSignalDSL.g:2217:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalSignalDSL.g:2217:6: () |
| // InternalSignalDSL.g:2218:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2219:6: ( ( ruleOpEquality ) ) |
| // InternalSignalDSL.g:2220:7: ( ruleOpEquality ) |
| { |
| // InternalSignalDSL.g:2220:7: ( ruleOpEquality ) |
| // InternalSignalDSL.g:2221:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalSignalDSL |
| |
| // $ANTLR start synpred11_InternalSignalDSL |
| public final void synpred11_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2344:6: ( ( () 'instanceof' ) ) |
| // InternalSignalDSL.g:2344:7: ( () 'instanceof' ) |
| { |
| // InternalSignalDSL.g:2344:7: ( () 'instanceof' ) |
| // InternalSignalDSL.g:2345:7: () 'instanceof' |
| { |
| // InternalSignalDSL.g:2345:7: () |
| // InternalSignalDSL.g:2346:7: |
| { |
| } |
| |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalSignalDSL |
| |
| // $ANTLR start synpred12_InternalSignalDSL |
| public final void synpred12_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2387:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalSignalDSL.g:2387:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalSignalDSL.g:2387:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalSignalDSL.g:2388:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalSignalDSL.g:2388:7: () |
| // InternalSignalDSL.g:2389:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:2390:7: ( ( ruleOpCompare ) ) |
| // InternalSignalDSL.g:2391:8: ( ruleOpCompare ) |
| { |
| // InternalSignalDSL.g:2391:8: ( ruleOpCompare ) |
| // InternalSignalDSL.g:2392:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalSignalDSL |
| |
| // $ANTLR start synpred13_InternalSignalDSL |
| public final void synpred13_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2522:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalSignalDSL.g:2522:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalSignalDSL.g:2522:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalSignalDSL.g:2523:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalSignalDSL.g:2523:6: () |
| // InternalSignalDSL.g:2524:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2525:6: ( ( ruleOpOther ) ) |
| // InternalSignalDSL.g:2526:7: ( ruleOpOther ) |
| { |
| // InternalSignalDSL.g:2526:7: ( ruleOpOther ) |
| // InternalSignalDSL.g:2527:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalSignalDSL |
| |
| // $ANTLR start synpred14_InternalSignalDSL |
| public final void synpred14_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2642:6: ( ( '>' '>' ) ) |
| // InternalSignalDSL.g:2642:7: ( '>' '>' ) |
| { |
| // InternalSignalDSL.g:2642:7: ( '>' '>' ) |
| // InternalSignalDSL.g:2643:7: '>' '>' |
| { |
| match(input,49,FOLLOW_44); if (state.failed) return ; |
| match(input,49,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalSignalDSL |
| |
| // $ANTLR start synpred15_InternalSignalDSL |
| public final void synpred15_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2677:6: ( ( '<' '<' ) ) |
| // InternalSignalDSL.g:2677:7: ( '<' '<' ) |
| { |
| // InternalSignalDSL.g:2677:7: ( '<' '<' ) |
| // InternalSignalDSL.g:2678:7: '<' '<' |
| { |
| match(input,48,FOLLOW_34); if (state.failed) return ; |
| match(input,48,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalSignalDSL |
| |
| // $ANTLR start synpred16_InternalSignalDSL |
| public final void synpred16_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2750:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalSignalDSL.g:2750:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalSignalDSL.g:2750:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalSignalDSL.g:2751:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalSignalDSL.g:2751:6: () |
| // InternalSignalDSL.g:2752:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2753:6: ( ( ruleOpAdd ) ) |
| // InternalSignalDSL.g:2754:7: ( ruleOpAdd ) |
| { |
| // InternalSignalDSL.g:2754:7: ( ruleOpAdd ) |
| // InternalSignalDSL.g:2755:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalSignalDSL |
| |
| // $ANTLR start synpred17_InternalSignalDSL |
| public final void synpred17_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:2865:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalSignalDSL.g:2865:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalSignalDSL.g:2865:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalSignalDSL.g:2866:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalSignalDSL.g:2866:6: () |
| // InternalSignalDSL.g:2867:6: |
| { |
| } |
| |
| // InternalSignalDSL.g:2868:6: ( ( ruleOpMulti ) ) |
| // InternalSignalDSL.g:2869:7: ( ruleOpMulti ) |
| { |
| // InternalSignalDSL.g:2869:7: ( ruleOpMulti ) |
| // InternalSignalDSL.g:2870:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalSignalDSL |
| |
| // $ANTLR start synpred18_InternalSignalDSL |
| public final void synpred18_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3100:5: ( ( () 'as' ) ) |
| // InternalSignalDSL.g:3100:6: ( () 'as' ) |
| { |
| // InternalSignalDSL.g:3100:6: ( () 'as' ) |
| // InternalSignalDSL.g:3101:6: () 'as' |
| { |
| // InternalSignalDSL.g:3101:6: () |
| // InternalSignalDSL.g:3102:6: |
| { |
| } |
| |
| match(input,70,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalSignalDSL |
| |
| // $ANTLR start synpred19_InternalSignalDSL |
| public final void synpred19_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3168:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalSignalDSL.g:3168:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalSignalDSL.g:3168:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalSignalDSL.g:3169:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalSignalDSL.g:3169:5: () |
| // InternalSignalDSL.g:3170:5: |
| { |
| } |
| |
| // InternalSignalDSL.g:3171:5: ( ( ruleOpPostfix ) ) |
| // InternalSignalDSL.g:3172:6: ( ruleOpPostfix ) |
| { |
| // InternalSignalDSL.g:3172:6: ( ruleOpPostfix ) |
| // InternalSignalDSL.g:3173:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalSignalDSL |
| |
| // $ANTLR start synpred20_InternalSignalDSL |
| public final void synpred20_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3264:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalSignalDSL.g:3264:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalSignalDSL.g:3264:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalSignalDSL.g:3265:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalSignalDSL.g:3265:7: () |
| // InternalSignalDSL.g:3266:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:3267:7: ( '.' | ( ( '::' ) ) ) |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==73) ) { |
| alt134=1; |
| } |
| else if ( (LA134_0==74) ) { |
| alt134=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 134, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalSignalDSL.g:3268:8: '.' |
| { |
| match(input,73,FOLLOW_51); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3270:8: ( ( '::' ) ) |
| { |
| // InternalSignalDSL.g:3270:8: ( ( '::' ) ) |
| // InternalSignalDSL.g:3271:9: ( '::' ) |
| { |
| // InternalSignalDSL.g:3271:9: ( '::' ) |
| // InternalSignalDSL.g:3272:10: '::' |
| { |
| match(input,74,FOLLOW_51); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:3276:7: ( ( ruleFeatureCallID ) ) |
| // InternalSignalDSL.g:3277:8: ( ruleFeatureCallID ) |
| { |
| // InternalSignalDSL.g:3277:8: ( ruleFeatureCallID ) |
| // InternalSignalDSL.g:3278:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_27); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalSignalDSL |
| |
| // $ANTLR start synpred21_InternalSignalDSL |
| public final void synpred21_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3361:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalSignalDSL.g:3361:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalSignalDSL.g:3361:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalSignalDSL.g:3362:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalSignalDSL.g:3362:7: () |
| // InternalSignalDSL.g:3363:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:3364:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt135=3; |
| switch ( input.LA(1) ) { |
| case 73: |
| { |
| alt135=1; |
| } |
| break; |
| case 75: |
| { |
| alt135=2; |
| } |
| break; |
| case 74: |
| { |
| alt135=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 135, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt135) { |
| case 1 : |
| // InternalSignalDSL.g:3365:8: '.' |
| { |
| match(input,73,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalSignalDSL.g:3367:8: ( ( '?.' ) ) |
| { |
| // InternalSignalDSL.g:3367:8: ( ( '?.' ) ) |
| // InternalSignalDSL.g:3368:9: ( '?.' ) |
| { |
| // InternalSignalDSL.g:3368:9: ( '?.' ) |
| // InternalSignalDSL.g:3369:10: '?.' |
| { |
| match(input,75,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalSignalDSL.g:3373:8: ( ( '::' ) ) |
| { |
| // InternalSignalDSL.g:3373:8: ( ( '::' ) ) |
| // InternalSignalDSL.g:3374:9: ( '::' ) |
| { |
| // InternalSignalDSL.g:3374:9: ( '::' ) |
| // InternalSignalDSL.g:3375:10: '::' |
| { |
| match(input,74,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalSignalDSL |
| |
| // $ANTLR start synpred22_InternalSignalDSL |
| public final void synpred22_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3499:7: ( ( '(' ) ) |
| // InternalSignalDSL.g:3499:8: ( '(' ) |
| { |
| // InternalSignalDSL.g:3499:8: ( '(' ) |
| // InternalSignalDSL.g:3500:8: '(' |
| { |
| match(input,36,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalSignalDSL |
| |
| // $ANTLR start synpred23_InternalSignalDSL |
| public final void synpred23_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3518:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalSignalDSL.g:3518:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalSignalDSL.g:3518:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalSignalDSL.g:3519:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalSignalDSL.g:3519:9: () |
| // InternalSignalDSL.g:3520:9: |
| { |
| } |
| |
| // InternalSignalDSL.g:3521:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==RULE_ID||LA137_0==36||LA137_0==61) ) { |
| alt137=1; |
| } |
| switch (alt137) { |
| case 1 : |
| // InternalSignalDSL.g:3522:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:3522:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:3523:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:3523:11: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:3524:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:3527:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop136: |
| do { |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==37) ) { |
| alt136=1; |
| } |
| |
| |
| switch (alt136) { |
| case 1 : |
| // InternalSignalDSL.g:3528:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,37,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:3529:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:3530:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:3530:12: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:3531:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop136; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:3536:9: ( ( '|' ) ) |
| // InternalSignalDSL.g:3537:10: ( '|' ) |
| { |
| // InternalSignalDSL.g:3537:10: ( '|' ) |
| // InternalSignalDSL.g:3538:11: '|' |
| { |
| match(input,76,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalSignalDSL |
| |
| // $ANTLR start synpred24_InternalSignalDSL |
| public final void synpred24_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3615:6: ( ( () '[' ) ) |
| // InternalSignalDSL.g:3615:7: ( () '[' ) |
| { |
| // InternalSignalDSL.g:3615:7: ( () '[' ) |
| // InternalSignalDSL.g:3616:7: () '[' |
| { |
| // InternalSignalDSL.g:3616:7: () |
| // InternalSignalDSL.g:3617:7: |
| { |
| } |
| |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalSignalDSL |
| |
| // $ANTLR start synpred25_InternalSignalDSL |
| public final void synpred25_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3688:4: ( ( () 'synchronized' '(' ) ) |
| // InternalSignalDSL.g:3688:5: ( () 'synchronized' '(' ) |
| { |
| // InternalSignalDSL.g:3688:5: ( () 'synchronized' '(' ) |
| // InternalSignalDSL.g:3689:5: () 'synchronized' '(' |
| { |
| // InternalSignalDSL.g:3689:5: () |
| // InternalSignalDSL.g:3690:5: |
| { |
| } |
| |
| match(input,98,FOLLOW_66); if (state.failed) return ; |
| match(input,36,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalSignalDSL |
| |
| // $ANTLR start synpred26_InternalSignalDSL |
| public final void synpred26_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3733:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalSignalDSL.g:3733:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalSignalDSL.g:3733:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalSignalDSL.g:3734:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalSignalDSL.g:3734:5: () |
| // InternalSignalDSL.g:3735:5: |
| { |
| } |
| |
| match(input,82,FOLLOW_66); if (state.failed) return ; |
| match(input,36,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:3738:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:3739:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:3739:6: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:3740:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_15); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,24,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalSignalDSL |
| |
| // $ANTLR start synpred27_InternalSignalDSL |
| public final void synpred27_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:3847:4: ( ( () '[' ) ) |
| // InternalSignalDSL.g:3847:5: ( () '[' ) |
| { |
| // InternalSignalDSL.g:3847:5: ( () '[' ) |
| // InternalSignalDSL.g:3848:5: () '[' |
| { |
| // InternalSignalDSL.g:3848:5: () |
| // InternalSignalDSL.g:3849:5: |
| { |
| } |
| |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalSignalDSL |
| |
| // $ANTLR start synpred29_InternalSignalDSL |
| public final void synpred29_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:4152:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalSignalDSL.g:4152:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalSignalDSL.g:4152:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalSignalDSL.g:4153:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalSignalDSL.g:4153:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==RULE_ID||LA139_0==36||LA139_0==61) ) { |
| alt139=1; |
| } |
| switch (alt139) { |
| case 1 : |
| // InternalSignalDSL.g:4154:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:4154:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4155:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4155:7: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4156:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:4159:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop138: |
| do { |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( (LA138_0==37) ) { |
| alt138=1; |
| } |
| |
| |
| switch (alt138) { |
| case 1 : |
| // InternalSignalDSL.g:4160:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,37,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:4161:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4162:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4162:8: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4163:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop138; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:4168:5: ( ( '|' ) ) |
| // InternalSignalDSL.g:4169:6: ( '|' ) |
| { |
| // InternalSignalDSL.g:4169:6: ( '|' ) |
| // InternalSignalDSL.g:4170:7: '|' |
| { |
| match(input,76,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalSignalDSL |
| |
| // $ANTLR start synpred31_InternalSignalDSL |
| public final void synpred31_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:4561:5: ( 'else' ) |
| // InternalSignalDSL.g:4561:6: 'else' |
| { |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalSignalDSL |
| |
| // $ANTLR start synpred32_InternalSignalDSL |
| public final void synpred32_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:4620:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalSignalDSL.g:4620:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalSignalDSL.g:4620:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalSignalDSL.g:4621:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,36,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:4622:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4623:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4623:8: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4624:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_15); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,24,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalSignalDSL |
| |
| // $ANTLR start synpred33_InternalSignalDSL |
| public final void synpred33_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:4687:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalSignalDSL.g:4687:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalSignalDSL.g:4687:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalSignalDSL.g:4688:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalSignalDSL.g:4688:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:4689:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:4689:8: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:4690:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_15); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,24,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalSignalDSL |
| |
| // $ANTLR start synpred35_InternalSignalDSL |
| public final void synpred35_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:5505:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalSignalDSL.g:5505:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalSignalDSL.g:5505:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalSignalDSL.g:5506:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalSignalDSL.g:5506:6: ( ( ruleJvmTypeReference ) ) |
| // InternalSignalDSL.g:5507:7: ( ruleJvmTypeReference ) |
| { |
| // InternalSignalDSL.g:5507:7: ( ruleJvmTypeReference ) |
| // InternalSignalDSL.g:5508:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5511:6: ( ( ruleValidID ) ) |
| // InternalSignalDSL.g:5512:7: ( ruleValidID ) |
| { |
| // InternalSignalDSL.g:5512:7: ( ruleValidID ) |
| // InternalSignalDSL.g:5513:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalSignalDSL |
| |
| // $ANTLR start synpred36_InternalSignalDSL |
| public final void synpred36_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:5817:5: ( ( '(' ) ) |
| // InternalSignalDSL.g:5817:6: ( '(' ) |
| { |
| // InternalSignalDSL.g:5817:6: ( '(' ) |
| // InternalSignalDSL.g:5818:6: '(' |
| { |
| match(input,36,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalSignalDSL |
| |
| // $ANTLR start synpred37_InternalSignalDSL |
| public final void synpred37_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:5836:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalSignalDSL.g:5836:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalSignalDSL.g:5836:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalSignalDSL.g:5837:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalSignalDSL.g:5837:7: () |
| // InternalSignalDSL.g:5838:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:5839:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==RULE_ID||LA143_0==36||LA143_0==61) ) { |
| alt143=1; |
| } |
| switch (alt143) { |
| case 1 : |
| // InternalSignalDSL.g:5840:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:5840:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:5841:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:5841:9: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:5842:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:5845:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop142: |
| do { |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==37) ) { |
| alt142=1; |
| } |
| |
| |
| switch (alt142) { |
| case 1 : |
| // InternalSignalDSL.g:5846:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,37,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:5847:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:5848:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:5848:10: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:5849:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop142; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:5854:7: ( ( '|' ) ) |
| // InternalSignalDSL.g:5855:8: ( '|' ) |
| { |
| // InternalSignalDSL.g:5855:8: ( '|' ) |
| // InternalSignalDSL.g:5856:9: '|' |
| { |
| match(input,76,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalSignalDSL |
| |
| // $ANTLR start synpred38_InternalSignalDSL |
| public final void synpred38_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:5933:4: ( ( () '[' ) ) |
| // InternalSignalDSL.g:5933:5: ( () '[' ) |
| { |
| // InternalSignalDSL.g:5933:5: ( () '[' ) |
| // InternalSignalDSL.g:5934:5: () '[' |
| { |
| // InternalSignalDSL.g:5934:5: () |
| // InternalSignalDSL.g:5935:5: |
| { |
| } |
| |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalSignalDSL |
| |
| // $ANTLR start synpred39_InternalSignalDSL |
| public final void synpred39_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6093:5: ( '<' ) |
| // InternalSignalDSL.g:6093:6: '<' |
| { |
| match(input,48,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalSignalDSL |
| |
| // $ANTLR start synpred40_InternalSignalDSL |
| public final void synpred40_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6150:5: ( ( '(' ) ) |
| // InternalSignalDSL.g:6150:6: ( '(' ) |
| { |
| // InternalSignalDSL.g:6150:6: ( '(' ) |
| // InternalSignalDSL.g:6151:6: '(' |
| { |
| match(input,36,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalSignalDSL |
| |
| // $ANTLR start synpred41_InternalSignalDSL |
| public final void synpred41_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6169:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalSignalDSL.g:6169:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalSignalDSL.g:6169:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalSignalDSL.g:6170:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalSignalDSL.g:6170:7: () |
| // InternalSignalDSL.g:6171:7: |
| { |
| } |
| |
| // InternalSignalDSL.g:6172:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==RULE_ID||LA145_0==36||LA145_0==61) ) { |
| alt145=1; |
| } |
| switch (alt145) { |
| case 1 : |
| // InternalSignalDSL.g:6173:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalSignalDSL.g:6173:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:6174:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:6174:9: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:6175:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalSignalDSL.g:6178:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop144: |
| do { |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==37) ) { |
| alt144=1; |
| } |
| |
| |
| switch (alt144) { |
| case 1 : |
| // InternalSignalDSL.g:6179:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,37,FOLLOW_41); if (state.failed) return ; |
| // InternalSignalDSL.g:6180:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalSignalDSL.g:6181:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalSignalDSL.g:6181:10: ( ruleJvmFormalParameter ) |
| // InternalSignalDSL.g:6182:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_61); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop144; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalSignalDSL.g:6187:7: ( ( '|' ) ) |
| // InternalSignalDSL.g:6188:8: ( '|' ) |
| { |
| // InternalSignalDSL.g:6188:8: ( '|' ) |
| // InternalSignalDSL.g:6189:9: '|' |
| { |
| match(input,76,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalSignalDSL |
| |
| // $ANTLR start synpred42_InternalSignalDSL |
| public final void synpred42_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6266:4: ( ( () '[' ) ) |
| // InternalSignalDSL.g:6266:5: ( () '[' ) |
| { |
| // InternalSignalDSL.g:6266:5: ( () '[' ) |
| // InternalSignalDSL.g:6267:5: () '[' |
| { |
| // InternalSignalDSL.g:6267:5: () |
| // InternalSignalDSL.g:6268:5: |
| { |
| } |
| |
| match(input,41,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalSignalDSL |
| |
| // $ANTLR start synpred43_InternalSignalDSL |
| public final void synpred43_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6609: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 ) |
| // InternalSignalDSL.g: |
| { |
| if ( (input.LA(1)>=RULE_STRING && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||(input.LA(1)>=29 && input.LA(1)<=31)||input.LA(1)==36||(input.LA(1)>=40 && input.LA(1)<=41)||input.LA(1)==48||(input.LA(1)>=64 && input.LA(1)<=65)||input.LA(1)==69||input.LA(1)==77||input.LA(1)==79||(input.LA(1)>=82 && input.LA(1)<=84)||(input.LA(1)>=87 && input.LA(1)<=96)||input.LA(1)==98 ) { |
| 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_InternalSignalDSL |
| |
| // $ANTLR start synpred44_InternalSignalDSL |
| public final void synpred44_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6680:6: ( 'catch' ) |
| // InternalSignalDSL.g:6680:7: 'catch' |
| { |
| match(input,99,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalSignalDSL |
| |
| // $ANTLR start synpred45_InternalSignalDSL |
| public final void synpred45_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6701:7: ( 'finally' ) |
| // InternalSignalDSL.g:6701:8: 'finally' |
| { |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalSignalDSL |
| |
| // $ANTLR start synpred48_InternalSignalDSL |
| public final void synpred48_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:6945:5: ( '.' ) |
| // InternalSignalDSL.g:6945:6: '.' |
| { |
| match(input,73,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalSignalDSL |
| |
| // $ANTLR start synpred49_InternalSignalDSL |
| public final void synpred49_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:7071:5: ( ( () ruleArrayBrackets ) ) |
| // InternalSignalDSL.g:7071:6: ( () ruleArrayBrackets ) |
| { |
| // InternalSignalDSL.g:7071:6: ( () ruleArrayBrackets ) |
| // InternalSignalDSL.g:7072:6: () ruleArrayBrackets |
| { |
| // InternalSignalDSL.g:7072:6: () |
| // InternalSignalDSL.g:7073:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalSignalDSL |
| |
| // $ANTLR start synpred50_InternalSignalDSL |
| public final void synpred50_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:7268:5: ( '<' ) |
| // InternalSignalDSL.g:7268:6: '<' |
| { |
| match(input,48,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalSignalDSL |
| |
| // $ANTLR start synpred51_InternalSignalDSL |
| public final void synpred51_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:7324:6: ( ( () '.' ) ) |
| // InternalSignalDSL.g:7324:7: ( () '.' ) |
| { |
| // InternalSignalDSL.g:7324:7: ( () '.' ) |
| // InternalSignalDSL.g:7325:7: () '.' |
| { |
| // InternalSignalDSL.g:7325:7: () |
| // InternalSignalDSL.g:7326:7: |
| { |
| } |
| |
| match(input,73,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalSignalDSL |
| |
| // $ANTLR start synpred52_InternalSignalDSL |
| public final void synpred52_InternalSignalDSL_fragment() throws RecognitionException { |
| // InternalSignalDSL.g:7362:7: ( '<' ) |
| // InternalSignalDSL.g:7362:8: '<' |
| { |
| match(input,48,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalSignalDSL |
| |
| // Delegated rules |
| |
| public final boolean synpred17_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalSignalDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred24_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalSignalDSL_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_InternalSignalDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalSignalDSL_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 DFA10 dfa10 = new DFA10(this); |
| protected DFA13 dfa13 = new DFA13(this); |
| protected DFA19 dfa19 = new DFA19(this); |
| protected DFA22 dfa22 = new DFA22(this); |
| protected DFA24 dfa24 = new DFA24(this); |
| protected DFA34 dfa34 = new DFA34(this); |
| protected DFA37 dfa37 = new DFA37(this); |
| protected DFA53 dfa53 = new DFA53(this); |
| protected DFA52 dfa52 = new DFA52(this); |
| protected DFA54 dfa54 = new DFA54(this); |
| protected DFA56 dfa56 = new DFA56(this); |
| protected DFA65 dfa65 = new DFA65(this); |
| protected DFA72 dfa72 = new DFA72(this); |
| protected DFA71 dfa71 = new DFA71(this); |
| protected DFA94 dfa94 = new DFA94(this); |
| protected DFA93 dfa93 = new DFA93(this); |
| protected DFA95 dfa95 = new DFA95(this); |
| protected DFA99 dfa99 = new DFA99(this); |
| protected DFA102 dfa102 = new DFA102(this); |
| protected DFA101 dfa101 = new DFA101(this); |
| protected DFA103 dfa103 = new DFA103(this); |
| protected DFA106 dfa106 = new DFA106(this); |
| protected DFA124 dfa124 = new DFA124(this); |
| protected DFA122 dfa122 = new DFA122(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\4\uffff\1\5"; |
| static final String dfa_3s = "\1\6\1\uffff\1\15\1\uffff\1\6\2\uffff\1\15"; |
| static final String dfa_4s = "\1\41\1\uffff\1\111\1\uffff\1\40\2\uffff\1\111"; |
| 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\27\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\17\uffff\1\5\4\uffff\1\5\46\uffff\1\4", |
| "", |
| "\1\7\31\uffff\1\6", |
| "", |
| "", |
| "\1\5\17\uffff\1\5\4\uffff\1\5\46\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 DFA10 extends DFA { |
| |
| public DFA10(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 10; |
| 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 "1038: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\142\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\2\2\1\1\2\2\5\uffff\1\2\16\uffff\3\2\3\uffff\2\2\1\uffff\1\42\1\uffff\2\2\6\uffff\1\2\17\uffff\2\2\3\uffff\1\2\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 DFA13 extends DFA { |
| |
| public DFA13(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 13; |
| 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 "1255: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 LA13_1 = input.LA(1); |
| |
| |
| int index13_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalSignalDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index13_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 13, _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\142\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\16\uffff\3\2\3\uffff\2\2\3\uffff\1\1\1\2\6\uffff\1\2\17\uffff\2\2\3\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 DFA19 extends DFA { |
| |
| public DFA19(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 19; |
| 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 "1435: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 LA19_1 = input.LA(1); |
| |
| |
| int index19_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalSignalDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index19_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 19, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA22 extends DFA { |
| |
| public DFA22(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 22; |
| 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 "1577: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 LA22_1 = input.LA(1); |
| |
| |
| int index22_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalSignalDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index22_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 22, _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\143\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\6\1\5\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\10\uffff\1\10\4\uffff\4\10\1\uffff\1\10\1\uffff\3\10\1\uffff\3\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\32\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 DFA24 extends DFA { |
| |
| public DFA24(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 24; |
| 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 "1806: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 LA24_1 = input.LA(1); |
| |
| |
| int index24_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA24_2 = input.LA(1); |
| |
| |
| int index24_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA24_3 = input.LA(1); |
| |
| |
| int index24_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA24_4 = input.LA(1); |
| |
| |
| int index24_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA24_5 = input.LA(1); |
| |
| |
| int index24_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA24_7 = input.LA(1); |
| |
| |
| int index24_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_7); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA24_6 = input.LA(1); |
| |
| |
| int index24_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalSignalDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index24_6); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 24, _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\143\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\4\1\0\1\5\1\6\1\3\1\7\1\1\1\2\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\10\uffff\1\1\4\uffff\4\1\1\uffff\1\1\1\uffff\3\1\1\uffff\10\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\14\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 DFA34 extends DFA { |
| |
| public DFA34(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 34; |
| 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 2520: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 LA34_3 = input.LA(1); |
| |
| |
| int index34_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_3); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA34_8 = input.LA(1); |
| |
| |
| int index34_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_8); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA34_9 = input.LA(1); |
| |
| |
| int index34_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_9); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA34_6 = input.LA(1); |
| |
| |
| int index34_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_6); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA34_2 = input.LA(1); |
| |
| |
| int index34_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_2); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA34_4 = input.LA(1); |
| |
| |
| int index34_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_4); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA34_5 = input.LA(1); |
| |
| |
| int index34_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_5); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA34_7 = input.LA(1); |
| |
| |
| int index34_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalSignalDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index34_7); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 34, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\60\2\uffff\1\61\7\uffff"; |
| static final String dfa_35s = "\1\77\2\uffff\1\74\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 DFA37 extends DFA { |
| |
| public DFA37(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 37; |
| 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 "2596: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\143\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\10\uffff\1\2\4\uffff\4\2\1\uffff\1\2\1\uffff\1\1\2\2\1\uffff\44\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 DFA53 extends DFA { |
| |
| public DFA53(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 53; |
| 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 "3497: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 LA53_1 = input.LA(1); |
| |
| |
| int index53_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index53_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 53, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\142\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\2\5\1\1\2\5\5\uffff\1\5\16\uffff\3\5\4\uffff\1\2\1\uffff\1\43\1\uffff\2\5\6\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\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 DFA52 extends DFA { |
| |
| public DFA52(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 52; |
| 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 "3516: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 LA52_0 = input.LA(1); |
| |
| |
| int index52_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA52_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA52_0==36) ) {s = 2;} |
| |
| else if ( (LA52_0==61) && (synpred23_InternalSignalDSL())) {s = 3;} |
| |
| else if ( (LA52_0==76) && (synpred23_InternalSignalDSL())) {s = 4;} |
| |
| else if ( ((LA52_0>=RULE_STRING && LA52_0<=RULE_INT)||(LA52_0>=RULE_HEX && LA52_0<=RULE_DECIMAL)||LA52_0==14||(LA52_0>=29 && LA52_0<=31)||(LA52_0>=40 && LA52_0<=41)||LA52_0==48||(LA52_0>=64 && LA52_0<=65)||LA52_0==69||LA52_0==77||LA52_0==79||(LA52_0>=82 && LA52_0<=84)||(LA52_0>=87 && LA52_0<=96)||LA52_0==98) ) {s = 5;} |
| |
| else if ( (LA52_0==38) ) {s = 35;} |
| |
| |
| input.seek(index52_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA52_1 = input.LA(1); |
| |
| |
| int index52_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index52_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA52_2 = input.LA(1); |
| |
| |
| int index52_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index52_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 52, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\5\uffff\2\2\10\uffff\1\2\4\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\1\2\1\1\42\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA54 extends DFA { |
| |
| public DFA54(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 54; |
| 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 "3614: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 LA54_1 = input.LA(1); |
| |
| |
| int index54_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index54_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 54, _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\142\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\2\14\1\5\2\14\5\uffff\1\2\16\uffff\3\5\4\uffff\1\35\3\uffff\2\14\6\uffff\1\5\34\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 DFA56 extends DFA { |
| |
| public DFA56(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 56; |
| 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 "3659: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 LA56_0 = input.LA(1); |
| |
| |
| int index56_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA56_0==89) ) {s = 1;} |
| |
| else if ( (LA56_0==14) ) {s = 2;} |
| |
| else if ( (LA56_0==79) ) {s = 3;} |
| |
| else if ( (LA56_0==98) && (synpred25_InternalSignalDSL())) {s = 4;} |
| |
| else if ( (LA56_0==RULE_ID||(LA56_0>=29 && LA56_0<=31)||LA56_0==48||(LA56_0>=87 && LA56_0<=88)) ) {s = 5;} |
| |
| else if ( ((LA56_0>=RULE_STRING && LA56_0<=RULE_INT)||(LA56_0>=RULE_HEX && LA56_0<=RULE_DECIMAL)||(LA56_0>=40 && LA56_0<=41)||(LA56_0>=90 && LA56_0<=93)) ) {s = 12;} |
| |
| else if ( (LA56_0==77) ) {s = 22;} |
| |
| else if ( (LA56_0==82) ) {s = 23;} |
| |
| else if ( (LA56_0==83) ) {s = 24;} |
| |
| else if ( (LA56_0==84) ) {s = 25;} |
| |
| else if ( (LA56_0==94) ) {s = 26;} |
| |
| else if ( (LA56_0==95) ) {s = 27;} |
| |
| else if ( (LA56_0==96) ) {s = 28;} |
| |
| else if ( (LA56_0==36) ) {s = 29;} |
| |
| |
| input.seek(index56_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA56_23 = input.LA(1); |
| |
| |
| int index56_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalSignalDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index56_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 56, _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\142\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\2\5\1\1\2\5\5\uffff\1\5\16\uffff\3\5\4\uffff\1\2\3\uffff\3\5\5\uffff\1\5\14\uffff\1\3\2\uffff\2\5\3\uffff\1\5\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 DFA65 extends DFA { |
| |
| public DFA65(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 65; |
| 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 "4151: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 LA65_0 = input.LA(1); |
| |
| |
| int index65_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA65_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA65_0==36) ) {s = 2;} |
| |
| else if ( (LA65_0==61) && (synpred29_InternalSignalDSL())) {s = 3;} |
| |
| else if ( (LA65_0==76) && (synpred29_InternalSignalDSL())) {s = 4;} |
| |
| else if ( ((LA65_0>=RULE_STRING && LA65_0<=RULE_INT)||(LA65_0>=RULE_HEX && LA65_0<=RULE_DECIMAL)||LA65_0==14||(LA65_0>=29 && LA65_0<=31)||(LA65_0>=40 && LA65_0<=42)||LA65_0==48||(LA65_0>=64 && LA65_0<=65)||LA65_0==69||LA65_0==77||LA65_0==79||(LA65_0>=82 && LA65_0<=96)||LA65_0==98) ) {s = 5;} |
| |
| |
| input.seek(index65_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA65_1 = input.LA(1); |
| |
| |
| int index65_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index65_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA65_2 = input.LA(1); |
| |
| |
| int index65_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index65_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 65, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\16\uffff\3\2\4\uffff\1\1\3\uffff\2\2\6\uffff\1\2\14\uffff\1\2\2\uffff\2\2\3\uffff\1\2\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 DFA72 extends DFA { |
| |
| public DFA72(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 72; |
| 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 "4617: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 LA72_1 = input.LA(1); |
| |
| |
| int index72_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalSignalDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index72_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 72, _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\142\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\2\4\1\1\2\4\5\uffff\1\4\16\uffff\3\4\4\uffff\1\2\3\uffff\2\4\6\uffff\1\4\14\uffff\1\3\2\uffff\2\4\3\uffff\1\4\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 DFA71 extends DFA { |
| |
| public DFA71(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 71; |
| 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 "4686: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 LA71_0 = input.LA(1); |
| |
| |
| int index71_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA71_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA71_0==36) ) {s = 2;} |
| |
| else if ( (LA71_0==61) && (synpred33_InternalSignalDSL())) {s = 3;} |
| |
| else if ( ((LA71_0>=RULE_STRING && LA71_0<=RULE_INT)||(LA71_0>=RULE_HEX && LA71_0<=RULE_DECIMAL)||LA71_0==14||(LA71_0>=29 && LA71_0<=31)||(LA71_0>=40 && LA71_0<=41)||LA71_0==48||(LA71_0>=64 && LA71_0<=65)||LA71_0==69||LA71_0==77||LA71_0==79||(LA71_0>=82 && LA71_0<=84)||(LA71_0>=87 && LA71_0<=96)||LA71_0==98) ) {s = 4;} |
| |
| |
| input.seek(index71_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA71_1 = input.LA(1); |
| |
| |
| int index71_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalSignalDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index71_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA71_2 = input.LA(1); |
| |
| |
| int index71_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalSignalDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index71_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 71, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA94 extends DFA { |
| |
| public DFA94(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 94; |
| 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 "5815: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 LA94_1 = input.LA(1); |
| |
| |
| int index94_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index94_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 94, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA93 extends DFA { |
| |
| public DFA93(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 93; |
| 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 "5834: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 LA93_0 = input.LA(1); |
| |
| |
| int index93_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA93_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA93_0==36) ) {s = 2;} |
| |
| else if ( (LA93_0==61) && (synpred37_InternalSignalDSL())) {s = 3;} |
| |
| else if ( (LA93_0==76) && (synpred37_InternalSignalDSL())) {s = 4;} |
| |
| else if ( ((LA93_0>=RULE_STRING && LA93_0<=RULE_INT)||(LA93_0>=RULE_HEX && LA93_0<=RULE_DECIMAL)||LA93_0==14||(LA93_0>=29 && LA93_0<=31)||(LA93_0>=40 && LA93_0<=41)||LA93_0==48||(LA93_0>=64 && LA93_0<=65)||LA93_0==69||LA93_0==77||LA93_0==79||(LA93_0>=82 && LA93_0<=84)||(LA93_0>=87 && LA93_0<=96)||LA93_0==98) ) {s = 5;} |
| |
| else if ( (LA93_0==38) ) {s = 35;} |
| |
| |
| input.seek(index93_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA93_1 = input.LA(1); |
| |
| |
| int index93_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index93_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA93_2 = input.LA(1); |
| |
| |
| int index93_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index93_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 93, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA95 extends DFA { |
| |
| public DFA95(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 95; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "5932: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 LA95_1 = input.LA(1); |
| |
| |
| int index95_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index95_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 95, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\10\uffff\1\2\4\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\10\2\1\1\33\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA99 extends DFA { |
| |
| public DFA99(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 99; |
| 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 "6091: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 LA99_1 = input.LA(1); |
| |
| |
| int index99_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index99_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 99, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA102 extends DFA { |
| |
| public DFA102(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 102; |
| 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 "6148: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 LA102_1 = input.LA(1); |
| |
| |
| int index102_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index102_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 102, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA101 extends DFA { |
| |
| public DFA101(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 101; |
| 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 "6167: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 LA101_0 = input.LA(1); |
| |
| |
| int index101_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA101_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA101_0==36) ) {s = 2;} |
| |
| else if ( (LA101_0==61) && (synpred41_InternalSignalDSL())) {s = 3;} |
| |
| else if ( (LA101_0==76) && (synpred41_InternalSignalDSL())) {s = 4;} |
| |
| else if ( ((LA101_0>=RULE_STRING && LA101_0<=RULE_INT)||(LA101_0>=RULE_HEX && LA101_0<=RULE_DECIMAL)||LA101_0==14||(LA101_0>=29 && LA101_0<=31)||(LA101_0>=40 && LA101_0<=41)||LA101_0==48||(LA101_0>=64 && LA101_0<=65)||LA101_0==69||LA101_0==77||LA101_0==79||(LA101_0>=82 && LA101_0<=84)||(LA101_0>=87 && LA101_0<=96)||LA101_0==98) ) {s = 5;} |
| |
| else if ( (LA101_0==38) ) {s = 35;} |
| |
| |
| input.seek(index101_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA101_1 = input.LA(1); |
| |
| |
| int index101_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index101_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA101_2 = input.LA(1); |
| |
| |
| int index101_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalSignalDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index101_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 101, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA103 extends DFA { |
| |
| public DFA103(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 103; |
| 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 "6265: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 LA103_1 = input.LA(1); |
| |
| |
| int index103_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index103_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 103, _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\143\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\27\1\24\1\1\1\23\1\25\5\uffff\1\12\1\41\10\uffff\1\41\4\uffff\1\4\1\3\1\5\1\41\1\uffff\1\41\1\uffff\1\40\2\41\1\uffff\1\17\1\20\6\41\1\15\17\41\1\10\1\7\3\41\1\6\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 DFA106 extends DFA { |
| |
| public DFA106(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 106; |
| 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 "6608: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 LA106_1 = input.LA(1); |
| |
| |
| int index106_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA106_2 = input.LA(1); |
| |
| |
| int index106_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA106_3 = input.LA(1); |
| |
| |
| int index106_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA106_4 = input.LA(1); |
| |
| |
| int index106_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA106_5 = input.LA(1); |
| |
| |
| int index106_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA106_6 = input.LA(1); |
| |
| |
| int index106_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA106_7 = input.LA(1); |
| |
| |
| int index106_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA106_8 = input.LA(1); |
| |
| |
| int index106_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA106_9 = input.LA(1); |
| |
| |
| int index106_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA106_10 = input.LA(1); |
| |
| |
| int index106_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA106_11 = input.LA(1); |
| |
| |
| int index106_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA106_12 = input.LA(1); |
| |
| |
| int index106_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA106_13 = input.LA(1); |
| |
| |
| int index106_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA106_14 = input.LA(1); |
| |
| |
| int index106_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA106_15 = input.LA(1); |
| |
| |
| int index106_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA106_16 = input.LA(1); |
| |
| |
| int index106_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA106_17 = input.LA(1); |
| |
| |
| int index106_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA106_18 = input.LA(1); |
| |
| |
| int index106_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA106_19 = input.LA(1); |
| |
| |
| int index106_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA106_20 = input.LA(1); |
| |
| |
| int index106_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA106_21 = input.LA(1); |
| |
| |
| int index106_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA106_22 = input.LA(1); |
| |
| |
| int index106_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA106_23 = input.LA(1); |
| |
| |
| int index106_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA106_24 = input.LA(1); |
| |
| |
| int index106_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA106_25 = input.LA(1); |
| |
| |
| int index106_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA106_26 = input.LA(1); |
| |
| |
| int index106_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA106_27 = input.LA(1); |
| |
| |
| int index106_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA106_28 = input.LA(1); |
| |
| |
| int index106_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA106_29 = input.LA(1); |
| |
| |
| int index106_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA106_30 = input.LA(1); |
| |
| |
| int index106_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA106_31 = input.LA(1); |
| |
| |
| int index106_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA106_32 = input.LA(1); |
| |
| |
| int index106_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalSignalDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index106_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 106, _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\145\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\10\uffff\1\2\4\uffff\4\2\1\uffff\1\2\1\uffff\3\2\1\uffff\10\2\1\1\33\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 DFA124 extends DFA { |
| |
| public DFA124(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 124; |
| 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 "7266: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 LA124_1 = input.LA(1); |
| |
| |
| int index124_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalSignalDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index124_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 124, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA122 extends DFA { |
| |
| public DFA122(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 122; |
| 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 "7360: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 LA122_1 = input.LA(1); |
| |
| |
| int index122_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalSignalDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index122_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 122, _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[]{0x0000000000002000L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000018000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000020000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000048000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000000000L,0x000003C000000000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000180000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x000000000AE00000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000001000000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000000L,0x0001FC0000000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000004000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000010000000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000240000040L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000080000040L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000100000040L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000400000002L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000001000000002L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x00010358E00041F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000006000000000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000004000000000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000008000000000L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x00010318E00041F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000020000000000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x00010718E00041F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000042000000000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000002L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0003F80000000002L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0001000000000000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0006000000000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0004000000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0008000000000002L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0010000000000002L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x01E0000000000002L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0207000000000002L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x2000001000000040L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0xFC03000000000002L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x1000000000000000L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0002000000000000L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x2001000000000000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000003L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000100000002L,0x000000000000001CL}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000040L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000180L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000E00L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x00000000E0000040L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x00010000E0000040L,0x0000000001800000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x2000001000000040L,0x0000001000000000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0002002000000000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000021000000002L,0x0000000000000E00L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x20010358E00041F0L,0x00000005FF9CB023L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000020000000002L,0x0000000000000E00L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x00010318E000C1F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000002000008000L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x20010718E00041F0L,0x00000005FFFCB023L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000002000000000L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x00010718E00041F0L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000040000000000L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0001031CE00041F2L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x00010318E00041F2L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000001000000000L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000002L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x20010318E00041F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x2000003001008040L,0x0000000000030000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000002001000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000002001000000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0001031CE00041F0L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000002400000000L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x00010318E00041F0L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0001031CE00041F0L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000400000000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x00010318E000C1F0L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0001031CE000C1F0L,0x00000005FFFCA023L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000008000000002L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000021000000002L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000020000000002L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0001021000000002L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000024000000000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x00010318E00041F2L,0x00000005FF9CA023L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000000L,0x0000000A00000000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000002L,0x0000000A00000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000120L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x2000005000000040L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x2000000000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0001000000000002L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0001000000000002L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0000000001800000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0000002000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000100000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000020000002L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000042L}); |
| |
| } |